WE are integrating testng with our application, I created testng.xml and testngbuild.xml for ant build . While running ant build it is throwing Cannot find class in classpath:. Actually I tried many ways. But I am still hopeless. Even I tried copying manually .class file to my testng directory of the application. If you can do like this, It is throwing another exception as could not load .class file
相关问题
- How to resolve Maven exec plugin: classpath too lo
- TestNG report with customized error in place of st
- Glassfish 4.1 - Latest Jersey version
- TESTNG: how to send emailable report as an email
- How can I have my ant task pass or fail based on t
相关文章
- TestNG skipping tests - why?
- Use Eclipse classpath variable to replace absolute
- Passing command line arguments to Java via ant bui
- The Gradle failure may have been because of Androi
- ANT - Could not load a dependent class com/jcraft/
- SBT Scaladoc Configuration
- Use Absolute path for ClassLoader getResourceAsStr
- How to test a Validator which implements Constrain
Even I faced the same problem many a times. You can try below solutions which worked for me.
Click on specific project ->Project->Clean-> refresh
Because of other open projects in IDE. Keep only the project you are working on open and close other non related projects. Right click-> Close Project.
And you won't believe sometimes the culprit is Excel sheet(Don't know how it is related) when you have it open and sepearate instance might have created with that etc. Close it and kll any process running with excel sheet will resolve.