naz4viper
11 years agoNew Contributor
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:
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.
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.