How to populate mandatory fields in the Automated Test Framework (ATF)?

Johannes Mweli
Giga Guru

Hi ServiceNow Community Developers,

 

I have a very simple manual test case that I am trying to automate using ATF. I am able to do most of the steps however I am getting stuck in step 5 where I need to populate the mandatory fields if they are not already populated. 

 

Would you please advise as to how can I accomplish that. I have attached the manual test script that I am trying to automate. 

 

Thanks,

Johannes

1 REPLY 1

t_sadahisa
Giga Guru

Hi @Johannes Mweli 

 

In ATF, it is difficult to do dynamically test such as you attached.
Following servicenow best practice, My recommendation is creating and updating record through ATF test.

 

# example test step
1. create chage request
2. open change request which you create in step.1
3. update the mandatory field through form ui.
4. check behavior (record validation or so on)

 

# FYI: servicenow atf best practice
https://docs.servicenow.com/bundle/tokyo-application-development/page/administer/auto-test-framework...