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
What is the syntax to call one script from another?
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)))
write script for bitmap image?
What is a reusable action?
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!!!
What are the different types of recording modes in qtp? Which will be used when?
What is the difference between run time object and test object?
How to create Reusable and Multiple Actions?
What are the Disadvantages of shared object repository?
Whether qtp 9.0 supports Test director8.0
How does qtp recognize objects in aut?
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
how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?
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)
In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?