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 do you to script when objects are removed from application?

0 Answers  


what is difference between calling a function and reusing an action?

1 Answers  


whenever U using QTP,Test Director, Why we using separate Bug tracking tool?

0 Answers  


can u expect, major bugs in NET BANKING Project? Modules Transaction Module, Customer Relation Module.

2 Answers  


In ordinal identifier there r 3 options available. Which one will be enabled first when ordinal identifier is invoked.

3 Answers   Cap Gemini,






Where should i find checkpoint and virtual objects's Object properties and values in the QTP 9.2 Means where checkpoints or virtual objects related data will store If i want to get the runtime object properties how can i use Getroproperties on Checkpoints

0 Answers  


can anyone please tell me what are all the shortcut keys used for qtp9.2? Thanks in advance..i expect ur valuable reply that help us our team???

1 Answers  


what is Smart identification

1 Answers   Wipro,


how to automate standalone infopath forms using QTP? (it is not a dotnet or a web form)

1 Answers   ABC,


what are the qtp tester responsibilities?

3 Answers  


what area in a web application cannot be automated.

1 Answers  


How many types of Parameters are available in QTP? and Pls Explain with example.

4 Answers   LG Soft,


Categories