We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to use TestNG DataProvider together with TestRunner resource injection. DataProvider attribute parallel = true
public class DataProviderTest extends TestNGCitrusTest {
private static final Logger log = LoggerFactory.getLogger(DataProviderTest.class); @DataProvider(name = "getTestData", parallel = true) public Object[][] getTestData() { return new String[][]{ {"foo", null}, {"bar", null}, }; } @Test(testName = "dataProviderAndCitrusResourceInjectionTest", dataProvider = "getTestData") @CitrusTest(name = "dataProviderAndCitrusResourceInjectionTest") @Parameters({"dataRecord", "runner"}) public void dataProviderAndCitrusResource(String dataRecord, @CitrusResource TestRunner runner) { runner.echo("Hello Citrus Test World."); log.info("DataProvider dataRecord = " + dataRecord); }
}
Log contains string "DataProvider dataRecord = foo" and "DataProvider dataRecord = bar"
[PoolService-0] INFO ple.DataProviderTest| DataProvider dataRecord = foo [PoolService-1] INFO ple.DataProviderTest| DataProvider dataRecord = foo
The text was updated successfully, but these errors were encountered:
Parallel data provider is not supported yet
Sorry, something went wrong.
Reminder: #501 contains another solid refinement of this issue!
Would be really awesome if this could be fixed in the next release :)
It would be great if you introduce this fix in the next release :)
Could you update status of this task?
No branches or pull requests
Related to #83
Scenario:
Trying to use TestNG DataProvider together with TestRunner resource injection. DataProvider attribute parallel = true
Testcase:
public class DataProviderTest extends TestNGCitrusTest {
}
Expected result:
Log contains string "DataProvider dataRecord = foo" and "DataProvider dataRecord = bar"
Actual result:
[PoolService-0] INFO ple.DataProviderTest| DataProvider dataRecord = foo
[PoolService-1] INFO ple.DataProviderTest| DataProvider dataRecord = foo
The text was updated successfully, but these errors were encountered: