I want to write conditions for below scenarios

1.card number is valid
2.card number is invalid
3.card number is already given
4.card number is blocked

The dialog message changes as per scan cards at click on validate 
card,please provide solution for this type of scenarios.and i want to get 
the text for each record and write into
excel for each record.


Browser("name:=Customer").Dialog("text:=Message from webpage").WinButton(
"text:=OK").Click
card_number=Browser("name:=Customer").Page("title:=Customer").WebEdit(
"name:=customerVo.cardNo").GetROProperty("value")
card_status=Browser("name:=Customer").Dialog("text:=Message from webpage").
GetROProperty("value")
If card_number="" Then


Reporter.ReportEvent micWarning,"Verify Card Number","Scanned Card number 
is already registered/Invalid Card Number"
DataTable.value("card_status","customer_enrollment")=card_status
else
Remaining positive script
DataTable.value("card_status","customer_enrollment")=card_status
End If

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to