QTP Open Source Test Automation Framework Implementation Guide



Similar documents
QTP - Open Source Test Automation Framework Quick Start Guide

QTP Open Source Test Automation Framework Introduction

Selenium Open Source Test Automation Framework FAQ

Open2Test Test Automation Framework for SilkTest - Introduction

Test Creation in QuickTest Professional

Functional and LoadTest Strategies

Basics of Automation and Overview of QTP. By, Anver Sathic Abdul Subhan

How-To: Submitting PDF forms to SharePoint from custom websites

DATA 301 Introduction to Data Analytics Microsoft Excel VBA. Dr. Ramon Lawrence University of British Columbia Okanagan

DiskBoss. File & Disk Manager. Version 2.0. Dec Flexense Ltd. info@flexense.com. File Integrity Monitor

Rational Reporting. Module 3: IBM Rational Insight and IBM Cognos Data Manager

Config Guide. Gimmal Smart Tiles (SharePoint-Hosted) Software Release 4.4.0

Administrator s Plus. Backup Process. A Get Started Guide

SHIPSTATION / MIVA MERCHANT SETUP GUIDE

Microsoft SharePoint Products & Technologies

Microsoft Office System Tip Sheet

DATA RECOVERY SOLUTIONS EXPERT DATA RECOVERY SOLUTIONS FOR ALL DATA LOSS SCENARIOS.

Newsletter Sign Up Form to Database Tutorial

SELF SERVICE RESET PASSWORD MANAGEMENT CREATING CUSTOM REPORTS GUIDE

SOFTWARE TESTING TRAINING COURSES CONTENTS

CDOT Linking Excel Documents to MicroStation

How To Load Data Into An Org Database Cloud Service - Multitenant Edition

Attachments Internet Explorer

User Installation Guide

Optimizing object definitions functions

Polar Help Desk 4.1. User s Guide

Excel To Component Interface Utility

Microsoft SharePoint Products & Technologies

Avaya Network Configuration Manager User Guide

Configuring Data Masking

January 23, 2010 McAfee SaaS Continuity User Guide

EMC Documentum Composer

HP Enterprise Integration module for SAP applications

Embedded Document Accounting Solution (edas) for Cost Recovery. Administrator's Guide

Universal Management Service 2015

HP Online ROM Flash. User Guide

ALM120 Application Lifecycle Management 11.5 Essentials

HELP DOCUMENTATION E-SSOM BACKUP AND RESTORE GUIDE

Word 2010: Mail Merge to with Attachments

LPR for Windows 95 TCP/IP Printing User s Guide

QTP TUTORIAL. Simply Easy Learning by tutorialspoint.com. tutorialspoint.com

Technical Notes. EMC NetWorker Performing Backup and Recovery of SharePoint Server by using NetWorker Module for Microsoft SQL VDI Solution

Oracle FLEXCUBE Direct Banking Release Corporate Foreign Exchange User Manual. Part No. E

LANDesk Management Suite 8, v8.1 Creating Custom Vulnerabilities

Form Builder - User Guide

Automate G/L Consolidation User Guide

HP Quality Center. Software Version: Microsoft Word Add-in Guide

Exploring Organizational Security and Auditing

Deploying the Workspace Application for Microsoft SharePoint Online

TEPZZ 6_Z76 A_T EP A1 (19) (11) EP A1 (12) EUROPEAN PATENT APPLICATION. (51) Int Cl.:

Collaborate on documents

Testhouse Training Portfolio

Snagit 10. Snagit Add-Ins. By TechSmith Corporation

Microsoft Dynamics NAV Connector. User Guide

Pulse Redundancy. User Guide

Novell ZENworks 10 Configuration Management SP3

Deploying Microsoft Operations Manager with the BIG-IP system and icontrol

Batch Scanning. 70 Royal Little Drive. Providence, RI Copyright Ingenix. All rights reserved.

Integrating CoroSoft Datacenter Automation Suite with F5 Networks BIG-IP

Save and share files in the cloud by using

Tips and Tricks SAGE ACCPAC INTELLIGENCE

HP Application Lifecycle Management

Save and share files in the cloud by using OneDrive for Business

Migrating to Azure SQL Database

Document Digital Signature

Printer Driver Installation Manual

RightFax FaxUtil. Quick reference guide to getting started. Note: This document applies to OpenText RightFax version 10.0

User Guidance. CimTrak Integrity & Compliance Suite

Using a Remote SQL Server Best Practices

DeviceAnywhere Automation for Smartphones Setup Guide Windows Mobile

Introduction to XML Applications

This procedure is used by the Staff Member to certify their monthly time statement.

The Application Getting Started Screen is display when the Recruiting Matrix 2008 Application is Started.

ACE: Dreamweaver CC Exam Guide

SOLARWINDS ORION. Patch Manager Evaluation Guide for ConfigMgr 2012

INTEGRATING MICROSOFT DYNAMICS CRM WITH SIMEGO DS3

ios Deployment Simplified FileMaker How To Guide

How to Create a Delegated Administrator User Role / To create a Delegated Administrator user role Page 1

Novell Identity Manager

1. Starting the management of a subscribers list with emill

Viewpoint. Choosing the right automation tool and framework is critical to project success. - Harsh Bajaj, Technical Test Lead ECSIVS, Infosys

Technical White Paper. Altiris Deployment Solution 6.5. Integration in vpms 2006 R2

How To Set Up A Local Printer On A Remote Computer With A Local Computer (Or Remote) On A Local Network (Or A Remote) With A Printer On Your Local Computer On A Pc Or Ipod) On Your Pc Or Mac Or Ip

Sample- for evaluation only. Advanced Excel. TeachUcomp, Inc. A Presentation of TeachUcomp Incorporated. Copyright TeachUcomp, Inc.

Save and Share Files in the Cloud with OneDrive for Business

AutoMerge for MS CRM 3

What is Microsoft Excel?

Chapter 20: Workflow

Metadata Quality Control for Content Migration: The Metadata Migration Project at the University of Houston Libraries

Getting started with DfuSe USB device firmware upgrade STMicroelectronics extension

Citrix EdgeSight for Load Testing User s Guide. Citrix EdgeSight for Load Testing 3.8

Citrix XenServer Workload Balancing Quick Start. Published February Edition

Software Package Document exchange (SPDX ) Tools. Version 1.2. Copyright The Linux Foundation. All other rights are expressly reserved.

Using RSMACC version control system with AB Industrial programming Controllers and files.

Amerigroup Website User Guide for Providers: Provider Updates page 1

Transcription:

QTP Open Source Test Automation Framework Version 1.1 May 2009 DISCLAIMER Verbatim copying and distribution of this entire article are permitted worldwide, without royalty, in any medium, provided this notice is preserved.

Table of Contents TABLE OF CONTENTS 1. PURPOSE OF THE DOCUMENT... 3 2. FRAMEWORK IMPLEMENTATION IN QTP... 4 2.1. Test Settings for Keyword-driven Scripting... 4 2.1.1. Run Settings... 5 2.1.2. Resources Settings... 6 2.1.3. Environment Tab Settings... 7 2.2. Managing Object Repository... 8 2.3. Call to Framework... 9 2.4. Usage of Keywords... 10 2.5. Test Results for a Keyword-driven Script... 11 3. REFERENCES... 12 Open2Test.org Page ii

1. Purpose of the Document This document provides an overview of the prerequisites and settings required to implement the Keyword-driven Framework in HP QuickTest Professional (QTP). Open2Test.org Page 3

2. Framework Implementation in QTP The Keyword-driven Framework is an application independent framework that performs all possible actions and verifications on an object. Hence, the code for the same object can be used across different applications. 2.1. Test Settings for Keyword-driven Scripting In the keyword-driven approach the entire script is developed with keywords. The script is developed in a spreadsheet that is interpreted by the main driver script, which then uses the function library to execute the complete script. The QTP Settings.vbs file can be used to easily perform the test settings that are needed before proceeding with the Keyword-driven Scripting. This file associates the Function libraries, recovery scenarios, Environment Variables and the Object Repository files that are needed for a script. The QTP Settings file needs to be customized before usage. Edit the.vbs file in notepad and make the necessary changes (mentioned below) in the Input Data section of the file. 1. Function Libraries Specify the path where the Framework Files, Common Functions and the User Defined Functions are stored. 2. Recovery Scenario File - Specify the path of the file where the Recovery scenarios are placed. 3. Recovery Scenarios Name - Specify the names of the Recovery scenarios that need to be associated to the test script. 4. Environment File - Specify the path of the xml file for the Global Environment Variables. 5. Object Repository files - Specify the path of the Object Repository. Open the test script in QTP for which the settings are needed and double click on the QTP Settings.vbs file. This file will perform the preferred settings automatically. If there are multiple items of libraries, object repositories or global variables file, they can be specified as an array separated by, Set the Flag envi_flag, recover_flag, repos_flag, library_flag to "Yes" if the corresponding files need to be associated to test, Else set it to "no" Open2Test.org Page 4

Given below is a sample QTP Settings. libraries= array ("C:\WebFramework.vbs","C:\common functions.vbs") recovery_file= "C:\recover.qrs" recovery_name=array("scenario1","scenario2") environment_file= "C:\Environment.xml" repository_name= array ("C:\repository1.tsr","C:\repository2.tsr") 'NOTE: Please set the Flag to "Yes" if the files are to be associated to test, otherwise set it to "no" envi_flag="yes" recover_flag=" yes" repos_flag=" yes" library_flag=" yes" There should be just one Recovery file which holds all the Recovery scenarios. Multiple Recovery files cannot be used. There should be no unsaved tests currently open in QTP. The test script for which the test settings need to be done should be open in QTP. 2.1.1. Run Settings In the Run tab of the Test Settings dialog, 1. The Run one iteration only radio button will be selected. 2. The Disable Smart Identification during the run session check box will be checked. 3. The Object Synchronization timeout value will be set as 20 seconds. Open2Test.org Page 5

Figure 1: Run Settings 2.1.2. Resources Settings After the run settings are completed, the QTP Settings file associates the framework with the test script. Here, the path and the names of the framework files need to be specified in the QTP Settings file. The framework will be taken from the location specified and associated with the test as shown below. Figure 2: Associating Framework File NOTE: The Common functions file and the User defined functions file should be associated with the test only if needed by the test script. Open2Test.org Page 6

2.1.3. Environment Tab Settings QTP can insert a value from the environment variable list, which is a list of variables and corresponding values that can be accessed from the test. Throughout the test run, the value of an environment variable remains the same, regardless of the number of iterations, unless the value of the variable is changed programmatically in the script. Associating the user-defined Environment Variables file with the test is also handled by the QTP Settings file. The Environment Variables file with an.xml file type will be taken from the path specified in the QTP Settings file and associated with the test. Figure 3: Loading Environment Variables from xml File Open2Test.org Page 7

2.2. Managing Object Repository After the test settings are completed, the QTP Settings file continues to associate the specified shared object repositories with the test. The objects from the shared repository will be uploaded and made available for the tests. Figure 4: Associate Repositories Dialog Open2Test.org Page 8

2.3. Call to Framework The call to Keyword_Driver() needs to be specified in the Expert View as shown below. This will call the Framework file associated with the test and perform the actions by interpreting the keywords specified in the data table. Figure 5: Call to Framework Open2Test.org Page 9

2.4. Usage of Keywords The keywords should be entered in the global sheet of the data table of the test according to the syntax. To access the data table, choose View > Data Table or click on the example of Keyword-driven Scripting. toolbar button. Below is an Figure 6: Using the keyword in a Data Table Open2Test.org Page 10

2.5. Test Results for a Keyword-driven Script Test execution results can be viewed and analyzed as soon as the run session ends. To access the test results, choose Automation > Results or click on the displayed. toolbar button. The results window will be Figure 7: Results in QTP Open2Test.org Page 11

3. References HP QuickTest Professional Help documentation C O P Y R I G H T This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. Open2Test.org Page 12