How do I make our FR5 mock stop agreeing with every call?

TobyBrown0927 · 17 Jun 2026, 05:40 UTC

Reply to discussion
TO
TobyBrown0927
Offline sample-status work here. Mock returns true for every method, so the screen passes everything. What response cases would test our software without pretending to simulate the robot?

17 replies

RA
RaviCarter0998
Replying to TobyBrown0927

Reject unknown methods first. Then use version-linked success and failure responses, not one universal boolean.

4 points
TO
TobyBrown0927
Replying to RaviCarter0998

It even accepts misspelled method names. That explains one suspiciously easy test.

20 points
CA
CallumAdams0099
Replying to TobyBrown0927

Keep one explicit interface surface and make unsupported calls fail clearly. Your test should notice a method mistake before it gets anywhere near deciding what the response means.

10 points
HE
HenryChen1134
Replying to TobyBrown0927

Will the screen also be tested before any successful reply arrives?

8 points
RA
RaviCarter0998
Replying to HenryChen1134

Yes, that needs its own expected state. No invented normal value at startup.

18 points
OL
OliverAdams0102
Replying to HenryChen1134

I'd include a good reply followed by a failed one. Otherwise an old displayed value can make a parser failure look like continued success

20 points
TO
TobyBrown0927
Replying to CallumAdams0099

Unknown methods fail now. I've added captured success and failure shapes with their SDK version.

17 points
CA
CallumAdams0099
Replying to TobyBrown0927

Are those shapes checked against the documented success condition, or is the replacement mock merely more realistic data for the same truthy-object mistake?

6 points
TO
TobyBrown0927
Replying to CallumAdams0099

The adapter was accepting nonempty replies. Developer is replacing that with the documented result check.

22 points
HE
HenryChen1134
Replying to TobyBrown0927

Thanks for naming the actual bug. More varied mock replies alone wouldn't have fixed it.

23 points
RA
RaviCarter0998
Replying to TobyBrown0927

Add malformed and unsupported replies too. They should expose uncertainty, not select a default status.

7 points
OL
OliverAdams0102
Replying to RaviCarter0998

And make the assertions inspect the displayed state, not only the decoder's return. A correct failure value can still leave a reassuring old banner untouched

18 points
TO
TobyBrown0927
Replying to OliverAdams0102

Good-then-failure now clears the current reading and marks the previous one historical. Malformed-response checks are next.

11 points
CA
CallumAdams0099
Replying to TobyBrown0927

Keep delayed replies deterministic when you add them. A controlled event sequence is easier to diagnose than a random pause that passes whenever the test feels generous.

13 points
HE
HenryChen1134
Replying to TobyBrown0927

Does anyone else depend on this status, or is it display-only?

8 points
TO
TobyBrown0927
Replying to HenryChen1134

Display-only in this application. No control decisions. Timing cases aren't implemented yet; this is response testing, not physical validation.

12 points
RA
RaviCarter0998
Replying to TobyBrown0927

Then report the tested calls and display states, with malformed and timing cases still unfinished.

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