Micro Focus QTP (UFT) Forums
Checkpoint in QTP for a count that increases - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions)
+--- Thread: Checkpoint in QTP for a count that increases (/Thread-Checkpoint-in-QTP-for-a-count-that-increases)



Checkpoint in QTP for a count that increases - ankrdy - 03-22-2012

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

..


RE: Checkpoint in QTP for a count that increases - rameshrise3 - 03-22-2012

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



RE: Checkpoint in QTP for a count that increases - rajeevszone - 03-25-2012

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


RE: Checkpoint in QTP for a count that increases - rajeevszone - 03-25-2012

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