Hi,

If I have 3 rows in dataprovider, TestNG report gives three results (pass 
/fail). But in testlink it shows as one result. So if one of the three test 
cases actually failed in TestNG, Testlink shows one failure. I want to show 
one out of the three failed. 

If this cannot be achieved, why do we have a result seeking strategy 
'TestNG method name and data provider name'? There should be some 
difference between seeking using just 'method name' and 'method name + 
dataprovider'. Am I missing something?

Thanks


On Friday, January 16, 2015 at 1:48:06 PM UTC-8, rauto wrote:
>
> Hi,
>
> I have automation test cases written in Java + Selenium + TestNG. These 
> tests are run in Jenkis and results are integrated to Testlink using 
> Testlink plugin. I have Data Providers to provide data to the test methods. 
> For example,
>
> // The dataprovider provides 3 data sets (hence 3 test cases)
> @DataProvider
> public Object[][] testSumInput() {
>    return new Object[][] { { 5, 5 }, { 10, 10 }, { 20, 20 } };
> }
>
> // Test method calling dataprovider (executes 3 times)
> @Test(dataProvider = "testSumInput")
> public void testSum(int a, int b) {
>    System.out.println("@Test : testSum()");
>    int result = service.sum(a, b);
>    Assert.assertEquals(result, a + b);
> }
>
> In Jenkins, I am using the result seeking strategy as - TestNG method name 
> and data provider name
> In Testlink I have defined one test case with two custom fields (since 
> Testlink does not allow me to create test cases with the same name 3 
> times). 
>
> When I run the test, I get a single pass or fail. I want to get 3 results 
> (pass / fail) since I have 3 rows in my Data Provider. How to achieve this? 
> If anybody has tried using Data Provider with more than one set of data, 
> please let me know how you set it up.
>
> Thanks.
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/fd425fbf-a981-4262-b0f9-ad2c0c331be8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to