Creating ATF Test to validate Related List visibility in Agent Workspace but even though the related list is there the test is failing.

Julian
Mega Contributor

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? 

8 REPLIES 8

Prateek kumar
Mega Sage

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

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? 

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

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.