ATF is failing on Tests with 2 created users

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2020 01:51 AM
Hey there!
We have been working with ATF for a while now and loving the feature. Since we were able to quickly test for upgrades and releases, it saves us allot of time.
However, right now (since a week) we are facing a weird issue we never came accross before. While creating users in a test, always the 2nd one we want to created fails to be added to a group or get roles. This way we can't continue with the test.
We have checked allot (permissions, changes in update sets etc) but we could not find the cause of this. Anyone else has experienced something similar or know the answer to our burning question?
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2022 05:32 AM
The reason this occurs is because you are impersonating the original User when you try to create the 2nd User. I also just ran into this, and to test it out I impersonated myself right before creating the 2nd User and then the Create worked. Because there is no "End Impersonate" step, you likely will need to create all Users at the beginning of your tests, making sure not to impersonate anyone before all the Users are created.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2022 08:52 AM
I was having this issue and this fixed it for me!