Below is the error i am encountering while running a testng.xml file. My Jenkins is hosted on an EC2 Linux instance. (1)
Also i am sharing the commands that i’m running in execute shell below (2).
I have installed TestNG and Selenium plugin and the reports show that the test have passed. i am sharing that screen shot as well (3).
Please help on how to configure Jenkins so that the build is a success.
Thank you
(1) /var/lib/jenkins/workspace/selenium_002/TestSoft/testng.xml
[main] INFO org.testng.internal.Utils - [TestNG] Running:
/var/lib/jenkins/workspace/selenium_002/TestSoft/testng.xml
===============================================
Suite
Total tests run: 0, Passes: 0, Failures: 0, Skips: 0
Build step ‘Execute shell’ marked build as failure
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Saving reports…
Processing ‘/var/lib/jenkins/jobs/selenium_002/builds/29/testng/testng-results-1.xml’
Processing ‘/var/lib/jenkins/jobs/selenium_002/builds/29/testng/testng-results.xml’
TestNG Reports Processing: FINISH
(2)export projectLocation="/var/lib/jenkins/workspace/selenium_002/TestSoft"
export classpath="/var/lib/jenkins/workspace/selenium_002/TestSoft/bin/;/var/lib/jenkins/workspace/selenium_002/TestSoft/lib/"
chmod a+x /var/lib/jenkins/workspace/selenium_002/TestSoft/lib/.jar
java -cp “/var/lib/jenkins/workspace/selenium_002/TestSoft:/var/lib/jenkins/workspace/selenium_002/TestSoft/lib/*” org.testng.TestNG /var/lib/jenkins/workspace/selenium_002/TestSoft/testng.xml
(3)