Forum Discussion

sanjewad's avatar
sanjewad
Visitor
9 years ago

Passing context variables from load test setup scripts to testcase script returns null

I am using SoapUI 5.21.  on windows 10 and I need to pass context variables from my load test setup script to teststep script.

I followed this in the load setup script

def array1 = ["a", "b", "c"]
context["myarray"] = array1

 

and tried retrieving it from test case script like

def arr = context.LoadTestContext["myarray"]
log.info(arr)

 

when I run the load test I get null 

Mon Oct 12 11:07:05 CST 2015:INFO:null

 

Am I doing something wrong?

Please answer

No RepliesBe the first to reply