2

When I am running maven goal in Jenkins which runs soap tests which are developed using groovy, whenever there is a test failure then all the other tests are failed without any test execution from job....

The same suite when I run from SOAPUI tests are getting executed irrespective of the status of test either PASS or FAIL .

In short I can say tests are running absolutely fine as per the expectations but when i run using soap dependency and run from Jenkins tests are not getting executed as per the expectation.

Let me suppose there are 4 tests A,B,C and D

Run from SOAPUI below is the result :

A-PASSED
B-FAILED
C-PASSED 
D-PASSED

Run from Jenkins job :

A-PASSED
B-FAILED
C-FAILED
D-FAILED

I tried maven fail safe plugin and surefire plugin and ran the below command from Jenkins job but not lucky enough :

mvn test -Dmaven.test.failure.ignore=true

Please suggest me what is going wrong?

  • 1
    I've not tried the groovy scripts in Jenkins. But from my other Jenkins job experience, giving this option. Can you try the option -e at the end of your maven command, in this case on failure it will continue to execute the other test cases. Used in few shell scripts. – Bhavani Dec 21 '17 at 10:18
  • if you have shell access on the build server and find the maven process , then look /proc/$PID/cmdline and see what extra command line options are passed. If its not that then check for config files – Amias Dec 21 '17 at 14:10
  • @SHASHAVALI LADDU did you ever solve this? – Niels van Reijmersdal May 14 at 8:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.