Forum Discussion
ShasiSingh
6 years agoOccasional Contributor
You can add groovy script before initiating your request. This test step ( groovy ) will provide user prompt and once you have user Input store those values into properties.
def selectedEnv = com.eviware.soapui.support.UISupport.prompt("Please select the enviornment", "Environment", ['X1', 'X2'])
eg.. context.testCase.setPropertyValue('UserInputAsEnv', selectedEnv );
While Executing your Request ( which is step 2 in your test cases)
dynamically passed those variable .
eg.. <req:ReqEnvName>${=context.testCase.getPropertyValue('UserInputAsEnv')}</req:ReqEnvName>
Related Content
- 5 years ago
Recent Discussions
- 15 years ago