Forum Discussion

samuelMDS's avatar
samuelMDS
Occasional Contributor
13 years ago

SoapUI Test case fails in Load UI

Hi,

I have created a test case in SoapUI that creates a user. I have added an assertion of the result I get back from my server. When running this test case in SoapUI the test case passes without errors. I imported the test case to LoadUI in a SoapUI Runner. When running the test case in LoadUI the test always fails and I don't understand why. In LoadUI I have not added any assertions, so I suppose it's thing failing is the assertion made to the test case in SoapUI. The test case is run in LoadUI with pressing the "Run Once" button.
How can I evaluate why the test fails?

I have also imported another test case (List Users) from SoapUI to LoadUI, and that test case works fine when running in LoadUI.

3 Replies

  • samuelMDS's avatar
    samuelMDS
    Occasional Contributor
    Hi helos!

    Thanks from your response!
    Now I' have connected a table log to the error output. The result is "[[Contains] Missing token["The assertion that I made in SopaUI"] in response]. When running in SoapUI this assertion passes without error, but it fails in LaodUI. Is there any way to see what the xml response is? Now I only see the assertion that goes wrong.

    I also searched for the log file "soapui-errors.log", but I can't find it. Is the log function activated or is it enabled as default?
  • Hi Samuel,

    The easiest way would be to create a "Data Sink" TestStep in your SoapUI project just before your assertion.

    http://www.soapui.org/Data-Driven-Testi ... sinks.html

    Create a file data-sink, add a property to be "sank" and give it the following value:

    ${Request TestStep Name#Response}


    Replace "Request TestStep Name" with the name of your request test step.

    Regards,

    Renato
    SmartBear Software