A digital welcome booklet is used for only a few minutes, but always at the worst possible moment: the door code at 2 a.m., the wifi that won't connect, the checkout time on a rushed Sunday. Waiting for real guests to run into our bugs would have meant making them pay for our mistakes. So we built 10,000 fake guests and let them loose on our own booklet, from booking to three days after checkout.
Here is the method, without gratuitous jargon: why simulate, how it is built, the 25 profiles (some of them very annoying), what we measured and found, the honest limits of the exercise, and what you can take home, whether you are a developer or a curious host.
Simulation run on November 15 and 16, 2026 on a local, isolated copy of the Majordia booklet: 10,000 stays in 70 minutes for the first stage, 254 stays in real browsers for the second. No real guest, no real data, nothing actually sent.
In short: what do 10,000 simulated stays tell us?
Our booklet handled the load without a single server error, but the simulation found eight bugs, three of them serious, that our usual tests had missed.
- The server holds. Across 10,000 full stays and 352,519 guest requests, no server error and no request left unanswered.
- The real bugs are logic bugs. An access window closed too early after departure (591 stays affected), and part of the host's statistics stayed empty.
- A "Yes" button that does nothing. In real browsers, when the guest types their own name, confirming their stay does not respond in 135 stays out of 254 (53.1%).
- The iPhone is more demanding. Under WebKit, Safari's engine, 1.97% of sections fail to open, against 0.64% under Chromium, and the median opening takes 1.86 s against 1.01 s.
- The network remains the number one enemy. On simulated 3G, the booklet takes 23.4 s (median) to appear; offline, a page already open stays usable, but a reload gives a blank page.
Update of November 17, 2026: what has been fixed
Since November 16 and 17, 2026, all 8 bugs are fixed and live:
- The "Yes" button on "Is this your stay?" keeps the name typed in.
- After departure, guestbook, referral and messaging stay open for 7 days: no more 37% refusals the next day.
- Anti-abuse limits count each real visitor: guests on the same network no longer block one another.
- The host's statistics are reliable: visits and scans are counted by the server.
- Offline, a banner warns the guest; no more needless calls before identification.
- Also: a more accessible contact tile, Google Maps opening properly on iPhone, three unused modules removed.
The improvement ideas are live too:
- the host approves access to the codes in one tap from an email, or opts for supervised automatic approval;
- wifi visible and house rules reminder from arrival day;
- identification that tolerates a typo, with the first name telling namesakes apart;
- search with synonyms in all 6 languages: "check-out" or "trash" now find the right section;
- offline, a fallback page keeps wifi, address, contact and codes already viewed (hidden after departure);
- on iPhone, the install guide no longer covers an open window and screens no longer freeze;
- an invitation to leave a review from departure day, with no filtering by rating;
- notifications offered after a first useful action, cheaper text messages without the guest's name in the link, options in the guest's language, empty lights section hidden, mistyped links repaired and flagged to the host, leaner weather, precise cause when a payment does not start.
Two security reviews had two points fixed before release. Next step: rerun the simulation with the same seeds to measure the effect.
Why simulate guests instead of waiting for real ones?
Simulating users lets you find in a few hours bugs that real visitors would take months to run into, without any of them suffering for it. A simulation can also deliberately test rare cases, which real usage never does.
Three reasons convinced us:
- Volume. Language, number of sections, paid options, moment of the stay, device, network: a booklet has thousands of combinations. A real guest only sees one.
- Rare cases. The guest on a 2016 iPhone, on 3G, who arrives at 2 a.m. and types their name with a typo exists. They are just too rare to come across in manual testing.
- Time. A stay lasts weeks, from booking to review. A simulation compresses them into a few seconds.

The simulation report: more than 100 indicators, by profile, by booklet and by stage of the stay.
How is the simulation built, in six steps?
The simulation chains six simple building blocks: profiles, fictitious booklets, a rule engine, two stages of tests and an analysis that turns logs into tables. Each block can be checked on its own.
- Profiles. 25 settings files, one per type of guest: device, language, network, patience, tastes.
- Fictitious booklets. 112 configurations: languages, sections, paid options, booklet linked to a calendar or not, edge cases (empty booklet, very long texts, wifi without a network name).
- A rule engine. Each guest draws its actions at random, according to its profile's probabilities, with a seed that makes everything replayable.
- Stage 1, volume. 10,000 full stays sent directly to the server, from D-14 to D+3.
- Stage 2, the screen. 254 stays replayed in real browser engines, WebKit and Chromium, on 7 simulated devices.
- An analysis. The raw logs become CSV tables, then a report with more than 100 indicators for the first stage and 1,523 for the second.
How does a simulated guest work, without AI?
Each simulated guest is a rule-based agent: a small program that picks its next action by random draw, according to probabilities set for its profile. No artificial intelligence in the loop, and that is deliberate.
A rule-based agent follows a recipe written by a human: "on arrival day, you are three times more likely to open the access code". This is the principle of agent-based modeling, long used to simulate human behavior, from queues to crowd movements (Bonabeau, PNAS, 2002). Why not an AI playing the guest? It would be expensive to run 10,000 times, would never answer the same way twice (a bug would become impossible to replay) and would sometimes invent behaviors no human would have. Simple rules are fast, readable and verifiable.
One Markov chain per profile
The core of the behavior is a Markov chain: a model where the next action is drawn at random according to probabilities that depend only on the current state. On the booklet's home screen, the agent chooses between opening a section, searching, changing language or leaving, and starts again until its patience runs out.
// One visit loop (simplified)
let steps = 0;
while (steps < profile.patience) {
steps++;
if (failures >= profile.errorTolerance) { abandon('trop d’erreurs'); break; }
const action = rng.weighted(profile.markov); // { openTile: 0.66, search: 0.1, exit: 0.03, ... }
if (action === 'exit') break;
if (action === 'openTile') await openTile(pickTile(tiles, phase));
else if (action === 'search') await search(rng.pick(profile.searchQueries));
else if (action === 'lang') await changeLanguage();
}
The choice of section is not uniform. Its weight combines the interest of its category at that point in the stay, the profile's tastes (the foodie prefers addresses), a bonus specific to certain sections (the entry code the day before, the checkout list on departure day) and its position: the lower a section is on the screen, the less people click on it.
// Weight of a section (simplified)
function weight(tile, index, phase, profile) {
const cat = tile.category;
return PHASE_WEIGHT[cat][phase] // e.g. access x3 on arrival day
* (profile.affinity[cat] ?? 1) // profile's tastes
* (TYPE_BONUS[tile.type]?.[phase] ?? 1)
/ (1 + 0.04 * index); // sections lower down are seen less
}
A seed to replay everything
All the randomness goes through a seeded pseudo-random generator: a function that produces a sequence of numbers that look random, but are always the same for a given starting seed. Each guest receives a seed built from the simulation, their number, their profile and their booklet.
// Same seed = same guest, click for click
const rng = new Rng('stay', `${runSeed}:${index}`, profile.id, booklet.id);
rng.chance(0.3); // true or false, always the same for this seed
rng.weighted({ a: 2, b: 1 }); // weighted draw, reproducible
When a bug shows up for guest no. 4,812, we replay it identically until it is fixed (the generator is an sfc32 fed by a cyrb128 hash, two public algorithms).
How do you simulate two weeks of stay in a few seconds?
We simulated time by shifting booking dates, not the clock. To place a guest "the day before arrival", their booking starts tomorrow; to place them "three days after departure", it ended three days ago.
| Moment | What the simulated guest often does |
|---|---|
| D-14, booking | A curious glance, rarely more |
| D-7, first real opening | Address, house rules, early arrival |
| D-1, the day before | Access code, weather, times |
| D0, arrival day | Access, wifi, check-in: the critical moment |
| Stay | Wifi, addresses, services, small issues |
| Departure day | Checkout list, late checkout, review |
| D+1 and D+3 | Guestbook, memories, referral |
// Offset (in days) between today and the start of the booking
function startOffset(phase, nights) {
switch (phase) {
case 'J-7': return 7; // starts in 7 days
case 'J-1': return 1;
case 'J0': return 0;
case 'DEPART': return -nights; // started "nights" days ago
case 'J+3': return -nights - 3;
}
}
The calendar's automatic messages (reminder the day before, late checkout, review request) are triggered by hand at each step. They go nowhere: we count them.
How do you test without any risk to real guests?
The whole simulation runs on an isolated copy of the booklet, with a disposable database and fake servers in place of every external service. No real data goes in, no real message comes out.
- An isolated database, created for the occasion on the test machine, filled with 112 fictitious booklets, then deleted. The program checks at startup that it is talking to that very database, and stops otherwise.
- Fake servers. A fake server (mock) pretends to be an external service: payment, email, SMS, notifications. It answers "done" and notes what it was asked. The payment of an option succeeds or fails depending on the scenario, with no bank card.
- Impossible addresses, on a reserved domain that cannot exist: even in case of an error, nothing reaches a real inbox.
- A dummy assistant: the booklet's chat receives canned answers. We test the circuit, not the AI.
It is also a measurement: we know how many messages would have been sent at each step. Over the 10,000 stays, the booklet would have sent 21,623 emails, 23,269 SMS and 1,870 notifications, all intercepted by the fake servers. The 15 scheduled tasks (reminders, offers, review requests) were triggered 253,400 times, without a single error.
Attention
Never run this kind of test on your real environment. A single badly configured fake guest can send a real SMS to a real number or skew your statistics.
Why two stages: direct requests and real browsers?
We tested in two stages: 10,000 fast stays that talk directly to the server, then a sample in real browsers. The first finds logic errors in bulk, the second those that only a screen reveals.
Stage 1, volume. The agents send the same requests as the booklet, without displaying anything. An HTTP request is the message a browser sends to the server to ask for a page or a piece of data. A complete stay takes a few seconds: the 10,000 stays, four at a time, ran in 70 minutes, for 352,519 guest requests. The slow network is imitated without waiting: latency is added to the measured time, and a "lost" response triggers a retry, as on a temperamental 3G connection.
Stage 2, realism. 254 stays (218 to cover the booklet configurations on the two main devices, 36 drawn at random among profiles, networks and display modes) run in real browser engines driven by Playwright, a free tool that controls a browser like a hand. They run headless, meaning without a visible window. This catches a section that won't open, a blank screen, a console error, cut-off text, a display that is too slow. An automatic accessibility audit (axe-core) runs on a sample of pages, and the size of every touch target is measured.
WebKit vs Chromium: why two engines?
On iPhone, in practice, browsers use Safari's engine, WebKit (Playwright ships a version of WebKit built from the project's most recent sources); on Android and on desktop, it is most often Chromium, Chrome's engine. A bug can exist in only one of the two, so each simulated device has its engine:
| Simulated device | Engine | Screen (points) |
|---|---|---|
| iPhone SE | WebKit | 375 x 667 |
| iPhone 15 | WebKit | 393 x 852 |
| Large iPhone | WebKit | 430 x 932 |
| Small Android screen | Chromium | 360 x 800 |
| Large Android screen | Chromium | 412 x 915 |
| iPad | WebKit | 820 x 1180 |
| Desktop | Chromium | 1440 x 900 |
The plan also includes phones held horizontally, text enlarged to 130% for the senior and visually impaired profiles, dark mode and 3G. Offline mode is tested separately: network cut after loading, reload, opening a section.

The same section seen by two engines: WebKit on the left, Chromium on the right.

The home screen of a fictitious booklet in Lyon, as a guest sees it on an iPhone during their stay.
Who are the 25 simulated guest profiles?
The 25 profiles fall into four groups: beginners, intermediates, advanced users and disruptors. Each is a simple settings file: device, language, network, patience, error tolerance, tastes by section, willingness to pay for an option, to install the web app or to leave a review.
{
"label": "Habitué Airbnb qui ne lit rien",
"device": { "os": "android", "viewport": [393, 851] },
"patience": 2,
"errorTolerance": 3,
"openProb": { "J-7": 0.15, "J0": 0.8, "J+3": 0.08 },
"identify": { "willIdentify": 0.7, "typoRate": 0.05 },
"payPropensity": 0.12,
"searchQueries": ["wifi", "parking", "code"]
}
Simplified excerpt. Patience is counted in actions before leaving the booklet.
The beginners (6). The senior who is not at ease, on a small iPhone, who gives up at the first error. The family in a hurry: five actions of patience, the kids are getting restless in the car. The non-French speaker, the guest on their first rental, the visually impaired guest with enlarged text. And our favorite: the guest who arrives at 2 a.m., three actions of patience, error tolerance of one. They want the code, nothing else.
The intermediates (8). The weekend couple, the business traveler on a laptop, the group of friends, the remote worker who lives in the wifi section, the organizer who shares the link with the whole gang, the curious retiree who reads everything on a tablet, the sports enthusiast looking for trails, and the foodie whose searches are limited to "restaurant", "bakery", "market".
The advanced users (6). The superhost on vacation, who forgives no error. The Airbnb regular who reads nothing: two actions, and off they go. The geek who clicks everywhere, forty actions, double-clicks one time in five and switches on dark mode just to see. The hunter of paid options. The offline user, who installs the web app then cuts their network. The multi-device user, phone in the morning, tablet in the evening.
The disruptors (5). The limit tester, who types empty names, emojis, code tags, 260 characters in a row or an injection attempt, and abuses double-clicking and the back button. The guest on unstable 3G: 600 milliseconds of latency, 15% of responses lost. The old iPhone 320 points wide. The one who refuses to identify. And the unhappy one, who only searches for "contact", "problem" and "refund".

The 25 simulated guests, from the cautious senior to the limit tester.

The same booklet for a German guest: the Nice events translated, photos included.
What did we measure during the simulation?
The simulation tracks more than 100 indicators, all broken down by profile, by booklet configuration and by moment of the stay.
| Family | Example indicators |
|---|---|
| Reliability | Server and browser errors, sections that won't open, blank screens |
| Performance | Time to first open, page weight, 3G, offline |
| Section usage | Open rate, sections never opened, "dead-end" sections |
| Journey | Identification succeeded or abandoned, searches with no result, language |
| Options | View, click, simulated payment, success |
| Content | Empty sections, dead links, missing translations, truncated texts |
| Host side | Gap between what guests did and what the host sees |
| Accessibility | Automatic audit alerts, reading with enlarged text |
The "host side" indicator is our favorite: the simulation knows exactly what each guest did, so it can check that the host's dashboard tells the same story. Good news: no event was lost along the way, the 121,130 sent by the simulated guests were all recorded. Less good news: some of the host's statistics did not count them (more on that below).
What did the simulation find?
The server did not crash once: across 10,000 complete stays and 352,519 guest requests, no server error and no request left unanswered. But "it doesn't crash" does not mean "it works": the simulation mostly found logic bugs, cases where everything responds normally while the guest or the host does not get what they expect.
The booklet opened in 78 milliseconds at the median, and in under 224 milliseconds for 95% of openings. This time is measured on the test machine, so without the trip over a real mobile network: it is the server's work, not the guest's wait.
Counting both stages, the simulation surfaced 8 distinct bugs, 3 of them serious, across 10,000 fast stays and 254 browser stays. Each bug is ranked by severity and frequency, with its seed to replay it. Two other findings from the second stage still need to be qualified, because they may come from the test environment rather than the booklet: the installable app never ready offline, and technical errors with no visible effect for the guest.
By family: 4 logic, 1 display, 2 accessibility and 1 offline.
The standout findings, in order of severity (all fixed since, see the update above):
- An access window that closed too early after departure. The booklet stayed viewable for several days after departure, but its services (guestbook, referral, assistant) already refused to respond the following night. Result: 591 stays affected (5.9%), and 37% of guests who reopened the booklet the day after their departure hit a refusal, precisely when people think of leaving a note in the guestbook.
- A mismatch between what the booklet sends and what the statistics count. All events did arrive, but part of the host's dashboard counted other types of events than the ones the booklet emits. Some counters therefore stayed empty, even for a property with plenty of views. Only a simulation that knows exactly what each guest did could see it.
- Metrics planned but never sent. One guest action, pinning a section, had its metric planned on both sides, but nothing triggered it. A minor bug, which simply made it impossible to know whether the feature is used.
- Identification holds up. Typos and fanciful entries, especially those of the limit tester, were refused (1,278 refusals in total), then corrected by the guest: only 0.1% of stays end without identification after trying, and 99.9% of beginners identify themselves. One lead anyway, now live: with two bookings under the same name, the first name now tells namesakes apart, and a typo in the name is tolerated.
- A "Yes" button that does not respond. When the guest arrives through a link that does not contain their name (QR code on the sign, shared link), they type their name, then the booklet suggests their stay: "Is this your stay?". They tap "Yes", and nothing happens, with no message at all. Behind the scenes, the name form is rebuilt and the field starts empty again: the button has nothing left to send. Result: 135 stays affected out of 254 (53.1%), and 86.5% of the stays that go through this screen. Never when the name is already in the link. On the server side, everything responded normally: only a real browser could see it.
- Sections more fragile under WebKit. On the simulated iPhones and iPad, 1.97% of section openings fail, against 0.64% under Chromium: the tap does not go through, or the panel does not open. The median opening takes 1.86 s against 1.01 s, and 13.8% of WebKit stays open no section at all, against 3.2%.
- A display flaw on small screens. The contact shortcuts (WhatsApp, SMS, call) are 32 pixels wide, below the 44 pixels recommended for a finger, in 81% of the measured visits, on iPhone as on Android. The automatic audit also flags, on the same section, buttons nested inside one another, which are hard to read for a screen reader.
- The unstable network remains the number one enemy. The temperamental 3G profile gives up in 7% of stays, against 0.8% on average. In the browser, with the network cut after loading, the page already open stays usable (11 sections opened out of 11), but a reload gives a blank page, with no "offline" banner, in 3 tries out of 3.

WebKit (iPhone, iPad) against Chromium (Android, computer): three measurements over 254 stays in real browsers.

The silent "Yes" button hits every device: it is not an iPhone flaw, but a logic one.

Before the November 17, 2026 fix, on a fictitious booklet: the day after departure, the booklet still opened, but the guestbook message was refused.
What the simulated guests did (indicative figures)
These usage figures follow from the assumptions written into the profiles, not from real humans (see the section on limits). They help spot leads, not draw conclusions.
- On arrival day, everything revolves around the door. The access code accounts for 28% of the sections opened that day, ahead of check-in (25%) and wifi (18%). During the stay, wifi takes the lead again (17%, see our article on wifi in seasonal rentals); the day after departure, it is referral (36%) and the guestbook (20%).
- The 2 a.m. guest manages. Despite three actions of patience, they give up in 0.5% of stays, less than the average (0.8%): the code is among the first sections, so they find it quickly.
- Connected or not makes all the difference for the code. On a booklet linked to the booking calendar, 94% of guests get their code and wifi during the stay. On an unlinked booklet, only 68%: on arrival day, 79% still find the code locked, while the host approves their access request (against 0.4% on a connected booklet).
- Dead ends everywhere, in equal shares. About 15% of opened sections are followed by no return to the home screen, and this rate barely varies from one section to another. It is probably a reflection of our profiles rather than a real signal: only real statistics will tell which sections leave guests stranded.
- Paid options, a narrow funnel. Out of 8,383 options viewed, 1,284 were requested, 919 accepted by the host and 755 paid (simulated payment), i.e. 9% from view to payment. Advanced profiles reach 13%, beginners stay at 6%. All simulated payments were confirmed.
- The first opening depends on the network. Median time in the browser: 23.4 s on 3G, against 4.0 s on a normal network. Once the booklet is displayed on 3G, a section opens in 867 milliseconds (median). These 3G figures rest on only 3 stays and all times were measured on a loaded test PC: they are indicative and rather pessimistic.

What simulated guests open, from booking to D+3 (indicative figures, based on the profiles' assumptions).

The report opened at its "Moments of the stay" section: out of 10,000 stays, 9,445 opened the booklet on arrival day, and 772 still did three days after departure.

The paid options of a fictitious chalet in Orcieres: ski rental delivered to the chalet, at resort prices.
Under the hood: the simulation in numbers
The whole simulation ran on a single laptop, with no cloud server. Here is what it took, with figures read from its logs and files.
- 25 guest profiles, each in a settings file of about a hundred lines.
- 112 fictitious booklet configurations, in 6 languages.
- 10,000 stays in the first stage, four at a time, in 70 minutes (4,211 seconds), for 352,519 requests and 787,480 logged events.
- 254 stays in real browsers in the second stage, i.e. 657 visits and about 7 hours of cumulative browsing.
- 7 simulated devices, 2 browser engines (WebKit and Chromium).
- 5,964 lines of JavaScript and Python, spread over 37 files, for the simulator, the fake servers, the analysis and the report.
- 762 MB of raw logs, reduced to 71 CSV files weighing 0.2 MB in total; 1,523 indicators for the second stage alone.
- The hardware: a laptop with a 12th-generation Intel Core i5 processor (8 cores, 12 threads) and 16 GB of memory, shared with other tasks.
- The versions: Node.js 26, Python 3.12, Playwright 1.64 (Chromium 156 and WebKit 27.2), axe-core 4.14.
Proof on screen: what you see when you run the simulation
The screenshots below are real outputs of the simulator, rerun read-only or taken from its logs, with no figure retouched. Only internal technical details were removed from the excerpts.

A trial batch of 100 stays in 84 seconds. Before each large campaign, a small batch checks that everything responds: here, no server error and no simulator error.

10,000 stays in 70 minutes. The log of the November 15 campaign, from the first batch of 50 stays to the final summary.

Same seed, same result, down to the stay. Recomputed twice, the plan of the 10,000 stays gives the same fingerprint, and all 10,000 stays in the log match it.

A stay reread from the log. Guest no. 4812, multi-device profile: you can see they searched for "check-out" and "poubelle" (trash) without finding anything, a lead to improve search.

Quality control comes before any analysis. It rejects stays the simulator itself played badly, and flags those that opened no section so they can be examined separately.

Everything is filed by stage. Raw logs, CSV tables, summaries and screenshots, split between the first and the second stage.

Hundreds of megabytes of logs for a few kilobytes of tables. Every figure in this article comes from these CSV files.

1,523 indicators in a spreadsheet. Here, the section comparing the two engines, with the sample size behind each figure.
What has the simulation changed in the booklet?
The bugs found were fixed in order of severity and went live on November 16 and 17, 2026. The improvement leads, ranked by impact and effort, followed.
- The "Yes" button: the name typed by the guest is now kept while their stay loads.
- The window after departure: guestbook, referral and messaging stay open for 7 days after departure.
- The host's statistics: visits and scans are counted by the server, so that the dashboard tells what guests really do.
- Contact and offline: the contact tile is more accessible, and offline the booklet shows a banner and a fallback page rather than a blank page.
- Housekeeping: three unused modules were removed.
- Ten improvement ideas kept, the first ones already live: access to the codes approved by the host in one tap, or even automatically under supervision; an invitation to leave a review from departure day, with no filtering by rating; the lights section hidden when it is empty.
That is the real strength of the method: after a fix, we rerun exactly the same guests, with the same seeds. If a number moves, it is the fix, not chance. The test is written and the fix is live: the new run, planned with the same seeds, should bring the share of guests refused the day after their departure from 37% down to zero.
What are the limits of a guest simulation?
The main limit is simple: our robots follow our assumptions. The usage figures say what happens if guests behave the way we imagined, not what real humans do.
| Reliable | Indicative only |
|---|---|
| Bugs: a crash remains a crash | Section open rates |
| Booklet configurations that break | Option payment rates |
| The gaps between devices and engines | Install, review and share rates |
| Gaps between what happened and what the host sees | The ranking of favorite sections |
Other limits we accept:
- Programs, not humans. Our guests are rule-based agents: they do not get annoyed, do not read between the lines and never ask a neighbor for help.
- A second stage stopped at 44%. We had planned 574 browser stays; we stopped at 254, on purpose: new stays no longer revealed new bugs, only the same families. On the two main devices, about 82% of the 112 booklet configurations were played.
- Modes barely tested. 3G rests on 3 stays, offline on 3 tries, enlarged text on 2 stays, and no retained stay was played in landscape. These figures are indicative.
- Everything is local. The booklet ran on the test machine, without a secure connection (HTTPS) and with simulated external services. The installable offline app could not be verified in these conditions, and times measured on a loaded PC are rather pessimistic.
- No real iPhone. WebKit is Safari's engine, but the test WebKit is not a real iPhone. And throttling only exists on the Chromium side: our 3G tests on "iPhone" ran at normal speed.
- Compressed time. Two weeks of stay played in a few seconds do not reproduce exact hours (arrival at 3 p.m., reminders sent at a fixed time): only the stages of the stay are faithful.
- Uncalibrated profiles. The probabilities are written by hand; calibrating them on anonymous statistics from real booklets is the next step.
- No emotions. A robot does not find a text cold; nothing replaces five real guests and a coffee.
- The chat tested for form only: its answers were dummies.
How can you reproduce the method at home?
The method can be reproduced in five steps with free tools, on your own application, and comes down to six principles for developers and five reflexes for hosts, without a line of code. Our simulator stays internal, because it is wired to the booklet's code, but the skeleton below is deliberately simplified and independent.
Five steps for developers
1. Install Playwright and its two engines. Node.js 20 or later is enough.
mkdir ma-simulation && cd ma-simulation && npm init -y
npm install playwright
npx playwright install chromium webkit
2. Write a seeded generator. Copy a public implementation of sfc32 and cyrb128 (about thirty lines) into prng.mjs, with an Rng class exposing next() and weighted(), as in the excerpt above.
3. Run a first batch. A profiles file, a loop, one log line per stay.
// sim.mjs: a batch of stays, replayable down to the seed (simplified)
import fs from 'node:fs';
import { Rng } from './prng.mjs';
const n = Number(process.argv[2] ?? 100);
const seed = process.argv[3] ?? '2026';
const profiles = JSON.parse(fs.readFileSync('profils.json', 'utf8'));
const lines = [];
for (let i = 0; i < n; i++) {
const profile = profiles[i % profiles.length];
const rng = new Rng('stay', `${seed}:${i}`, profile.id);
const steps = [];
for (let s = 0; s < profile.patience; s++) {
const action = rng.weighted(profile.markov); // e.g. openTile, search, exit
if (action === 'exit') break;
steps.push(action); // here: call your test application
}
lines.push(JSON.stringify({ stay: i, profile: profile.id, steps }));
}
fs.writeFileSync(`sejours-${seed}.jsonl`, lines.join('\n') + '\n');
node sim.mjs 200 2026
4. Check that everything replays. Two runs with the same seed must give the same fingerprint; another seed, a different fingerprint.
node sim.mjs 200 2026 && sha256sum sejours-2026.jsonl
node sim.mjs 200 2026 && sha256sum sejours-2026.jsonl # same fingerprint
node sim.mjs 200 2027 && sha256sum sejours-2027.jsonl # different fingerprint
On Windows, certutil -hashfile sejours-2026.jsonl SHA256 replaces sha256sum.
5. Replay a sample in real browsers. Always on a test copy of your application, never in production.
// navigateur.mjs: one visit in WebKit, as on an iPhone (simplified)
import { webkit, devices } from 'playwright';
const browser = await webkit.launch();
const page = await browser.newPage({ ...devices['iPhone 15'] });
await page.goto('http://127.0.0.1:3000/livret-de-test');
const t0 = Date.now();
await page.getByRole('button', { name: 'Wi-Fi' }).click();
console.log('section opened in', Date.now() - t0, 'ms');
await browser.close();
Replace webkit with chromium and iPhone 15 with Pixel 7 to compare the two engines, as we did.
The principles to keep
If you build an application:
- Write your profiles before your tests. One file per type of user, with their patience and error tolerance.
- Put a seed everywhere. No direct
Math.random(). A bug you cannot replay is a bug half found. - Simulate time through data, by shifting dates rather than faking the clock.
- Two stages: lots of direct requests for logic, a sample of real browsers, WebKit and Chromium, for display.
- Isolate everything: disposable database, fake servers, impossible email domain, and a check that refuses to run anywhere else.
- Measure the gap between what your simulated users did and what your dashboards show.
If you are a host:
- Open your booklet on the oldest phone in the house, on a weak network or in airplane mode after loading.
- Play the 2 a.m. guest: three taps to find the code. Can you do it?
- Switch the booklet to another language and check that no section stays empty (see our guide to the welcome booklet in several languages).
- Enlarge the phone's text and reread everything (see our article on accessibility in tourist accommodation).
- Search "wifi", "parking", "trash": if the search finds nothing, add the word to the right section.
Key takeaways
Information
- Simulating users means having programs play the role of real visitors to find bugs before they do.
- Our 10,000 simulated guests follow Markov chains, with no AI, and each one can be replayed thanks to a random seed.
- The stay, from D-14 to D+3, is simulated by shifting booking dates, not the clock.
- Everything runs in isolation: disposable database, fake servers, nothing actually sent.
- Two stages: direct requests for volume, WebKit and Chromium on 7 devices for display.
- Across 10,000 stays and 352,519 requests: no server errors, but logic bugs, including an access window that closed too early after departure and incomplete host statistics.
- In 254 stays in real browsers: a "Yes" button that does nothing in 53.1% of stays, sections more fragile under WebKit (1.97% failures against 0.64%) and a blank page when reloading offline.
- In total, 8 distinct bugs, 3 of them serious, all fixed and live on November 16 and 17, 2026.
- The bugs found are reliable; the usage figures, 3G and offline remain indicative.
FAQ
What is a user simulation?
It is a program that imitates real visitors on a website or application: it clicks, searches, makes mistakes, gives up. It is used to find bugs and measure robustness before real users run into them.
Why not use an AI to play the guests?
An AI is expensive to run 10,000 times, never answers the same way twice, which makes it impossible to replay a bug, and can invent unrealistic behaviors. Rule-based agents are fast, reproducible and verifiable.
Did the simulation touch real guests or real data?
No. It ran on a local copy of the booklet, with a database created for the occasion and then deleted, fake servers in place of every external service and email addresses that cannot exist.
Can a host run this test without knowing how to code?
Yes, in a manual version: open your booklet on an old phone, on a weak network, with enlarged text, in another language, and play a few profiles such as the 2 a.m. guest.
Are the simulation's usage figures reliable?
The bugs, yes: a refusal remains a refusal, whatever the starting assumption. The usage figures (sections opened, options paid, abandonments) are indicative: they reflect the probabilities we wrote into the profiles, not the behavior of real guests.
Why stop at 254 stays in real browsers?
Because the extra stays no longer found anything new: the same families of flaws kept coming back. A browser stay lasts 84 seconds (median), against a few seconds in the first stage; we preferred precise measurements on 254 stays, i.e. 44% of the 574 planned, over a longer campaign with no new information.
Sources
- Markov chain, definition and properties: Wikipedia, "Markov chain".
- Agent-based modeling to simulate human behavior: Eric Bonabeau, "Agent-based modeling: Methods and techniques for simulating human systems", PNAS, vol. 99, 2002, doi:10.1073/pnas.082080899.
- Engines supported by Playwright, including WebKit: Playwright documentation, "Browsers"; device emulation: "Emulation".
- Automatic accessibility audit: axe-core, Deque Systems.
- Minimum size of touch targets, 44 CSS pixels: W3C, "Understanding Success Criterion 2.5.5: Target Size".
Sources last checked: November 17, 2026.
Test your own booklet
The Majordia digital welcome booklet opens via QR code, with no app for the guest to install, in 6 languages. To run the 2 a.m. guest test yourself, create a booklet with the welcome booklet generator of the Essentiel plan (free, options à la carte): booklet, phone version and QR code with no sign-up. Our free digital welcome booklet template and our self check-in guide complete this article.
Image credits. Cover and screenshots: Majordia simulation, November 2026, on fictitious booklets (no real data). Terminal screenshots, spreadsheet, report and charts: real outputs of the Majordia simulator, November 2026. Photos in the fictitious booklets (cover and the Nice booklet in German): Tobi 87 (CC BY-SA 3.0) and Zil (CC BY-SA 3.0), via Wikimedia Commons.
