How to: |
Designer provides a test feature to test the function of a process flow using an input XML document. The Test options are:
Test results appear in the Message Log pane.
The following procedures explain how to use the Test feature.
The Testing Process - Locate a Test Server dialog box opens, as shown in the following image.
The Override Register Values dialog box opens, as shown in the following image.
The Select Server Configuration or Registry dialog box opens, as shown in the following image.
Note:
The Test Runtime Options dialog box opens, as shown in the following image.
All - traces all active objects.
Select - traces all debug enabled objects.
None - disables tracing.
DEBUG - reports progress traces of the test.
DEEP DEBUG - reports additional traces and details about errors.
This determines whether or not the work scheduled in the process flow is actually performed during the test, for example, inputting records to a database.
The Input Document dialog box opens.
The following image is an example of the Input Document dialog box with a selected XML document.
The test results appear in the Message Log pane and a window opens with the following message:
The current selected process has successfully been tested. Do you want to view the detail results?
The Process Test Viewer window opens, with the Traces node selected on the left and the trace information displayed on the right. The following is an example of this window showing the Trace results for the process flow named Samples.SciFiBooks.1.
Note: To view the most recent test results of a process flow, right-click the process flow in the Navigator pane and select Test and View, or select the process flow and from Build the menu, select Test and View.
The following is an example of test results that appear in the Message Log pane for a process flow named Samples.SciFiBooks.1 with the Debug trace level selected.
---------- Testing the Process ---------- Sending testing request to server... Getting server response... info: Found adapter 'IWAF' info: Found adapter 'EDI' info: Found adapter 'iWay' info: Found adapter 'Java' info: Found adapter 'PeopleSoft' info: Found adapter 'RDBMS' info: Found adapter 'SAP' info: Found adapter 'Siebel' info: Found adapter 'SWIFT' info: Found adapter 'TPI' info: Found adapter 'IWAF' info: Found adapter 'EDI' info: Found adapter 'iWay' info: Found adapter 'Java' info: Found adapter 'PeopleSoft' info: Found adapter 'RDBMS' info: Found adapter 'SAP' info: Found adapter 'Siebel' info: Found adapter 'SWIFT' info: Found adapter 'TPI' debug: No flow timeout specified, so default of 10 seconds has been set for this test. To change, set a specific flow timeout property. debug: xable - flow root debug: xable - flow start debug: setting flow variable xtrack=full debug: setting flow variable Debug=true debug: setting flow variable schema=Any debug: setting flow variable location=schemas\any.xsd debug: setting flow variable roottag=request debug: setting flow variable timeout=0 debug: setting flow variable debug=false debug: node Start retList[0]: success debug: xdpflow starting new flow flowTest.1 edgecount=2 debug: node Setup SciFiBooks DeleteAll retList[0]: success debug: node Run SciFiBooks DeleteAll retList[0]: success debug: node Signal DeleteAll Finished retList[0]: success
debug: Ending pflow, subthreads=0 debug: evaluate for COND(SREG(Event1),eq,DeleteAllDone) returns: true debug: node Waitfor DeleteAll Signal retList[0]: success error: Detected problem in agent execute: node request not found in input document debug: node Get RSS Document from url that is specified in the original request document retList[0]: $error debug: Ending pflow, subthreads=1 Output documents: End Object Name:trace_FLOWCHART_STARTUP_START_Start#1 Document ID:2009-01-13T17_46_25.385Z_019.dat End Object Name:trace_FLOWCHART_AGENT_Setup SciFiBooks DeleteAll#1 Document ID:2009-01-13T17_46_25.385Z_020.dat End Object Name:trace_FLOWCHART_ADAPTER_Run SciFiBooks DeleteAll#1 Document ID:2009-01-13T17_46_25.385Z_021.dat End Object Name:trace_FLOWCHART_STARTUP_SET_Signal DeleteAll Finished#1 Document ID:2009-01-13T17_46_25.385Z_022.dat End Object Name:trace_FLOWCHART_STARTUP_END_End#1 Document ID:2009-01-13T17_46_25.400Z_023.dat End Object Name:End Document ID:2009-01-13T17_46_25.400Z_024.dat End Object Name:trace_FLOWCHART_STARTUP_SYNCH_Waitfor DeleteAll Signal#1 Document ID:2009-01-13T17_46_25.400Z_025.dat End Object Name:trace_FLOWCHART_AGENT_Get RSS Document from url that is specified in the original request document#1 Document ID:2009-01-13T17_46_25.400Z_026.dat End Object Name:FAILED Document ID:2009-01-13T17_46_25.400Z_027.dat Total Output Documents :9 Total Execution Time :266 ms Status: Succeeded
To perform a test using the Default Run option:
The process flow is automatically compiled, as noted in the Message Log pane, and the Test Runtime Options dialog box opens, as shown in the following image.
All - traces all active objects.
Select - traces all debug enabled objects.
None - disables tracing.
DEBUG - reports progress traces of the test.
DEEP DEBUG - reports additional traces and details about errors.
This determines whether or not the work scheduled in the process flow is actually performed during the test, for example, inputting records to a database.
The Input Document dialog box opens.
The test results appear in the Message Log pane and a window opens with the following message:
The current selected process has successfully been tested. Do you want to view the detail results?
Click Yes to open the Process Test Viewer window.
For examples of test results, see How to Test a Process Flow Using the Run Option.
To run this Test option:
The process flow is automatically compiled and tested using the previous test settings. The test results appear in the Message Log pane and a window opens with the following message:
The current selected process has successfully been tested. Do you want to view the detail results?
For test result examples, see How to Test a Process Flow Using the Run Option.
iWay Software |