Is your feature request related to a problem? Please describe.
I've recently started using this reporter and it's working great for "normal" test cases. However, in my project we're often dealing with data-driven test cases such like this:
for (const name of ["Bob", "George", "Linda"]) {
test(`ABC-123 | greet ${name}`, async ({ page }) => {
await page.goto('https://example.org/');
const title = page.getByRole('heading');
await expect(title).toHaveText(`Hello ${name}!`);
});
}
A corresponding, parameterized Xray test case would look like this:
Its dataset like this:
And corresponding test executions like this:
The reporter currently doesn't support such parameterized/data-driven tests and uploads and instead creates a "normal" result:
Are there plans to support data-driven tests in the future?
Describe the solution you'd like
The solution would probably be to fill out the iterations information in the uploaded Xray JSON.
Hello.
Is your feature request related to a problem? Please describe.
I've recently started using this reporter and it's working great for "normal" test cases. However, in my project we're often dealing with data-driven test cases such like this:
A corresponding, parameterized Xray test case would look like this:
Its dataset like this:
And corresponding test executions like this:
The reporter currently doesn't support such parameterized/data-driven tests and uploads and instead creates a "normal" result:
Are there plans to support data-driven tests in the future?
Describe the solution you'd like The solution would probably be to fill out the
iterations
information in the uploaded Xray JSON.The challenge will be finding a way to enhance each test with its parameter information. For this, I can think of two approaches:
Let users encode the iteration parameters in the title and decode them in your reporter:
Let users attach iteration parameter information and retrieve them in your reporter:
Describe alternatives you've considered Maybe there's also a way to provide a fixture that does this automatically? I'm not sure though.
Desktop (please complete the following information):