Ideas to handle swfListView or swfTable?
My .net 2.0 winform AUT contains lots of tables. QTP sees some as swfListViews and others as swfTables. Each release, the devs change the tables such that what QTP used to think was a swfListView is now an swfTable, and vise versa. My automation framework handles the object class changes fine but the problem is QTP uses different methods/properties for swfTables and swfListViews, which forces me to change my test steps.
For example, swfTable objects use GetCellData and swfListView objects do not.
I assume this is a common problem for most of you. How do you minimize your maintenance on these types of changes?
Re: Ideas to handle swfListView or swfTable?
Expand the Library using RegisterUserFunc
i will give an example
Window has Type method but browser does not have a type method
<font class="small">Code:</font><hr /><pre>
RegisterUserFunc "Browser","Type", "BType"
Function BType(object, sText)
hwnd = object.GetROProperty("hwnd")
window("hwnd:=" & hwnd).Type sText