QTP bitmap Checkpoint URGENT - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: QTP bitmap Checkpoint URGENT (/Thread-QTP-bitmap-Checkpoint-URGENT) |
QTP bitmap Checkpoint URGENT - prafullapalwe - 07-02-2010 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. |