Skip to content

Enhanced Component Testing

The enhanced component testing capability extends the current testing functionality of the Studio. You can still have multiple, custom test project templates per workspace, as well as multiple, custom test projects that can contain any combination of precompiles and components for testing.

Essentially, the 12.1 Studio now allows you to register any specific test project in a workspace as "the" test project. From that point on, "the" test project will have special behaviors similar to the Test Run capabilities in previous revisions of DataFlex.

Functionality

Using the new Test View capability is easy...

Step 1

For each workspace, you can create one (or more) test projects. At any time, only one test project can be specified as the project to use when invoking the new testing capabilities.

If you already have a test project in your workspace that fills this role, select that project and then use the Workspace Explorer context menu to set it as the Test View Project.

If you want to create a new Test View Project to fill this role, use File | New | Project... and create a new Test Windows Project. It will automatically be set as the Test View Project.

Step 2

Open or create the view or report view that you wish to test.

Step 3

Select "Test View / Report View" from the context menu in the Editor or Visual Designer. This option is only available for View or Report View components. The Studio will perform the following steps:

  • Test that the current file is a View or Report View component (show error if it is not).
  • Make the registered test project the current project (show error if this is not possible).
  • Remove all existing views & reports from the test project.
  • Add the view or report to the test project.
  • Compile & run the test project.

Once you finish testing the component, you can select a different component to test (it will be added to the Test View Project and the previous component will be removed) or switch to another project completely and continue working.

You can change which project will be used as the Test View Project at any time.

You can continue to use one or more test projects with multiple components as long as you don't set them to be the Test View Project for that workspace.

See Also