I had 55 hardcoded JUnit 5 tests in Java. Since they all test the same method (but with different parameters), I optimized my code to run ONE single test with JUnit parameterized tests :
//provideMyObjects is a method that returns an array of Strigs
@ParameterizedTest
@MethodSource("provideMyObjects")
public void myTest(String bebe) throws Throwable {
System.out.println(bebe);
Xray.setTestKey(bebe);
assertEquals("true", "true");
}
The problem is, although it is the same test with different parameters, I would like to associate different Test IDs to each iteration. I tried the "Xray.setTestKey" notation from zebrunner in order to link every single iteration to a different Jira ID but it did not work.
Could anyone help me? Thank you very much!