Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Class 1
These are the interfaces that are available for testing. By their
nature, APIs and command line interfaces are easier to
automate than GUIs. Having the APIs and CLIs increases the
product testability and is encouraged to be included in the
product.
What is GUI Test Automation?
GUI Test automation is the use of software to
control the execution of tests, the comparison of
actual results to expected results, the setting up
of test preconditions, and other test control and
test reporting functions
Preparingto
Preparing to
Recording
Recording
record
record
Reporting
Reporting Enhancing
Enhancing
defects
defects yourtest
your test
Analyzing
Analyzing Debugging
Debugging
the testresults
the test results yourtest
your test
Running
Running
your test
your test
QuickTest Testing Process - Continued
Preparing to record
Before you record a test, confirm that your application and QuickTest are set to match the
needs of your test.
Make sure your application displays elements on which you want to record, such as a toolbar
or a special window pane, for example, and that your application options are set as you
expect for the purposes of your test.
Recording a session on your application
As you navigate through your application or Web site, QuickTest graphically displays each
step you perform as a row in the Keyword View. A step is any user action that causes or
makes a change in your application, such as clicking a link or image, or entering data in a
form.
Enhancing your test
Inserting checkpoints into your test lets you search for a specific value of a page, object, or
text string, which helps you determine whether your application or site is functioning
correctly.
Broadening the scope of your test, by replacing fixed values with parameters, lets you check
how your application performs the same operations with multiple sets of data.
Adding logic and conditional or loop statements enables you to add sophisticated checks to
your test.
Debugging your test
You debug a test to ensure that it operates smoothly and without interruption.
Running your test
You run a test to check the behavior of your application or Web site. While running, QuickTest
opens the application, or connects to the Web site, and performs each step in your test.
Analyzing the test results
You examine the test results to pinpoint defects in your application.
Reporting defects
If you have Quality Center installed, you can report the defects you discover to a database.
Quality Center is the Mercury test management solution.
How Does QTP Automation work?
QuickTest tests your dynamically changing application by learning and identifying test
objects and their expected properties and values and by storing the test objects.
A test object is an object that QuickTest creates in the test to represent the actual object
in your application. QuickTest stores information on the object that will help it identify and
check the object during the run session.
When you perform an operation on your application while recording, QuickTest:
identifies the QuickTest test object class that represents the object on which you
performed the operation and creates the appropriate test object
reads the current value of the object's properties in your application and stores the list
of mandatory and assistive properties and values with the test object
chooses a unique name for the object, generally using the value of one of its
prominent properties
records the operation that you performed on the object using the appropriate
QuickTest test object method
The information about object properties is stored in the Object Repository.
A run-time object is the actual object in your application on which methods are performed
during the run session.
When you run a test, QuickTest identifies each object in your application by its test object
class and its description (the set of test object properties and values used to uniquely
identify the object).
Run F5 Starts a run session from the beginning or from the line at which the session was paused.
Run from Step Ctrl+F5 Starts a run session from the selected step.
Update Run Mode Starts a run session to update test object descriptions and other options (if applicable).
Record and Run Opens the Record and Run Settings dialog box, enabling you to define browser
Settings preferences for recording and running your test.