Populating Messages with Test Data

This topic describes how to populate test message data in the Provider REST Template utility. This section discusses how to:

  • Manually enter XML to populate test data.

  • Upload XML from files to populate test message data.

  • Manually enter field values to populate test message data.

To manually enter XML to populate test data:

  1. Access the Enter XML page.

    1. Select PeopleTools > Integration Broker > Service Utilities > Provider REST Template. The Provider REST Template page appears.

    2. Select a service operation to test in the Choose Existing Operation grid.

      The REST Tester page appears.

    3. Click the Provide XML button.

      The Enter XML page appears.

  2. In the XML box enter XML to populate the message

  3. Click the OK button.

The REST Tester page appears and the XML file you uploaded appears in the Input Message box.

To upload XML from a file to populate test data:

  1. Access the Enter XML page.

    1. Select PeopleTools > Integration Broker > Service Utilities > Provider REST Template. The Provider REST Template page appears.

    2. Select a service operation to test in the Choose Existing Operation grid.

      The REST Tester page appears.

    3. Click the Provide XML button.

      The Enter XML page appears.

  2. From the File Encoding drop-down list, select the encoding of the file you are uploading.

  3. Click the Upload XML from File button.

  4. Browse to and upload the XML file.

    The XML appears in the XML box on the page.

  5. Click the OK button.

The REST Tester page appears and the XML file you uploaded appears in the Input Message box.

This section describes how to:

  • Manually enter field values.

  • Assign PSCAMA values and audit actions to Level 0 records.

  • Assign PSCAMA values and audit actions to Level 1 records.

Understanding Manually Entering Field Values

You can populate the message definition by manually entering values for fields.

In addition you can specify PSCAMA record values and audit actions for Level 0 records, as well as

PSCAMA audit actions for Level 1 and greater records.

Manually Entering Field Values

To manually enter field values to populate test data:

  1. Access the REST Tester page.

    1. Select PeopleTools > Integration Broker > Service Utilities > Provider REST Template. The Provider REST Template page appears

    2. Select a service operation to test.

      The REST Tester page appears.

  2. In the tree structure for the message definition, single-click on a field name to populate.

    A dialog box for the field opens that displays field length and field type information as a guide for entering values.

  3. Enter a value for the field.

  4. Click the OK button.

  5. Repeat Step 2 through Step 4 for each field for which you want to define a test value.

Values you enter display after the field name in the tree view. The tree shows the first 30 characters of an entered value; however, the entire field value is stored.

Assigning PSCAMA Values and Audit Actions to Level 0 Records

To assign PSCAMA values and audit actions to Level 0 records:

  1. Access the REST Tester page.

    1. Select PeopleTools > Integration Broker > Service Utilities > Provider REST Template. The Provider REST Template page appears

    2. Select a service operation to test.

      The REST Tester page appears.

  2. Populate the REST service operation with a rowset-based message.

  3. In the tree structure, click the Level 1 record.

    The Select an Action page appears.

  4. Click the Assign PSCAMA arrow to expand the section

  5. Enter PSCAMA values as appropriate.

    Descriptions of the PSCAMA field values and audit actions are described elsewhere in the product documentation.

    See Supported Message Structures

  6. Click the OK button.

Assigning PSCAMA Audit Actions to Level 1 and Greater Records

To assign PSCAMA values and audit actions to Level 0 records:

  1. Access the REST Tester page.

    1. Select PeopleTools > Integration Broker > Service Utilities > Provider REST Template. The Provider REST Template page appears

    2. Select a service operation to test.

      The REST Tester page appears.

  2. Populate the REST service operation with a rowset-based message.

  3. In the tree structure, click the Level 0 record.

    The Select an Action page appears.

  4. Click the Assign PSCAMA arrow to expand the section

  5. Enter PSCAMA values as appropriate.

    Descriptions of the PSCAMA field values and audit actions are described elsewhere in the product documentation.

    See Supported Message Structures

  6. Click the OK button.