1.1 Object Model in the Expert View
The Expert View provides an alternative to the Tree View for testers who
are familiar with VBScript. In the Expert View, you can view the recorded test
in VBScript and enhance it with programming.
The Expert View displays the steps you executed while recording your test
in VBScript. After you record your test, you can increase its power and
flexibility by adding recordable and non-recordable VBScript statements. You
can add statements that perform operations on objects or retrieve information
from your site. For example, you can add a step that checks that an object
exists, or you can retrieve the return value of a method.
The objects in Quick Test are divided by environment. Quick Test environments
include standard Windows objects, Visual Basic objects, ActiveX objects, Web
objects, Multimedia objects, as well as objects from other environments
available as external add-ins.
Most objects have corresponding methods. For example, the Back
method is associated with the Browser object.
In the following example, the user enters mercury in the User Name edit box
while recording. The following line is recorded in the Expert View:
Browser ("Mercury_Tours"). Page
("Mercury_Tours"). WebEdit ("username").Set
"mercury"
When running the test, the Set method inserts the mercury text into
the WebEdit object.
In the following example, the user selects Paris from the Departure City
list box while recording. The following line is recorded in the Expert View:
Browser("Mercury Tours").Page("Find
Flights").WebList("depart").Select
"Paris "
When the test runs, the Select method selects Paris in the WebList object.
1.2 Using Quick Test Professional’s online books
Quick Test Professional documentation helps
you take full advantage of he capabilities of this powerful, easy-to-use,
testing tool.
·
Quick Test Professional User’s Guide—provides step-by-step instructions on
how to use Quick Test to test your applications. It describes many useful
features, options, and testing procedures with guidelines and helpful examples.
·
Quick Test Professional Installation Guide—explains how to install Quick
Test Professional.
·
Quick Test Professional Tutorial—teaches you basic Quick Test skills and
shows you how to start testing your applications.
·
Quick Test Professional Object Model Reference—provides access to the Quick
Test Professional VBScript methods, including a description of each object, a
list of the methods associated with each object, description syntax, and an example
of usage for each object and method.
·
Quick Test Professional Shortcut Key Reference Card—provides a list of
commands that you can execute using shortcut keys.
·
Quick Test Professional Automation Object Model Reference
— (available from the Quick Test Professional
Start menu program folder and from the Quick Test Professional Help
menu) provides syntax, descriptive information, and examples for the automation
objects, methods, and properties. It also contains a detailed overview to help
you get started writing Quick Test automation scripts.
No comments:
Post a Comment