This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [ClassHelper] Could not instantiate
 
Similar Threads
Configuring Log4J in ANT
Exception in Spring maven app
EntityNotFoundException for OneToMany Mapping
Help with Stripes and TestNG error
TestNG - Gettting error [ClassHelper] Could not instantiate