---
sourceDocument: Australia Build or modify applications
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/application-development

 Release :

    - australia

ft:locale :

    - pt-BR

ft:publication_title :

    - Australia Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Automated Test Framework use case: test a data policy

# Automated Test Framework use case: test a data policy {#ariaid-title1}

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 min. de leitura

This use case illustrates testing a data policy with the Automated Test Framework.{#atf-data-policy-01-use__dbc_4tq_mx}

## Antes de Iniciar

Role required: atf_test_admin

## Por Que e Quando Desempenhar Esta Tarefa

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

Figura 2. Automated Test Framework: Data policy example   

## Procedimento

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

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

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.  
   Figura 5. Step 3 - Field State Validation   

4. If applicable, set the conditions that trigger the data policy.  
   This example sets Impact to High.  
   Figura 6. Step 4 - Set Field Values   

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.  
   Figura 7. Step 5 - Field State Validation   

{#atf-data-policy-01-use__vtg_fxn_jx}

