One of the QE folks has started a series of posts about using Beakerlib to write Beaker tests: http://blog.afri.cz/
The first gives a nice overview of what Beakerlib is and why it exists (and why it's a shell library): http://blog.afri.cz/?p=6
Cheers, Nick.