How to add timeline report in webdriver.io

892 Views Asked by At

How can I add timeline report in webdriver.io project.

Sample report screenshot

enter image description here

1

There are 1 best solutions below

0
Bharath Kumar S On BEST ANSWER

https://github.com/QualityOps/wdio-timeline-reporter#readme

Step 1: Add wdio-timeline-reporter in dev dependency "wdio-timeline-reporter": "^5.1.1"

npm i wdio-timeline-reporter --save-dev

Step 2: Add timeline in services of the wdio config file

enter image description here

Step 3: Add timeline in the reporters for wdio config along with output directory for report.

enter image description here

Step 4: Run your tests and you will report generated in output directory. enter image description here