smartTest
13 years agoContributor
Replacement of Namespace Prefixes
Is there any easy way I can turn off the automatic amendment of namespace prefixes in SoapUI Pro? We have to provide examples of tested requests and its not good when they query the change from the approved schemas.
Can this be done? All my messages are having ns and ns1 replacing approved code.
I added the above to the non-Pro forum back in Aug 2011 and got no response, so i thought I would add it in here with more info found today...........
When creating Script Assertions I use the Get Data option and each defined line shows the 'replaced' namespace definitions rather than those in the Schema. However, when a development colleague uses my SoapUI 4.0.1 project the script assertion is failing due to the difference in namespace definitions.
The issue is occuring whilst using code I found on this forum for checking that particular nodes are not empty as below:
As you can see, no namespaces are defined. I have used this many times in the past and have not come across this issue before. I am basically writing a Script Assertion to ensure that nodes are not empty within the response, but not checking the actual data contained within these nodes. Sometimes I look for single and sometimes multiple nodes in the same script.
Can anyone help?
thanks
Can this be done? All my messages are having ns and ns1 replacing approved code.
I added the above to the non-Pro forum back in Aug 2011 and got no response, so i thought I would add it in here with more info found today...........
When creating Script Assertions I use the Get Data option and each defined line shows the 'replaced' namespace definitions rather than those in the Schema. However, when a development colleague uses my SoapUI 4.0.1 project the script assertion is failing due to the difference in namespace definitions.
The issue is occuring whilst using code I found on this forum for checking that particular nodes are not empty as below:
//SCRIPT ASSERTION TO ENSURE A NODE IS NOT EMPTY ON RESPONSE
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
holder = groovyUtils.getXmlHolder( messageExchange.responseContentAsXml )
assert holder["//m:getSessionResponse[1]/gen:EDS_GeneralRS[1]/@TransactionIdentifier"] != null
As you can see, no namespaces are defined. I have used this many times in the past and have not come across this issue before. I am basically writing a Script Assertion to ensure that nodes are not empty within the response, but not checking the actual data contained within these nodes. Sometimes I look for single and sometimes multiple nodes in the same script.
Can anyone help?
thanks