Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
16 years ago

running test case from load test setup script

Hello,
i want to run some test case in my project before the load test. I am trying to figure out how I can do this via groovy in my load test setup script. It seems like that testRunner is not accessible in the loadtest setup script.

Thanks

Ali

2 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Ali,

    You would basically need to hold of the testcase and then run it;

    def testCase = loadTestRunner.loadTest.testCase.testSuite.testCases["Another TestCase"]
    def runner = testCase.run( new com.eviware.soapui.support.types.StringToObjectMap(), false )


    does that help you out?

    regards!

    /Ole
    eviware.com