Versions Compared

Key

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

...

Parameterized Tests are imported to the same Test Run, where each set of parameters is identified by a different context.

The context (shown on the left side of the execution screen details) is with the name of the "suite" plus the name of the "test" as defined in the XML configuration file used by TestNG. If the Test method corresponds to a parameterized test, then the values used for that specific run are appended to the context.


Image Added


Code Block
languagexml
titleExample of a TestNG configuration file
collapsetrue
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >

<suite name="TestAll">

	<test name="calculatorA">
		<classes>
			<class name="com.xpand.java.CalcTest" />
		</classes>
	</test>

	<test name="calculatorB">
		<classes>
			<class name="com.xpand.java.CalcTest" />
		</classes>
	</test>


</suite>


Mapping of fields from the report to the Test issue

...

If the same Test case has been executed multiple tmestimes, then the result for each context will be shown.  A parameterized Test will also appear with its own specific contexts.

Image RemovedImage Added


Whenever a Test Case is executed in multiple contexts, the overall status of the Test Run will be calculated as a joint value.

...