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.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the quicktest professional (qtp) testing process?

559


how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods

1375


In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.

1521


How you create new action in qtp?

556


What is the parameterization?

570






Hi, can explain the draw back of manual testing.plz send me the answer to my mail id deepthip1985@gmail.com

1405


What are the different attribute used with regular expression?

527


What is difference between Recording time object identification and Run time (Execution) time.

996


i can done the project with QTP in that time i can say how many members in my team size?

1360


if anyone has idea of the interview procedure in covansys, plz send me a mail?

1519


How to find the length of the string in qtp?

573


In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer

1929


How do client side image and server side image work?

1378


Hello everyone! I am just writing a small test for a windows application. I have a problem with a text output value. The value i am trying to catch is presented in a scrollable textbox. When the text is too long, only a portion of it gets captured. Do you have any experience with this?

2134


What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????

1711