It is possible to create plugin for Task and Conditions. This section includes information about off-the-shelf plugins distributed with atheist.
It’s a special test to kill and ensure the termination of other tasks.
The next example runs a netcat server for 10 seconds and then kills it:
nc = Daemon("nc -l -p 2000")
TaskTerminator(nc, delay=10)
Wrapper for standard unitest.TestCase. A sample:
class TestSample(unittest.TestCase):
def test_trivial():
self.assertEqual(1, 1)
UnitTestCase(TestSample)
It is a test to check webpages are correct and accessible.
Authentication with cookie:
If you want to get a page from a restricted site you may need a cookie file:
WebTest('example.org', cookie='cookie.txt')
To get the cookie you may use a curl command similar to this:
curl -c cookie.txt -d "name=John.Doe&pass=secret&form_id=user_login" http://example.orrg/login
Apply an arbitrary operator to compose results for given condition. It is the same idea of `compositetask`_ but applied to conditions. Sample:
CompositeCondition(all, cond1, cond2)
How to write a plugin... TODO