when i was doing the Flight reservation with QTP
calculating the tickets i got Type mismatch: '[string: ""]'
in "If cdbl(tot)=cdbl(p)*t Then" error. where I am doing the
mistake
Could you please tell me.
Answer Posted / e.srinivasrao
t=for tickets value storage(from get visable text function)
p=for price value storage(from get visable text function)
p=mid(p,2,len(p)-1)
p=cdbl(p)
tot=for total value storage(from get visable text function)
tot=mid(tot,2,len(tot)-1)
tot=cdbl(tot)
if tot=t*p then
reporter.reportevent 0,"s1","calculation pass"
else
reporter.reportevent 0,"s1","calculation fail"
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
i'm testing the webpage with QTP, in this wabpage i have to choose the CV from the window, but QTP can't recognize the object, so i used the Low LEvel Recording, but every time i run the test, QTP go to halt when it gets to the Recorded part, any solution for that?( except puting delay in the script and manuall selecting, because i've did that)
Explain qtp(quick test professional)?
How to capture a window in QTP?
What is the qtp testing process?
How to add object to object repository in qtp9.0 Suppose for brower yahoo home page
How to test background color and dynamic images during run time can you put the check point for moving objects?
Explain how Selenium is different from UFT?
how interviews will be on QTP?
How to test the login page in different ways in automation testing and i need code?
Explain in brief about the qtp automation object model (aom).
What is keyword view?
How many types of actions are there in quicktest professional (qtp)?
Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)
How can I import environment from a file on disk?
If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?