Does SOAPUI have the concept of an unexpected message

拈花ヽ惹草 提交于 2019-12-12 01:35:38

问题


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:


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.



来源:https://stackoverflow.com/questions/4044361/does-soapui-have-the-concept-of-an-unexpected-message

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!