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

Differenece betwen Project and product ? when company need project or product?

4 Answers   Accenture,


how to write xml output check point bu useing descriptive programing .means without useing output check point

0 Answers  


Inserting a Call to Action is not importing all columns in Datatable of globalsheet. Why?

1 Answers   Crea,


I have a string "Redfort is in Delhi" how do u write vbscript for " Delhi in is Redfort"

4 Answers  


How does QTP identifes the object in the application?

1 Answers  






what is the default ordinal identifier.what are the send keys in qTP.

1 Answers  


How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.

0 Answers  


Consider a scenario where there are two action sheets say action 1 and action 2. Can Action 1 take values from action 2 data sheet or vice versa. If so, how?

6 Answers   Oracle, TCS,


suppose i login into gmail page after that i read all the messages (say 10 messages) i have to send (SAVE) the messages in Html,notepad and i have to replay(Compose) send the messages please give me the code and give mail id so that i can clear my question

0 Answers  


iam working in QTP for 2+ of exp if i attend the interview what r questions asked in perfomence testing{loadrunner} ? pls any one can say answer to this question?

0 Answers   Infosys,


How will you set a unique four digit number in an edit field in QTP?

2 Answers   IBM,


what r the drawbacks and limitations of QTP?

2 Answers   NIIT,


Categories