A more complex demo for the Vancouver Test Automation Group
This is meant to be reviewed in tandem with https://github.com/julienescueta/simpledemo.
In this repo, we take simpledemo and improve upon its maintainability and readability by using some features in CasperJS:
- Custom command-line arguments
- Modules + domain specific language
- Pre-test CLI argument
In Windows, you can run the demo by navigating to /casperjs/batchbin
in commmand-line and running:
casperjs.bat --pre=../../pre/initialize.js --baseurl=http://test.resaas.com:888 test ../../tests/demo2.js
In demo.js, you will want to change the parameters that are passed into the casper.dsl.register to a unique e-mail address otherwise the test will fail:
casper.dsl.register({
"firstName": "Luigi",
"lastName": "Mario",
"email": "[email protected]", // change this to be unique!
"password": "meetup",
"confirmPassword": "meetup"
});