Vous êtes sur la page 1sur 22

Quick Test Professional Part -1

Shanker Prasad M

1
Introduction to Automation Testing
• What is Automation Testing ?
Benefits

  2
Introduction to Quick Test Process
• Quick Test testing process consists of 7 main phases
• Preparing to record
Test Environment
Test Conditions
• Recording a session on your application
Navigate according to Test Conditions
• Enhancing your test
Adding logic and conditional statements
Parameterization
Inserting checkpoints
• Debugging your test
Check that it operates smoothly and without interruption.
  3
QTP Testing Process

• Run Test
Check the behavior of your application

• Analyzing the test results

• Reporting defects

  4
QTP Layered Architecture
Logical name

Layer1

Physical Description

Layer2

Application

Layer3

  5
QTP High-level features
• Object Spy
• Object Repository
• Tree View
• Expert View
• Active Screen Technology
• Data Tables (Global, Local)
• Object Identification
• Recovery
• Various Add ins

  6
Object Spy

• It is used to view object properties


and Methods

• Displays
Object hierarchy tree

Run-time object methods

or test object methods

  7
Object Repository
Interface between QTP Script and the Application
Contains Logical Name and physical Description
Locate
object in
repository Find data-dependant
property

• Parameteri
• property’s
• value
  8
Active Screen, Tree View, Expert
View, Data Tables

  9
Tree and Expert View Relation
• Test Objects hierarchy can be seen in both
the TreeView and the Expert View

  10
Object Identification

  11
Add ins
Default Add ins
ActiveX
Multimedia
Visual Basic
Web

Available Add ins


Java
.Net
etc..

  12
Recording Modes

• Normal recording

Records the objects in your application and the operations performed on them. This mode is the default and takes full

advantage of Quick Test’s test object model.

Analog Recording

Record the exact mouse and keyboard operations you perform in relation to either the screen or the application window.

Low-Level Recording

Record on any object in your application, whether or not Quick Test recognizes the specific object or the specific operation.

  13
Record and Playback

• Advantages
• Useful in determining how the QTP interacts with
the application under test.
• Provides initial ideas on how to develop test
scripts.
• Useful while ‘Playing around’ with the tool

• Disadvantages
• Test scripts contains hard-coded values.
  14
Enhancing Tests
1. Parameterizing Tests
2. Creating Output Values
3. Creating Checkpoints
4. Regular Expressions
5. Dividing Tests into Multiple Actions
6. Inserting Transactions.
7. Calling External Libraries.

  15
Parameterizing Tests
Steps for Parameterization
2. Defining a Data Table Parameter
3. Adding Parameter Values to a Data Table
4. Modifying Steps Affected by Parameterization
5. Running and Analyzing a Parameterized Test

Demo………………..

  16
Demo…………..

• How to provide the data to the respective


Parameter through Tree View

  17
Demo…………..
How to provide the data to the respective Parameter
through Expert View

  18
Results
• After running a test, we can view a report of major events
that occurred during the test run.
• The Test Results window contains a description of the
steps performed during the test run.
• If the test contains Data Table parameters, and the test
settings it shows on Test Results window.
• Results are grouped by the actions in the test.

  19
Results
Reporter.ReportEvent micPass,"Step Name", "Log in successfully"

Reporter.ReportEvent micFail,"Step Name", "Log in Failed"

Reporter.ReportEvent micWarning,"Step Name", "Log in pending"

Reporter.ReportEvent micDone,"Step Name", "Log in pending"

  20
Virtual Objects
• QTP teaches to recognize a bitmap area as a standard
object except edit.

  21
Q&A

  22

Vous aimerez peut-être aussi