web icon indicating copy to clipboard operation
web copied to clipboard

[QA] run tests with existing users

Open nirajacharya2 opened this issue 8 months ago • 2 comments

We need to make it possible to run tests with predefined users.

we need to modify the test code so that

  1. test gets users from config file or any other way
  2. test runs without admin user
  3. If we are running test with predefined user do not try to delete them.
  4. after hooks should only delete resources that tests creates.

nirajacharya2 avatar Apr 07 '25 09:04 nirajacharya2

If we are running test with predefined user do not try to delete them.

When I am running E2E tests while having users used in tests already created, the tests are failing for me when trying to create them again. Would this solve it? Or should I open a separate ticket for this?

My current workaround is simply having users with different values then those used in tests.

LukasHirt avatar Apr 08 '25 11:04 LukasHirt

yes this would solve it because we would skip the user creation.

the tests are failing for me when trying to create them again

it usually happens if the test is terminated before executing the cleanup step.

nirajacharya2 avatar Apr 09 '25 04:04 nirajacharya2