Home Search

DriveWorks Pro 19
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.

The Test Mode button allows Specifications that are hosted to be selected, see Hosted Specifications note below.

Hosted Specifications

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

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

This functionality is for Hosted Specifications only and is not available for Child Specification.

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.

Navigation

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.
Next to each model that has been captured it will say either New if a new clone has been created, Existing if the part already exists or Deleted if the part has been Deleted.
Any models that have been replaced using the (<Replace>........) function will show as Existing

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