Solved
Forum Discussion
garlapati99
Occasional Contributor
Thanks for the help, it works now.
saib
7 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.
- garlapati997 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
- 10 months agolodecesa
- 5 years agokate123
- 8 months agoMehwishDaud
- 2 years agorodm0001
Recent Discussions
- 4 days agoemoya