ME_Bank_Support
11 years agoOccasional Contributor
Default Response Comparison.
One of our third party vendor keep on changing the WSDL's with out informing us so we decided to compare the WSDL's between their DEv and out SIT env every day to know whether any change in the WSDL structure or now. I created a project load the required WSDL comparing the Default Request by using a Groovy script. I dont want to fire a request because many fields in the response or optional and Soap UI will only show the required. So i need to compare the default Response with out firring a request. I am just capturing the Default request successfully and can be able to compare by using the below groovy script.
def requestDev = context.expand( '${GetPartyInformation - Dev#Request}' )
def requestJEnv = context.expand( '${GetPartyInformation - JEnv#Request}' )
if (requestDev == requestJEnv )
{
testRunner.testCase.getTestStepByName("GetPartyInformation - JEnv").setPropertyValue( "Username", "XSD Match" )
}
else
{
testRunner.testCase.getTestStepByName("GetPartyInformation - JEnv").setPropertyValue( "Username", "XSD Mismatch" )
}
I tried the same way to capture the response as well but no luck. Can you please advice how to capture default response for an operation and compare against two env.
def requestDev = context.expand( '${GetPartyInformation - Dev#Request}' )
def requestJEnv = context.expand( '${GetPartyInformation - JEnv#Request}' )
if (requestDev == requestJEnv )
{
testRunner.testCase.getTestStepByName("GetPartyInformation - JEnv").setPropertyValue( "Username", "XSD Match" )
}
else
{
testRunner.testCase.getTestStepByName("GetPartyInformation - JEnv").setPropertyValue( "Username", "XSD Mismatch" )
}
I tried the same way to capture the response as well but no luck. Can you please advice how to capture default response for an operation and compare against two env.