How to ADD Incident in to the Problem related list using ATF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2025 01:35 AM
Hi Team,
Can anyone help With ATF Steps
How to ADD Incident in to the Problem related list using ATF.
i will able to click Add button.
I don't know how to filter and select
Steps:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2025 02:02 AM
Hi @saha23456 ,
I don't think this is directly possible with Click UI Action > Record.
Try writing a run server side script to get the sys id of the record.
If my answer helped in any way, please mark it as ✅Correct & 👍Helpful.
Regards,
Mahathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2025 02:04 AM
can you help me the steps/code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2025 02:21 AM
I don't have it handy but i suggest for sample run server side validation script, check the OOB one for INCIDENT MGMT:Parent and Child Incident state sync up, this has similar test step to check child incidents. This might help you formulate a Run server side script.
If my answer helped in any way, please mark it as ✅Correct & 👍Helpful.
Regards,
Mahathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2025 02:29 AM
I was able to add all the records. Please use Click Custom Component UI Step and select the correct button
I don't think you can select specific incidents and then add only those
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2025 02:32 AM
Open the ATF Test Case
- Navigate to Automated Test Framework → Test Cases.
- Create a new test or open an existing one.
Create a New Step for Opening the Problem Record
- Step Type: Open a New Form or Open an Existing Record.
- Table: problem (Select an existing problem record or create a new one).
- Action: Open Record.
Click the "Add" Button in the Related List (Incidents)
- Add a step: Client Test Step → Click a UI Action.
- Choose Related List: Incidents.
- Select UI Action: "Add" (Button to add incidents).
Filter and Select an Incident in the Lookup Window
- Add a step: Set Field Values
- Field: Use the search filter to locate a specific Incident.
- Select the Incident and click "OK".
Submit or Save the Form
- Add a step: Click a UI Action → Click "Save" or "Update".
Validate that the Incident is Linked
- Add a step: Field Validation.
- Field: "Incidents" (Related List).
- Condition: Contains INCXXXXXX