VFP Automated Test Harness aatest.app

I'm trying to get us where we can use the Automated Testing Harness with our products. We're having some difficulty in being able to work it with ActiveX controls such as the listview, toolbar, statusbar etc.

I've narrowed the problem down to at least being likely in the GetContainerForm method, then the PlayTest method must be getting lost and errors out. I'm running messages out via DebugOutput api calls so not to be affected by the debugger.

Has anyone else had a similar problem or even been successful with using this test harness where ActiveX Controls are the consumers of click events.

Currently I'm using the 8.0 version as that is where our products are still in a production level. Please Help...

Also, be mindful that if trying to use the version 8.0 code, with version 9.0 installed, you would have to hack the 8.0 code to use the version dependent program id of VisualFoxpro.Application.8, otherwise it will be using the vfp9.0 which has a problem with the ExecScript call passed from the 8.0 code.

[1029 byte] By [TerryMontgomery] at [2008-2-11]
# 1
Terry,

This isn't what you want to hear, but about a year ago (using VFP 8 at the time), I spent some time trying to get AATest.APP working to do some relatively simple all-VFP testing on forms. Unfortunately, I had to give up because I could never get AATest.APP to work on anything but the absolutely simplest of scenarios, and even then, not terribly consistently.

Drew Speedie

DrewSpeedie at 2007-9-8 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...
# 2
Hi Terry. This type of question would probably receive better answers on one of the VFP community sites at http://msdn.microsoft.com/vfoxpro/community/related/default.aspx, since it is not core to the VFP 9.0 product and some developers on community sites may have more experience with this type of situation.
KenLevy at 2007-9-8 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...
# 3
You're probably right on that. I think the problem that I'm really having with it right now, is fairly isolated, and in fact probably just one or two of the methods in there.

I'm also looking at (for our purposes) doing some redesign to it anyway. Having honest support for activex as well as better support for managing the scripts and categorizing them etc. Plus I'm finding it difficult to see why it's limited to the IDE so another aspect is that I'm looking at getting it to run from within our runtime versions so that we can test what we will be deploying, not just what's on the developer's box which is not a true test for the real world.

Thank you for your response...

TerryMontgomery at 2007-9-8 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...