Forum Discussion

MOTOROLA_Suppor_1's avatar
15 years ago

Test Web Event Notification using soapUI Mock Service?

I posted the similar questions in general soapUI group but does not get any reply yet. repost question in soapUI Pro Support group.

I need test an event notification from Web Service Provider (In that case, Web Service Provide will act like web service consumer and send soap request when event is triggerd ). I just wonder If I could use SoapUI Pro Mock service for this test. Mainly the flow that I want is:

1 Web Server under test is up running on host A port B
2 Bring up Soap UI Pro on host C, configuration mock service on port D
3 send a Soap Request ( for event notification ) to Web Server that under test. This request also contains notification host (hostC) and port (port D) information.
4. Once server under test gets this quest, it will remeber the event condition and send request to host C, port D ask for wsdl file. Can Soap UI mock service do that ?
5. When event condition is true, Web Server under the test will send Soap request to host C, Port D. the mock service soap response could just echo the soap body content.

Does any one performed similar test that could share if this could be tested using SoapUI Pro ? Or other alternative way to test it?

thanks
sheena







thanks
sheena

1 Reply

  • Hello,

    I sent you a response via email, but I'll paste it here as well:

    Sure, this should be possible using soapUI PRO. You can use a MockService, or possibly a simpler solution would be to just use a MockResponse TestStep. The MockService would run like a regular service, able to handle several requests. The MockResponse TestStep would basically wait for a single request, and then stop, moving to the next TestStep in your TestSuite. Using a MockResponse TestStep, you would basically add it to your current TestCase, so that you send the request to the Web Server first, then immediately after, the MockResponse awaits the request from the Web Server. You can add assertions to verify the request that the Web Server sends, if you like.

    Regards,
    Dain
    eviware.com