jkrier
11 years agoRegular Contributor
Cloning assertions will fail when the response is different
I have a service with several methods that use different inputs to return the same data; example getAccountInfoByAccount, getAccountInfoByPhoneNumber, getAccountInfoByName etc.
The response is always the same regardless of which method is used. I want to assert the response message structure (account/customer/services) and I am using the existence assertion to do this. When you clone the assertion from getAccountInfoByAccount to getAccountInfoByPhoneNumber the assertion fails because the name of the response does not match (getAccountInfoByAccountResponse versus getAccountInfoByPhoneNumberResponse). This makes the cloning feature useless because, in order to make this work you still need to edit each assertion one by one for the correct response name.
Is there another way to clone assertions so that they are functionable? I tried looking here http://www.soapui.org/functional-testing/validating-messages/getting-started-with-assertions.html and here http://www.soapui.org/functional-testing/assertion-teststep.html#4-Other-Assertion-Features but neither page had information on my question. The second URL references another page http://www.soapui.org/Assertions/clone-assertions.html but this returns 404
The response is always the same regardless of which method is used. I want to assert the response message structure (account/customer/services) and I am using the existence assertion to do this. When you clone the assertion from getAccountInfoByAccount to getAccountInfoByPhoneNumber the assertion fails because the name of the response does not match (getAccountInfoByAccountResponse versus getAccountInfoByPhoneNumberResponse). This makes the cloning feature useless because, in order to make this work you still need to edit each assertion one by one for the correct response name.
Is there another way to clone assertions so that they are functionable? I tried looking here http://www.soapui.org/functional-testing/validating-messages/getting-started-with-assertions.html and here http://www.soapui.org/functional-testing/assertion-teststep.html#4-Other-Assertion-Features but neither page had information on my question. The second URL references another page http://www.soapui.org/Assertions/clone-assertions.html but this returns 404