Pages

Blogger Themes

QTP - Test / Action Template

"
Test / Action Template

If you need any default Template to be loaded whenever you create a new test script, just do these steps.
  1. Design the template with all the statements and comments in a text file / text editor.
  2. Save the text file as "ActionTemplate.mst" to the "QuickTest Installation folder" under \dat folder.  
  3. Start QTP and see that the template that you have created is activated and appeared as default QTP Action Template.
  4. 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

' Library Name:
' Author:                              < Author Name>
' Overview: General purpose of functions used for
'***********************************************************************
' Modification Log: 

 '    Date                     By              Notes                                       
'   ---------            --------       ---------
'      Date             Author      Created


'***********************************************************************
 ' Notes None

' Assumptions:
'**********************************************************************
'**********************************************************************
' Declaration Definitions:

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 & DOC        : < Date >
'SCOPE & PURPOSE     : GLOBAL - GENERAL
'----------------------------------------------------------------------------------------------------------

"
Test / Action Template

If you need any default Template to be loaded whenever you create a new test script, just do these steps.
  1. Design the template with all the statements and comments in a text file / text editor.
  2. Save the text file as "ActionTemplate.mst" to the "QuickTest Installation folder" under \dat folder.  
  3. Start QTP and see that the template that you have created is activated and appeared as default QTP Action Template.
  4. 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

' Library Name:
' Author:                              < Author Name>
' Overview: General purpose of functions used for
'***********************************************************************
' Modification Log: 

 '    Date                     By              Notes                                       
'   ---------            --------       ---------
'      Date             Author      Created


'***********************************************************************
 ' Notes None

' Assumptions:
'**********************************************************************
'**********************************************************************
' Declaration Definitions:

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 & DOC        : < Date >
'SCOPE & PURPOSE     : GLOBAL - GENERAL
'----------------------------------------------------------------------------------------------------------

0 comments:

Post a Comment

Sunday

QTP - Test / Action Template

Test / Action Template

If you need any default Template to be loaded whenever you create a new test script, just do these steps.
  1. Design the template with all the statements and comments in a text file / text editor.
  2. Save the text file as "ActionTemplate.mst" to the "QuickTest Installation folder" under \dat folder.  
  3. Start QTP and see that the template that you have created is activated and appeared as default QTP Action Template.
  4. 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

' Library Name:
' Author:                              < Author Name>
' Overview: General purpose of functions used for
'***********************************************************************
' Modification Log: 

 '    Date                     By              Notes                                       
'   ---------            --------       ---------
'      Date             Author      Created


'***********************************************************************
 ' Notes None

' Assumptions:
'**********************************************************************
'**********************************************************************
' Declaration Definitions:

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 & DOC        : < Date >
'SCOPE & PURPOSE     : GLOBAL - GENERAL
'----------------------------------------------------------------------------------------------------------

No comments:

Post a Comment