简体中文界面。帖子、指南及政策正文保留原文;未对原文作自动翻译。

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

LouisBennett0746 · 2026年5月26日 18:16 UTC

回复讨论
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 条回复

GA
GabrielBrown0888

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
LO
LouisBennett0746

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

13
GA
GabrielBrown0888

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
BE
BethArcher0411

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

1
GA
GabrielBrown0888

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
LO
LouisBennett0746

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

8
GA
GabrielBrown0888

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

3
RE
RebeccaArcher0430

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

17
LO
LouisBennett0746

@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
GA
GabrielBrown0888

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

21

参与讨论

欢迎来到 Application Robot

所有人都可以阅读论坛。登录或注册后即可发起讨论、回复或上传照片。

忘记密码?

注册账号即表示你同意我们的 使用条款 社区准则。请阅读我们的 隐私政策 ,了解我们如何处理你的信息。