0
運行TestNG的當試圖觸發Selenium測試直通詹金斯,我遇到了以下問題:問題從詹金斯
Error: Could not find or load main class org.testng.TestNG
Build step 'Execute shell' marked build as failure
Finished: FAILURE
我有(如下所示)在我的類路徑TestNG的jar文件:
My Execute Shell命令如下所示:
set classpath="${WORKSPACE}/bin;${WORKSPACE}/lib/*"
chmod a+x ${WORKSPACE}/lib/*.jar
java -cp "${WORKSPACE}/out/production/Test;${WORKSPACE}/lib/*" org.testng.TestNG ${WORKSPACE}/TestNG.xml
該項目由Bitbucket觸發,並且本地構建於IntelliJ上。
任何幫助在這裏,將不勝感激。
謝謝!它現在按預期工作:) –