What Are The Checkpoints Available in QTP/UFT

0
61
Spread the love
  • 1
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1
    Share

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.

Navigation:

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.

Text Checkpoint:

It Checks object’s text property value in different ways.

Navigation:

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.

Example:

If we want to insert a text checkpoint for agent name in sample Flight application.follow the steps

  1. Click on record button
  2. Invoke the Flight application
  3. Insert the agent name
  4. In qtp,uft click insert menu
  5. Select the text checkpoint option
  6. Place the cursor over the Agent name text field.
  7. Select the text checkpoint properties
  8. Click on ok
  9. Continue to record the remaining script
  10. Stop the recording and replay the script
  11. See the report

 

Standard Checkpoint:

It checks object property values. We can use this checkpoint for checking any property value.

Navigation

Keep tool under recording mode > place cursor in desired location > Insert > check point > Standard checkpoint > Show the object > click okay > select property and enter expected results & click Ok and stop Recording.
Navigation for Editing standard checkpoint
Select Checkpoint statement and right click > choose checkpoint properties option > modify the value > click Ok.
Navigation for Deleting standard checkpoint:
Select Checkpoint statements and right click > choose delete option.
Inserting Standard check points through active screen:
View > Active Screen >place cursor in desired location >Place mouse pointer on active screen & right click> choose insert standard checkpoint option > click ok > enter expected result > click ok
Note: Inserting Standard check points through keyword view same as in expert view.
Note:
We can insert standard checkpoints in 3 ways.
  1. Through expert view,
  2. Through keyword view,
  3. Through Active screen.
Mainly below can be tested through QTP/UFT Standard Checkpoints…
  • Image
  • Web Table
  • General window table
  • Web page general properties
  • Any custom property for web

Table checkpoint:

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.

Image checkpoint:

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.
Navigation:
Under Recording mode with web environment > Insert menu > checkpoint >standard checkpoint > show the image > select image > click ok > click ok >stop recording.

Page checkpoint:

Mostly by this check points, functional test engineer checks the below written features:
1.number of Links,
2.Broken links
3.Images and Loading time in a web page.
4.DOM handling.
It is a hidden checkpoint;
we can insert this through standard checkpoint.
Navigation:
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.

XML Checkpoint:

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.
Navigation:
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"
else
MsgBox "Check Point failed"
end if
Don't miss out!
Subscribe To Newsletter

Receive top technical news, lesson ideas, travel tips and more!

Invalid email address
Give it a try. You can unsubscribe at any time.

Spread the love
  • 1
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1
    Share

LEAVE A REPLY

Please enter your comment!
Please enter your name here