I was a developer a long time ago and have been tasked with our teams automated testing with Selenium and C# for our web application;
Our application has many roles a user can be; such as an admin, carrier, Power user, and such. Depending on what role you are assigned, determines what you have access to in the application.
An admin has access to all pages, etc.
A Carrier can only see buttons x and y; and can only see menu options A, B, and C for example
A user is required to Authenticate.
I am having trouble visualizing the best way to create my tests/user. Almost all automation tests will need to be run for each user role. (we actually have 4 or 5 different role types, each has different access to parts of the application)
How would this be best handled? Anyone have some examples I can see (I am a visual learner)?
I am not trying to test having multiple users logged in at once; I am trying to test given a persons admin settings in the application – when they log in and authenticate, it will take their login information, and get their role, then the app takes care of what they can and can’t have access to. (I am using a page object model as well)