Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 TIBCO BusinessWorks Example : Testing the TestFileOperations Process

Testing the TestFileOperations Process
You can test the TestFileOperations process directly from the Tester or by using the Eclipse Launch Configuration. This example walks you through the steps to test the process using the Eclipse Launch Configuration in TIBCO Business Studio. Running the process model in the test environment allows you to make sure the process works correctly before you deploy it. Follow these steps:
1.
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.
a.
b.
c.
d.
e.
ClickApply and then click Run. The selected project is opened in the TIBCO Debugger perspective.
4.
The process is now in Test mode.
5.
6.
TIBCO BusinessWorks creates an output file named TestResult-modify.txt after you have stepped into the WriteTestResult activity and writes the appropriate text to the file.
The text must be the text of the modified file followed by 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.
7.
Next, delete FilePollerTest.txt.
8.
TIBCO ActiveMatrix BusinessWorks creates a file TestResult-remove.txt. The content of TestResult-remove.txt is just the time of modification, because the polled file no longer exists.
9.
Returning to Designer Perspective
After stopping the running TestFileOperations process, you must remove the break points and return to the Designer perspective where you can edit the process. To clear the breakpoints and return to the Designer perspective:
1.
2.
In the window that appears, select Clear All, then click OK.
The break points are cleared.
3.
a.
Select the menu item Window > Open Perspective > Designer - TIBCO
The Designer perspective is loaded.
OR
b.
Click the Designer - TIBCO perspective button available just above the Editor view’s top right corner to open the Designer perspective.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved