Class accounts¶
For the instructor: the students' accounts are created in one gesture, from a file shipped with ten demonstration accounts, which you adapt to your class.
Each student works with their own accounts: a PerfShop account (JMeter UI and Scripts UI: JMeter and
Scripts rights, no other) and a Squash TM account (« Testeur référent », Test referee, on the PerfShop QA
project). One identifier — an email address — and one password for both.
The home page shows your accounts
The home page shows the administration accounts of the platform to the whole class, yours included (PerfShop superadmin) and the Squash TM one. Tell the students not to use them: their accounts are the ones you hand them. Masking these accounts is planned with the hardening of the platform.
The class file¶
classe/comptes.csv, in the installation folder (the one where you ran ./build.sh): one student per line,
identifiant;prenom;nom (identifier; first name; last name).
- The first installation copies it from
classe/comptes.exemple.csvand creates its ten demonstration accounts,eleve01@classe.testtoeleve10@classe.test(see "Replace the demonstration accounts"). - A spreadsheet or a text editor will do. The tool reads what a spreadsheet saves: UTF-8, or Windows-1252 (what Excel
in French saves as « CSV (séparateur : point-virgule) »: accents are kept, and the tool says so); separator
;,,or tab, taken from the header; quoted fields; rows emptied instead of deleted. The recommended format remains "CSV UTF-8". - Three columns, in this order:
identifiant,prenom,nom(the header may carry capitals and accents). - The identifier is an email address, 50 characters at most: it is the login of JMeter UI, Scripts UI and Squash TM. No
message is ever sent to it. First and last names are optional (Squash TM shows them). A line starting with
#is a comment. - 500 students at most. The instructor's accounts (PerfShop superadmin, Squash TM administrator) are not listed.
- A faulty line stops the tool before any account: it tells which one and why.
classe/comptes.csvnever goes into git: a PerfShop update does not touch it.
Create the accounts¶
At installation, ./build.sh starts the one-shot service perfshop-comptes-seed. It waits for the backend, for
Squash TM and for the class project — at the first start, Squash TM needs several minutes; the wait is bounded to 20
minutes, and the deployment itself never waits for it — then creates the accounts of the list: in Squash TM at once, in
PerfShop if the licence is active (key given at installation). Without a licence, the PerfShop console refuses the
creation (/api/admin/* answers 402): the PerfShop accounts wait, and the tool says so. The installation summary tells
where the seed stands: done, in progress, or failed.
Afterwards — list changed, licence activated (lab « Activer une licence PerfShop »), or to take stock:
Replace unix with your target (desktop, nas, prod). Nothing is rebuilt or restarted: a disposable container
replays the tool, and --comptes runs alone (without --ip, --license or --update-ip). An account already there is
never recreated ("already there"); the PerfShop accounts that were waiting for the licence are created with the same
password as their Squash account. Every ./build.sh also replays the creation. One run at a time: a second one,
started during the first, is refused (code 2).
Hand out the passwords¶
The tool draws one password per student — 14 characters, without 0, O, o, 1, l or I, to be read on paper —
and writes it to classe/mots-de-passe.csv BEFORE creating the accounts: an interrupted run loses none.
- Give each student their identifier and password, outside the platform (paper, messaging). Never share the whole file (projection, group mail, shared key): it opens every account.
- The
perfshopandsquashcolumns tell what each tool held at the last run ("created", "already there", "waiting for the licence"…). - No password is ever shown on screen. The file never goes into git; it is also the tool's memory: do not delete it while accounts exist.
- Under Linux, it is readable by you alone (mode 600). Under Windows and on a NAS, the rights of the folder protect it: install PerfShop in your personal folder.
- Close it before running the tool again: a spreadsheet locks it, and the tool then stops before creating anything, saying so.
- A password is reused only while a tool still holds the account: accounts deleted by hand come back with a new password, and the tool says so ("new password").
Verify, remove, delete¶
./build.sh unix --comptes=verifier
./build.sh unix --comptes=retirer
./build.sh unix --comptes=supprimer
verifiertells, for each student, whether their account exists in PerfShop with exactly the JMeter and Scripts rights (neither superadmin nor any extra right) and in Squash TM (Test referee onPerfShop QA), and whether the password of the file opens both tools (one sign-in, closed at once). It also lists the accounts of the class that left the list and are still active.retirerdeletes from both tools the accounts of the class that are no longer in the list; without--silent, it asks for confirmation.supprimerremoves the whole class from both tools, the list and the accounts off the list (end of the course); without--silent, it asks for confirmation. When a tool cannot delete an account (no licence, account turned superadmin), its line stays in the file and the tool says its passwords stay valid: do not reuse these identifiers for other students.- Without a terminal (scheduled task, ssh without
-t), the confirmation ofretirerandsupprimercannot be given: nothing is done, the installer says so and returns code 1;--silentstands for the confirmation. - Codes: 0 done; 1 at least one account to take up again (read the ✗ and ⚠ lines); 2 nothing was done (list, configuration or passwords file to fix, or another run going on).
Replace the demonstration accounts¶
Adapt classe/comptes.csv to your class, then run ./build.sh <target> --comptes (your students) and
./build.sh <target> --comptes=retirer (the ten demonstration accounts, now off the list). To create none: before the
first installation, copy classe/comptes.exemple.csv to classe/comptes.csv and adapt it.
A student leaves the class¶
Remove their line from classe/comptes.csv, then run ./build.sh <target> --comptes=retirer.
A student lost their password¶
- Read their line in
classe/mots-de-passe.csvagain: the tool does not change a password while its accounts exist. - Line without a password (account made outside the tool), or password changed since: reset it by hand in both tools,
with the same password — chaos console (page "Admin account management") and Squash TM administration;
verifierwill then say "password refused" for this student, which is expected. If they have done nothing in Squash TM yet, simpler: remove their line, run--comptes=retirer, put their line back, then--comptes: new accounts, a new password in the file.
By hand (fallback)¶
For a single student: chaos console › ⚙️ Administration button (page "Admin account management") › ➕ Create
account block (JMeter and Scripts rights), then Squash TM › Administration › Users › Add a user,
and a permission on PerfShop QA, Test referee profile (step 9 of the instructor lab « Installer & valider la
chaîne QA »). An account made by hand has no password in the file: the tool says so ("password unknown") and invents
none for the other tool.
What you tell the students¶
- Their identifier is their email address (no message is sent to it).
- One password for JMeter UI, Scripts UI and Squash TM.
- The accounts shown on the home page are yours: they do not use them.
Limits, to know¶
- A Squash permission applies to the whole project: a student can modify someone else's folder (a folder per student, named with initials, avoids it).
- Scripts UI writes to a single Forgejo repository: each commit carries the student's account as author, but every account writes everywhere (Scripts UI).
- JMeter UI reserves a report and an uploaded plan to their author and to the instructor (JMeter); a crafted JMeter plan can still write into the results folder.
- The home page shows your accounts to the whole class (masking planned with the hardening).