DLuks
14 years agoContributor
Testcase: Datasource, TestRequest, Dataloop - Test Vars?
Hey forum,
I have a Testcase that pulls data from an Excel sheet, is setup with a Test Request, and runs the dataloop. My datasource also has a column with a distinct string 'variable name' to be used as a reference for later dataloops within the datasource.
Basically the output of each loop, sets context['variable name'] = the hit count of results.
Everything works fine within the client. The variables are kept intact, equations are stringed together and I have a JavaScript math evaluator performing assertions.
We have this process also running with Maven on our Hudson build server. Maven has a soap-ui-pro plugin that it can use to execute these test cases.
The problem seems to be because of a null object in the Javascript eval funtion, suggesting that context['variable name'] is not being stored. Is there a way to create a different global variable to store these values? Or any other workaround would be greatly appreciated.
I have a Testcase that pulls data from an Excel sheet, is setup with a Test Request, and runs the dataloop. My datasource also has a column with a distinct string 'variable name' to be used as a reference for later dataloops within the datasource.
Basically the output of each loop, sets context['variable name'] = the hit count of results.
Everything works fine within the client. The variables are kept intact, equations are stringed together and I have a JavaScript math evaluator performing assertions.
We have this process also running with Maven on our Hudson build server. Maven has a soap-ui-pro plugin that it can use to execute these test cases.
The problem seems to be because of a null object in the Javascript eval funtion, suggesting that context['variable name'] is not being stored. Is there a way to create a different global variable to store these values? Or any other workaround would be greatly appreciated.