Skip to content

Commit

Permalink
chore: update chapter 4
Browse files Browse the repository at this point in the history
-remove chromedriver-service
  • Loading branch information
wswebcreation committed Apr 8, 2024
1 parent 8ff2286 commit d207231
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions chapter_04.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
Use of Reporter and Services
============================
# Use of Reporter and Services

Congratulation for successfully creating your first WebdriverIO test suite. Now as we move forward we want to make use of the diverse WebdriverIO ecosystem and add some more reporters and services to our test suite. The objectives are:

1. Run Chromedriver as a service
2. Add the [Allure](http://allure.qatools.ru/) reporter to the list of reporters
3. Use the Allure CLI to generate the Allure report in the `onComplete` hook
4. Report wdio and Chromedriver logs into a `./logs` directory instead of stdout

In the last 2 chapters we had to have Chromedriver running in a parallel Terminal window. This is rather cumbersome as convenient as we need to make sure that it is running every time we want to run our tests. WebdriverIO has a set of driver services that allow to start the driver automatically by the testrunner. One of such services is the [`wdio-chromedriver-service`](https://www.npmjs.com/package/wdio-chromedriver-service).
1. Add the [Allure](http://allure.qatools.ru/) reporter to the list of reporters
2. Use the Allure CLI to generate the Allure report in the `onComplete` hook

Another very popular plugin is the [`@wdio/allure-reporter`](https://www.npmjs.com/package/@wdio/allure-reporter) which is a reporter that generates `.xml` files that can be converted into an HTML page. The reporter itself just creates a bunch of `.json` files. In order to generate an html page you need to use [Allure command line tool](https://www.npmjs.com/package/allure-commandline). To integrate the CLI and auto-generate the html page, please checkout the [Allure Reporter docs](https://webdriver.io/docs/allure-reporter#autogenerate-report).

Expand Down

0 comments on commit d207231

Please sign in to comment.