Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-12969

Create result seeking strategy that uses TestNG data provider

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • testlink-plugin
    • None

      From https://issues.jenkins-ci.org/browse/JENKINS-12916

      2.And one more question: I'm using dataproviders in my tests. Do I have any mechanism to map the pairs (test-methode,dataprovider Object[]) to the tests.

      I mean if I have

      @DataProvider(name = "test1")
      public Object[][] createData1() {
      return new Object[][]

      { { "Cedric", new Integer(36) }

      ,

      { "Anne", new Integer(37)},
      };
      }

      //This test method declares that its data should be supplied by the Data Provider
      //named "test1"
      @Test(dataProvider = "test1")
      public void verifyData1(String n1, Integer n2) { AssertJUnit.assertTrue( n1.equals("Anne")); }

      And I have 2 test in Testlink: 1. for { "Cedric", new Integer(36) }, 2. for { "Anne", new Integer(37)}

      .
      And the results should map to each test

      The issue created in TestNG is: https://github.com/cbeust/testng/issues/181

      Bruno

            kinow Bruno P. Kinoshita
            kinow Bruno P. Kinoshita
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: