- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2019 10:47 AM
I have a custom app that has 2 tables. One table is a one-to-many table.
In ATF, I have a test that adds a record to the parent table.
How do I then add a test step to open a form for the child record and carry on from there?
In other words, how do I make ATF click the "New" button below so I can make it set values on that form?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2019 12:56 AM
I am assuming that your child form has a field which is a reference to the parent.
I am assuming that when you click the "New" button, it opens the child form, and the parent field is auto-populated.
To test creation of a child record, use an "Open a New Form" step immediately followed by a "Set Field Values". The "Set Field Values" will specify the value of the parent by referencing the test step that created the parent record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2019 09:19 PM
Hi,
please check below links:
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2019 10:01 PM
Hi,
Please visit below link,It would help you.
Please mark as Correct,If it solves your issue,also mark as Helpfu.If you find any help worthy.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2019 12:56 AM
I am assuming that your child form has a field which is a reference to the parent.
I am assuming that when you click the "New" button, it opens the child form, and the parent field is auto-populated.
To test creation of a child record, use an "Open a New Form" step immediately followed by a "Set Field Values". The "Set Field Values" will specify the value of the parent by referencing the test step that created the parent record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2019 01:05 PM
I don't want to have a field on the child form for the parent.
I can't set the value with ATF if the field is not on the form and editable, but I don't want my end-users to be able to muck with it.