A single java file is not running using maven | Selenium Training|Java|WebDriver|TestNG|Frameworks|Videos
10% December Month Discount - Avail now

A single java file is not running using maven

M
Post on 28/08/2015

Hi,
If I want to execute single java file using maven with command prompt it executing all the java class file present in com.learntestng package even I have putted only one class in testng.xml of src/test/resources.Where is the mistake I have made? Please refer snapshots I have attached.

M
Reply on 28/08/2015

In Surefire report the no. of tests passed is 3. AppTest java file is executed I think two times.Where is the problem? What are the solution to remove these issues?

M
Reply on 31/08/2015

the issue might be in different part of project. zip your project and upload it here I'll have a look at it.