0

The problem I have it's that I don't know what is the best way to test multiple scenarios that test different permissions on files by one or two users. Those tests are automated by Selenium. And my main concern is time usage by running tests.

Currently, we have tests implemented like this:

- One user. One file. Read permission
- One user. One file. Edit permission
- One user. One file. Add file/s permission
- One user. One file. Print permission
- One user. One file. Download permission

- One user. More files. Read permission
- One user. More files. Edit permission
- One user. More files. Add file/s permission
- One user. More files. Print permission
- One user. More files. Download permission

- More users. One file. Read permission.
- More users. One file. Edit permission.
- More users. One file. Add file/s permission.
- More users. One file. Print permission.
- More users. One file. Download permission.

- More users. More files. Read permission.
- More users. More files. Edit permission.
- More users. More files. Add file/s permission.
- More users. More files. Print permission.
- More users. More files. Download permission.

Is this a good way to test every permission by itself? Or is it better to test by one user and one file and then join all permissions and test them all together?

Tried to find some documentation or some article but didn't find any useful information.

1
  • I don't know if you've got this covered elsewhere or is maybe even out-of-scope for your assignment, but where are scenarios for users with mixed permissions? Adding / removing permissions to users while logged in? Users trying to access things without permissions?
    – Prome
    Commented Jan 30, 2023 at 14:51

1 Answer 1

-1

I don't know any best practice for this, but my pov is: rearrange every group of tests so that they resemble an e2e test, that will be easier because in case of success, you spend less time on preparing the test data.

example

  • One user. One file. Add file/s permission -> Read permission -> Edit permission -> Print permission -> Download permission

hope i understood your question correctly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.