Automated Test Framework - Cannot validate Additional Comments or Work Notes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2019 11:21 AM
In our instance, we have a business rule that will add the Close Notes of a Incident or Catalog Task to the Work Notes of the Parent Record. In other words, once a subtask closes, the Close Notes will be copied into the Work Notes of the Parent Task.
When I attempt to use a Server Validate or Form Validate in Automated Testing to make sure the Work Notes are updated, I cannot find the fields anywhere to do so.
Steps followed in Automated Test Framework
- Create Record Producer (for Catalog Item)
- Set Variables in Catalog Item
- Submit Record Producer
- Record Insert - sc_task with Step 3 as Parent
- Record Query to confirm Parent - Child Relationship
- Record Update - Fill in Mandatory Fields
- Open Existing Task
- UI Action to Close Task
- Open the RITM Form (generated from Catalog Item)
- ****Cannot find Fields to verify Work Notes updated from sc_task Close Notes****
The ServiceNow docs have failed me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2019 02:07 PM
Hi,
I hope you have gone through below
Note: The field values validation step works only with fields that belong to the record for the open form. For example, with the incident table, this step is not able to validate the Additional comments, Approval history, Comments, or Work notes "fields." The reason is that they are not actual fields on the incident record. They are UI controls that make it convenient to work with related tables. To validate these cases, use the Server test step, Record Validation, instead.
for more info check the below link
https://docs.servicenow.com/bundle/london-application-development/page/administer/auto-test-framework/reference/atf-assert-value.html
Mark my ANSWER as CORRECt and HELPFUL if it helped
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2019 06:02 AM
As a matter of fact, these are the exact steps I tried to use, but to no avail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2019 08:35 AM
Hi ,
This seems to be a known issue check the below link , dont waste your time on this
https://community.servicenow.com/community?id=community_question&sys_id=f30a0769db5cdbc01dcaf3231f9619b0
Currrently , no solution has been given even after raising HI .
Mark my solution as CORRECT and HELPFUL if it helped.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2019 08:59 AM
You can try using a serverside script to query the sys_journal_field table and see if a record has been inserted with RITM/SC Task number. that should solve your problem.