15 years ago
Changing a declare part of assertions automatically
Hi folks,
I have my tests prepared for one servers, each test case has its own assertion(s) like this:
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 quick way to changes assertions for all my cases, I don't want to change those manually. Thanks!
I have my tests prepared for one servers, each test case has its own assertion(s) 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 quick way to changes assertions for all my cases, I don't want to change those manually. Thanks!