TestNG [Error] no test suite found. nothing to run

8.7k Views Asked by At

I am Unable to run the testng test suite from command line I am using windows System

TestNG [Error] no test suite found. nothing to run had report ng listeners i have removed that fro my xml and i have removed those jars from library

I had referred this link No Test suite found nothing to run

Commands using to run test suite

cd C:\Users\workspace\myproject

java -cp C:\Users\workspace\myproject\libs\*;C:\Users\workspace\myproject\bin org.testng.TestNG Analytics.xml

Analytics.xml
<?xml version="1.0" encoding="UTF-8"?>
<suite name="BLR_Analytics" verbose="10" parallel="tests">

    <test name="Login" group-by-instances="true" verbose="3">
            <classes>
                <class name="analyticsMain.MainExecute" />

            </classes>
    </test>

</suite>    

please help Thanks, Chaitanya

1

There are 1 best solutions below

2
On
When I started to run TestNG xml from console,I got lots of errors.I am not sure which error you are getting exactly,you try following one:

java -cp "C:\TestNG\testng.jar;C:\TestNG\jcommander.jar;H:\project\Test\src;c:\selenium-webdriver\selenium-java-2.45.0.jar;c:\selenium-webdriver\libs\*" org.testng.TestNG testng.xml

Add all these jars according to your settings.