web-auto-test
v0.0.1
Published
web/mobile automate test setup
Maintainers
Readme
web-auto-test
Set up a automate-testing framework for web.
What it has?
- Auto-download selenium test server
- Auto-download chromedriver specific to current os
- Set up webdriverio js binding with basic config
- Set up mocha test framework
- Set up chai as promised as test assertion library
How to use it?
First
npm installto install package (and it'll start downloading binaries: selenium standalone and chromedriver). If want to use customized binaries and avoid downloading, just copy to following path before runnpm install:lib/selenium-server-standalone.jarfor selenium server standalonelib/chromedriverfor chromedriver
npm startto start selenium server(On another terminal)
npm testto run all test cases defined undertest/
Write test
- Refer to webdriverio docs for manipulating browser
- Refer to chai-as-promised and usage in webdriverio for test result assertion
