...
Scroll Table Layout | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Field | Description | Required | ||
---|---|---|---|---|
Jar or Class Folder | Specify the test's class folder or jar file. If you provide a jar/folder without specifying the Class or Method, TestNG will first look for a Suite XML file with the default name (testng.xml) and attempt to use that file to configure which tests to run. If that Suite XML file is not available and no classes or methods are specified, then the tool will run all of the tests in the jar/folder. | Required | ||
Class | Specify which TestNG class from the given jar or class folder to run. | Optional | ||
Method | Specify which TestNG method to run. Leave this empty if you want to run all test methods in the specified class. | Optional | ||
Groups | Specify the group(s) of tests you want to run. TestNG supports annotating test methods with groups, allowing you to partition test methods into different logical groupings. For example, TestNG unit tests could be partitioned into “unit” and “integration” tests, or “smoke” and “functional” tests. This field takes either a single group or a comma-separated list of groups. Refer to the TestNG documentation for more information: | Optional | ||
Suite XML File | Specify the suite XML file(s) to run. Suite XML files (also called testng.xml files by default) specify which packages, classes, suites and tests to be included or excluded, define new groups, specify dependencies, provide data parameters, and more. Refer to the TestNG documentation for more information: | Optional | ||
Parameters | Specify semicolon-separated key/value pairs for parameters that you want passed to parameterized test methods. This is an alternative to configuring parameters in a suite XML file. Refer to the TestNG documentation for more information: http://testng.org/doc/documentation-main.html#parameters You could specify the
| Optional | ||
Command Line Arguments | Specify the TestNG command line options and arguments for any other TestNG options you want to apply. Provide the command line arguments in the same format as you would provide on the TestNG command line. Refer to the TestNG documentation for more information: http://testng.org/doc/documentation-main.html#running-testng | Optional |
Examples
The following examples demonstrate how to configure the tool for different scenarios
...