Forum Discussion

Vec84's avatar
Vec84
Contributor
7 years ago
Solved

Store data in an object in script (Jscript)

Hello,   I have a function that writes in to excel with certain results i obtain from the test i am running. After every loop of the data driven test this excel function is called and writes to the...
  • tristaanogre's avatar
    7 years ago

    What I would do is create a global variable of some sort as an array... then, during the course of your testing, add rows to that array containing the desired information.  Then, at the end of the test case, you loop through that array and write your values out to your Excel file.