Writing the order number to DataTable.
I am writing to Data Table using following command:
The order number will be captured from the shopping cart test. For ease I have just hard coded it to 1245 right now.
My Global sheet has 3 records and that's why my action loops 3 times. I export the sheet Action1 using the DataTable.exportSheet function. But I see only 1 row. The reason is I am not sure how can I insert the rows and set 1234 to new row each time the test iterates. And just export at the end of 3 iterations.
Secondly, I do not see the values updated in the "Global" or "Action1" sheet. I need to export to see the updates made to the sheet. Can I not update the DataTable and see the updates after the test is run without the need to export it.
Thank you for your help in advance,
Re: Writing the order number to DataTable.
This is a case of setting Current row on your localsheet i.e. "Action1"..
Have you set which row on localsheet to save the value on?If you havent then thats the problem..
By default the current row is set to 1..since you have not instructed the script...every iteration the value is saved on row 1.
Before your statement
Add the following