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).Operation

Keyword 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.

  • The item on which you want to perform the step is listed in the Item Column. The hierarchy of the GUI item on which the operation is done is displayed in this column using icons.
  • The operation to be performed on the object is listed in the Operation Column.
  • The Value Column includes the argument values for the selected operation, while the Documentation Column describes each step for simple understanding.
  • These four columns are the defaults, however, assignment and comment columns can also be used in Keyword View.


Discussion

No Comment Found