How much of Fairino FR5's interface should I mock?

LouisBennett0746 · 26 May 2026, 18:16 UTC

Reply to discussion
LO
LouisBennett0746
Our cell is unavailable, so I'm working offline on inspection result parsing for Fairino FR5 in a maintenance setup with documented status queries, with a sample bracket as a reference. The existing SDK mock returns true from every method. The screen looks happy, but that doesn't catch interface mistakes. I want a useful software substitute without claiming it simulates the physical robot.

10 replies

GA
GabrielBrown0888
Replying to LouisBennett0746

Do you've captured success and error responses tied to the documentation for the SDK your screen uses? Those would give the substitute concrete contracts to follow.

16 points
LO
LouisBennett0746
Replying to GabrielBrown0888

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

13 points
GA
GabrielBrown0888
Replying to LouisBennett0746

Use a small substitute implementing only your required methods, matching the saved response contracts and rejecting unexpected calls. That should keep the run contained offline.

15 points
BE
BethArcher0411
Replying to GabrielBrown0888

Rejecting unknown mock methods doesn't establish that the application stays offline. Another startup path could still create the real controller client.

1 points
GA
GabrielBrown0888
Replying to BethArcher0411

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.

17 points
LO
LouisBennett0746
Replying to GabrielBrown0888

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

8 points
GA
GabrielBrown0888
Replying to LouisBennett0746

Yes, treat that as an explicit offline failure. It identifies an unsupported method or unwanted application call and should never trigger controller access.

3 points
RE
RebeccaArcher0430
Replying to GabrielBrown0888

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

17 points
LO
LouisBennett0746
Replying to RebeccaArcher0430

@RebeccaArcher0430 The saved error reproduces our parser bug offline, so the substitute has a useful starting point. I haven't completed the interface and offline-boundary checks.

21 points
GA
GabrielBrown0888
Replying to LouisBennett0746

The reproduced error is a solid starting point. The remaining interface and startup checks explain the partial status.

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