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

how to pass parameters from one action to another using output parameters I am not calling action 2 from action 1, they are being called individually I need syntax please .. Requirement: Action 1 customer = Browser(" ").Page(" ").Link(" ").GetROProperty("value") I want to use the value stored in customer in Action 2 I do not want to use any of these actions as re-usable actions

2 Answers  


Hi any body can tell me the synchranization point syntax thanks in advance

6 Answers   AppLabs,


How do you test the different ads displayed in the Inbox home page of Yahoo. Once u login Yahoo mail, in inbox page there will a banner, where different ads are scrolling, how do you test that using qtp?

2 Answers  


what is the Descriptive Progarmming? how it is help to testers in QTP?

4 Answers   TCS,


Explain the types of object repositorys in qtp?

0 Answers  






How to Import data from a ".xls" file to Data table during Runtime.

1 Answers  


What is AUT in object reposity in QTP? Why we use it in Object repository???What is full form???????

6 Answers  


Hi, one script having 10 Actions,but i want to execute only 3rd action and 7th action? how to execute selected actions? throgh script and through navigation?

2 Answers   IBM,


How to Compare the 2 xl-sheets in QTP? ple write the vb Script for the comparison?

1 Answers  


Explain quicktest professional (qtp) testing process?

0 Answers  


how u track bugs using Test director in manual testing.

2 Answers   Accenture, FCG,


What is the difference between low level recording and virtual object.

2 Answers   Tech Mahindra,


Categories