Unit testing a Service File rule
Use the unit testing feature to verify that the operations of a service file rule function correctly before you add an external component to your testing process.
Before you begin, see How to provide test data when testing service rules.
To run a unit test, complete the following steps:
- Save the rule form.
- Start the Tracer by clicking Tracing services. . For more information, see
- Click .
- Complete the form as described in the following table, and then click Execute.
Field | Description |
Requestor Context |
Select a radio button to define the requestor session is to be used in the test:
|
Authentication User ID | If you selected Initialize service requestor context , and the service package instance for the service requires authentication, enter the Operator ID to be used to test the service. |
Authentication Password | If you selected Initialize service requestor context , and the service package instance for the service requires authentication, enter a password for the Operator ID. |
Enter Request Data |
Select:
|
File Content | Enter the contents of a test file, including delimiters. This text area appears when you choose Supply File Content for the previous field. |
File Location | Click Browse to upload a test file. This field appears when you choose Upload a local file for the previous field. |
Previous topic Unit testing a Service Email rule Next topic Unit testing a Service HTTP rule