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 

  1. Click the Set Breakpoints icon .

  2. 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.

  3. Click the Tester tab to the left of the project panel. The test panel replaces the project tree.

  4. Click the Start testing viewed process button.

  5. 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.

  6. Make a change to the polled file to start the process.

  7. 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.

  8. Next, delete PolledFileTest.txt.

  9. Step through the process once more.

    ActiveMatrix BusinessWorks creates a file Fileremove.txt. The content of Fileremove.txt is just the time of modification, because the polled file no longer exists.

  10. Click the Stop Test Mode icon to return to design mode.

    For more information about using test mode, see TIBCO ActiveMatrix BusinessWorks™ Process Design.