Forum Discussion

vavst4's avatar
vavst4
New Contributor
10 years ago

TestSuite setup script not run during load test

Hi,

 

I have some code in my TestSuite setup script which I'd like executed before running the rest of the test.

The code declares some common  variables and adds them to the context so that these variables are visible to all the threads that are executing my test cases. 

 

The problem I"m running into is that the setup script is not being run if I press the "play" button of the load test.

 

I see that the setup script has its own "play" button and if I push that, I can see it execute and add the variable I want to the context, but it seems that by the time the script ends, the variable goes out of scope.

 

Is there something I need to do to force this TestSuite setup script to execute first when I push the play button of the load test? I'm using the SoapUI GUI instead of running from the command line.

 

1 Reply

  • nmrao's avatar
    nmrao
    Champion Level 3
    As the name suggests, setup script of TestSuite is run only when Test Suite is run/invoked.