You are here: Home Automated Testing Tools QTP Some QTP Automation Guidelines

SoftwareQAtestings.com

...Your Hub for Software Testing and Quality Assurance

~ Contact Us ~ Privacy Policy ~ Register ~

Some QTP Automation Guidelines

1.0    Introduction

This document is the Automation Procedures User Guide for QuickTest Professional. The intended audience includes the technical members of the project team and other individuals who may need to understand the Guidelines, Methods, and Naming Conventions used to develop the customized function library.

1.0    Scope and Purpose

The custom functions are for the most part utility or “helper” functions that are used to perform common tasks through out the test suites. E.g. complex calculations, DOS related activities, Terminating processes etc.. These functions are enumerated and described in detail in following sections.
The custom functions will physically reside in one file named Functions.vbs (Version ?). This file is maintained in Clear Case at TBD

2.0    Guidelines, Methods, and Change Control


2.1    Design Guidelines
Custom functions will be developed on an as-needed basis for automated test scripts.  The functions will be developed in accordance with the standards documented in “Scripting and Naming Conventions, version?”
2.2    Technical Reviews
The VBScript custom function library will be reviewed during each validation cycle.  The reviewer(s) will document any changes that need to be made in order to assure completeness, correctness and accuracy in these functions.  The automation engineer will then implement suggested changes in the functions.  The automation function library review documents will be maintained to reflect all the suggested changes as well as the actual changes that were subsequently made
2.3    Change Control Process
Changes to the QuickTest Professional configuration and to custom functions are initiated as a result of changes to the application under test and requests from Test Engineers.  
 

3.0    Functions

Following information will be provided for all Custom functions developed for automated test scripts.

Name of the Function (argument1, argument2)
List the name of the function and arguments.

Syntax
Clear and detail explanation of the arguments passed to the functions.

Example
Provide an example by making a call to the function

OutPut
Clearly state the output / Return value of the function

Notes
List any specific instructions or notes for other users to ease the use of this function

3.1    Example Function
Note: This function does not exist in reality; it is just derived for illustration purposes
CopyFiles (SourceFolder, SourceFile, TargetFolder, TargetFile)
Description:
The Purpose of the function is to copy files from one folder to another folder.
Syntax
CopyFiles (SourceFolder, SourceFile, TargetFolder, TargetFile)
   It takes four arguments.
SourceFolder: Path of the folder to copy files from.
SourceFiles: Name of the file(s) that you want to copy.
     TargetFolder: Path of the folder to copy files to.
TragetFiles: Name of the file (If you want to save as different name)
Example
    CopyFiles (“C:\V&V”, “*.jpg”, “C:\MyFolder\Irfan”, “”)
    CopyFiles (“C:\V&V”, “Functions.vbs”, “C:\MyFolder”, “Rizwan.vbs”)  
    
Output:
 Files requested will be copied to Target Folder.
Notes:
    You can use *.jpg, *.txt or *.* to copy files from Sourcefolder to target folder
    If you specify inaccurate folder path or filename, appropriate message will be displayed.

4.0    Sub Procedures

Following information will be provided for all Sub Procedures developed automated for automated test scripts.

Name of the Sub Procedure
List the name of the Sub Procedure and arguments (If it takes any).

Syntax
Clear and detail explanation of the arguments passed to the functions.

Example
Provide an example by making a call to the Sub Procedure

Notes
List any specific instructions or notes for other users to ease the use of this function