APPENDIX-C
Appendix c—VBScript Naming Conventions

Variable Naming conventions

Variable Type Prefix Example
Array arr arrData
Collection col colButtons
Dictionary dic dicTableData
Boolean b bFound
Date (time) dtm dtmStart
Double dbl dblTolerance
Error err errOrderNum
Numeric n nQuantity
Object o oCurrent
obj objCurrent
String s sFirstName
Global variables g_ g_GlobalVar
Counters/loops iCnt, jCnt, kCnt, iCntr
Functions fn

Naming conventions of objects in OR

Object Type Prefix Example
Browser Google
Frame Frame
Image Submit
Link Name of Object as seen in GUI Billing
Page Google
WebButton Search
WebCheckBox (innertext Name)
WebEdit Standard
WebElement (innertext Name)
WebList

Get Agile Automation and Unified Funtional Testing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.