Friday 8 June 2012

Variables Naming Convention in QTP Scripting


Variables Naming Convention in QTP Scripting:

Variables represent values that can be changed within a procedure or function. Local scope variables are placeholders that reside within a function- or a script-body.

Prefixes for Variable Data Types

Data Type
Prefix
Boolean
bln
Date
dt
Variant
v
Integer
int
Object
obj
String
str
Arrays
arr

 The values of global variables can be used and changed all over the project within all scripts and libraries.

Syntax: "g" + [Prefix]+[ShortDescription] 

Eg: gstrName

No comments:

Post a Comment