Create result seeking strategy that uses TestNG data provider

XMLWordPrintable

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: 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

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

              Created:
              Updated:
              Resolved: