Web Alignment Testing
Currently I am performing manual testing of my application where I am expected to check whether the alignment of the objects ( images, webelements, webbuttons) have not changed its position on the screen. I have QTP installed in my system and I have hands on experience in it.
Can anybody provide me suggestions as to how I have to go about doing alignment testing using QTP.
Thanks and Regards
Here are a few Ideas I can think of:
A) Tell QTP to record the X,Y co-ordinates of the items. Later check that the co-ordinates are the same.
B) Use bitmap checking and specify the exact co-ordinates of where the object should be located.
C) Do a page level check and include the x,y co-ordinates for the different object types.
D) Create a loop that goes through the objects on the page. Store the x,y info in a spreadsheet. I have seen code that does this. I don't remember how to get back to it. Others could probably tell you were the HP examples are if you decide to go this direction.
E) in UFT 11.5, perhaps Insight recording may be able to assist you somehow.
F) Make virtual objects. Then check that the bitmap matches at this area of the screen. I have never tried this.
I hope something I wrote was useful.
Some tests are best done manually. It's no secret that the Co-ordinate & Image based approach is very fragile & will break.
Mark these test cases as Out of Scope.
There is a product named something like Situli that is good at image location testing. I used CitraTest From Tevron 12 years ago for this. It was good also.
The amount of development to automate this would be a big waste of money in my opinion.
There are some tasks best left to the 'mark-one eye ball' and this is one of them.
In Testing, Alignment is important if the image was cracked or placed somewhere mean the index page itself give a drawback for that website. So i go with bklabel1 for use the tool for image location. Thanks bklabel1.