Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Checkpoint in QTP for a count that increases
#1
Not Solved
Hi,

I am new to qtp and would like to know what chekpoint to insert to see that the count in a particular field is increasing.



scenario:

customer calls customer service dept and promises a payment.

so the agent submits a serive Request(SR). before submitting SR, promise count is 0, after submitting SR promise count is 1.

what check point should i insert so that i know this count has increased by 1



Thank You

..
Reply
#2
Not Solved
Hi,

This is how you do

Before submitting capture the value 0 from that field(either edit box..or something)

Code:
Res1= Browser("...").Page("......").Webedit("....").GetROProperty("Value")

now do that submission and the do the following

Res2= Browser("...").Page("......").Webedit("....").GetROProperty("Value")

If Res2-Res1 =1 Then
Reporter.ReportEvent 0, "Increase Check", "Value is increased as expected"
Else
Reporter.ReportEvent 1, "Increase Check", "Value is not increased"
End If
Reply
#3
Not Solved
Depending on the type of verification required any of the checkpoints below can be used.
1. database checkpoint to verify by what count the SR number has increased
2. Standard checkpoint
3. Text checkpoint
Reply
#4
Not Solved
Depending on the type of verification required any of the checkpoints below can be used.
1. database checkpoint to verify by what count the SR number has increased
2. Standard checkpoint
3. Text checkpoint
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)