Home Search

DriveWorks Pro 22
Test Mode

Send Feedback

Test Mode

Test Mode allows project rules to be analyzed within a specification.

To enter Test Mode begin a new specification and click the Test Mode button on the Command Bar.

Hosted and Child Specifications

Specifications hosted within the current specification (using the Specification Host control) can enter Test Mode.

Specifications added to a Child Specification List can also enter Test Mode.

Select the drop down on the Test mode button and select the specification to test.

Once in Test Mode, test each DriveWorks task that can be analyzed from the tab strip under the Command Bar.

DriveWorks Tasks that can be analyzed are:

  • Form
  • Navigation
  • Constants
  • Variables
  • Documents
  • Tables
  • Calculation Tables
  • Model Rules

Form

  1. Click the Form tab.
  2. Select any control on the form.
  3. Double click any property which contains a rule.
Values cannot be entered in the controls when in Test Mode.

The builder contains two tools to analyze rules.

  1. The Values and Step shows each step of the calculations and the value returned from those steps.
  2. The Rule Drill Down shows an in depth analysis of the rule showing the returned value of input.

When the user form property Show Task List (See User Form Properties) is set to True, the Task List will be displayed during Test Mode. Any active Form Messages will be displayed.

The Navigation tab shows the current form navigation.

Constants

  1. Click the Constants tab.
  2. Double click the value of a Constant to edit.

Variables

  1. Click the Variable tab.
  2. Select a Variable from either the category tree or the variable list and click the Analyze button.

The builder contains two tools to analyze rules.

  1. The Values and Step shows each step of the calculations and the value returned from those steps
  2. The Rule Drill Down shows an in depth analysis of the rule showing the returned value of input.

Documents

  1. Click the Documents tab.
  2. Select a Document from the list.
  3. Select a tagged element from the document information list and click the Analyze button.

The builder contains three tools to analyze rules.

  1. The Values and Step shows each step of the calculations and the value returned from those steps
  2. The Rule Drill Down shows an in depth analysis of the rule showing the returned value of input.
  3. The Preview which creates a HTML preview of the document.

Tables

  1. Click the Tables tab.
  2. Select a Table from the list.

    The data from the selected table is displayed on the right.

All table types as defined in Tables can be viewed here.

Group Tables cannot be viewed in Test Mode.

Calculation Tables

  1. Click the Calculation Tables tab.
  2. Select a Calculation Table from the list.

    The data from the selected table is displayed on the right.

Model Rules

  1. Click the Model Rules tab.
  2. Select a Model from the list.
  3. Select a rule and click the Analyze button.

The builder contains two tools to analyze rules.

  1. The Values and Step shows each step of the calculations and the value returned from those steps
  2. The Rule Drill Down shows an in depth analysis of the rule showing the returned value of input.

Models List

The Models pane displays all models and drawings that are affected by the current Specification.

The resulting name is displayed for each model and drawing.

Each name will also be suffixed with the following:

  • [New] - when a new model or drawing will be created.
  • [Existing] - when the model or drawing already exists.

    Any models replaced (using the <Replace>.. function) will also show as [Existing].

    Specification Test Mode determines a component to be [Existing] when a physical file exists on disk.

    This will ocurr when:

    • A component that uses an intelligent file naming convention has previously been generated.
    • A component captured as a Replacement Model is to be swapped into an assembly (using the <Replace> function).
    • A component not created or captured by DriveWorks is to be swapped into an assembly (using the <ReplaceFile> function).

  • [Deleted] - when the model will be deleted from the resulting assembly.
  • [Suppressed] - when the model or drawing will be suppressed.

Generating Models

Any model where the file name rule equates to a new file to be created can be generated directly from Test Mode.

This will create a temporary file in a temporary location, the final file name and location will not be applied until the specification enters a state, in the specification flow, that triggers the full model generation.

  1. Locate the model to be generated in the tree view of the Model Rules tab in Specification Test Mode
  2. Right click on the file and select either:

DriveWorks Quick Tips

DriveWorks Quick Tips: Specification Test Mode

Specification Test Mode is a valuable tool that allows you to monitor a specification as you progress from one part to the next. It allows you to test components of a program, such as macro buttons, that are not available for testing in form test mode. In this video, we show how constants, model rules, and documents update based on a set of values in the form. Try this with your projects to save time, instead of doing a full run to debug your project.

DriveWorks Quick Tips are a series of 1 minute videos, available on YouTube, that explain specific functionality. View all Quick Tips