This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Testing and the fly likes Unable to run DataSource related testcases in TestNG with command prompt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Unable to run DataSource related testcases in TestNG with command prompt" Watch "Unable to run DataSource related testcases in TestNG with command prompt" New topic
Author

Unable to run DataSource related testcases in TestNG with command prompt

sumit anand kumar
Ranch Hand

Joined: Apr 28, 2010
Posts: 83
Hi All,

I have some test cases written in TestNG that uses @DataSource and am able to run those with Eclipse.
However when i try to run through command prompt giving the testng.xml file, the test is skipped/failed.

Dont know why? Please help



the testng file

 
Consider Paul's rocket mass heater.
 
subject: Unable to run DataSource related testcases in TestNG with command prompt
 
Similar Threads
Clarification
TestNG - Gettting error [ClassHelper] Could not instantiate
How to have different data provides in TestNG
Could not invoke suite() method !!
most important feature in TestNG