Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Permanently Update DataTable
#1
Solved: 10 Years, 9 Months ago
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
Reply
#2
Solved: 10 Years, 9 Months ago
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  OpenNewTab stopped working on IE after unknown windows update M851533 0 989 07-19-2018, 08:36 AM
Last Post: M851533
  How to open html file and update values in particular cell of a table in QTP? yogesh kancherla 2 5,922 10-11-2012, 05:59 PM
Last Post: yogesh kancherla
  Datatable add and datatable import sheet wheelercha 4 33,356 06-14-2012, 04:53 PM
Last Post: Arul
  Update from Local repository DeeptiNR 4 4,858 04-10-2012, 07:29 AM
Last Post: DeeptiNR
Shy How to remove the Check points permanently Veekay 7 6,285 03-20-2012, 05:08 PM
Last Post: Veekay

Forum Jump:


Users browsing this thread: 1 Guest(s)