How to test activity logs in The Automated Test Framework?

ramuv
Tera Expert

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.

ramuv_0-1690351170950.png

ramuv_1-1690351331261.png

Thanks

 

 

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@ramuv 

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.

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

Shaqeel
Mega Sage

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

Frantisek2
Tera Contributor

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