Top "Testng" questions

TestNG is a testing framework focused on providing both unit and functional testing abilities in the Java programming language.

Restart failed test case automatically in TestNG/Selenium

I am using Selenium webdriver, in Java with TestNG to run an X amount of test cases. What I would …

selenium testng restart testcase
TestNG: How to test for mandatory exceptions?

I'd like to write a TestNG test to make sure an exception is thrown under a specific condition, and fail …

java unit-testing testng
How does TestNG invoke a test method using multiple threads?

In the TestNG documentation, there is a section describing how to tell TestNG to invoke test methods using multiple threads: …

multithreading testng
Can I run a specific testng test group via maven?

I have several testng test groups, e.g. group1,group2,group3... These are defined in my pom.xml and all …

maven testng
How to print logs by using ExtentReports listener in java?

Here I am using the listener for generating reports in HTML format but it is not printing the logs present …

java selenium automation testng extentreports
TestNG and Spring 3

What is the best practice way to do unit testing with Spring? I assume the combination TestNG & jmockit with …

java spring unit-testing testng beancreationexception
How to exclude class in TestNG?

Is this possible to exclude classes in testng.xml? I tried with <packages> <package exclude="com.tt.…

testng
How to send out an Email notification in selenium webdriver using java

How to send out an Email notification in selenium webdriver using java, whenever some scenario is failed/passed in between ??

selenium-webdriver testng testng-eclipse
Running single test class or group with Surefire and TestNG

I want to run single test class from command line using Maven and TestNG Things that doesn't work: mvn -Dtest=…

java unit-testing maven-2 testng surefire
Closing Browser After Failed Test

I am running tests with WebDriver, when a test fails, the browser does not close. On a Windows machine this …

testing selenium webdriver testng qa