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.

Answers were Sorted based on User's Feedback



when i was doing the Flight reservation with QTP calculating the tickets i got Type mismatch: '..

Answer / daly s

Try out this,it will definitely work
If csng(tot)=p*t

Is This Answer Correct ?    3 Yes 1 No

when i was doing the Flight reservation with QTP calculating the tickets i got Type mismatch: '..

Answer / satya

Hi, thanks for your answerers. I tried what you suggested.
Still I did not get the Answer, I am getting same error.
My operating system is Vista.
Could you please anyone give me suggestion where is the problem?
thanks

Is This Answer Correct ?    1 Yes 0 No

when i was doing the Flight reservation with QTP calculating the tickets i got Type mismatch: '..

Answer / ravi

Try this

if cdbl(tot) = cdbl(p) * cint(t) then

Is This Answer Correct ?    0 Yes 1 No

when i was doing the Flight reservation with QTP calculating the tickets i got Type mismatch: '..

Answer / 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

when i was doing the Flight reservation with QTP calculating the tickets i got Type mismatch: '..

Answer / jyostna

QTP 9.2 supports windows XP and IE 7 ... i guess the above error is that u r using vista....
pls correct me if am wrong

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More QTP Interview Questions

What is the difference between Keyword Driven test and Data Driven test?

0 Answers  


For example one window is there the window contain some of Check boxes but my question is how many check boxes are there particular window? Please solve the problem gi_raju@rediffmail.com ippaliraju@yahoo.co.in

3 Answers  


How we will execute(run) the scripts in qtp 8.2?

1 Answers  


WHat is Object Identification and Object Spy?

2 Answers   IBM,


HI ALL, HOW WE INSTALL .NET ADD-IN OR JAVA ADD-IN TO THE QTP? PLZ URGENT.ANSWER ME.

2 Answers  






How do u write script in qtp? where do u write?

2 Answers  


We have 10 rows of records in data table, but we have to run 4th, 5th and 6th rows only. How can we handle this scenario in QTP?

5 Answers   Accenture, Banca Sella, Polaris,


What is active screen?

0 Answers  


If the web applicatoin takes navigation time above 2 hours to dispaly next Web page then how can we synchronize the QTP with Appilication Under Test

4 Answers   TCS,


Did you use flatfiles in your projects?At what situation you used it?How can you upload flatfiles?

1 Answers  


What is the difference between Call to Action and Copy Action.?

2 Answers  


How will you handle the situation when object is not captured during record?

12 Answers   AZTEC,


Categories