Forum Discussion

dchester11's avatar
dchester11
Occasional Contributor
15 years ago

soapui model questions

This may be more of a Java or Groovy API question. I am relatively new to both. I see a couple places in the documentation where the testRunner variable is expanded in a script step. One example is def tc = testRunner.testCase.testSuite.project.testSuites["Sample Simple TestSuite"].testCases["Simple Login and Logout w. Properties Steps"]. I see in the soapui api docs the entry for the testRunner interface, but I do not see where it is documented to expand each property like that. How can I figure out what properties are available to each of the variables available to me in the scripting steps? Thank you.

  • dchester11's avatar
    dchester11
    Occasional Contributor
    haha. nm. I'm seeing what a ridiculously difficult question that is to answer. What I did not seem to understand is that Groovy exposes properties without needing the getXX() method... is that correct? Maybe someone could tell me if there is an easier way of doing this but basically I am logging the object in the script step and running it to see what concrete implementation it is and traversing through the API that way. I am also using testRunner.properties.each { log.info it } but that doesn't seem to output all properties available when i look at the API. Any clue there as to why that returns some but not all properties?