What is text area output value in QTP?
Capturing the particular text area during run time and the same can be used as input whenever needed is called text area output value.
How to create a text area output value in QTP?
Login to Flight Application with user name as “Infoyep” and password as “mercury”, Flight reservation window opens up
Open QTP(Quick test professional)-> Start recording
Navigate to insert menu->output value ->Text area output value
Define the area containing the text that Quick test want to use as an output value by clicking and dragging the crosshairs pointer, release the mouse button after outlining the required area, If the area defined is associated with more than a object then Object Selection->text area output properties dialog box opens.
For example, select “Flight Schedule” Frame contains which contains “Date of Flight, label Fly From, Fly To labels
Select the object from which the output value wants to be created, the text area output value properties dialog box opens.
By default the settings of output values load automatically or to modify use modify button.
Click OK Button to close the “Text area output” value properties dialog box
QTP adds an item in the keyword view and generate the script as below
Window(“Flight Reservation”).Output CheckPoint(“Flight Reservation”)
Make sure that the text area output value is stored in the data table, Here, the value will only be visible during runtime and it is seen in the run time table of result window, but the column name is seen in the data table.
To use this output value for future test, use data driver with parameterization to pass the value to the corresponding step of the same action or new action
Run the script and view the result in result viewer
In the result viewer we can see the captured text.