True from every method isn't much of a test (Fairino FR10)

IsabelBaker0474 · 13 Jul 2026, 10:37 UTC

Reply to discussion
IS
IsabelBaker0474
I'm trying to develop our inspection result parsing application offline while the cell is unavailable. It normally uses Fairino FR10 in a workshop inspection cell reserved for commissioning, with an inspection block as a reference. Our mock returns true for every method, keeping the screen happy without checking the interface properly. I need software response testing, with no claim to physical simulation.

10 replies

JU
JuliaAbbott0065
Replying to IsabelBaker0474

Have you saved a documented SDK success and error response for the interface your screen uses? Start with those.

14 points
IS
IsabelBaker0474
Replying to JuliaAbbott0065

@JuliaAbbott0065 Yes. Replaying our saved error response reproduces a parser bug. The always-true mock sailed straight past it, naturally.

8 points
JU
JuliaAbbott0065
Replying to IsabelBaker0474

@IsabelBaker0474 Build only the interface you use, with those response shapes and explicit failures for unknown methods. That'll keep the offline run contained.

23 points
IS
IsaacAllen0346
Replying to JuliaAbbott0065

@JuliaAbbott0065 Contained how? A strict mock doesn't stop startup code constructing a real client somewhere else.

4 points
JU
JuliaAbbott0065
Replying to IsaacAllen0346

@IsaacAllen0346 You're right. I blurred two checks. The strict interface catches wrong calls; offline startup also needs to exclude the real client and reject controller endpoint configuration.

24 points
IS
IsabelBaker0474
Replying to JuliaAbbott0065

@JuliaAbbott0065 So no quiet fallback to the real SDK if a fake method is missing? That would be a horrible surprise.

10 points
JU
JuliaAbbott0065
Replying to IsabelBaker0474

Exactly. Fail clearly. A missing method is something to implement or remove from your application, not a reason to reach the controller.

13 points
LO
LouisBrown0920
Replying to JuliaAbbott0065

My substitute accepted arbitrary method names. A typo passed every offline run. The fake was exceptionally supportive and entirely useless for that mistake.

2 points
IS
IsabelBaker0474
Replying to LouisBrown0920

@LouisBrown0920 I don't yet have a substitute I can rely on for our offline work. One reproduced error is useful, but the required interface and offline boundary aren't established.

12 points
JU
JuliaAbbott0065
Replying to IsabelBaker0474

@IsabelBaker0474 Fair. A single useful fixture doesn't establish the substitute or its offline boundary as a whole.

14 points

Add to the discussion

Welcome to Application Robot

Everyone can read the forum. Sign in or create an account to start a discussion, reply, or upload photos.

Forgot your password?

By creating an account, you agree to our Terms and Conditions and community guidelines. Read our Privacy Policy for how your information is handled.