File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Testing and the fly likes [ClassHelper] Could not instantiate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "[ClassHelper] Could not instantiate" Watch "[ClassHelper] Could not instantiate" New topic
Author

[ClassHelper] Could not instantiate

Smita Upadhyay
Greenhorn

Joined: Sep 14, 2009
Posts: 1
Hi All,
I am trying to run my test cases in Eclipse using Testng..........earlier It was running fine ...I donnt know why but its giving error now. Below I am giving Stack Trace..
[org.testng.internal.annotations.JDK14AnnotationFinder] [WARNING] Invalid source directory -d ignored
[Parser] Running:
C:\Smita\Code_chekOut\Relationals\QA\develop\temp-testng-customsuite.xml

[ClassHelper] Could not instantiate TestDelete2: TestDelete2
[ClassHelper] Could not instantiate TestDelete2: TestDelete2

===============================================
QATest
Total tests run: 0, Failures: 0, Skips: 0
===============================================

org.testng.TestNGException:
Cannot find class in classpath: TestDelete2
at org.testng.xml.XmlClass.getSupportClass(XmlClass.java:55)
at org.testng.internal.Utils.xmlClassesToClasses(Utils.java:76)
at org.testng.TestRunner.initMethods(TestRunner.java:281)
at org.testng.TestRunner.init(TestRunner.java:227)
at org.testng.TestRunner.init(TestRunner.java:189)
at org.testng.TestRunner.<init>(TestRunner.java:150)
at org.testng.remote.RemoteTestNG$1.newTestRunner(RemoteTestNG.java:102)
at org.testng.remote.RemoteTestNG$DelegatingTestRunnerFactory.newTestRunner(RemoteTestNG.java:154)
at org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(SuiteRunner.java:517)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:244)
at org.testng.SuiteRunner.run(SuiteRunner.java:198)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:823)
at org.testng.TestNG.runSuitesLocally(TestNG.java:790)
at org.testng.TestNG.run(TestNG.java:708)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)


I need urgent help. Please, Reply soon...
 
 
subject: [ClassHelper] Could not instantiate