Forum Discussion
tinoboehme
13 years agoOccasional Contributor
To save the string representation of the object inside a property is only one idea to get the same Object state back.
But as I found in a similar thread this is not possible
Another Idea is to save this object reference at a public variable within the testRunner object.
Is there any similar method to achieve this?
pseudo code for 1st TestStep:
pseudo code for 2nd TestStep:
If there is no similar method, it would be nice if you can create a feature request for the implementation of this Methods.
Regards Tino
But as I found in a similar thread this is not possible

Another Idea is to save this object reference at a public variable within the testRunner object.
Is there any similar method to achieve this?
pseudo code for 1st TestStep:
def myObject = new soapui.utils.myUtils( context, log)
testRunner.setObjectReference("myObject", myObject)
assert "1st TestStep" == myObject.context.testCase.getName()
pseudo code for 2nd TestStep:
myObject = testRunner.getObjectReference("myObject")
assert "1st TestStep" == myObject.context.testCase.getName()
If there is no similar method, it would be nice if you can create a feature request for the implementation of this Methods.
Regards Tino