---
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 business rule

# Automated Test Framework use case: test a business rule {#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 business rule with the Automated Test Framework.{#atf-biz-rule-use__g1y_ktq_mx}

## Antes de Iniciar

Role required: atf_test_admin

## Por Que e Quando Desempenhar Esta Tarefa

This example tests a business rule that sets the value of Locked out to true when active is set to false. Figura 1. Automated Test Framework: Business rule example   

## Procedimento

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

2. Open a form for the table to which this business rule applies.  
   This example opens a new User form.  
   Figura 3. Step 2 - Open a New Form   

3. Set values on the form that meet the requirements for submitting the form and for triggering the business rule.  
   This example sets values for the Active, Last name, and First name fields.  
   Figura 4. Step 3 - Set Field Values   

4. Submit the form.  
   Figura 5. Step 4 - Submit Form   

5. Validate that the business rule ran.  
   In this example the business rule tested sets Locked out to true if Active is set to false.  
   Figura 6. Step 5 - Field Values Validation   

{#atf-biz-rule-use__vtg_fxn_jx}

