Testing the FileTest Process
You can test the FileTest process directly from TIBCO Designer. This allows you to make sure the process works correctly before you deploy it. Follow these steps:
Procedure
-
Click the Set Breakpoints icon
.
-
In the window that appears, choose Select All, then click OK.
Breakpoints allow you to step through the process. Stepping helps you see what happens when each activity executes.
-
Click the Tester tab to the left of the project panel. The test panel replaces the project tree.
-
Click the Start testing viewed process button.
-
In the process selection window that appears, the FileTest process is selected by default. Click Load and Start Current.
The process is now in Test mode.
-
Make a change to the polled file to start the process.
-
Once the TestFilePoller process starter is highlighted (indicating a process has started), click the Step to next activity icon
to step through the process.
ActiveMatrix BusinessWorks creates an output file named
Filemodify.txt
after you have stepped into the WriteToTestFile activity and writes the appropriate text to the file.The text should be the text of
PolledFileTest.txt
and, in a new line, the time, in milliseconds, since January 1, 1970.You can click on each activity in the process definition as you step through it. If you click on the Process Data or Output tabs for the activity, you will see the actual process data and output of the activity as the process executes.
-
Next, delete
PolledFileTest.txt
. -
Step through the process once more.
ActiveMatrix BusinessWorks creates a file
Fileremove.txt
. The content ofFileremove.txt
is just the time of modification, because the polled file no longer exists. -
Click the Stop Test Mode icon
to return to design mode.
For more information about using test mode, see TIBCO ActiveMatrix BusinessWorks™ Process Design.