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 use of Debug Viewer?
In what occasion we can specify global sheet and action sheet?
What is recovery scenario in qtp?
What is the parameterization?
can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com
How the exception handling can be done using quicktest professional?
How are actions and functions different in QTP?
Explain different recording modes?
What is an object repository?
How can I check if a environment variable exist or not?
How can i check items sorted or not in a weblist ? Give me the script for this...
what are all the fileds present in object repository?
How you can make an action as re-usable action?
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?
Which advantages helping QTP to hold the position of "Market Leader" for such a long period?