This topic describes how to use Groovy scripts to Load Test a Test Case that depends on another Test Case in a Load Testing scenario with more than one VU running the same Test Cases and which have shared resources (e.g., a custom property).
Where to use
There are two ways to run this script:
def project = testRunner.testCase.testSuite.project def clonedTestCase = project.testSuites["Your Test Suite"] .getTestCaseCloneByName("Other Test Case Name")
clonedTestCase can be safely used in your Load Test since it is unique for each instance of the run test (unique per VU),so it eliminates concurrency issues.