Forum Discussion

kamahade's avatar
kamahade
Regular Contributor
14 years ago

MockResponse Step

Hello team,

I read entire section : http://www.soapui.org/Service-Mocking/concept.html and in particular : http://www.soapui.org/Service-Mocking/mockresponse.html .

I understand about Mock service . Whats real use of MockResponse TestStep?

I tried adding a mock-response teststep to my testcase choosing operation , Interface and then configuring Path and port, however while testcase is running , after it reaches Mock-response teststep it continuously waiting for further Testrequests.

Please, let me know if I could read /view from somewhere and understand this usage.

3 Replies

  • Hi!

    The MockRespone TestStep is usually used when you expect an asynchronous call back to the TestCase for some reason, for example if you have an initial request that starts off a batch-job then you might expect a call back to you when the job is finished - the MockResponse TestStep could then be configured to receive that call and would upon execution sit and wait for the call before the next TestStep is executed.

    Does that make sense?

    regards!

    /Ole
    SmartBear Software
  • kamahade's avatar
    kamahade
    Regular Contributor
    Thanks,

    Does it mean that Mockresponsestep will be "all "time listening or will wait for once ,execute and then the testcase will move on to next subsequent teststeps ?
  • Hi!

    It will only listen for one request and then pass execution to the next TestStep in the TestCase. It will start listening either when it gets executed or when execution reaches the step selected in the "StartStep" property (bottom left table of properties).

    regards!

    /Ole
    SmartBear Software