Micro Focus QTP (UFT) Forums

Full Version: How to Permanently Update DataTable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am trying to incriment a value in the Globalsheet when ever the Test runs. The increemented value is available to the Runtime Datasheet. However, it's not saving in the Globalsheet so that it can be used next time. Below is the code I am using . Any suggestion will be helpful.

Code:
int_Iteration = Datatable("o_Iteration",dtGlobalSheet)
Datatable("o_Iteration",dtGlobalSheet)=int_Iteration + 1

Thanks,
Subha
Hi Subha,

A data table retains the runtime value (in your case the value you want to retain for further use) while the script is running. With the end of the script run, the data table releases the run time value and retains the original value those were given.

If you want to save the updated value for further use, you can save it in an external excel sheet. To learn how to use excel sheet refer to this link