Recent Post

QTP - Test / Action Template

QTP - Test / Action Template

If you need any default Template to be loaded whenever you create a new test script;
Just do the below  steps.

·         Design the template with all the statements and comments using a text file / text editor.
·         Save the text file as "ActionTemplate.mst" to the "QuickTest Installation folder" under \dat folder.  
·         Start QTP and see that the template that you have created is activated and appeared as default QTP Action Template.
·         Whenever you create new tests/actions, you can find that this template by default loaded.

Example:  
'*********************************************************
' @ (C) COPYRIGHT Automation
' @ ALL RIGHTS RESERVED
'   This software contains information which represents
'   trade secrets of Automation and may not be copied
'   or disclosed to others except as provided in the license with Automation

' @ Script Name      :           Script Name 
' @ Author           :           Author Name
' @ Overview         :           General purpose of functions used for
'***********************************************************************
'@ Creation or Modification Log: 
'@ Date               By           Notes                                    
' ---------        --------     ---------
'  Date             Author      Created
'***********************************************************************
'@ Notes          :     If there are any 
'@ Assumptions    :     If there are any
'**********************************************************************
'**********************************************************************
' @    Declaration  and Definitions:
‘ @    Variables  or any
'**********************************************************************

Example: 

'This file includes following functions
'General Reporter  
'------------------------------------------------------------------------
'@ DESCRIPTION  : Opening a new instance of IE browser with the specified URL
'@ Input parameter    : URL (Application Invocation path)
'@ Output parameter   : none
'@ Author             : G A Reddy
'@ SCOPE & PURPOSE    : GLOBAL - GENERAL
'------------------------------------------------------------------------

0 comments:

Post a Comment

GAReddy @ OneTestingCenter @ All Articles