Object Recognition is very important thing in any GUI testing tool. Silktest also having set of formats and limitations to identify the objects.
MicroFocus/Borland used to publish "Rules for Object Recognition" document for each silktest release. It is available at techpubs-Rules for Object Recognition
Rules for Object Recognition
Caption - Restricted to 127 characters
WindowID - Restricted to 63 characters
Closest Static Text or Attached Text
4Test Produces – Window Declaration Identifier, Single Tag or Multitag
Agent Produces – Index, Prior Text, Location
Extension Produces – WindowID, Caption
We can manage the automation suite properly for minor application changes by making proper tags. I have given few tips to control the UI changes in the application.
Window declarations Level
1. Object caption change. Use multiple tags
2. Object level change. Assume that UserName text field is under a HtmlTable. Now you set a window variable to have same object level.
3. Same set of objects are in multiple pages. Create a class.
4. Use Variables for page title changes.
Functions Level
1. Navigations. For example, clicking a link, clicking a button.
2. Micro functions. Split to small functions as you have to change in only one place.
3. Use some wrapper functions for all classes. For example, an object is a htmlcheckbox and now it is changed to radio button.
Tuesday, April 27, 2010
Rules for Object Recognition
Labels:
automation,
silktest,
Tips
Subscribe to:
Post Comments (Atom)
4 comments:
Interesting!!!
Can u get 10 / 10 in this Testing game?Try
Easy learning
can you tell me one example of wrapper class as you mentioned in Htmlcheckbox to radio button.
-kumar
A nice post on Software Testing. I found another blog with lots of information on Software
Testing. Here is the link.
http://www.ajoysingha.info/
Amazing post. I was really looking for this information and found your blog. Thanks for sharing it. Keep up the good work. Software Testing Services
Post a Comment