4

Below is the reported error when I run TestNG.xml. Even though I changed the scope to compile, it still is not fixed. I've also built the project again. I would appreciate if someone can give a feasible solution for this.

Exception in thread "main" org.testng.TestNGException: 6.1.1 is not a supported TestNG version at org.testng.remote.support.ServiceLoaderHelper.getFirst(ServiceLoaderHelper.java:22) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:43) 

Project's pom.xml file:

<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>TestVagrant</groupId> <artifactId>1</artifactId> <version>1.0-SNAPSHOT</version> <dependencies> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>2.46.0</version> </dependency> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.1.1</version> <scope>compile</scope> </dependency> <dependency> <groupId>io.appium</groupId> <artifactId>java-client</artifactId> <version>3.0.0</version> <scope>test</scope> </dependency> </dependencies> </project> 

Below is the TestNG XML:

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> <suite name="Suite"> <test name="Test"> <classes> <class name="scenarios.AppiumTest"/> </classes> </test> <!-- Test --> </suite> <!-- Suite --> 
2
  • 1
    can u share ur TestNG.xml file Commented Apr 28, 2016 at 4:57
  • just added the test ng Commented Apr 28, 2016 at 5:11

1 Answer 1

4

Please upgrade the TestNG with latest version.

Then, change the version of the TestNG in project's xml file:

 <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.1.1</version> <scope>compile</scope> </dependency> 

to

<dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version><!-- Updated Version Name --></version> <scope>compile</scope> </dependency> 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.