ATF Error- FAILURE: Unable to set field 'assigned_to' to value 'fa1debb41be38150c50d6465624bcbad'. Field 'assigned_to' is not present on the form

Ziad Qadora
Kilo Sage

Hello,

 

I'm creating a test case where a user is created and updates a case task form and then saves the updates which results in an auto assignment to a different group. 

I then create a user  and add them to the assignment group in addition to other groups and impersonate the new user and attempt to assign the case task to themselves.

Later while running test in debug mode, I noticed that not all groups were added to the user profile prior to the impersonating the user and then the user attempting to open the record. The missing group is a security group that is added to both users created in the test case.

What could be the reason why a user is not be added to the all the groups defined during the user creation.

 

 Regards,

 

Ziad

1 ACCEPTED SOLUTION

Ziad Qadora
Kilo Sage

Hi,

Adding a step to impersonate the admin prior to creating the new user resolved the issue, and now the user is added to the security group 

 

Regards,

Ziad

View solution in original post

4 REPLIES 4

Anil Lande
Kilo Patron

Can you please share how you are adding newly created user in different groups?

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Hi @Anil Lande 

 

Please see the screen shots of the user creation step in which the user is added to 4 groups, and the second screenshot shows the user is only a member of 3 groups.  The missing group is the agent security group.find_real_file.png

 

 

 

find_real_file.png

 

Regards,

 

Ziad

Ziad Qadora
Kilo Sage

Hi,

Adding a step to impersonate the admin prior to creating the new user resolved the issue, and now the user is added to the security group 

 

Regards,

Ziad

abeja_maja
Tera Contributor

Hi there. We get the same error type (Unable to set field 'u_service_type' to value....). However it works on a previous step (creating new vs. updating existing record). It seems the form may not load fast enough for the ATF to have the field available.  Our ATF actually passes fine in 5 our of 6 instances and we suspect that instance may be a little busier. Is there a good way to confirm the form has completed loading before the ATF begins to set the field values?