Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Status Mapping TestNG → AIO Tests

TestNG

AIO Tests

PASS

Passed

FAIL

Failed

SKIP

Not Run

SKIP due to retry

(n-1) runs - Marked as failed [Note: TestNG shows them as skipped]
nth run - Status based on above 3 statuses.

Mapping automated TestNG tests to AIO Tests

...

3.b. All data point to the same manual case. In this case, the AIO case key need not be sent with data but can be added similar to normal cases in groups. In the example below, AT-TC-33 has been added to @Test

Info

AIO APIs expose a parameter, while uploading results, to specify whether multiple results of a case in a results.xml should be captured as separate runs of the same case or just capture the last run’s result. To know more, jump to Importing Results.

Code Block
public class ForestCreatorTests {

    @DataProvider(name = "saplingSupplier")
    public Object[][] testDataProvider() {
        return new Object[][] {
                {  "Baobab"},
                {  "Palm" },
                {  "Banyan"},
        };
    }

    @Test(dataProvider = "saplingSupplier", groups = "AT-TC-33")
    public void testSpecificTreePlantation(String treeName) {
        //Your test goes here
        ForestCreator fc = new ForestCreator();
        fc.plantSpecificTree(treeName);
        Assert.assertTrue(true, "Tree successfully planted");
    }
}

...