Skip to content
Advertisement

RestAssured – TestNG “No tests found. Nothing was run”

I want to test my api’s use RestAssured with TestNG but i got some error’s.”No tests were [TestNG] No tests found. Nothing was run”. So here is my pom.xml file and testng.xml file.

Pom.xml

JavaScript

testng.xml

JavaScript

testNG Configuration

Part of my main class

Thank you for your time

Advertisement

Answer

Ok i remove the psvm and i just use public void instead of psvm. So @test si working

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement