Forum Discussion
I think that your prolem might be the property expansion in the line:
def req1 = context.expand('${#CLUB-ATM-UC#Request}')
Assuming that CLUB-ATM-UC is a test step name, I don't think you need the first #.
Take a look at the property expansion help page:
https://support.smartbear.com/readyapi/docs/testing/properties/expansion.html
You'll see that the test step scope does not have a leading #.
The CLUB-ATM-UC is actually the complete case that's why I chose the leading # I think it's more a problem of wrong results definition
- Radford7 years agoSuper Contributor
st-pat responding to when you mention about the wrong results definition. When trying to get properties/data into a Groovy Script test step, have you investigated the "point and click" Get Data functionality, access this from the within the right mouse click menu when within a Groovy script editor (In fact this can be accessed most places that allow property expansions). This helped me a lot when I was getting started with SoapUI.
- st-pat7 years agoOccasional Contributor
Radford The problem in that is that in the editor I don't get a result from the TC only from the teststeps as a property and this is the case I have above.
sanj again missing property definitionI have it like this now
import com.eviware.soapui.support.*; def tc = testsuite.getTestCaseByName("CLUB-ATM-UC") /def testStep = tc.testSteps['brianSisClubWrite - Request'] def req = new File(tc)
Related Content
- 4 years ago
Recent Discussions
- 22 hours ago
- 17 days ago