Skip to content
TestLine Menu
TestLine
QA process

Testing a SaaS app: roles, permissions and data for many customers

Five areas that set SaaS testing apart from an ordinary web app, a permission matrix to copy, and the places where one customer's data most often leaks to another.

author
Artur Machowski, Senior QA Engineer
published
reading
7 min

Short answer

You test a SaaS app like any web app, with five extra areas: roles and permissions, customer data separation (multi-tenancy), invitations and user management, plans and limits, data import and export. Data separation matters most: company A must never see company B’s data, not in the UI, not through the API and not in an export. A typical scope is 10-20 days of work, about PLN 16,000-40,000 net at PLN 200-250 net per hour.

1. Roles and permissions

Start with a permission matrix. An example for an invoicing app:

actionowneradminaccountantemployee
issuing an invoiceyesyesyesno
deleting an invoiceyesyesnono
inviting a useryesyesnono
changing the plan and paymentyesnonono
exporting datayesyesyesno
viewing reportsyesyesyesown only

Check every cell twice: in the UI (the button is hidden or disabled) and through the API with that role’s token (the request is rejected with a 403). A hidden button doesn’t mean the action is blocked.

2. Customer data separation

Set up two customer accounts, A and B, with similar data, for example invoices with the same numbers. Then check that A’s data doesn’t appear for B in:

  • lists and search;
  • reports and dashboard statistics;
  • CSV and PDF exports;
  • attachments and files, including via a direct link;
  • email and in-app notifications;
  • URLs with an ID, e.g. /invoices/1042 swapped for the ID of an invoice belonging to customer A;
  • suggestions in autocomplete fields.

This is a basic access check as part of functional testing, not a penetration test. When you need a pentest is covered in what a QA tester can’t replace in security. I describe API scenarios in 15 negative REST API test scenarios.

3. Invitations and users

  • inviting a new person, and a person who already has an account in another organisation;
  • an expired invitation, and one used a second time;
  • changing a role, with permissions removed immediately;
  • removing a user: their data stays in the organisation, and they lose access, including in an open session;
  • switching between organisations, if a user belongs to several.

4. Plans, limits and payments

  • going over a plan limit, e.g. number of users or documents: a clear message, not a server error;
  • upgrading and downgrading the plan mid-billing period, with a correct proration;
  • the end of the trial period;
  • a failed subscription payment and access a few days later;
  • subscription invoices with correct details and VAT.

I cover subscription payment notifications and their retries in the guide testing webhooks and payments.

5. Data import and export

  • importing a CSV file with non-ASCII characters such as Polish letters, empty fields and invalid rows;
  • a large import, e.g. 10,000 rows;
  • an export that matches what the user sees in the app;
  • exporting and deleting all data at the customer’s request.

Automated tests in SaaS

Automation at the API level gives the most:

  • permission matrix tests: every role, every action, the expected status code;
  • data separation tests: customer B’s requests to customer A’s resources;
  • E2E tests of 5-10 critical paths, e.g. signing up an organisation, inviting a user, issuing a document, payment.

Run on every release, these tests make sure a new feature doesn’t expose someone else’s data. I describe how to spread tests across levels in the test pyramid in practice.

How I can help

I test SaaS apps as part of manual testing and API testing: permission matrix, data separation, plans and integrations, with automated permission tests in CI. I describe budgets in how much does it cost to test a web app. Describe your app and its roles in the contact form.

Frequently asked questions

What matters most when testing a SaaS app?

Customer data separation and permissions. A bug that lets company A see company B's invoices is more dangerous than any UI bug. That's why both areas are tested through the UI and through the API, in every feature that shows or exports data.

How do you test roles and permissions?

Write out a matrix: rows are actions, columns are roles, and each cell says allowed or not. Then check every cell, including through the API with that role's token, because a hidden button in the UI doesn't mean the action is blocked.

What is multi-tenancy and how do you test it?

It's an architecture where many customers use one instance of the app and their data is kept separate. You test it on at least two customer accounts with similar data, checking lists, search, reports, exports, files, notifications and URLs containing IDs.

How much does it cost to test a SaaS app?

Roughly 10-20 days of work, which is about PLN 16,000-40,000 net at PLN 200-250 net per hour. It depends on the number of roles, integrations and modules.

Is testing data separation a security test?

A basic check that one customer can't see another's data is part of functional testing and is worth doing on every release. It doesn't replace penetration testing done by a security specialist.

Got a release in a few weeks?

Describe your project in the form. I'll reply with questions about scope or an initial test plan.