I am using WinRunner 7.5
In my AUT I have a non-editable (only readable) list view (like a table). none of the keyboard keys work on it. Only I can use mouse to click on ListView control. Column order and column width can change any time.
When I am recording this control WinRunner is recording it as a list and not recording its column and rows.
Now my testcase asks me to click on a particular cell e.g. 5th column of 3rd row. How can I automate this scenario? I don't want to hardcode any thing here.
Is this a SysListView32 control? If so, what I've done is loop through each row and used list_get_subitem() to find the row with the desired value in the specified column. If I find it, I click on the current row and exit the list. (The sysListView32 control doesn't let you select a specific row and column, just a row - so this might not work for you.)
Quite honestly, this does not sound like a good candidate for automation...unless you can either read the table and click appropriately -or- have a predictable location (not as good, but, sometimes necessary), then I would suggest that this be left for the manual testers.
Maybe someone else has a better idea...
Quality is the result of a carefully constructed cultural environment. It has to be the fabric of the organization, not part of the fabric.