Wednesday, August 26, 2015

Output and Correlation

About Outputting Values

An output value is a step in which one or more values are captured at a specific point in your test or component and stored for the duration of the run session. The values can later be used as input at a different point in the run session.
You can output the property values of any object. You can also output values from text strings, table cells, databases, and XML documents.
When you create output value steps, you can determine where the values are stored during the run session and how they can be used. During the run session, Quick Test retrieves each value at the specified point and stores it in the specified location. When the value is needed later in the run session, Quick Test retrieves it from this location and uses it as required.
Output values are stored only for the duration of the run session. When the run session is repeated, the output values are reset.
Note: You can insert an output value by using commands on the Insert menu or by clicking the arrow beside the Insert Checkpoint button
     
on the Test toolbar. This displays a menu of options that are relevant to the selected step in the test tree..

                Creating Page Output Values

You can create a page output value from a Web page property value. When you run the test, Quick Test retrieves the current value of the property and stores it in the run-time Data Table as an output value.
For example, the number of links on a Web page may vary based on the selections a user makes on a form on the previous page. You could make an output value to store the number of links on the page during each test run or iteration.

                Creating Text Output Values

You can create a text output value from a text string. When you run the test, Quick Test retrieves the current value of the text string and enters it in the run-time Data Table as an output value.
Quick Test allows you to create text output values by adding one of the following to your test:
o    Text Output Value—enables you to output the text displayed in a screen or Web page, according to specified criteria. It is supported for all environments.
o    Standard Output Value—enables you to output an object’s text property. This is the preferred way of outputting the text displayed in many Windows applications.
o    Text Area Output Value—enables you to output the text string displayed within a defined area of a Windows-application screen, according to specified criteria. It is supported for Standard Windows, Visual Basic, and ActiveX environments.
Note: Text Area output values are only supported by the following operating systems: Windows NT, Windows 2000, and Windows XP.

                Creating Standard Output Values 

You can create a standard output value from an object property value. When you run the test, Quick Test retrieves the current value of the property and enters it in the run-time Data Table as an output value.

                 Creating Image Output Values

You can create an image output value from the property value of a Web image. When you run the test, Quick Test retrieves the current value of the property and enters it in the run-time Data Table as an output value.

                Creating XML Output Values

You can create an XML output value from an element value or attribute of an XML file or Web page/frame. When you run the test, Quick Test retrieves the current value of the element or attribute and enters it in the run-time Data Table as an output value.
When you run your test, you can view summary results of the XML output value in the Test Results window. You can also view detailed results by opening the XML Output Value Results window.

                Creating Table Output Values

You can create a table output value from the contents of a table cell. When you run the test, Quick Test retrieves the current value of a table cell and enters it in the run-time Data Table as an output value.

                Creating Database Output Values


You can create a database output value from the contents of a database cell. When you run the test, Quick Test retrieves the current value of a database cell and enters it in the run-time Data Table as an output value. 

No comments: