View/Report Test Projects
The Studio's support for semi-automatic testing of view and report components requires that you create a Windows MDI project specifically for this purpose. The first time you select the "Test Windows Project" template from the Create New dialog in a workspace, the test project that is created is selected as the workspace's special test view/report project.
Later, you may change this selection (or un-select the project) via a context menu option in the Workspace Explorer.
A project can only function as a special view/report test project if it contains a pre-determined set of objects. Specifically, it must have:
-
An object of the Panel class (or subclass), i.e., an MDI Main Window.
-
An object of the ClientArea class (or subclass). This object must be a child of the Panel object.
-
A cCJCommandBarSystem (or subclass) object. This must be a child of the Panel object.
-
A cCJMenuBar (or subclass) object. This must be a child of the cCJCommandBarSystem object.
-
A cCJMenuItem (or subclass) object. This object must be named "oViewMenu" and is a child of the cCJMenuBar object.
-
A cCJMenuItem (or subclass) object. This object must be named "oReportMenu" and is a child of the cCJMenuBar object.
The standard "Windows Test Project" that is installed with DataFlex already contains the correct structure of objects required for the Studio's Test View/Report feature.