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.