Forum Discussion

marco_dubacher's avatar
marco_dubacher
Occasional Contributor
15 years ago

Pass results from soapUI back to loadUI

Hi there.

I intend to use loadUI in our project to perform load tests. Especially the possiblity to implement custom components convinced me. As it is possible to tailor the tooling to one's need.

I made already use of the case explained in http://www.eviware.com/blog/?p=104. So I am able to pass a custom URL from my component to the soapUI Runner. I would like now to transfer results from the soapUI testcase back into loadUI, to be able to see them in the Table Log component for instance. In my case I would implement an other custom component which takes the result for further processing.

Is it somehow possible to achieve that with the current release (I use version 1.0)

Cheers,
Marco

P.S: By the way. Create tool!!!
  • marco_dubacher's avatar
    marco_dubacher
    Occasional Contributor
    Hello there.

    I still would be glad for an answer :-)

    Some more detailled information may help answering my question. The "normal" WebRunner makes the returned response available when setting the attribute "outputBody" to true. This provides the possibility to process the response with a custom component for example. The soapUI Runner doesn't provide this attribute. That's why I ask myself if there is a possiblity to return values back from a soapUI Runner. I tried different approaches but none of these worked out.

    Cheers,
    Marco
  • Hi Marco,

    great to hear that you are using loadUI! Would a working start for this be the possibility to copy the executed testcases properties to the outgoing result message? ie in your tearDown script (or testcase) you would transfer the desired output values to corresponding testcase properties in soapUI, these would then be added to the outgoing message?

    let us know!

    regards,

    /Ole
    eviware.com
  • marco_dubacher's avatar
    marco_dubacher
    Occasional Contributor
    Hi Ole

    First of all thanks for your answer! Unfortunately I think that I didn't get what you proposed.

    Below I inlined my soapUI project which depicts the approach that I tried. I defined two properties "url" and "response". The "url" property is used to pass in a custom URL (like you have mentioned in one of your blogs). The second property "response" is meant to hold the response from the Http Request. So after the Http Request I use (as depicted) a Property Transfer to transfer the response from the Http Request into the property "response". Unfortunately I don't get this response in the outgoing terminal of the soapUI Runner of the loadUI.



    Could you explain me your idea again?

    Thanks and cheers,
    marco
  • Hi Marco,

    This is exactly what I was thinking :-) I'll try to squeeze it into the upcoming 1.0.1 release.

    regards!

    /Ole
    eviware.com
  • Hi!

    this option is in the upcoming nightly build (in the settings), check it and all testcase properties will be added to the outgoing message.

    regards!

    /Ole
    eviware.com
  • marco_dubacher's avatar
    marco_dubacher
    Occasional Contributor
    Hi Ole

    Thanks for your response. I just installed the 1.0.2-Snapshot. I did some tests and still couldn't see the response-attribute in the Log-View?

    Cheers,
    Marco
  • Hi!

    hmm... did you enable this in the settings dialog for the soapUI Runner component?

    regards!

    /Ole
    eviware.com
  • marco_dubacher's avatar
    marco_dubacher
    Occasional Contributor
    Hi Ole

    Yes I forgot to enable this in the soapUI runner component... and yes it works now :-) Fantastic!!!

    Thanks for your help!

    Cheers,
    marco
  • Thanks for your response. I just installed the 1.0.2-Snapshot. I did some tests and still couldn't see the response-attribute in the Log-View?