Solved
Forum Discussion
garlapati99
10 years agoOccasional Contributor
Thanks for the help, it works now.
saib
8 years agoOccasional 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.
- garlapati998 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
}