Forum Discussion

Mattias_Engströ's avatar
Mattias_Engströ
Occasional Contributor
16 years ago

Starting another testcase from Loadtest Setup script

Hi,

have a question about the "setup script" feature in the Load Test:

Before starting my loadtest I want to run a testcase (a login, from the same testsuite but in another testcase). I can figure out how to do this (by examples...) when having the testRunner available but in here I only have the loadTestRunner variable. Does anyone have any ideas on how to do this?

3 Replies

  • alibaba82's avatar
    alibaba82
    Super Contributor
    I do this  in my loadtest to run a testcase


    def setup_Testcase = loadTestRunner.loadTest.testCase.testSuite.testCases["testcase_name"]

    def runner = setup_Testcase.run( new com.eviware.soapui.support.types.StringToObjectMap(), false )