EveryRole

Kinds of user

Who may open what.

Who may open what

A grid of pages and kinds of user: a visitor, a member and an admin each try every page. Each page opens for the people who may see it and sends everyone else away. The member tries the admin page and is blocked, as expected.

The visitor first, with nothing from you

Role-based testing starts with the visitor. Signed out, EveryRole already explores everything a visitor can reach: no password, no access, only your address.

Then each kind of user you add

Member, admin, paying customer, viewer: each gets its own journeys. Signing in needs no password of yours: a one-time login link from your app, or the tests run in your own CI, so your logins never leave it. A test account you make for it, never your own, ideally on staging, is the last option.

A kind of user marked admin is explored and tested only on staging or previews, unless you allow production.

EveryRole
The setting Admin tests on production in EveryRole, off: admins are tested only on staging or previews
Admin tests stay off production until you allow them. A test app.
EveryRole
The kinds of user of an app in EveryRole: the visitor, with no login needed, and an editor, signed in
Kinds of user: the visitor needs no login, the others sign in. A test app.

Who may open what

At every stop, for every other kind of user, code reads two things: does the page open or send them away, and is the control there, missing or turned off. So “can open the page but can’t do it”, a viewer against an editor, a free user against a paid one, is tested too.

And what one user made, another opens by its address and must be refused.

  • Opensfor someone who may see it
  • Blockedsomeone who may not was sent away, as they should be
  • Brokensomeone who may not got in

Keep reading

Roles and permissions

Role-based testing: your app is several apps

Role based testing means running each journey as every kind of user, each with its own expected result. One suite run as admin tests one of your apps.

5 min read

Roles and permissions

IDOR testing: open another user’s item by its URL

IDOR testing in one move. Log in as a second user, type the address of the first user’s item, and the app must answer not found. How to run it on every deploy.

6 min read

See it on your own app.