Skip to content

Test NG XML results

Learn more about exporting your test results into a xml file here.

Example file

Download our example file here: example-testng-report.xml

TestNG-Results

TestNG-Results will be read as a report with one or more Suite(s).

  • suite we iterate over the array and define each suite within as a container

Suite

A Suite will be read as a container with one or more Test(s).

  • name stored as title
  • duration-ms converted to seconds and stored as cached_duration
  • started-at stored as report.date
  • test we iterate over the array and define each test within as a container

Test

A Test will be read as a container within a container with one or more Test Method(s).

  • name combined with class.name to be stored as title
  • duration-ms converted to seconds and stored as cached_duration
  • test-method we iterate over the array and define each test method within as result

Test Method

A Test Method will be read as a result.

  • name stored as title
  • signature stored as description
  • duration-ms converted to seconds and stored as duration
  • status stored as status
  • reporter-output stored as exception_description if status: PASS
  • exception if present, used to store three attributes:
    • exception.class stored as exception_name
    • exception.message stored as exception_description
    • exception.full-stacktrace stored as exception_backtrace