Difference Between Text & Text Area Checkpoint
|Text Checkpoint||Text Area Checkpoint|
|Text Checkpoint checks that a text string is displayed in the appropriate place on a Web page or application.||Text Area Checkpoint checks that a text string is displayed within a defined area in a Windows-based application, according to specified criteria.|
|You can add a text checkpoint while recording or editing steps in a Windows- or Web-based application.||You can add a text area checkpoint only while recording a test on Windows-based applications, such as Standard Windows, Java, Visual Basic, and ActiveX.|
A small & simple example to get a feel of both Text and Text Area Checkpoint:
Make sure that the Flight Reservation window is open as shown below.
Open a New test in QTP and click Record.
Go to Insert (Menu) ->Checkpoint->Text Checkpoint
QTP will be minimized and the mouse pointer will change into pointing hand.
With the pointing hand click on $110.00 in the above Flights Table. Object Selection window opens. Click OK. Text Checkpoint Properties window opens. (See Screenshot for Text Checkpoint Properties window below). Click Cancel.
Go to Insert (Menu) ->Checkpoint->Text Area Checkpoint
QTP will be minimized and the mouse pointer will change into crosshairs.
With the crosshairs select $110.00 in the above Flights Table. Object Selection window opens. Click OK. Text Area Checkpoint Properties window opens. (See Screenshot for Text Area Checkpoint Properties window below). Click Cancel.
Object Selection Window for "Text Area checkpoint" will also be similar as the below one for "Text Checkpoint":
Text Checkpoint Properties window [In Windows-based environments, if there is more than one line of text selected, the Checkpoint Summary area displays [complex value] instead of the selected text string. You can then click Configure to view and manipulate the actual selected text for the checkpoint.]
Text Area Checkpoint Properties window:
Now considering both Text and Text Area checkpoints, analyze yourself:
Which one is better (if any) and
Which one is to be used in which situation?
Checkpoints in QTP
Example of QTP Standard Checkpoint
Example of QTP Existing Checkpoint
Example of QTP Page Checkpoint
Example of QTP Database Checkpoint
Example of QTP Bitmap Checkpoint
Example of QTP Image Checkpoint
Example of QTP Text Checkpoint
Example of QTP Table Checkpoint
Checkpoint Return Values