| || |
Failure to Recognize VC++ Controls
I'm currently involved in the automation of an VC++ application which is basically an embedded product that interacts a lot with hardware components such as switches etc.. I face two major probs in this application:
1. One particular screen contains an control recognized by silk as USER1 which is actually nothing but an listview. I'm not able to manipulate with this control no matter what methods i tried to do..
2. An Screen has an control which is been entirely recognized as one AFXFRAME but in reality this control has many visible controls such as textboxs etc (in bitmaps).
Kindly let me know of how to overcome this situation and it would be great if anyone of u can provide me the code of the same.....
Re: Failure to Recognize VC++ Controls
Here's some thoughts...
1) Try mapping the "USER1" class to ListView. It might be that your developers have done something to customize it but it may still respond to the standard ListView commands.
2)This is obviously a custom control made by your developers. If SilkTest can see the standard controls within the AFXFRAME you can use them that way.
In both cases you could try using keystrokes to manipulate the controls. If that works you can create a custom class and add functions that use the keystrokes eg.
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">winclass customListView
void Select(INTEGER toSelect)
for(x = 1; x < toSelect; x++)
}</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">We have to do this a lot for our software. It helps if you can work with the developers and get them to design controls that (at the very least) respond to keystrokes. Hope that helps.