I'm using QPT 9.5 to test a Java application and specifically a requirement called "configurable line height in a list".
I recorded some steps that set the line height in a list based on the input in a datatable. When I run the test, it iterates through those values, testing various line heights.
Next step is to include a checkpoint in the iteration to verify each setting. I need a bitmap checkpoint to do this (since this is a visual check only).
When I now do an Update run, it overwrites the checkpoint bitmap in each iteration (I was afraid that would happen).
So... How to solve this? the line height is different for each iteration, requiring a different bitmap checkpoint for each iteration. Basically I would like to add the bitmap to be used for checking into the data table, but I don't think this is possible.
So... Anyone familiar with this kind of problem? What's the typical way to solve this?
Individual lines in the list are not detected by QTP (it's custom drawn)
The one way I can think that you can do what you are wanting to do is to abandon the whole bitmap checkpoint, I've never really liked the bitmap checkpoint, it seems to fail false positive often. I would figure a way to use GetPixel, you could then use coordinates to check if a certain pixel is a certain color (I'm assuming your line is solid color and doesn't vary on the x axis, but does on the y axis). I'm not sure how you would implement this, but a simple google search rendered a post on AdvancedQTP from Yaron Assa, by implementing gdi32 and user32 check it out here: http://www.advancedqtp.com/knowledge...t-pixel-color/