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

How to use debug tools?

2285


Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link

959


can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?

1705


How do you create regression test packs?

714


How many tabs are available in debug viewer pane?

733






Is it possible to change the values of analog recording?

685


how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up

3917


How do you test DLL files using automation Tool QTP?

2825


Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com

1466


How to remove associated function library?

648


How to create Reusable and Multiple Actions?

1811


Describe synchronization point.

653


Where is the Bitmap checkpoint information stored?

1865


i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet

1862


Tell me about qtp?

613