I currenly need to test ActiveX controls using Etest, but when I record the script, and when ActiveX screens pop up, I am getting an error in ETest and it stops.
I would be glad if anybody can help me on this.
How can I test ActiveX controls using Etest?
Yup, not an easy task. e-Tester can see into the browser but not custom active/x controls. Your best hope is to see if you can interact with the control through custom vba, check with your application developers to see what kind of interfaces are available. Who knows maybe they will even give you a special version with APIs open for testing.
Thanks Mill... but the problems that I am facing are:
1. I am trying to use custom vba, but I am not able to use the "Get Path to Element" on the ActiveX control......
I need the path to set values in the Text field.
2. I am able to record an ActiveX window using "Windows Event Recorder", but after recording, I get the following errors:
a. "MoResourceManager" is NULL or not an Object
b. Object Required
c. Unhandled error uploading XML resource document
Well my guess is that Windows Event Recorder is just doing the wrong thing entirely. Since it is only doing set text and x,y navigation there is no way to be sure the playback is correct unless you watch it carefully, and that kind of defeats the point of automation :-)
As far as the vba goes, if you can get the object you can use the various watch windows in vba to see what is available on the control to play with. If there is nothing there and Window Event Recorder is going nuts then you could try doing some "old school stuff" like setting focus to the field and using vba sendkeys to set text and tab to other elements (eek .. I can't believe I just suggested that!) and hope for the best.
Do you have any access to the folks that created the application? Might be time to get them involved and open up some APIs