tags:

views:

20

answers:

1

I have a test where I am sending a message in SOAPUI, usually this will trigger an message coming back asynchronously to my Mock Service so I have a Mock Response.

Now I have a testcase where receiving any message to my mock service would be considered failure.

Other tools I have used in the past had the concept of unexpected messages wherein receiving a message would fail the test.

Anyone have any ideas on this?

+1  A: 

Hm..You can add an assertion to Mock Response. There is an assertion inspector at bottom of Mock Response panel. Add script assertion with:

assert false

That should do the trick.

robert
Let me try that. Thanks very much for your help.
Brian G
I still see my test failing upon not receiving the message. I added a single assertion which is of type script and the only line is assert false.
Brian G