Top "Testng" questions

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

Is there a possible way to run two .xml files in testng.xml parallel?

I currently have two different TestSuites (SUITE1.XML and SUITE2.xml) with different configurations (e.g browsers, Os)... I call …

java testng saucelabs
Selecting specific tests to run in gradle

I'm trying to fix our messy failing test runs, and, unfortunately, I'm very new to gradle. We currently have testng, …

junit testng gradle spock
Allure Framework: using @Step and @Attachment annotations with TestNG and Maven

I am working on a project that uses Allure framework with Java, TestNG and Maven. But I'm unable to generate …

java maven junit testng allure
Conditional skipping of TestNG tests

I don't have much experience with TestNG annotations, however I am trying to build a test suite using TestNG framework …

java testing testng skip
How to display test name under Extent Report instead of Method Name?

In the Extent Report, I want to display the name of test instead of method name. So I found a …

selenium selenium-webdriver testng extentreports selenium-extent-report
How to use Maven Surefire plug-in with different groups for test and integration-test?

I want to use testng with the Surefire plug-in of Maven. The idea is to tag some tests with a …

maven-2 maven-plugin testng surefire
Issue with i/o No serializer found for class org.json.JSONObject and no properties discovered to create BeanSerializer

not sure whats going on, the full error is: Problem with i/o No serializer found for class org.json.…

java json rest testng rest-assured
Spring-Autowiring happens after @BeforeClass when running test with maven-surefire

I have some problems with dependency injection (Spring autowiring) and maven-surefire. The following test works without problems when run in …

java spring maven testng spring-test
How to get logging working in scala unit tests with testng, slf4s, and logback

I'm new to Scala, and not that familiar with recent developments in Java, so I am having what I assume …

scala testng slf4j logback
How to run Selenium Java tests with TestNG programmatically?

I am using Selenium RC with Java using TestNG as Test Framework. I'm using Eclipse as IDE. I want to …

java eclipse automated-tests selenium-rc testng