Forum Discussion
11 years ago
I am running into a similar issue as this one.
I have been able to do Property Transfers into Test Case properties that are successfully passed between SoapUI Runners in LoadUI as described here: http://www.loadui.org/soapui-integratio ... rties.html
The problem I am having is that one of the properties I am setting via a Groovy Script like this:
is not being updated in LoadUI (when the groovy script runs) and thus not being passed around properly.
I have to use a groovy script because the cookie comes in as part of the response header and the normal Property Transfer Step doesn't allow me to do the transfer.
Its as if this part of the groovy script is ignored in LoadUI, the rest of the script works fine because I set the header for other calls within the same script and those run successfully.
I have been able to do Property Transfers into Test Case properties that are successfully passed between SoapUI Runners in LoadUI as described here: http://www.loadui.org/soapui-integratio ... rties.html
The problem I am having is that one of the properties I am setting via a Groovy Script like this:
def tc = testRunner.testCase.testSuite.getTestCaseByName("Auth and Start Up")
tc.setPropertyValue("Cookie","$jsesid")is not being updated in LoadUI (when the groovy script runs) and thus not being passed around properly.
I have to use a groovy script because the cookie comes in as part of the response header and the normal Property Transfer Step doesn't allow me to do the transfer.
Its as if this part of the groovy script is ignored in LoadUI, the rest of the script works fine because I set the header for other calls within the same script and those run successfully.