How you could conditionally expand a property in a request?
SoapUI FAQ
(Continued from previous question...)
How you could conditionally expand a property in a request?
This is how you could conditionally expand a property in a request, or similar, based on the value of a third custom property. If the selection TestCase property has the value "selection" the TestCase property myFirstXMLSnippet will be expanded, else mySecondXMLSnippet will be expanded:
1.${= testCase.getPropertyValue( "selection" ) == "first" ? testCase.getPropertyValue( "myFirstXMLSnippet" ) : testCase.getPropertyValue( "mySecondXMLSnippet" )}
(Continued on next question...)
Other Interview Questions
|