Forum Discussion

naz4viper's avatar
naz4viper
New Contributor
11 years ago

Setup/Teardown scipts in LoadUI?

Hi -

I'm attempting to performance test my SoapUI Test Cases via LoadUI (free version). I've imported my project via SoapUI Runner, but my Test Cases will not execute because I reference an object that was initialized in the Project level Setup Script:

import javax.naming.Context;

def list = [];
context.setProperty("outageList",list);


I use the outageList property in my test steps. So this works fine in SoapUI, but when I try to execute my test in LoadUI I'm getting a NullPointerException at the first occurrence of my outageList property.

does LoadUI not execute the setup or teardown scripts that were define in SoapUI? How can I accomplish this? I'm basically trying to keep a persistent list object that can be used at each run of my Test Case.

3 Replies

  • Sorry, LoadUI doesn't currently run setup or teardown scripts.
  • naz4viper's avatar
    naz4viper
    New Contributor
    Thanks for the reply heols. Do you know another way I can accomplish this? I basically need to create a list object that will maintain values during each iteration of my Test Case. At each test step that is executed will either add or remove items from this list. So it is some persistent object basically.
  • Would using TestSuite properties solve your problem (be careful, you need to synchronize access)?