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 |
What type of framework you are using in your company and explain it?
what is the extension of new local object repository?
What is the use of "Define new test object" in QTP 9.1 When should we use? Explain?
Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.
how we do database testing with qtp using descriptive programming?
22 Answers Nutrins, Rohit Technologies, Symphony, Syntel, TCS,
write a VBscript code to parametrize test script using test data from sqlserver database?
How do know the number of browsers opened?
QTP in mumbai
i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.
How does QTP identifies the object in the application?
How to handle "Java Runtime error" popup window in the web application ? Sometimes the application throws the error repeatedly... Is there any browser setting available to disable the error ?
This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?