Forum Discussion
Konda_R
16 years agoOccasional Contributor
Hi
I found a way to make namespace URI dynamic in request/response assertions.
Since the WSDL's are genrated on the fly evreytime you run the tests on a specified server ,the namespaces are also changing according to the server name.But the NS URIs in my test case requests are hardcoded .Hence the Xpath assrtion failures.
Now I made the NS URIs for all test case requests generic using the property expansion.For Ex:
file:C:\HTTPTest\WmPublicNew.txt
file:C:\HTTPTest\xalan.jar
I found a way to make namespace URI dynamic in request/response assertions.
Since the WSDL's are genrated on the fly evreytime you run the tests on a specified server ,the namespaces are also changing according to the server name.But the NS URIs in my test case requests are hardcoded .Hence the Xpath assrtion failures.
Now I made the NS URIs for all test case requests generic using the property expansion.For Ex: