In my application there is a billing thru credit card.
how to validate the credit card details(min balance,credit
card no,card holder name).if these details are valid then only
that booking will be done.how to validate these details thru
automation or manual?



In my application there is a billing thru credit card. how to validate the credit card details(min ..

Answer / patil

You should store the value for the name in a variable well
in advance in a Test Data file. Using a function which
reads the data, get the value from the sheet in an
iterative process.

Ex: custname="xyz"

Then...

If B.P.F.WebTable.exist(0) Then
name = Trim(B().P().F().webedit("cname").getroproperty)
("text"))
If custname=name Then
Reporter.ReportEvent micdone,"sucess"
End If
Else
msgbox "No object"
Existaction
End if

Patil
Jai Ganesh Maharajki...

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

w is recovery senario manager

3 Answers   Infosys,


if numbers are always changing write a script for that

2 Answers   Nous,


How to get data line by line from web element

2 Answers  


What is difference between shared and local object repository?

1 Answers  


In Datatable having the data like this S.no Name Address 1 raj hyderabad 2 suresh Mumbai 3 shyam chennai 4 dev banglore i want to get the shyam row id & column id using scipting i.e 3,3

4 Answers   Broadridge,


What is the parameterization? Give one example?

1 Answers  


Which version of QTP is using by companies nowadays?

4 Answers  


Which Databases supports for QTP?

2 Answers  


how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?

1 Answers  


What is standalone database?

1 Answers  


write a VBscript code to parametrize test script using test data from sqlserver database?

2 Answers   IBM, Polaris,


can any body tell me all of the release dates of QTP?????..... thanks in adv!

3 Answers  


Categories