Abhijit4
Mega Sage

One of the challenge in ATF is validating work notes. I have seen many use cases where we need to test activity logs through ATF but we don't have any OOTB step to validate activity logs and we can't even directly use custom UI steps because activity log section is sometimes not first tab(if its first tab then we can directly use Custom UI - > assert text on page step).

However, I found work around to implement this test case.

Here is how we can test, there is one user setting called tabbed forms as shown below,

find_real_file.png

By default this option is enabled for all users with which all users can see sections in tabbed format. This setting is stored in user preferences table called as "tabbed.forms" to decide whether user wants to see section in tabbed form or one below other. Below is the example user preference for system admin user.

find_real_file.png

Assuming that we have created new user in ATF for testing purpose, we can write "Run Server Script" step to Create/Update above entry and change value to FALSE which will show user all tabs one below other. Once this entry is created/updated we can use next step as Custom UI - assert text on Page which will validate if expected text is exist in activities or not.

Any queries/feedback is welcome.

If this article was helpful to you, I would appreciate if you would mark it accordingly.  

Version history
Last update:
‎01-15-2022 03:02 AM
Updated by: