chihhsiw
14 years agoOccasional Contributor
How to get value set in Loadtest setup script?
Hi,
I tried loading data from excel in the setup script of Loadtest and then use the loaded data in the test step.
However, if I set the following value in setup script of Loadtest
context.totalRowCount = rowcount;
and then in testcase setup script or groovy step I use context.LoadTestContext.totalRowCount to get it, it returns null value.
Is there anyway I can get the value I set in setup script of Loadtest and then get the value in groovy test step or testcase
setup script?
I know for the above example I can use property but for the excel sheet, I use array to store the content, how do I get the array values which is set in setup script of Loadtest?
thanks
chihhsiw
I tried loading data from excel in the setup script of Loadtest and then use the loaded data in the test step.
However, if I set the following value in setup script of Loadtest
context.totalRowCount = rowcount;
and then in testcase setup script or groovy step I use context.LoadTestContext.totalRowCount to get it, it returns null value.
Is there anyway I can get the value I set in setup script of Loadtest and then get the value in groovy test step or testcase
setup script?
I know for the above example I can use property but for the excel sheet, I use array to store the content, how do I get the array values which is set in setup script of Loadtest?
thanks
chihhsiw