Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 5 TIBCO ActiveMatrix BusinessWorks: Working with the Employee Component Interface : Testing the Example

Testing the Example
Perform the following tasks to test the example.
 
Task A Test GetProcess
Configure the Process
To test the example for GetProcess, you need to log in to TIBCO Designer and configure GetProcess first by following these steps:
1.
2.
a.
Click the File Poller icon.
b.
Click the Configuration tab and specify or browse to the location of the input XML file get_input.xml.
The default location is: TIB_ADPSFT8_HOME\examples\businessworks\EMPLOYEE\Get_input.xml.
This XML file conforms to: TIB_ADPSFT8_HOME\examples\businessworks\EMPLOYEE\Get_input_schema.xsd.
c.
Specify the desired EMPID value (for example, FA0001) in the Get_input.xml file.
3.
a.
Click the Write File icon.
b.
Click the Input tab.
c.
In the Activity Input panel, expand WriteActivityInputTextClass.
d.
In the fileName field, specify the entire path or location of the Get_output.xml file.
4.
a.
Click the Write-File-1 icon.
b.
Click the Input tab.
c.
In the Activity Input panel, expand the WriteActivityInputTextClass. In the fileName field, specify the entire path or location of the get_output_err.xml.
5.
a.
Click the Set Breakpoints icon from the menu bar.
b.
In the displayed dialog, click the Select All button, then click OK.
6.
Run the Test
After you make all the above configurations, follow these steps to test GetProcess in TIBCO Designer:
1.
Select Tools > Show Adapter Tester from the menu and start the rpc adapter instance in the displayed dialog.
2.
Click the Tester tab to the left of the Project panel. The test panel replaces the project tree.
3.
Click the Start Testing Viewed Process button.
4.
In the Select Processes To Load dialog, select GetProcess and click Load Selected. The process is now in test mode.
5.
6.
7.
Click the Stop Testing icon to return to design mode.
8.
Stop the rpc adapter instance in the adapter tester.
Task B Test SyncProcess
Configure the Process
To test the example for SyncProcess, you need to log in to TIBCO Designer and configure SyncProcess first by following these steps:
1.
2.
a.
Click the Write File icon.
b.
Click the Input tab.
c.
In the Activity Input panel, expand WriteActivityInputTextClass.
d.
In the fileName field, specify the entire path or location of the Sync_output.xml file.
3.
a.
Click the Set Breakpoints icon from the menu bar.
b.
In the displayed dialog, click the Select All button, then click OK.
4.
Run the Test
After you make all the above configurations, follow these steps to test SyncProcess in TIBCO Designer:
1.
Select Tools > Show Adapter Tester from the menu and start the pub adapter instance in the displayed dialog.
2.
Click the Tester tab to the left of the Project panel. The test panel replaces the project tree.
3.
Click the Start Testing Viewed Process button.
4.
In the Select Processes To Load dialog, select SyncProcess and click Load Selected. The process is now in test mode.
5.
6.
7.
Click the Stop Testing icon to return to design mode.
8.
Stop the pub adapter instance in the adapter tester.
Task C Test UpdateProcess
Configure the Process
To test the example for UpdateProcess, you need to log in to TIBCO Designer and configure UpdateProcess first by following these steps:
1.
2.
a.
Click the Read File icon.
b.
Click the Input tab and specify or browse to the location of the input XML file get_input.xml.
c.
In the Activity Input panel, expand ReadActivityInputClass.
d.
In the fileName field, specify the entire path or location of the Update_input.xml file. This XML file conforms to TIB_ADPSFT8_HOME\examples\businessworks\EMPLOYEE\Update_input_schema.xsd.
3.
a.
Click the Set Breakpoints icon from the menu bar.
b.
In the displayed dialog, click the Select All button, then click OK.
4.
Run the Test
After you make all the above configurations, follow these steps to test UpdateProcess in TIBCO Designer:
1.
Select Tools > Show Adapter Tester from the menu and start the pub and sub adapter instances in the displayed dialog.
2.
Click the Tester tab to the left of the Project panel. The test panel replaces the project tree.
3.
Click the Start Testing Viewed Process button.
4.
In the Select Processes To Load dialog, select UpdateProcess and click Load Selected. The process is now in test mode.
5.
6.
7.
Click the Stop Testing icon to return to design mode.
8.
Stop the pub and sub adapter instance in the adapter tester.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved