Forum Discussion

Finan's avatar
Finan
Frequent Contributor
14 years ago

run testStep from project loadScript

Hi,

I'm trying to run a (groovy) testStep from the loadScript on the project level and I am kinda stuck on this:(

How do I run testCases/testSteps/testSuites from the loadScript on the project level?

Thx in advance
  • Hi,

    hmm... I don't think this is possible since you won't have access to TestRunner and TestRunContext objects that are required to run a TestStep - maybe you could just externalize the desired functionality of the TestStep to the local Script Library (see http://soapui.org/Scripting-Properties/ ... brary.html) and call it there instead from both the projectLoad script and the TestStep?

    regards,

    /Ole
    SmartBear Stockholm