Mainly below can be tested through QTP/UFT Standard Checkpoints…
- Web Table
- General window table
- Web page general properties
- Any custom property for web
Accessibility check point:
Like another checkpoints,QTP/UFT provides check point to check websites.web industry is becoming boom now. Designers create a lot of webpages with their customized codes,logos,pictures etc. But they must follow the w3 school’s guidelines for developing web.Mostly it is based on customer’s requirements and guideline that abide by the W3 school’s guidelines.
Accessibility check point:
It verifies whether the webpage in our web application is developed according to W3C (World Wide Web consortium) Rules and Regulations.
This can be configured as below written:
Active X control check
- alt property for images check
- Applet check
- Frame title check
- Multimedia link check
- Server side image check
- Table check
Configuring accessibility checkpoint:
Tools menu–> options–>web–> advanced–> check/uncheck items–> click apply–> click ok
How to insert:
under recording mode with web environment >insert>checkpoint>accessibility checkpoint>show the webpage>click ok>click ok>stop recording.
- Microsoft Query builder
- Manual query creation
It compares bitmaps; we can compare complete bitmaps as well as part of the bitmaps.Mostly we use to check if selected area of a webpage is bitmap image or not.
Keep tool under Recording mode > Insert menu > Checkpoint > Bitmap checkpoint > show the Bitmap >click ok >select “check only selected area” option if we want to compare part of the bitmap > click ok >stop recording.
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. Text checkpoint checks that a string is displayed in the appropriate place of our application or on a webpage.Using text checkpoint we can verify the text present in object and also can verify selected string in object.
Text Recognition Configuration
This feature enables you to configure how UFT identifies text in our application. We can use this pane to modify the default text capture mechanism,OCR(Optical Character Recognition) mechanism mode, and the language dictionary the OCR mechanism uses to identify text.
Navigation for Text recognition configuration
- Go to Tools
- Text Recognition
Navigation to insert Text checkpoint:
- Keep tool under Recording mode
- Insert menu
- 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
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