Forum Discussion
hutabarat2014
11 years agoContributor
Hi All,
Here is what I found so far.
In Request XML, I put the following:
All I have to do is the Groovy Script that I need to write.
So far I come up with the following, but nothing is successful:
Here is what I found so far.
In Request XML, I put the following:
<IP>${Groovy Script#result}</IP>
All I have to do is the Groovy Script that I need to write.
So far I come up with the following, but nothing is successful:
def ui = com.eviware.soapui.support.UISupport;
def option = ui.prompt("1 Testing, 2 Staging","Environment Selection");
if ( option == '1' )
{
def testing1 = "127.0.0.1"
log.info testRunner.testing1
}
else ( option == '2' )
{
def testing2 = "127.0.0.2"
log.info testRunner.testing2
}