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.
When we talk about the client server architecture, we talk about front end and back end. So whenever we give any value from front end it stores data in back end database. Database checkpoint checks the contents of database accessed by application(front end). Database check points creates a check on record set.
QTP/UFT captures the the current record set and treats as it as Expected data.However Database can be inserted into test or components and it can be modified as per our need.here we do not need to put tool under Recording mode and we do not need AUT since data is from back end.There are two ways by which we can configure database checkpoint:
- Microsoft Query builder
- Manual query creation
Insert Menu > checkpoint > Database checkpoint >choose “specify SQL statement manually” option >click next > click create > select machine data source > Select DSN (QT_flight32) > click ok > enter SQL statement (select * from orders) > finish > click ok.
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
It checks content of the web tables.like-content,cells,cells information,cells content,No of coloumn,No of rows.
Navigation: Under Recording mode under web environment > Insert menu > checkpoint > standard checkpoint >Click on the web table > click ok >(Select no of cells—pass parameters either through constant or parameter)—Click ok–>stop recording.
It checks Image property values of an web image. Mainly location,alt property,link attached etc are checked. It is used to see if the image check point is prepared as per w3 school standard.
Under Recording mode with web environment > Insert menu > checkpoint >standard checkpoint > show the image > select image > click ok > click ok >stop recording.
Mostly by this check points, functional test engineer checks the below written features:
1.number of Links,
3.Images and Loading time in a web page.
It is a hidden checkpoint;
we can insert this through standard checkpoint.
Under Recording mode with web environment > Insert menu > checkpoint > Standard checkpoint >show the web page > click ok > click ok > stop recording.
You can check out this link to know how the checkpoint info is saved in QTP
So the bottom line is that this check point checks the attributes of the page.
This is a kind of check point where test engineers checks for the content of XML.XML-extensible mark of Language is such language which is used to transfer data in web applications in Internet.
Advantages of XML:
It is compatible for all network
Secure from all network attacks(Noise & Distortion)
Independent of distance time
Connection and data transfer with Multiple languages is possible
How to Configure:
XML Check point (from Application)
It checks content of the XML file.
Under Recording mode in web environment > insert menu > checkpoint (from application)> show the xml pages >click ok > stop Recording.
XML Check point (from Resource)
It checks content of the XML file.
Navigation: Insert menu > checkpoint >xml checkpoint (from resource) > browse path of the XML File > click ok > click ok.
If XML file is an individual and path available, and then we can go for inserting xml checkpoint from resource or if XML file is part of web application, separate path is not available then we can choose inserting XML checkpoints from application.
Using XML Check point we can check whether the values entered in the webpage (content) are covered into XML File.
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"
MsgBox "Check Point failed"