Sunday, February 10, 2013

Views


There are two views in QTP for creating tests, viz.
1.    Keyword View
2.    Expert view

Keyword View:
It’s view which allows you to create tests in modular or table format. Keyword View is QTP’s default test procedure interface. 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, parameters, and comments. This mode is useful for the beginners. This view allows the user to select the objects either from the application or from the Object Repository and the user can select the methods to be performed on those objects. The script is automatically generated. Users can also set checkpoints from the keyword view. Users without technical knowledge may be able to understand the Keyword View, but more experienced users and users needing to perform more complicated actions may need to switch to Expert View.
The Keyword view comprises of a tabular view with rows and columns. Each step is represented in a row and each column tells about the different parts of the step. The steps (each row) can be view in understandable English and they can be edited as per your requirements. As you record your test, QuickTest generated steps in the Keyword View representing each operation you performed in the application under test.


Expert View: 
Expert view is simply enables you to write tests as scripts. It displays the test script in VB script format. Expert view is an alternative to Keyword view. The Expert View displays the same steps and objects as the Keyword View, but in a different format. But as the name suggests this view is for people who are expert in VB scripting.
In Expert View, QTP allows display and editing of the test’s source code using VBScript. All test actions can be edited here except for the root Global action. Expert View acts as an IDE for the test. It includes many standard IDE features, such as breakpoints.

No comments:

Post a Comment