11-28-2012, 08:28 PM
Hi, I'm new to QTP and using QTP11.
I'm processing a thousand records and every time a row is processed I need to put a "Passed" or "Run Time Error" next to each current row in the Action1 Sheet of the DataTable. I already have this code(see below) which use the Reporter and is also writing to the DataTable, but instead of writing next to each Row is creating a New Column every time a record is processed.
I'll really appreciate your advice and give me some example of what I need.
I'm processing a thousand records and every time a row is processed I need to put a "Passed" or "Run Time Error" next to each current row in the Action1 Sheet of the DataTable. I already have this code(see below) which use the Reporter and is also writing to the DataTable, but instead of writing next to each Row is creating a New Column every time a record is processed.
I'll really appreciate your advice and give me some example of what I need.
Code:
If Browser("QNXT - Benefit Plan Module").Window("About QNXT -- Webpage").Page("About QNXT").Frame("Frame").WebButton("Cancel").Exist Then
Reporter.ReportEvent micPass, "Record Verification", "Record has been saved"
DataTable.GlobalSheet.AddParameter "A", "Passed"
Else
Reporter.ReportEvent micWarning, "Record Verification", "Record not Completed"
DataTable.GlobalSheet.AddParameter "A", "Run Time Error"
End If