Forum Discussion

Brian_Mowbray's avatar
Brian_Mowbray
Contributor
16 years ago

request: mock service assert that it does not receive a message

I would like to request the ability to assert that a mock service does NOT receive a message.

A sample use would be a test case that:
- send request to my system-under-test
- start mock service
- assert the the mock service does NOT receive a message (timeout occurs)

--jason

1 Reply

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    This is already doable using Groovy.
    You will need to add a Groovy step to the testcase that will start the MockService (you can also start the MockService as part of the TestCase start script, if it suits you better), and check if it receives the message.

    /Nenad
    http://eviware.com