Data provider
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2023
03:13 AM
06-14-2023
03:13 AM
Data provider
public class Provider { @DataProvider (name = "data-provider") public Object[][] pMethod(){ return new Object[][] {{2, 3 , 5}, {5, 7, 9}}; } @Test (dataProvider = "data-provider") public void myTest (int a, int b, int result) { int sum = a + b; Assert.assertEquals(result, sum); } }
like this you can see there are 2 Testcases but how to integrate it with
2 different zephyr key as there my @test is just one
Can u tell me the way to integrate data provider test cases with zephyr key
in above example i need to create 2 Testcase in zephyr as
myTest_DTR_234 and myTest_DTR_235 but in code i can just mention one, please help.
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2023
04:12 AM
06-14-2023
04:12 AM
It might take a while for someone in the community to answer your question, but you could try Smartbear support here for a quicker response: SmartBear Support
However, I'm not sure it's possible to specify the value of a test case key - I think that is a system value that can only be referenced, not set.
------------------------------------------
Please give kudos if I have helped or accept as solution if appropriate
Feel free to connect with me on LinkedIn: https://www.linkedin.com/in/andrew-barbet-548a234/
