开发者

Does SOAPUI have the concept of an unexpected message

开发者 https://www.devze.com 2023-01-22 15:20 出处:网络
I have a test where I am sending a messa开发者_StackOverflow中文版ge in SOAPUI, usually this will trigger an message coming back asynchronously to my Mock Service so I have a Mock Response.

I have a test where I am sending a messa开发者_StackOverflow中文版ge 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号