Use the Engine class to create and access objects of other classes, control executions, launch built-in dialog boxes, implement a Tools menu, find files and directories, and invoke various utilities. Create the Engine object directly using ActiveX. To access the Engine object from a step, use the TestStand API to get the value of the Engine property from the SequenceContext or pass the SequenceContext property RunState.Engine as an object parameter to the step.
The following are examples of creating the initial Engine object:
LabWindows/CVI
CAObjHandle engineObj = 0;
TS_NewEngine(NULL, &engineObj);
Visual Basic
'Place the TestStand Engine ActiveX control on the main form.
Visual C/C++
#import "C:\TestStand\bin\teapi.dll"
TS::IEnginePtr engine;
HRESULT hr = engine.CreateInstance(__uuidof(TS::Engine));
| UIMessageEvent |