ContributionsMost RecentMost LikesSolutionsRe: Find out Endpoint and adjust some propertiesHi All, 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 } Re: Find out Endpoint and adjust some propertiesHi All, I am trying to find out about the endpoint using the User Interface at Test Suite level as follows: def UI = com.eviware.soapui.support.UISupport; def OPTION = UI.prompt("1: Testing, 2: Staging"); if ( OPTION == '1' ) { //what in here? } else ( OPTION == '2' ) { //what in here? } The issue now is what to insert in the conditional option. What I would like to happen, ideally, is that all the test steps that require certain properties based on different environment will be changed accordingly and automatically. For example, if the default is ABC environment, then we got: Test Step 1 In Request XML we got: <IP>#IP_Address_ABC</IP> Test Step 2 In Request XML we got: <IP>#IP_Address_ABC</IP> Test Step 3 In Request XML we got: <IP>#IP_Address_ABC</IP> When we use the UI above and enter '2' which is Staging environment, we should get the followings: Test Step 1 In Request XML we got: <IP>#IP_Address_DEF</IP> Test Step 2 In Request XML we got: <IP>#IP_Address_DEF</IP> Test Step 3 In Request XML we got: <IP>#IP_Address_DEF</IP> without me having to lift any more finger than necessary. If that is the case, what would be in the conditional statements above that I need to write? Many thanks, LeoFind out Endpoint and adjust some propertiesHi, I am having this issue. I got at least 2 different environments, say, ABC environment and DEF environment. For each environment I got 2 different endpoints, let's say TP_ABC and TP_DEF. With these 2 endpoints, there are few properties that are specific to different environment. Let's say I got this IP_Address property specific to ABC and DEF, respectively, they are IP_Address_ABC and AP_Address_DEF. This issue is sometimes I forgot to change this property MANUALLY. Because I am using property expansion, I forget to change in the request XML to change from #IP_Address_ABC to #IP_Address_DEF. Is there a way to know or find out the endpoint and adjust the property accordingly in XML request? Many thanks, LeoRe: Evaluate a Function in Groovy ScriptHi SmartBear, Would you please tell me what is the right constructor? Many thanks, LeoEvaluate a Function in Groovy ScriptHi All, I tried the following script: def ABC = new java.lang.String.format('SU%tY%<tm%<td%<tH%<tM%<tS%<tL', new Date()) testRunner ABC log.info ABC But, I got the following error message. Please advise. Many thanks, LeoRunning Test Step from Test SuiteHi All, I am not sure that I can understand the reason why of this incident. When running from Test Suite, some of the test steps in quite a few Test Cases failed. When running those test steps independently, they worked!! Why is that? I don't think the idea of SoapUI Pro is to go to EACH test step and run it manually. Any idea how to improve this? Or the reason why certain test steps won't work from Test Suite level? Much appreciated. Kind regards, LeoRe: Transfer Property from a Test Case to anotherThis is the solution I came up with: def Testing1 = testRunner.testCase.testSuite.getTestCaseByName("DEF").getPropertyValue("w_SessionID") testRunner.testCase.testSuite.getTestCaseByName("GHI").setPropertyValue("w_SessionID", Testing1) Transfer Property from a Test Case to anotherHi All, I am trying to transfer a property from one Test Case to another using Groovy Script as follows: def Testing1 = testCase.testSuite.poject.testSuites["ABC"].testCases["DEF"] def Testing2 = testCase.testSuite.poject.testSuites["ABC"].testCases["GHI"] def Testing3 = testRunner.Testing1.setPropertyValue("w_SessionID", testRunner.Testing2.getPropertyValue("w_SessionID")) But, I get an error like this below. Please advise. Thank you, LeoRe: How to clean properties at Test Case and Test Suite Levels?Hi Marek, I tried your script and this is the result:Re: [Res] Populate Endpoint The Easiest WayThank you LIT.