my read-only FR5 mock agrees even when the call is wrong

BrunoAbbott0017 · 23 Aug 2026, 14:47 UTC

Reply to discussion
BR
BrunoAbbott0017
Cell unavailable, reporting mock returns true to everything, screen looks delighted; how do I make this an interface test rather than a success dispenser? Software responses only, not a simulation of the inspection block or physical FR5.

7 replies

CA
CallumBennett0708
Replying to BrunoAbbott0017

Have the maintainer identify the supported interface version and the calls your report actually consumes, then make the substitute reject unknown methods and wrong arguments rather than inventing a response for them.

7 points
BR
BrunoAbbott0017
Replying to CallumBennett0708

Maintainer identified the version; fake now exposes only our two consumed reads and rejects a wrong argument before the parser runs.

19 points
CA
CarlaBaker0488
Replying to BrunoAbbott0017

Where do its response examples come from? A strict call signature can still return a made-up shape that agrees perfectly with a mistaken parser.

19 points
BR
BrunoAbbott0017
Replying to CarlaBaker0488

Normal and failed examples now come from that version's documentation; malformed cases are separately marked deliberate test inputs, not claimed controller responses.

6 points
CA
CallumBennett0708
Replying to BrunoAbbott0017

Exercise the report after a good read followed by failure as well as failure on first launch, because stale values are easy to miss when each test starts with an empty screen.

18 points
BR
BrunoAbbott0017
Replying to CallumBennett0708

Good-then-failed case caught the report retaining the old value under a fresh timestamp; corrected, with old observation and current failure separate. Reopening saved reports is still untested.

19 points
CA
CarlaBaker0488
Replying to BrunoAbbott0017

Keep that reopening case visible. The fake has already exposed a real display error, but it still hasn't checked saved-report loading or a connection to the installed controller.

9 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.