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 are the views available in quicktest professional (qtp)?

575


What is the XML file architecture ?

1555


What is parameter in qtp?

680


How you can replace string in qtp?

572


What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?

703






what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?

1554


What is expert view and keyword view?

625


tell me abt a time when u had to go above &beyind the call of duty to get the job done

1443


How we can use the database checkpoint on a java web based application in which the database connectivity is done using JDBC->Pure Java type (in this type there is no need to create a DSN). At present in QTP we can fetch database values using checkpoint only through DSN. Is there any programming for this if we don't have DSN (ODBC)

1855


Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?

605


Dear sir, i want to perform a QTP automated testing for mechancial engineering software like msc adams, msc nastran this softwares will help for mechanical engineering design analysis>> i know oad runner win runner, test director, QTp>> but i dont know how to use for automation

1586


How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks

1546


Can you list some technologies that support qtp?

552


How does qtp identify gui object?

586


Explain in brief about the quicktest professional (qtp) automation object model?

569