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 syntax to call one script from another?

1094


An object is non standard object, i mapped it to standard object, eventhogh on mapping to standard object i cannot use the methods available on the standard object with the mapped object. How i can use those standard object methods with these mapped object. (((Note : dont tell that we can use virtual object as virtual object is to map nonstandard obj to standard obj)))

2194


write script for bitmap image?

2092


What is a reusable action?

1072


In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!

2981


What are the different types of recording modes in qtp? Which will be used when?

1118


What is the difference between run time object and test object?

1168


How to create Reusable and Multiple Actions?

2243


What are the Disadvantages of shared object repository?

1190


Whether qtp 9.0 supports Test director8.0

2642


How does qtp recognize objects in aut?

1091


Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

2472


how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

2474


Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)

2170


In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?

1144