QTP provides two main views of a script.
1) Keyword View: It is the default test procedure interface of QTP & is most useful for the
beginners. It displays the automation steps of a test procedure as a descriptive tree of
Actions and functions. The tree contains columns listing the Action or function name, any
parameters, and comments.
There are 4 columns- Item, Operation, Value and Documentation. The table can be expanded or collapsed by clicking on the little arrow next to the action name.
Item: Each step is a sequence of events performed on an item. The item can be one of the following:
Test object (e.g.: Agent Name Edit box)
Utility Object: These are some objects reserved by QTP to be used in tests. E.g.: DataTable object. More coming up on this later.
Statement: Any VB Script programmatic statement or even comments
Function call: like ‘msgbox’ call in our program
Operation: It shows the operation that is performed on the item. When this column is clicked for a particular item it lists all the available operations that can be performed on the object.
Value: This column can be considered as the argument of a statement displayed. In our example, the message box function call has a value “Text”. There can be multiple arguments to one statement in which case this column will be divided accordingly.
Documentation: A read only column that translates a statement into easily understandable comments.
2) Expert View: It is most suitable for the advanced users, enabling them to customize the
test, like writing user-defined functions. It is meant for displaying and editing of the source
code of the test. Except for the root Global action, all other test actions can be edited here.
Expert View acts as an IDE for the test. It includes most standard IDE features, such as
breakpoints. The descriptive programming is done in Expert View.
1) Keyword View: It is the default test procedure interface of QTP & is most useful for the
beginners. It displays the automation steps of a test procedure as a descriptive tree of
Actions and functions. The tree contains columns listing the Action or function name, any
parameters, and comments.
There are 4 columns- Item, Operation, Value and Documentation. The table can be expanded or collapsed by clicking on the little arrow next to the action name.
Item: Each step is a sequence of events performed on an item. The item can be one of the following:
Test object (e.g.: Agent Name Edit box)
Utility Object: These are some objects reserved by QTP to be used in tests. E.g.: DataTable object. More coming up on this later.
Statement: Any VB Script programmatic statement or even comments
Function call: like ‘msgbox’ call in our program
Operation: It shows the operation that is performed on the item. When this column is clicked for a particular item it lists all the available operations that can be performed on the object.
Value: This column can be considered as the argument of a statement displayed. In our example, the message box function call has a value “Text”. There can be multiple arguments to one statement in which case this column will be divided accordingly.
Documentation: A read only column that translates a statement into easily understandable comments.
2) Expert View: It is most suitable for the advanced users, enabling them to customize the
test, like writing user-defined functions. It is meant for displaying and editing of the source
code of the test. Except for the root Global action, all other test actions can be edited here.
Expert View acts as an IDE for the test. It includes most standard IDE features, such as
breakpoints. The descriptive programming is done in Expert View.
No comments:
Post a Comment