Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
How to combine multiple groups to single Test in TestNG?
We can combine multiple groups to single Test in TestNG with the help of test group feature.
Example
Testng xml files with groups.
To run a group of test cases from the collection of test cases, we have to define
Example
@Test(groups={"QuestionAnswer"},{"Jobs"})
public void preparation(){
System.out.println("Preparation module is verified");
}
In the Java class file the test methods with group as QuestionAnswer and Jobs are associated with the test method preparation().
Advertisements
