[20] qtp Study No. 5 _ analyzing the test in the keyword View

Source: Internet
Author: User

Analyzing the test in the keyword View

As you recorded your test, quicktest generated steps in the keyword view representing each operation you have med in the Web browser.

The columns in the keyword view show different information for each step, as follows:

·Item.The item for the step (test object, utility object, function call, or statement) in a hierarchical icon-based tree.

·Operation.The operation to be operated med on the item, for example,ClickOrSelect.

·Value.The argument values for the selected operation, for example, the mouse button to use when clicking the image.

·Documentation.Auto-documentation of what the step does, in an easy-to-understand sentence, for example, click the "findflights" image.

·Assignment.The assignment of a value to or from a variable so you can use the value later in the test. This column is not visible by default.

·Comment.Any textual information you want to add regarding the step, for example, return to page used in first step of the test. This column is not visible by default.

Note: You can choose to hide or display individual columns as required, by right-clicking the column heading in the keyword view and selecting a column name from the list.

InItemColumn of the keyword view, you can click the branch arrows to expand or collapse the steps under each web page. You can expand the entire test by choosingView> Expand All.

When you expand your test, it shoshould look similar to this:

For every step completed MED on an object, quicktest displays a row in the keyword view with an icon and details of the step. For example, the step below instructs quicktest to clickReserveflightsImage at a specific location inSelect a flight: MercuryPage of the mercury tours web site.

The table below provides an explanation of the first few steps shown in the test in the keyword view above.

AnalysisKeyword ViewTest script in the view

After the script is recorded successfully,Quick TestAll operation steps will be loggedKeyword ViewView.

Keyword ViewThe view provides a number of columns to display information about each step. As follows:

· item. display icons for each step in a hierarchical structure (test object ( test object ), component ( utility object ), function call ( function call ) and Declaration ( statement )).

·Operation.The operations performed by each step, as shown in figureClickOrSelect.

·Value.The object value when the operation is performed. For example, if you click left or right when you click an image.

·Documentation.Automatically generated documents are used to easily record the actions of each step, such'Click the "findflights" Image'.

·Assignment.Displays the variable values available after script recording or playback.AssignmentColumn inQuick TestIt is not displayed by default.

·Comment.Displays text information related to this step entered by any user, such'Return to page used in first step of the test'.CommentColumn inQuick TestIt is not displayed by default.

Note: You can hide or display the columns as needed. Right-click the title of the display column to view the names of all the columns.Keyword ViewView.

InItemIn the column, click the lower triangle symbol to expand or contract eachWebAll steps on the page. You can also clickView> Expand AllTo expand all the steps.(You can also click*Key to quickly expand all steps)

After all the steps are expanded, see the following figure:

For each step of the object,QuickTestInKeyword ViewThe view provides a line to display all relevant information. For exampleFor example, the step below instructs quicktest to clickReserveflightsImage at a specific location inSelect a flight: MercuryPage of the mercury tours web site.

The following table listsKeyword ViewDetailed description of the first column of some scripts in the View:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.