How to test activity logs in The Automated Test Framework?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2023 11:06 PM
How to test activity logs in The Automated Test Framework?
Scenario : we want validity the work notes and field changes in the Automated test framework. Please help me on this.
Please find below screen short.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2023 11:24 PM
ATF has it's own limitations.
You cannot test everything using ATF.
In this case it's not possible as per my understanding for activity logs
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
09-25-2023 05:36 AM
Hi @ramuv
You can validate through "Asset text on page".
There is no other way of validating the activity log.
Regards
Shaqeel
***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.
***********************************************************************************************************************
Regards
Shaqeel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2023 01:01 AM
Hello @ramuv, I am probably late to the party but you can check article How to test activity logs with ATF if activity log section tab is not open by default if you want to try check comments via UI and step assert text.
Or to verify the information in the Activity field, you can try method to add test step Record Query to query the table Journal Entries (sys_journal_field) with the following details -
1. Name - Table Name for which you want to verify
2. Element - u_work_notes
3. Element ID - Sys ID of the record for which you want to verify
4. Value - Content you want to verify on Activities