Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space FUNCTDEV and version SVC2021.1

...

Scroll Table Layout
orientationdefault
sortDirectionASC
repeatTableHeadersdefault
widths20%,60%,20%
sortByColumn1
tableStylingconfluence
sortEnabledfalse
cellHighlightingtrue

FieldDescriptionRequired
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
ClassSpecify which TestNG class from the given jar or class folder to run.Optional
MethodSpecify 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:

http://testng.org/doc/documentation-main.html#test-groups

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:

http://testng.org/doc/documentation-main.html#testng-xml

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 first-name and last-name parameters as follows if your test contained the snippet below:

first-name=John;last-name=Doe 

Code Block
import static org.testng.AssertJUnit.*; 
import org.testng.annotations.*; 
public class DataTest { 
	@Parameters({ "first-name", "last-name" }) 
	@Test public void testData(String firstName, String lastName) {
 		assertEquals("John", firstName); 
		assertEquals("Doe", lastName); 
	} 
}
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

...