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

how do you run scripts in QTP?please anyone can answer my questions

4 Answers   Ordain Solutions,


Hi,can anyone tell me How to found the number of 1's and 2's in the given format 1,1,2,2,3,3,4,2 using vbscript Thanks in advance

3 Answers  


How to change the run-time value of a property for an object in QTP?

4 Answers  


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

0 Answers  


Explain about reusable actions?

3 Answers   IBM,






Have you used TD?

2 Answers  


I have a list box which contains duplicate values e.g. A,A,A,B,B,B,C,C,C.Now write a code in qtp to test the list box . Scenario #1 : I have to check whether any values are there? Scenario #2 : If duplicate values are there,then how many time it is getting duplicated? Svenario #3 : how can I test presence of items in list box ommiting duplicate values?

6 Answers   NIIT,


How to swap two numbers by using parameter passing method byref in a fucntion and return the result to outside of the function?

1 Answers   CTS, IBM, London,


get the order no from the following orderdetails orderstring="ORD13456PNR" eg:13456

10 Answers   Oracle,


hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com

0 Answers  


How to Save your test using QTP?

1 Answers  


How to create frame work for qtp?

1 Answers   Bank Of America, Polaris,


Categories