Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

i'm testing the webpage with QTP, in this wabpage i have to choose the CV from the window, but QTP can't recognize the object, so i used the Low LEvel Recording, but every time i run the test, QTP go to halt when it gets to the Recorded part, any solution for that?( except puting delay in the script and manuall selecting, because i've did that)

2020


Explain qtp(quick test professional)?

1042


How to capture a window in QTP?

1988


What is the qtp testing process?

1051


How to add object to object repository in qtp9.0 Suppose for brower yahoo home page

1851


How to test background color and dynamic images during run time can you put the check point for moving objects?

1931


Explain how Selenium is different from UFT?

1274


how interviews will be on QTP?

1944


How to test the login page in different ways in automation testing and i need code?

1944


Explain in brief about the qtp automation object model (aom).

1006


What is keyword view?

1006


How many types of actions are there in quicktest professional (qtp)?

973


Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)

2112


How can I import environment from a file on disk?

1081


If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?

2028