While testing map,Zooming functionality We use Bitmap frequently.
Text Area Checkpoint:
It checks the text area present in the application.Sometimes we say that TextArea check point is nothing but text check point.
Keep tool under Recording mode > Insert menu> Checkpoint > Text area checkpoint > Mark the area of text > select one or more options (Match case, ignore spaces, exact match, text not displayed.)
Click ok and stop recording. Mostly while after doing some operation if we are expecting some text to be appeared in the application, We use this type of check point.
Like–after successful login Welcome UserName should present in the application.
or after successful upload of a file Uploaded successfully text should be present in the application.
It Checks object’s text property value in different ways.
Keep tool under Recording mode >Insert menu > checkpoint > Text checkpoint > Show the object > click ok > Select options
(Match case; ignore spaces, exact match, text not displayed.)
We can select one or more options > click ok & stop Recording.
We can insert a text checkpoint while recording a script in qtp.
If we want to insert a text checkpoint for agent name in sample Flight application.follow the steps
- Click on record button
- Invoke the Flight application
- Insert the agent name
- In qtp,uft click insert menu
- Select the text checkpoint option
- Place the cursor over the Agent name text field.
- Select the text checkpoint properties
- Click on ok
- Continue to record the remaining script
- Stop the recording and replay the script
- See the report
- Through expert view,
- Through keyword view,
- Through Active screen.
- Web Table
- General window table
- Web page general properties
- Any custom property for web
Advantages of XML:
How to Configure:
How to validate check points in UFT?
Checkpoint returns on True or False.Based on that it can be coded..
Below is the example.
value_chkpoint = Browser(...).Page(...).WebEdit(...).Check (Checkpoint("Check1")) if value_chkpoint then MsgBox "Check Point passed" else MsgBox "Check Point failed" end if