InterviewSolution
| 1. |
What do you understand about the Expert view and Keyword view in the context of UFT? |
|
Answer» EXPERT view: Each line in the Expert View represents a VB Script Test Step. Consider the code below. Dialog("Login").WinEdit("Site Name:").Set "InterviewBit"Following the Object Type, the name of an object is shown in parenthesis. Login is the object name, and Dialog is the object type. A "dot" separates objects in an Object HIERARCHY. The Object Hierarchy of Dialog and WinEdit is the same in this case. To PUT things in context, Object Hierarchy is an Object Oriented Concept that refers to a collection of items that are linked in a parent-child connection. In our situation, the Parent Object is Dialog Box, and the Child Object is WinEdit. At the end of the statement, the operation done on the object is always printed, followed by any values associated with the operation. Using the Set METHOD, the term "InterviewBit" is placed in the Site Name Edit Box. The GUI object on which the operation is done, along with its WHOLE hierarchy, is the syntax for a statement in expert view, followed by the Operation on the Object and the value associated with that Operation. This is shown as below: ParentObject(Name).ChildObject1(Name)...ChildObjectN(Name).OperationKeyword view: The Keyword View is a table-like view in which each step is represented by a single row in the table and each column by different sections of the steps.
|
|