Forum Discussion

Musaffir's avatar
Musaffir
Contributor
9 years ago

Maven Build results in failure when the assertion fail

Hi ,

 

I am running my tests using the soapui-maven plugin version - 5.2.1

I am with the free version of soapui

I have delibrately added an assertion in my request present in the test case

Observed that when this assertion fails, it results in making the maven build as 'Failure'

The maven build sould become Success here , tough there is a test case failure due to assertion failure

Is it a known issue , can any one provide some lights here ..

 

POM file is attached here

 

Thanks & Warm Regards

Musaffir

  • Adding the following to the POM file ignore the assertion fail and the build will not result in Failure.

    The assertion fail can be captured in the test report....

     

    <configuration>
    <testFailIgnore>true</testFailIgnore>
    </configuration>

  • Adding the following to the POM file ignore the assertion fail and the build will not result in Failure.

    The assertion fail can be captured in the test report....

     

    <configuration>
    <testFailIgnore>true</testFailIgnore>
    </configuration>