Forum Discussion

RaviKul's avatar
RaviKul
New Member
9 years ago

Java+Cucumber SOAPUI testing generates incorrect report

 

Hi,

Im executing SoapUI testsuite on Cucumber. Test sute has two test cases. One positive and other negative test case. When the feature file is executed to run the tet suite, cucumber generates incorrect report below

 

1 Scenarios (1 failed)
3 Steps (1 failed, 2 passed)

 

It is reporting only for the failes test case but not for the passed. How do I make SoapUITestCaseRunner execute the sam scenario twice once for each test case. 

 

Any help is greatly aapreciated.

 

Thanks,

Ravi

  • rupert_anderson's avatar
    rupert_anderson
    Valued Contributor

    Hi Ravi,

     

    This looks like an interesting post, but I can't quite understand what is wrong?

     

    Are you invoking SoapUI programmatically from your Cucumber feauture e.g. using Java?

     

    Thanks,

    Rupert

  • abhaybharti's avatar
    abhaybharti
    New Contributor
    Please share detail like how you are invoking execution of soap services?
    • kondasamy's avatar
      kondasamy
      Regular Contributor

      I guess you are calling SoapUI Libraries from JUnit. The reporting can be customized based on your need to report pass test cases as well and does not require running the test case twice. This should be possible through calling appropriate methods in SoapUI.

       

      Instead of this approach, why can't you try the method posted over here - http://blog.smartbear.com/soapui/click-using-gherkin-with-soapui/

       

      Thanks,

      Kondasamy