https://github.com/manojc/web-driver-io
A small POC to get started with web-driver-io using selenium-standalone as a local selenium service.
https://github.com/manojc/web-driver-io
automation-test node nodejs selenium selenium-standalone testing webdriverio
Last synced: about 2 months ago
JSON representation
A small POC to get started with web-driver-io using selenium-standalone as a local selenium service.
- Host: GitHub
- URL: https://github.com/manojc/web-driver-io
- Owner: manojc
- License: mit
- Created: 2018-09-22T12:44:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-24T11:51:37.000Z (almost 8 years ago)
- Last Synced: 2025-02-22T23:16:27.680Z (over 1 year ago)
- Topics: automation-test, node, nodejs, selenium, selenium-standalone, testing, webdriverio
- Language: JavaScript
- Homepage: https://bit.ly/2MWZuPQ
- Size: 1010 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# web-driver-io
## What?
A small POC to get started with `web-driver-io` using `selenium-standalone` as a local selenium service. Make sure you have JRE & JDK installed before proceeding.
The POC also uses `spec` & `allure` reporters apart from default `dot` reporter to generate reports.
---
## How?
Install node dependencies.
```shell
npm install
```
Install `selenium-standalone` service to be able to run selenium server on local machine. This is a one time step.
```shell
npm run selenium-install
```
Run the selenium local server so that `web-driver-io` can run the tests.
```shell
npm run selenium-start
```
Finally, run the tests.
```shell
npm run test
```
---
## Reports
Generate allure reports
```shell
npm run allure-report
```
Open allure reports in browser (http://localhost:7777)
```shell
npm run allure-serve
```
---
## Demo
The test report generated using `allure` is available [here](https://manojc.github.io/web-driver-io/)
---
## Config Used in web-driver-io
```shell
exports.config = {
specs: [
'./test/**/*.js'
],
exclude: [],
maxInstances: 10,
capabilities: [{
maxInstances: 5,
browserName: 'chrome'
}],
sync: true,
logLevel: 'command',
coloredLogs: true,
deprecationWarnings: true,
bail: 0,
screenshotPath: './errorShots/',
waitforTimeout: 10000,
connectionRetryTimeout: 90000,
connectionRetryCount: 3,
framework: 'mocha',
reporters: ['dot', 'spec', 'allure'],
reporterOptions: {
allure: {
outputDir: 'allure-results'
}
},
mochaOpts: {
ui: 'bdd'
},
}
```
---
## Author
Manoj Chalode (chalodem@gmail.com)
Copyright - [github.com/manojc](https://github.com/manojc)
---