Creating ATF Test to validate Related List visibility in Agent Workspace but even though the related list is there the test is failing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2020 07:02 AM
Hi,
Im trying to create an ATF Test to verify that Related Lists Appear in a consumer record. My Test Steps are:
- Create a User - Creates user with necessary roles & permissions
- Open a New Form - Open a consumer form in Agent Workspace
- Set Field Values - Sets some values to the Consumer Form
- Click UI Action - Saves Consumer Form (This reloads page and takes you to the Consumer Record)
- Validate Related List Visbility - Should verify that the related list is there.
If I go through these steps myself I am able to view the related list, and click on it but the test is failing.
The error message I am getting is: FAILURE: Expected the following related lists to be visible on the 'csm_consumer' form but they were not visible: Case->Consumer.
Is this not the way to test related lists? Do you have any recommendations?
- Labels:
-
Agent Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2020 07:08 AM
Does the user have access to view the related list whom the test is running on?
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2020 07:17 AM
I believe so, they are able to create cases and consumer records. They should be able to see a "Related List" of those cases in there. Is there a specific role for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2020 07:21 AM
Try impersonating the user which your ATF session is using and validate the same
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2020 07:30 AM
If I impersonate a user in the same groups I am able to create the consumer record, save, and view the Related List. This is the whole process the test is doing. This is why I don't get why it is failing.
As the test runs, if I view what shows up in the Client Test Runner, I am able to see the related list once the record is saved but the test still fails.