I am a java automation test developer(selenium), This is my first trying to use mocha and javascript with selenium. I am doing some comparison between javascript selenium and java selenium. I want to share the information with all automation testers who are selecting tools.
For Java selenium: mvn + testng + browerstack + jenkins
For Javascript: mocha + node.js + browserstack + circleCI
For python: robotFramework + jenkins
factors | Java | Javascript | python |
---|---|---|---|
Installation | maven pom.xml | mocha package.json | pybot setup.py |
Test library | |||
- local browser | |||
- report | testng report: xml | looking for tool to generation xml report | robot test report |
- parallel | yes | yes, not in the demo yet | not try yet |
- pageFactory | yes | did not see it in the api doc | do not know |
- open your terminal and install node.js first.
- run
npm install
- run
mocha googleTest.js
- add the circleCI project in circleCI.
- circleCI picks up the circle.xml and automatically run the test.
- create a jenkins job
- in the job configuration: set commands: npm install && mocha googleTest.js