I am currently working with Sybase's powerbuilder for a client's application. For the script that I am writing, it is a semi-standalone application. Also, I am validating that a report that has been generated will be the same after the report has aged. The first nine iterations work properly. They do not generate excessively large amounts of data. The last script generates a report with no less than 44 columns and over 56 thousand rows. When using either standard checkpoints or the GetCellData method, the script will either ignore the script commands or freeze up QTP. How can I address this problem?
Answer by I_Script · Apr 24, 2012 at 11:27 AM
It has been found much easier to use the following line of code to get the text-based data from a datatable by using the following line of code where objTable is the table in question:
Data = objTable.Describe("datawindow.data")
Answer by I_Script · Apr 26, 2012 at 02:07 PM
When dealing with a datawindow that has that amount of data, QTP will still crash if you try to dump all of the data into a variable. Your best bet is currently found to use the following code to grab each cell 1 by 1.
For r = 0 to RowCount For c = 0 to ColCount SomeArray(r, c) = objDataWindow.Describe("Evaluate('LookUpDisplay(#" & c & ")', " & r & ")") Next Next
This will take a long time to run, but it will get the job done.
QTP checkpoints 1 Answer
What went wrong 1 Answer
pbdatawindow data using QTP 3 Answers