Automated Test Framework use case: test a data policy

  • Freigeben Version: Australia
  • Aktualisiert 12. März 2026
  • 1 Minute Lesedauer
  • This use case illustrates testing a data policy with the Automated Test Framework.

    Vorbereitungen

    Role required: atf_test_admin

    Warum und wann dieser Vorgang ausgeführt wird

    This example tests the data policy that sets the field Assignment Group to mandatory if impact is high.
    Abbildung : 1. Automated Test Framework: Data policy being tested

    Data Policy Rules form for the data policy record being tested.
    Abbildung : 2. Automated Test Framework: Data policy example

    Test steps for data policy example.

    Prozedur

    1. Impersonate a user with the necessary permissions.
      In this example, the step impersonates an admin user.
      Abbildung : 3. Step 1 - Impersonate

      Impersonate test step for data policy example.
    2. Open a form for the table to which this data policy applies.
      This example opens a new incident form.
      Abbildung : 4. Step 2 - Open a New Form

      Test Step form for the Open a New Form test step.
    3. Check that the data policy has not yet been triggered.
      In this example, the step checks to confirm that Assignment group is not mandatory.
      Abbildung : 5. Step 3 - Field State Validation

      Test Step form for the Field State Validation test step.
    4. If applicable, set the conditions that trigger the data policy.
      This example sets Impact to High.
      Abbildung : 6. Step 4 - Set Field Values

      Test Step form for the Set Field Values test step.
    5. Validate that the data policy is enforced.
      In this example, the test confirms that the data policy set Assignment group to High after the previous step set Impact to High.
      Abbildung : 7. Step 5 - Field State Validation

      Test Step form for Field State Validation.