Is testing Activity Logs in ATF still not supported ?

Mohamed_009
Tera Contributor

Hello Community,

 

I would like to check whether validating Activity Logs (Work Notes / Comments / Field Changes) in Automated Test Framework (ATF) is still not fully supported.

I came across a ServiceNow Community post from around 3 years ago which mentioned that Activity Stream could not be directly tested in ATF. I also found another article that provides a workaround for testing Activity Logs when the Activity Log section is on a tab.

Since ServiceNow has evolved significantly over the past few releases and many new ATF capabilities have been introduced, I wanted to confirm the current status.

 

Could you please help clarify:

• Is there now any native ATF step available to validate Activity Stream entries?
• Are there any new or recommended approaches to test Activity Logs using ATF?
• Is there any latest documentation or reference available for this?

Any guidance or updated information would be greatly appreciated.

Thank you in advance! 🙏

https://www.servicenow.com/community/developer-forum/how-to-test-activity-logs-in-the-automated-test...

 

https://www.servicenow.com/community/developer-forum/how-to-test-activity-logs-in-the-automated-test...

 

5 REPLIES 5

Sardash
Tera Guru

@Mohamed_009  - 

No native ATF test step exists to validate Activity Stream entries. 
ATF still does not fully support validation of Activity Logs (Work Notes, Comments, or Field Changes). 
You have to use "Asset Text on Page" or "Record Query" Step only 
 
---------------------------------------------------------------------------------------------------------------------------------
If my response helped, please mark it by selecting "Accept as Solution" and " Helpful." 
 

Thank you for the clarification.

Could you please explain how to implement this using the Record Query step in ATF?

If possible, could you share the steps or an example of how to configure the Record Query step to validate Activity Logs (Work Notes / Comments / Field Changes)? This would really help in implementing the solution correctly.

Thank you in advance! 😊

@Mohamed_009  - You can directly query on 'Journal Entry (sys_journal_field)' table by using 'Record Query' step by giving following details -

1. Name - table name (e.g., incident, sc_req_item)

2. Element - the journal field (worknotes or comments)

3. Element ID - Sys ID of the target record (e.g., the Incident you’re testing)

4. Value - the text of the note/comment

----------------------------------------------------------------------------------------------------------------

If my response helped, please mark it by selecting "Accept as Solution" and " Helpful." 

Ankur Bawiskar
Tera Patron

@Mohamed_009 

Nothing available OOTB to test this

You can try to explore the workarounds

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader