Pain of Analog recording
We had an AUT which was developed in some proprietary code. WinRunner couldn't recognize any of the objects in that application.
Unfortunately we have to go ahead with analog recording of the application, which we don't personally like, but we have no other go.
While developing the scripts we faced lots of problems, which affected the recorded X & Y, like:
1. when screen resolution changes
2. Taskbar changes
3. Window format of the application changes(field's resized etc.)
4. machine to machine
5. any changes which affects the X & Y co-ordinates.
WinRunner Virtual Object Wizard was of some help: instead of hardcoding the X & Y on the code and use win_mouse_click. able to record the X & Y to an object and use the object's function to perform actions.
Is there any other useful tips which will reduce the pain in the a.. while using analog technique?
Also do anyone has similar good experience with analog recording?
Re: Pain of Analog recording
There are some things that you can do to reduce the pain.
1. Screen Resolution -
I don't have any links, but there are tools (I am sure freeware) that will change the resolution to whatever you need. You could have a startup script that changes the resolution whenever WinRunner is started.
2. Taskbar changes -
I am assuming that you mean if items on the toolbar get rearranged. One thing you could do (beware, this will be nasty), is to do some bitmap checks. If you have to, when you open the AUT, go through the toolbar and do a series of bitmap checks to figure out which items are there and in what order. Like I said, very nasty.
3. Window Format Changes -
This does not sound like something you can handle. If the format of the window is changing that frequently, maybe the AUT is not ready for automation. There needs to be some stablity before you can really automate it.
4. Machine to Machine -
This should be handled by making sure that the resolutions are the same. If there are any user profiles that affect the look, then you should probably create and automated profile that everyone uses on each machine.
5. X Y Coordinate changes -
This should be handled with the above issues.
Those are just some quick things that I can think of.
Hope It Helps.
Re: Pain of Analog recording
Part of our application is done via UNIX XWindows screens displayed via Exceed on the PC. We tried using virtual objects, but found they were unreliable in our environment. I came up with some functions using text recoginition to locate labels associated with objects of interest, move the pointer to that position or a relative position, and then do a mouse click and/or type command. For instance (note: report_error() is a custom function):
Charles Reace (charlesDOTreaceATverizonDOTnet)
"Forward!" he cried from the rear, and the front ranks died.
The generals sat, and the lines on the map moved from side to side.
(Roger Waters, "Us and Them")
[This message has been edited by Charles Reace (edited 03-25-2003).]
[i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.</i] (The Song of Roland)