Sunteți pe pagina 1din 8

Per Action vs Shared Repository

Per Action Object Repository

Object

Shared Object Repository


can use the same shared object repository file for multiple tests. If an object description changes, you only have to modify in the shared Object Repository all tests will playback properly. Requires Shared object repository creation and maintenance. Crucial if application may change during renovation Most commonly used across Automation projects.

Separate action repository for each action. If an object description changes, you need to modify the object in every action repository using that object. No need for any Object Repository administrator. Preferred method if application wont change during renovation Default Object Repository. Preferable for novice QTP users.

>>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

Objects
Properties
These are characteristics of the object e.g. the text

on a button. QTP uses this to recognize the object

Methods
These are built in functionality of the object. The

VBScript code that we write (or record) actually makes calls to the methods of an object e.g. Reporter.ReportEvent() Here ReportEvent is the method of the Reporter object

Events
These are what can be done to an object. This is used by

programmers to determine what an object does in response to an action you perform. It is however unused in QTP.

Actions

Actions can divide a test into several distinct business Processes. Each actions signifies a logical independent test. To divide a test into actions you can Insert a New Action Split an existing action into two Actions Insert a copy of an existing Action Insert a call to an existing Action In this way several actions can be integrated to each other within the test or across different tests logically.

>>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

Types of Actions

Reusable Action: Can be reused in the same test multiple times. Can be used in another test Read Only Parameter data can be from a local excel (Editable) original action sheet (Read Only) Nested Action: An action within an action. Helps maintain the modularity of your test Enables to run one action or another based on the results of a conditional statement

>>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

Advantages of QTP over other Functional Easy to use, icon based scripts. Easier for non technical testers to learn. Automation tools

Usage of VBScript language for scripting which is very powerful ,has lots of capabilities and can program even complex functionalities with ease. The active screen technology allows the person writing script to pick-up values that may have been left out during recording. This helps to reduce rework for scripting.

>>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

Advantages of QTP over other Functional Supports .Net, XML and other modern Environments. Automation driven testing is much easier and better tools Test Run Iterations/Data

implemented with QTP. Capturing output values add data driven testing more kick and flexibility. Can create and implement the Microsoft Object Model (Outlook objects, ADO objects, FileSystem objects, supports DOM, WSH, etc.). Provides ability to trap exceptions and handle them using inbuilt functions or user defined ones.

>>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

Test Object Model

This is a large set of object types or classes that Quick Test uses to represent the objects in AUTs Properties Methods A test object is an object that - represents the actual object - stores information about that object.

A run-time object is the actual object in the AUT.

>>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

Run Time Object

Test Object Model


QTP Test Object Modeling

Test Object

Quick Test Professional maps the Run Time Object to a Test Object already present in its repository.

Once recognized it can repeat all our actions.

>>>>>>>>>>>>>>>>>>>>>> www.softwaretestinggenius.com <<<<<<<<<<<<<<<<<<<<<<

S-ar putea să vă placă și