RE: Winrunner : Write a program to count the number of...
folks you may want to fall in love with obj_get_info. Instead of managing all the class specifi get infor ( edit_get_info, list_get_info.....)
write a routine that accepts the element name and the property you wish to query. this will save you tons of mainenance and i am pretty confident that 80-90% of your class properties can be handled by obj_get_info....
winrunner has over 450 api/function chances are 70-80 percent of your core testing can be accomplished using 10-15
test automation is expensive enough look to make it cheaper not more costly....