Wiki

Scale Your Enterprise

User Tools

Site Tools

mbstring extension must be loaded in order to run mPDF

bw:test_run_tool

This is an old revision of the document!


Introduction

Important Note

The Test Run tool does not use “dummy” transactions. This means that if you are doing data updates (e.g. via SQL or SAP Business One connector), the data is really updated. Do all testing against test data whenever possible to avoid issues with duplicated or incorrect data.

General Operation

To execute a workflow using the Test Run tool, open the workflow so that is displayed in the design canvas. Click the Test Run icon in the toolbar to initiate processing.

A new window is displayed at the bottom of the canvas area. This window contains functions to manage the execution cycle, view the workflow steps as they execute, and view variables as they become available.

  1. Execute the current step.
  2. Automatically step through the workflow.
  3. Pause automatic execution.
  4. Click the + or – buttons, or use the slider, to control the speed of automatic execution.
  5. Examine variable values (described below).
  6. Display area showing the current step, steps that have been executed, any variable values viewed, and any error messages that may occur. This information is also displayed in the block at the bottom of the canvas.

This window can be moved on the screen by “grabbing” the title bar and dragging the window to another position.

Click button [>] to move from step to step. Or click button [»] to automatically move through the workflow. The current step is highlighted in red as the processing progresses through the workflow. In the following image, the ‘current step” is “Loop_ProcessRecords.”

Things to consider when using the Test tool.

  • If Bizweaver error handling is in use, disable it while testing. If it is active an “error” email will be generated any time the workflow is terminated, intentionally or not.
  • Limit the number of records being passed into a loop. This is particularly easy if the input is a SQLCommand: Reader step.

Examining Variables

One of the key features of the Test Run tool is the ability to examine values during the workflow execution. This is done in the ‘Examine Variables” area at the top of the test run window.

There are two drop-down list windows in this area. The drop-down on the left lists workflow steps that have been executed. These are the steps from which values can be viewed

The drop-down on the right shows the values (variables) that can be viewed for the selected workflow step. In the following image the “SQLCommand_getData” step has been selected.

When a variable is selected, its value is displayed in the field to the right. This is the value that will be available to subsequent steps.

Multiple values from multiple steps can be viewed at any time.

Note that some variables are affected by the Bizweaver looping function. See the section named “Special Note for Step Variables and Loops” in the “Bizweaver – Using Variables” document for more information. In these cases, the value displayed does not automatically change with each loop instance. The value must be refreshed by clicking the [»} button for the desired variable.

Test Run and Loops

The Test Run tool executes each step of the workflow. If the workflow contains a loop, the tool will cycle through every record passed into the loop. For example, if the input list has 100 records, you will see the tool process the steps within the loop 100 times. In these cases, the “automatic” execution and execution speed tools are helpful. Or. as noted earlier, limit the number of input records during the testing process.

Test Run Results

Test run information is written to text files during the processing cycle. These files are available at the end of the run via icons at the far-right end of the display area below the design canvas.

Access these options before clicking on the test run display area, since this ends the test run cycle and the icons are no longer available.

  • The top icon closes the test run display to end the execution cycle. Click in the test run display area does the same thing.
  • The middle icon displays the steps that were executed. This is a text file and can be saved to another location if desired.
  • The bottom icon displays additional information about execution of various components such as SQL connections, SQL commands, etc. This is a text file and can be save to another location if desired.

These results are helpful when troubleshooting a workflow. Third Wave support may request that you send these logs if you report an issue. The log files can also be found in C:\Program Data\Bizweaver.

Terminating a Test Run Cycle

A test run cycle can be terminated at any time by clicking the red “X” in the Test Run Tool display box.

A dialog to confirm that you want to end the test run is displayed. Click [Yes] to end the test run or [No] to continue with the test run.

An “error” message is displayed in the test run listing. This is normal and can be disregarded.

Click the red “X” again to end the test run processing.

As noted earlier, the test run process is actually executing the workflow steps. If you terminate a test run cycle, whatever has occurred will not be changed. For example, assume you have workflow steps that read a file and insert the records into a SQL table. Additional workflow steps then follow. If you terminate the test run after the SQL insertion step, those records are in the database and will remain there. The termination does not roll them back.

bw/test_run_tool.1568049846.txt.gz · Last modified: 2019/09/09 13:24 by runger