0

I am trying to execute my testng.xml file via jenkins using following batch commands.

set projectLocation=D:\test
cd %projectLocation%
set classpath=%projectLocation%\bin;%projectLocation%\lib\*
java org.testng.TestNG %projectLocation%\testng.xml
pause

But it throws below error in console

[TestNG] [ERROR] Cannot find class in classpath: Tests.testfilename

This issue is because class files are not pushed to tfs repository.I would like to know why in eclipse ,TFS ignores class files and how to include them?enter image description here

I have attached image for reference

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.