Top "Testng" questions

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

How to run standalone TestNG project from jar/bat/

I have a TestNG project. Don't have any main class, currently it is running like "Run As TestNG". I want …

jar testng executable-jar
Can I specify a class wide group on a TestNG test case?

I have a base class that represents a database test in TestNG, and I want to specify that all classes …

java testng
TestNG retrying failed tests doesn't output the correct test results

Setup: I have a class that extends the IRetryAnalyzer and have implemented a simple retry logic overriding the following method: …

testng
How to use @DataProvider present in different class

How to use @DataProvider that is present in a different class? I have created a different package and I have …

testing automated-tests testng dataprovider testng-dataprovider
Benefits of Maven FailSafe Plugin

I read Maven Failsafe plugin is designed specifically to run integration tests. Currently I'm working on a multi-module project and …

maven integration-testing testng maven-surefire-plugin maven-failsafe-plugin
how to pass > 10 parameters using TestNG DataProvider?

I need to pass more than 10 parameters to a TestNG Dataprovider, and the code look some what like this ... @Test (…

java testng testng-dataprovider
What does the "default-test" stand for in the maven-surefire plugin

I have defined the following configuration in my pom for surefire with TestNg: <plugin> <groupId>org.…

maven-3 testng maven-surefire-plugin
JUnit 5 vs TestNG

We were using JUnit 4, but we had some problems with test grouping. For integration tests we had problems with running …

junit comparison testng junit5
How can I compare POJOs by their fields reflectively

I am basically looking for a unit testing framework, which I can use to compare POJOs which don't override equals …

java unit-testing junit testng mockito
Unable to generate Allure reports using allure-maven plugin

I am unable to generate Allure test html reports using allure-maven plugin. I am using the same version of testNG-adapter …

java maven testng allure