Forum Discussion

elnreum's avatar
elnreum
New Contributor
8 years ago
Solved

soapui 5.2.1 test case property reading in mock response scripting: "No such property: testRunner"

When setting and getting a property as shown in the two attachments, the below error occurs. How can this be solved?   Tue Jun 28 14:58:57 IST 2016: DEBUG:Connection closed Tue Jun 28 14:59:41 IS...
  • rupert_anderson's avatar
    8 years ago

    Hi,

     

    The testRunner variable is not exposed within Mock scripts, there is a mockRunner instead - in other words, mocks can't access properties in that way.

     

    However mocks can access Global properties from within mock scripts e.g.

     

    def globalProperty = com.eviware.soapui.SoapUI.globalProperties.getPropertyValue("MyProp")

     

    Regards,

    Rupert