Changing assertions in SOAP UI for different server
I have my tests prepared for one servers, each test case has its own assertion like this:
declare namespace ns1='http://test.server.001';
//ns1:Response[1]/ns1:errorCode[1]/text()
expected: 1
It perfectly fine when I'm working with this test.server.001. Now I need to run my tests of test.server.002, but I'm getting Assertion Failed because of different namespace.
Is there a quic开发者_StackOverflowk way to changes assertions for all my cases, I don't want to change those manually. Thanks!
If you have the assertion tied to each request (as opposed to storing the assertion in a variable), there isn't a quick way to change them all.
The fastest way I have found is to open the XML file in a text editor and do a find/replace all.
精彩评论