For software developers, BB TestAssistant includes a method of controlling many of its functions from an external program.
This is implemented via an ActiveX control and a wrapper class. The wrapper class is included to simplify use of the ActiveX control.
Which functions can I automate from my program?
Start and stop recording to a specified filename.
Initiate report creation.
Pause and resume recording.
Start and stop watching for application errors.
Register and unregister a process with BB TestAssistant. While the process is registered and BB TestAssistant is recording, it will 'watch' the process. If it ends, it is assumed to be an unscheduled termination due to a severe error, and BB TestAssistant will prompt the user to save the movie and create a report.
How do I get started?
Browse to the "API\FBAPIWrap" folder in the BB TestAssistant installation folder. This contains two files you will need:
FBAPIWrap.cpp - contains implementation of the wrapper class.
FBAPIWrap.h - contains declarations of the wrapper class and interface class for the ActiveX control.
The ActiveX interface to BB TestAssistant is implemented in FBAPI.DLL, and is automatically registered with the Windows COM subsystem at install time.
We have included source for an example application that makes use of the wrapper class. Browse to the "API\TestApp" folder - it contains a Borland C++ Builder project file and source. Users of MS VC++ or other development applications can open MainApp.cpp, which contains some simple code showing usage of the class.