Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Permanently Update DataTable
#1
Solved: 11 Years, 3 Months, 4 Weeks 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: 11 Years, 3 Months, 4 Weeks 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 1,103 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 6,078 10-11-2012, 05:59 PM
Last Post: yogesh kancherla
  Datatable add and datatable import sheet wheelercha 4 33,624 06-14-2012, 04:53 PM
Last Post: Arul
  Update from Local repository DeeptiNR 4 5,054 04-10-2012, 07:29 AM
Last Post: DeeptiNR
Shy How to remove the Check points permanently Veekay 7 6,550 03-20-2012, 05:08 PM
Last Post: Veekay

Forum Jump:


Users browsing this thread: 1 Guest(s)