Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot instantiate the class (testng + Ant)

 
Shashank Gollapudi
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try running ant with the -v option, that should print the classpath for the <testng> task which should give you some ides.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic