Forum Discussion

jbp123's avatar
jbp123
New Contributor
15 years ago

No such property: testRunner for class: Script1

Hi,

I really like soapUI but am getting an error to do with testRunner.

I have a 1 line script assertion in my test request. When I run the test (or even just the script) I get the error: "No such property: testRunner for class: Script1"
The line is:
def strLat = testRunner.testCase.testSuite.getPropertyValue( "lat" )

It sounds like it doesn't recognise testRunner?

I have tried installing/uninstalling etc, but still the same message.
Ive upgraded to latest build, and tried this on soapUI 3.5.1 Pro and 3.6 beta. same issue.
I have Java 1.6.

Any help greatly appreciated.

Thanks,

Justin

2 Replies

  • jbp123's avatar
    jbp123
    New Contributor
    May I add that it is any statement I try and do with "testRunner" that causes the same error.
    For example:
    targetStep = testRunner.testCase.getTestStepByName("GetUserData")
    will cause the same error.
  • jbp123's avatar
    jbp123
    New Contributor
    *SOLVED*

    OK, corrupt soapui cache/settings caused this problem, most likely from upgrading from soap 3.5.1 to 3.5.1 Pro version without uninstalling the first instance first.


    The solution was to uninstall all instances, then I cleared out my soapui settings xml file and also the cache folders.


    Back in action!