01-26-2011, 10:13 PM
(This post was last modified: 01-26-2011, 10:34 PM by Brian.Osborne.)
Hello all. I'm new to the board but been working on QTP for a while. Self taught for the most part.
I need to compare 2 caputured values on the Global DataTable and give a pass/fail checkpoint.
Can anyone help with this?
Brian
Figured it out...
I need to compare 2 caputured values on the Global DataTable and give a pass/fail checkpoint.
Can anyone help with this?
Brian
Figured it out...
Code:
If DataTable("A", dtGlobalSheet) = DataTable("B", dtGlobalSheet) Then
Reporter.ReportEvent micPass,"Compare A and B in DataTable", "Passed"
Else
Reporter.ReportEvent micFail,"Compare A and B in DataTable", "Failed"
End If