07-02-2010, 04:07 AM
Problem Statement:
1. I have to create a bitmap of a specific area or part of a window object (e.g. Calculator window opened through VB, I have to create bitmap of upper half)
2. I have to do this with co-ordinates supplied relative to image starting position.
2. I already have the bmp file of the calculator stored on disk. I have to create bitmap of this file.
3. Compare the window object bitmap created and bitmap created of the stored image to check if the are the same.
4. I have to create device independent bitmaps so that irrespective of system resolution etc the image compare can succeed.
5. I also want to add some tolerance values so that if the image resolution or background changes a bit, it should still work as long as its the same image.
I need to basically simulate the Win Runner bitmap checkpoint in QTP.
Winrunner bitmap check point generates statement like obj_check_bitmap(Obj,bitmap,x,y,height,width)
I need to implement the corresponding API for QTP to simulate above statement in QTP
so i need to either directly createbitmap of the window object for specific area as per x,y,widht. height
OR
I need to first create a new object by extracting this area from window object and then create bitmap of this new object without co-ordinates
If anybody has insight to such problem please contact me urgently @ prafullapalwe05@gmail.com
Thanks,
Prafulla.
1. I have to create a bitmap of a specific area or part of a window object (e.g. Calculator window opened through VB, I have to create bitmap of upper half)
2. I have to do this with co-ordinates supplied relative to image starting position.
2. I already have the bmp file of the calculator stored on disk. I have to create bitmap of this file.
3. Compare the window object bitmap created and bitmap created of the stored image to check if the are the same.
4. I have to create device independent bitmaps so that irrespective of system resolution etc the image compare can succeed.
5. I also want to add some tolerance values so that if the image resolution or background changes a bit, it should still work as long as its the same image.
I need to basically simulate the Win Runner bitmap checkpoint in QTP.
Winrunner bitmap check point generates statement like obj_check_bitmap(Obj,bitmap,x,y,height,width)
I need to implement the corresponding API for QTP to simulate above statement in QTP
so i need to either directly createbitmap of the window object for specific area as per x,y,widht. height
OR
I need to first create a new object by extracting this area from window object and then create bitmap of this new object without co-ordinates
If anybody has insight to such problem please contact me urgently @ prafullapalwe05@gmail.com
Thanks,
Prafulla.