O'Reilly logo

Agile Automation and Unified Funtional Testing by Rajeev Gupta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 (innertext Name)
WebRadioGroup ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required