Forum Discussion

chihhsiw's avatar
chihhsiw
Occasional Contributor
13 years ago

How does Teardown script get value set by Setup script?

Hi,
I'm using soapUI free version and trying to run load test on testcase. I want to get the current time value in setup script and then in teardown script take the time value set from setup script and substract this value with the current time in teardown script to get the total execution time.

I tried context.setProperty() in setup script and then context.getProperty() in teardown script but context.getProperty() gives me null value.

Can anybody tell me what is the right way to send value from setup script to teardown script?

thanks

chihhsiw