By using image check point we can check the properties of an image whether they are matching with the recorded properties or not.
These properties includes image file path, href links, owner of the image tec.. if these properties are not same as the original recorded version, then the script fails.
By inserting a standard check point we can insert this image check point on any image in the application. Image check points are normally supported by web based applications.
On other hand, Bitmap check points consider a specific selected area as a bitmap image after capturing that area as a bitmap image. This is normally used for a variable webpage. i.e for a webpage with a tendency of varying its page contents in terms of its displayed objects in terms of length , X Y coordinates etc. For example in a webpage the welcome note is 4 lines initially when you first recorded the webpage. But after few days while running the same script it will fail because the welcome note has been changed to 8 lines instead of 4 lines initially. By using bitmap check points we can capture this issues.
Wednesday, December 19, 2007
What is the difference between Image check point and Bitmap check point?
Posted by
QTP FAQ's Jobs interview questions
at
9:37 AM
0
comments
Labels: Bitmap check point, Check point, checkpoint, image check point, mercury QTP, QTP, qtp check points, standard check point
What is the difference between Check points and Output values ?
Check points are normally used to check the screen values, screen object properties to find out if there are any changes from the recorded version.
Where as output values are used to check the properties of the objects and these properties will be written to the data table columns in the sctipt.
Use the below code to validate if the checkpoint is passed or failed:
chk_PassFail = Browser(...).Page(...).WebEdit(...).Check (Checkpoint("Check1"))if chk_PassFail then MsgBox "Check Point passed"else MsgBox "Check Point failed"end if
Use the below code to stop any exceptions that will raise due to check point failure.Reporter.Filter = rfDisableAll 'Disables all the reporting stuff
chk_PassFail = Browser(...).Page(...).WebEdit(...).Check (Checkpoint("Check1"))
Reporter.Filter = rfEnableAll 'Enable all the reporting stuff
if chk_PassFail then
MsgBox "Check Point passed"
else
MsgBox "Check Point failed"
end if
Posted by
QTP FAQ's Jobs interview questions
at
9:37 AM
0
comments
Labels: Check point, check point failed, data tables, Functional testing, mercury QTP, output value, QTP, testing tools