HI
I am having issue in allure report generation when running group of test cases in WDIO parallel execution.
HI
I am having issue in allure report generation when running group of test cases in WDIO parallel execution.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jayraj ChhayaPosted Jan 5, 2024, 7:36 AM
When running test cases in parallel using WDIO (WebdriverIO), generating Allure reports can sometimes be challenging. However, with the right configuration and setup, you can successfully generate Allure reports for your parallel test runs.
To generate Allure reports in WDIO parallel execution, follow these steps:
Install the necessary dependencies:
wdio.conf.js) to include the Allure reporter:After the test execution is complete, navigate to the
allure-resultsdirectory to find the generated XML files.Generate the Allure report by running the following command:
By following these steps, you should be able to generate Allure reports successfully even when running test cases in parallel using WDIO.
Remember to adjust the configuration and file paths according to your project structure and requirements.
Naimish MakwanaPosted Jan 5, 2024, 4:56 AM
Here are some steps that might help you resolve the issue:
@wdio/allure-reporterpackage as a devDependency in yourpackage.jsonfile. You can do this by running the following command in your terminal:npm install @wdio/allure-reporter --save-dev1.wdio.conf.jsfile. You can do this by adding the following code snippet to your configuration file:The
outputDirparameter specifies the directory where the report will be generated. ThedisableWebdriverStepsReportinganddisableWebdriverScreenshotsReportingparameters are optional and can be used to disable reporting of webdriver steps and screenshots respectively1.allure-commandlineinstalled. You can install it by running the following command in your terminal:npm install -g allure-commandline2.maxInstancesparameter in yourwdio.conf.jsfile. This parameter specifies the maximum number of instances that can run in parallel3.I hope this helps.
Thanks