How to get thread number with parallel execution for Allure report timeline?
See original GitHub issueWhat are you trying to achieve?
I’m running tests in parallel with 4 chunks and write reports to Allure. I want to see tests from each chunk displayed in a separate timeline. If I manually add a “thread” label to each suite or test (in the XML) I can split the test results into multiple timelines.
What do you get instead?
By default in the Allure report all tests are displayed in one timeline.
I can add labels to test cases like
const allure = codeceptjs.container.plugins('allure');
Before(() =>
allure.addLabel('thread', '...')
)
My question is - how can I get the chunk number in the test?
Details
- CodeceptJS version: 2.3.0
- NodeJS Version: 10.16.3
- Operating System: Windows 10
- Configuration file:
exports.config = {
...
mocha: {
reporterOptions: {
reportDir: "./test/report",
autoOpen: true,
}
},
plugins: {
allure: {
enabled: true,
outputDir: "./test/.output/allure-results"
},
stepByStepReport: {}
},
multiple: {
parallel: {
chunks: "4"
}
},
bootstrap: false,
teardown: null,
hooks: [],
tests: "./test/tests/ui/dashboard/*.js",
timeout: 120000,
};
Running tests with
npx codeceptjs run-multiple parallel
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Allure Framework
To generate your first report you will need to go through just a few simple steps: Downloading and installing Allure commandline application ...
Read more >allure-framework/allure-core - Gitter
Hi all, I'm using webdriverIO to generate results. I have nested describes which causes Allure to generate a report with lots of suites...
Read more >Allure Report Selenium and TestNG Tutorial
Step-3: Run the Test and Generate Allure Report Now, it is time to generate the report! To generate a report, we should install...
Read more >Allure Report - QA Automation Expert
The timeline tab visualizes retrospective test execution, allure adaptors collect precise timings of tests, and here on this tab, they are arranged accordingly ......
Read more >Reports, Parallel Execution, And Rerun of failed testcases with ...
Hence, our framework also should have the same capability to create output or generate test execution reports. What are the various kinds of ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Naimadnap I’ve created an allureHelper
and included it in codecept.conf.js
@xMutaGenx thanks! Your solution is even better since it gives the actual chunk number.