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
Answer / daly s
Try out this,it will definitely work
If csng(tot)=p*t
| Is This Answer Correct ? | 3 Yes | 1 No |
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 |
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 |
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 |
If already everything is tested using White-Box testing, then what is the need of using Black box testing?
Where should we turn Smart Identification ON in QTP?
Explain types of descriptive programming?
what is exact difference between smoke and sanity testing?
what is the abbrivation of .mtr in action reposirtory?
How can i select multiple values from drop down list using vb script in qtp? and wt is the script for clicking msg box box automatically with a specific time. Thanks in advance...Kalyani.
How do u override the meaning of a standard object in QTP?
what is output value in QTP and how it can be used in automation testing
does automation replace manual testing?
I have 1 to 10 action are there, i want action1 output becomes to action 10 input? pls any can give script for this scenario?
How can you find Local Host Name by Using QTP?
What is the extension of script and object repositary files?