This node module is used to create automated acceptance tests. It's also a great alternative (or complement) to client test tools such as Selenium. You write your tests in a heartbeat and run them using the command line.
Add an option named something like "dependsOn". This options is used when running a specific test. If a test requires that the user is logged in you may put the login procedure in a separate test and refer to that test from other tests. eg:
If you then run dokimon -rs my-test-script.djs statusBarExists it will first execute the login test so that the login session exists when running the test statusBarExists