The FR10 report mock never checks the response my parser expects

NoahCarter0977 · 30 Jul 2026, 15:50 UTC

Reply to discussion
NO
NoahCarter0977
I'm developing read-only FR10 reporting while the maintenance cell is unavailable. Our mock returns true from every call and keeps the screen happy without checking the interface. I have documented status queries, not a physical simulator. What should a useful substitute and its tests actually cover?

19 replies

JA
JaneArcher0423
Replying to NoahCarter0977

Replace unconditional truth with the supported SDK's documented response shapes and failure behaviour, then assert the parser's actual fields rather than only successful screen startup.

-1 points
LI
LiamBrown0925
Replying to NoahCarter0977

What does a test assert today? If it only asks whether the call is truthy, adding realistic responses may still leave the parser almost unexamined.

12 points
NO
NoahCarter0977
Replying to LiamBrown0925

It checks that the wrapper returned something and the screen opened. The status field isn't asserted at all. So yes, the test could pass with the interpretation wrong.

11 points
SA
SamBrooks0855
Replying to NoahCarter0977

Can you start with one documented successful response and one failed request before building a huge substitute? Those two should already expose whether the screen distinguishes a reading from no reading.

-1 points
ST
StevenBowen
Replying to SamBrooks0855

Record the supported environment and source of each example. A captured response is useful evidence for that version, not a universal SDK contract.

10 points
LI
LinCarter0966
Replying to SamBrooks0855

Does the substitute reject wrong arguments too, or only return different values?

19 points
LU
LucaAdams0091
Replying to LinCarter0966

And use the same application parser in the tests; don't accidentally write a second interpretation inside the mock and congratulate that one for matching itself.

0 points
LU
LucaBrown0874
Replying to SamBrooks0855

Let a tutor see the failed-request display once that works. Software assertions can confirm the state while the wording still encourages someone to trust yesterday's value.

23 points
JE
JessBowen
Replying to NoahCarter0977

Where will the software-only limit be recorded for the eventual handover? A polished offline demonstration must not become evidence that the robot, tooling or safety functions have been exercised.

12 points
JO
JoelChambers
Replying to JessBowen

Jess, I'd keep that limit in the test scope and handover. I don't think Noah needs to simulate physical motion at all for these read-only contract checks.

3 points
NO
NoahCarter0977
Replying to LinCarter0966

Agreed. Scope is response interpretation only. I've added field assertions and invalid-argument cases using the real parser; it exposed a wrapper fallback that replaced missing data with available.

1 points
JA
JaneArcher0423
Replying to NoahCarter0977

Remove that fallback through the unavailable-data path, not by choosing a different believable status value.

15 points
LI
LiamBrown0925
Replying to NoahCarter0977

Test a good reading followed by that missing-data response too. Does the display explicitly age or invalidate the previous value when it cannot obtain a new one?

2 points
ST
StevenBowen
Replying to JaneArcher0423

Include malformed structure separately from a documented unsuccessful request, since the diagnostics should tell maintenance whether interpretation failed or the request returned a failure.

20 points
LI
LinCarter0966
Replying to StevenBowen

Who updates the examples when the supported SDK changes?

2 points
NO
NoahCarter0977
Replying to LucaBrown0874

Software maintainer owns them. Good-then-failed now marks the old value as previous, not current. Thanks Luca Brown, the tutor said the original wording still looked like a live reading.

9 points
SA
SamBrooks0855
Replying to NoahCarter0977

Will you compare one documented read with the real controller when the station returns? That checks the boundary you've modelled against the supported setup.

0 points
NO
NoahCarter0977
Replying to SamBrooks0855

Yes, that is a separate pending verification. Offline success, failure, malformed reply and stale-display cases pass now; the cell is still unavailable, so no real comparison claimed.

0 points
JE
JessBowen
Replying to NoahCarter0977

Keep that pending comparison attached to release planning. The useful result here is software behaviour under declared cases, and it should remain that specific when the bench demonstration is shown to others.

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