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...

I AM NEW IN QTP,PLZ TELL ME ANY BOOKS FOR QTP,
MY COMPANY IS QTP,SO I LEARN QTP,PLZ ANYBUDY HELP ME

Answer Posted / eric mathiesen

The first thing you need to do is write up a storyboard. I
typically use MS-Visio to diagram out the application under
test. Once that's done, consider each element in your
storyboard a sub. Start simple and expand.
For example:
sub LaunchBrowser()
SystemUtil.Run"iexplore","http://192.168.1.1/path","c:\documents
and settings\administrator",""
if browser("internet explorer").page("path").exist then
reporter.reportevent micpass,"step","The browser launched"
else
reporter.reportevent micfail,"step","The browser did not launch"
endsub
sub nav2page()
Browser("Internet Explorer
Enhanced").Page("path").Link("Link").Click
if browser("internet explorer").page("link").exist then
reporter.reportevent micpass,"step","The browser navigated"
else
reporter.reportevent micfail,"step","the browser did not
navigate"
endsub
'actual storyboard starts here
LaunchBrowser
Nav2Page

By doing your test this way, you can reuse subs over and
over and new testers can easily change the path they follow
by just changing the storyboard instead of the actual code &
logic you have spent so much time on.

Hope this Helps,
Eric

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of Debug Viewer?

1894


In what occasion we can specify global sheet and action sheet?

981


What is recovery scenario in qtp?

955


What is the parameterization?

988


can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com

2169


How the exception handling can be done using quicktest professional?

954


How are actions and functions different in QTP?

1018


Explain different recording modes?

973


What is an object repository?

1001


How can I check if a environment variable exist or not?

985


How can i check items sorted or not in a weblist ? Give me the script for this...

1986


what are all the fileds present in object repository?

1988


How you can make an action as re-usable action?

1070


how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?

1693


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

1784