Wednesday, April 22, 2009

NameSpace Convention

Notation to Be Used For Automation Object
Checkbox = chk
Dialog Box = db
Display = displ
Icon = icLabel = lbl
Links = link
List Box = lb
List View = lv
Logo = logo
Menu = mMenu
Item = mi
Message Box = mb
Popup List = poplst
Push Button = pb
Radio Button = rb
Scroll Bar = sb
Static Text = stxt
Status Bar = stbr
Tab = tab
Table = tbl
Text Box = txt
Tool Bar = tb
Tree View = tv
Header = hdr
Panel = pan
Status Window = stwin
Splitter = sp
Container = ctn
Navigation bar = nb
Grid = grd
Combo box = cbx
Window = win

Test Scripts
The test scripts name
Must consist of alphabets, numbers and ‘_’.
Must start with an upper case letter.
If more than one word is used, the starting of every word must be in Upper case.
(Eg: Test_Script)
Name of the script must be in the format – Application/Test group, Feature/Action Number (XYZ_01).

VBS Files
A VBScript file name must consist of alphabets.
Name should preferably be in the format Project_Module_Function
Functions
Must consist of alphabets.
Must start with ‘func’.
Name must stand for the functionality of the function.
If more than one word is used, the starting of every word should be in capitals.
Numerical are not allowed in the names
Eg: Public function funcOpenWindow (in window_name)
Constants and Variables
Name of a constant must be in upper case letters with underscores in it. Eg: public const OR_PATH_DIR= c:\\mytests\\Action1;
Name of a variable must be of lowercase letters and can contain underscores and digits. Eg: public my_variable_name=”This is my variable”;
· Declare all the variables using DIM.
Object Repository
Object repository file name must consist of alphabets and should be like project_Module_Function.tsr.
If the name of an object or window is ambiguous, then it must be renamed in the format ObjectType_Label. Eg: Button_Done, Window_EngagementSummry, Checkbox_Overage, Radio_Awarded etc.
If more than one word is used, the starting of every word should be in capitals.

Recovery Manager
Name of a Recovery Manager file must be of alphabets and if necessary digits.
The files must be of the format Project_Module_Function_in.qrs.

No comments: