Automated Test Framework - Cannot validate Additional Comments or Work Notes

dbrown008
Kilo Contributor

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

  1. Create Record Producer (for Catalog Item)
  2. Set Variables in Catalog Item
  3. Submit Record Producer
  4. Record Insert - sc_task with Step 3 as Parent
  5. Record Query to confirm Parent - Child Relationship
  6. Record Update - Fill in Mandatory Fields
  7. Open Existing Task
  8. UI Action to Close Task
  9. Open the RITM Form (generated from Catalog Item)
  10.  ****Cannot find Fields to verify Work Notes updated from sc_task Close Notes****

The ServiceNow docs have failed me.

9 REPLIES 9

Ct111
Giga Sage

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 commentsApproval historyComments, 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

dbrown008
Kilo Contributor

As a matter of fact, these are the exact steps I tried to use, but to no avail.

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.

Nitesh Balusu
Giga Guru

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.