Test accounts: creating, sharing, resetting and cleaning them up safely
Plan test accounts like keys to a building. Give each role an account and an owner, keep secrets safe, and plan a reset and an end date.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: hotel rooms and key cards. A hotel gives each guest a room and a key card. When the guest leaves, housekeeping resets the room and the old card stops working. The front desk knows which guest has which room. Two guests never get the same room by mistake.
Daily List is a to-do list app. Tom, the tester, is about to test sharing a list. He needs a free-plan owner, a paid-plan owner, a friend who can edit and a friend who can only view. Each one is a test account: a made-up account used only for testing.
Last week the team had no plan for these accounts. Tom and Mei, the test lead, both signed in to the same paid account. Mei turned reminders off. Tom's reminder test then failed, and he lost an hour looking for a defect that was never in the app.
So Tom writes a : a short list of every test account, its owner and its end date. He gives each tester their own account, and he keeps the passwords somewhere safe. After each run he puts the accounts back to a known start.
The picture has a limit. A hotel card stops working at a set time. A test account may keep old sign-ins and saved codes that need to be cancelled on purpose.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 1 in this section
- housekeeping
- routine tidying and upkeep work
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Give each tester an account, keep its secrets safe, reset it after a run, and retire it on a set day.
- Create and add to the roster
- Use it alone
- Share with care
- Reset to the start state
- Retire on the end date
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The hotel room for each guest | One test account for each person or role |
| The front desk list of rooms and guests | The test account roster |
| Housekeeping resetting the room | The account reset |
| Cancelling the old key card at checkout | Signing the account out everywhere |
| The checkout day | The account's end date |
WHERE THIS PICTURE STOPS
- A hotel key card stops at a set time. A test account may keep old sign-ins that must be cancelled on purpose.
- A hotel room is reset by staff. A test account is reset by a script or a person, and a used-up trial cannot be reset.
- A hotel guest does not change the room's rules. A tester can change a plan or a setting that spoils the next test.
HOOK
Name it, own it, reset it, retire it.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
One account per role, a roster of them, a reset between runs, and a retirement when done.
| In the trick | What it stands for |
|---|---|
| Hotel room for each guest | One test account for each person or role |
| Front desk list of rooms and guests | The test account roster |
| Housekeeping resetting the room | The account reset |
| Cancelling the old key card at checkout | Signing the account out everywhere |
TELL A FRIEND
A test account is like a hotel room with a key card. Each guest gets their own, the front desk keeps the list, housekeeping resets the room, and the old card is cancelled when the guest leaves.
OFTEN MIXED UP WITH Designing test data. That lesson chooses the values that go into tests. This lesson is about the accounts that hold the data. It covers who owns them, how their secrets are kept, how they are reset and when they are retired.
PRACTISE AND KEEP
Sources for this topic — 11 sources
- Market practice
Test Accounts: A Hidden Risk (library record) ↗ — Association for Computing Machinery (ACM) · An article abstract says small lapses around test accounts can lead to breaches, and it advises against shared credentials and in favour of individual, tightly controlled test accounts with least privilege and accountability (search excerpt of a library record, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Communications of the ACM, volume 68, issue 1, January 2025, pages 46-49 (per the library record). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Tips for Making Multi-User QA More Efficient (Viget) ↗ — Viget · Advice for QA that needs several users: use a simple naming scheme so that each test user maps to one email address you can track (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Test Accounts Are Infrastructure: Managing a Shared Pool for Parallel Automation (HackerNoon) ↗ — HackerNoon · Hard-coded shared accounts block parallel test runs; a pool lends one free account to each test and takes it back afterwards (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
How to manage test credentials practically and securely (Ministry of Testing Club) ↗ — Ministry of Testing · A Ministry of Testing discussion: keep test credentials in a managed secret store, keep automation logins apart from shared manual ones, and change shared passwords when someone leaves (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Teardown step groups and flows (mabl help center) ↗ — mabl · A teardown runs every time a test runs, even when the test fails, so a failure in the middle does not leave data behind (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Reset a data set (Informatica Test Data Management user guide) ↗ — Informatica · Reset moves a saved data set back to the test system, which can swap corrupted test data for a fresh copy of the same data (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Test Data Management 10.5 user guide (per the URL). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Processing data in the sandbox (Information Commissioner's Office regulatory sandbox FAQ) ↗ — Information Commissioner's Office (ICO) · Live or dummy data may be used for testing if the law is followed; dummy data may be better because it carries no risk to the people concerned; live data may need an impact assessment first (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Testing access control (beqom PayAnalytics help center) ↗ — beqom · To test a role, create a dedicated test user, give it the role under test, sign in as that user and check the limits for both features and data (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Checking out rooms in Nebula Hospitality (SALTO Systems support) ↗ — SALTO Systems · Checking a room out removes its guests and cancels their key cards, but leaves the room's access rights in place for the next guest (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
A hotel owner tested old key cards at three big hotel chains: why they still opened the lounge, gym and elevators months later (View from the Wing) ↗ — View from the Wing · A hotel blog tested old key cards and found they still opened doors months later, because the locks checked cards on their own (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read as a search excerpt only. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Regulation (EU) 2016/679 — data protection principles, definitions and security ↗ — European Union · Registry source for the principles of purpose limitation and data minimisation that are the reason not to put real people's data in test accounts; this round did not open it
Primary original OJ PDF opened 8 November 2026 at https://eur-lex.europa.eu/eli/reg/2016/679/oj/eng/pdf . Read Recital 26, Articles 4(1), 4(5), 5, 6 and 32 for test-data teaching. Existing Article 5 uses remain valid. This is not a complete later-amendment, case-law or national-law audit. Do not infer a universal test-data retention period or permission to copy production data.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.