Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Checkpoint on variable
#1
Solved: 11 Years, 4 Months ago
Hi there QTP'ers just a basic question:

How do I set a checkpoint on a variable?

I did the following:

Code:
msgbox "Data found: " & c &  "in Column : " & i & " Row : " & j
        found = 1

Instead of using a msgbox (which was there for debugging) I want to use a checkpoint on the found variable to report whether something is found or not.

Is this possible?
Reply
#2
Solved: 11 Years, 4 Months ago
Hi Jove,

Try something like this:
Code:
If c <> 0 AND c <> "" Then
   Reporter.ReportEvent micPass, "Data in Column: " & i & " and Row: " & j, "Data: " & c
Else
   Reporter.ReportEvent micFail, "Data in Column: " & i & " and Row: " & j, "No data"
End If

If you are fetching the data from data table, then for a perticular row-column, if there is no data; it is equivalent to "".
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Using Variable in Checkpoint kapsig431 0 3,574 03-30-2012, 01:02 AM
Last Post: kapsig431
Wink standard checkpoint and text checkpoint kiran10_rm 1 5,363 11-18-2010, 05:16 AM
Last Post: nandu
  fullscreen and bitmap checkpoint error "Cannot create bitmap checkpoint" meuline 2 4,723 12-10-2009, 09:17 PM
Last Post: meuline
  Checkpoint problems: Checkpoint starts before web page is loaded & therefore fails! IdontGetIt 1 3,921 11-20-2009, 11:45 AM
Last Post: basanth27
  Not able to add any other Checkpoint apart from Standard Checkpoint Rachna 7 8,656 04-02-2009, 11:05 AM
Last Post: nandu

Forum Jump:


Users browsing this thread: 2 Guest(s)