aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Cannot instantiate the class (testng + Ant) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Cannot instantiate the class (testng + Ant)" Watch "Cannot instantiate the class (testng + Ant)" New topic
Author

Cannot instantiate the class (testng + Ant)

Shashank Gollapudi
Ranch Hand

Joined: Jan 19, 2012
Posts: 33
HI,

I am trying to run my Selenium webdriver class using testng and below is my build.xml file and when i try running it, i keep getting the following error and i unable to trace the cause, as i cant see any reason for the class to be instantiated.

Any help on this is purely appreciated.




Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5830
    
    7

Try running ant with the -v option, that should print the classpath for the <testng> task which should give you some ides.


JBoss In Action
 
 
subject: Cannot instantiate the class (testng + Ant)