Forum Discussion
saib
Occasional Contributor
Hi
Working same scenario i.e. Endpoint parameterization - but getting endpoint as null.
import com.eviware.soapui.support.UISupport
//Conditionally set endpointURL based on result
def result = UISupport.prompt("Please select the enviornment", "Environment", ['SIT', 'UAT'])
if (result=='SIT')
context["endpointURL"]=testRunner.testCase.getPropertyValue("SIT")
else
context["endpointURL"]=testRunner.testCase.getPropertyValue("UAT")
//Just to check, print it out
log.info context["endpointURL"]
Can anyone please advise.
garlapati99
8 years agoOccasional Contributor
Please try the below code
def project = UISupport.prompt("Select Environment","Project",['SIT', 'UAT'])
if(project = 'SIT'){
it.properties['Endpoint'].value = project
}
Related Content
- 6 years ago
- 2 years ago
- 4 years ago
- 3 years ago
Recent Discussions
- 15 years ago
- 7 days ago
- 2 months ago
- 7 days ago