This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
bw2:test_run_tool [2020/12/15 14:19] akoehler created |
bw2:test_run_tool [2021/07/19 16:26] (current) akoehler Updated for 2.7 |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ======Introduction (Test Run Tool)====== | + | ======Introduction (Test)====== |
| **Important Note** | **Important Note** | ||
| <WRAP center round alert> | <WRAP center round alert> | ||
| - | 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. | + | The test does not use “dummy” transactions. This means that the data is really updated |
| </ | </ | ||
| =====General Operation===== | =====General Operation===== | ||
| - | To execute | + | To test a workflow, open the workflow design |
| - | A new window is displayed at the bottom of the canvas | + | A new window is displayed at the bottom of the design |
| - | {{ :bw:intromage16.png |}} | + | {{ :bw2:bizweavernewtestrun1.png |}} |
| + | {{ : | ||
| - | - Execute | + | - Automatically step through |
| - | - Automatically | + | - Speed 1 executes a step every 2 seconds |
| + | - Speed 2 executes a step every second | ||
| + | - Speed 3 executes a step every .25 seconds | ||
| + | - Execute a single | ||
| - Pause automatic execution. | - Pause automatic execution. | ||
| - | - Click the + or – buttons, or use the slider, to control the speed of automatic execution. | + | - Stop testing |
| - | - Examine variable values (described below). | + | |
| - 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. | - 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. | ||
| + | - Examine variable values (described below). | ||
| + | - Undock from design canvas | ||
| + | - Expand and refresh variable | ||
| <WRAP center round info 80%> | <WRAP center round info 80%> | ||
| - | This window can be moved on the screen by “grabbing” | + | Things to consider when using the Test tool. |
| + | |||
| + | * If Bizweaver error notifications are in use, disable it while testing (turn off). If it is active, an " | ||
| + | * Starting in Bizweaver 2.7 " | ||
| + | * Limit the number of records being passed into a loop. This is particularly easy if the input is an SQLCommand: Reader step. | ||
| + | * Use breakpoints | ||
| </ | </ | ||
| - | Click button [**>**] to move from step to step. Or click button [**>> | + | =====Breakpoints===== |
| - | {{ : | + | Breakpoints are used when testing a workflow, and there is a need to stop at a specific step. Breakpoints can be set either in the workflow list view or by right-clicking a step and setting the breakpoint. |
| - | <WRAP center round info 80%> | + | * Breakpoints only affect workflow testing |
| - | Things to consider when using the Test tool. | + | * They save when saving |
| - | + | * All breakpoints can be manipulated at once using the vertical ellipsis in the list view header. | |
| - | * If Bizweaver error handling is in use, disable it while testing. | + | * Enable |
| - | * Limit the number of records being passed into a loop. This is particularly easy if the input is a SQLCommand: Reader step. | + | * Disable |
| - | </ | + | * Remove |
| + | {{ : | ||
| ===== Examining Variables ===== | ===== Examining Variables ===== | ||
| - | One of the key features | + | One key feature |
| - | 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 | + | 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. |
| - | {{ :bw:introimage18.png? | + | {{ :bw2:bizweavernewtestrun5.png |}} |
| - | + | ||
| - | 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. | 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. | ||
| - | {{ :bw:introimage20.png? | + | {{ :bw2:bizweavernewtestrun4.png |}} |
| Multiple values from multiple steps can be viewed at any time. | Multiple values from multiple steps can be viewed at any time. | ||
| - | {{ :bw:introimage21.png? | + | Using {{:bw2:bizweavernewtestrun6.png|}} will either expand the variable to be viewed in its own window. Or refresh the variable. |
| - | Note that some variables are affected by the Bizweaver looping function. See the section named **//[[bw1: | + | Note that some variables are affected by the Bizweaver looping function. See the section named **//[[bw2: |
| ===== Test Run and Loops ===== | ===== 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. | + | Testing |
| ===== Test Run Results ===== | ===== Test Run Results ===== | ||
| - | Test run information is written to text files during the processing cycle. | + | Test run information is written to a text file during the processing cycle. |
| + | ====Version 2.6==== | ||
| + | **" | ||
| - | {{ :bw:introimage22.png? | + | {{ :bw2:bizweavertestrun8.png |}} |
| - | 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 middle icon displays | + | |
| - | * The bottom icon displays additional information about execution of various components such as SQL connections, | + | **"View Last Window:" |
| + | {{ : | ||
| + | |||
| + | ====Version 2.7==== | ||
| + | |||
| + | **"Open in Notepad:" | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | **" | ||
| + | |||
| + | {{ : | ||
| 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. | 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 | + | ===== Stopping |
| - | A test run cycle can be terminated | + | ====Version 2.6==== |
| + | A test can be stopped | ||
| - | {{ :bw:introimage23.png? | + | {{ :bw2:bizweavertestrun9.png |}} |
| 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. | 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 | + | ====Version 2.7==== |
| + | |||
| + | A test can be stopped at any time using the " | ||
| - | Click the red **<color # | + | {{ : |
| <WRAP center round info> | <WRAP center round info> | ||
| - | 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. | + | As noted earlier, the test process is actually executing the workflow steps. If you terminate a test, 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. |
| </ | </ | ||