How to populate mandatory fields in the Automated Test Framework (ATF)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023 02:58 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2023 06:24 AM
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...