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
i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji
Explain calling sub procedure.
How can you identify the browser and its information using the qtp script?
What are the different recording modes?
what testplan contents and what test strategy contents,what is the diff b/w them
write a script for allinterview-submit Question first we've to select Choose Category,second select Sub- Category(Which is comes in to runtime)third select Question Type.for that give some descriptive and vb script
Hi All, How to get repeated word in string . Thanks Balaji
Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji
What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.
How to replay a script in qtp?
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?
what is the structure for the data driven framework
Should have experience in framework means?
How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?
What is the limitation to XML Checkpoints?