Naming Conventions for Object / Locator Repository / Properties File
I guess there is no real need for me to emphasize why is it that we need to make our Object / Locator repository clean.
Whatever you call the OR:
#-----------------------------------------------------------------
Whatever you call the OR:
- Object map
- Simple Properties file
- Object Repository
- Name Mapping file
- Or any other file that stores your objects
The reason you want them to be clean:
- Vastly reduce the amount of time needed for script
- Script maintenance in case object properties change
- Sophisticated Object identification and management
- In the context of Selenium WebDriver, there is no out-of-the box solution for Object identification and repository. This furthermore increases the relevance and importance of a good way of managing things.
- In an Agile based project, you can add object place holders so that as development is happening, even automation can begin in parallel.
- Identify objects in the Object Repository that are no longer available in the AUT
- Easy navigation when the size of the Object Repository grows exponentiall
#-----------------------------------------------------------------
#Naming Convention for Objects in OR#-----------------------------------------------------------------
Name your page in this manner:
Project.PageName.Functionality.ObjectType
e.g - GoogleProject.HomePage.SignIn.Link
the objects can be any of these:
# Button
# Calendar
# ComboBox
# CheckBox
# Dialog
# Frame
# Image
# Label
# Link
# Listbox
# MenuHeader
# MenuItem
# ProgressBar
# RadioButton
# Table
# TextBox
# TextArea
# Window
e.g - GoogleProject.HomePage.SignIn.Link
the objects can be any of these:
# Button
# Calendar
# ComboBox
# CheckBox
# Dialog
# Frame
# Image
# Label
# Link
# Listbox
# MenuHeader
# MenuItem
# ProgressBar
# RadioButton
# Table
# TextBox
# TextArea
# Window
Once you know all the objects make sure that you place them in the right bucket:
Some examples:
#Button
HomePage.SignIn.Button=xpath://*[@name='login-submit']
all buttons
#Checkbox
HomePage.RememberMe.CheckBox=xpath://*[@class='input-remember-me']
# Frame
HistoryPage.QueryForm.Frame=xpath:.//iframe[@id='iframePage']
#Label
AccountSummaryPage.Main.Label=xpath://*[@class='money bold Main Wallet r-mainWallet']
#Links
#MenuHeader
#MenuItem
# RadioButton
#Table
#Textbox
#TextArea
Happy Testing!
Hmm is anyone else encountering problems with the pictures on this blog loading?
ReplyDeleteI'm trying to figure out if its a problem on my end or if
it's the blog. Any responses would be greatly appreciated.
my weblog; az dui law
Naming Conventions For Object / Locator Repository / Properties File >>>>> Download Now
ReplyDelete>>>>> Download Full
Naming Conventions For Object / Locator Repository / Properties File >>>>> Download LINK
>>>>> Download Now
Naming Conventions For Object / Locator Repository / Properties File >>>>> Download Full
>>>>> Download LINK Rw