Is there a way where I can put the result of an equation in the datatable? I mean that if I have x = y +Z, I want to see the result of X in the datatable instead of exporting the result to an excel file.
Thank you for the help.
Not sure if you wanna store expressions in datatable.
You should to all your calculations within the script and then populate the final values in the table.
And Datatable is not an excel control, it is a third party control. more so, if you import excel files with expression, there are loss of data.
-- Here to Learn and share ---
That what I am trying to do. I want to populate the final result of the expression in the datatable. what method I should use with Datatable?
Have a look in the tutorials under help there you will find example like:
The following example uses the Value property to set the value in the current row of the Destination parameter (column) in the "ActionA" sheet of the run-time Data Table.
DataTable.GetSheet("ActionA").GetParameter("Destin ation").Value="New York"
But you need also a saving like:
The following example uses the ExportSheet method to save the first sheet of the run-time Data Table to the name.xls file.
DataTable.ExportSheet "C:\name.xls" ,1
Need a Workflow independently QTP Framework
Catch the train on rail of fasten, proven and easy solutions.
I have succesfully arranged a workflow Independent Framework for QTP like the EMOS Framework for WR