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

Fairino FR10: Can saved responses make our offline testing useful?

AnilChan1071 · 2026年8月29日 02:03 UTC

回复讨论
AN
AnilChan1071
I'm trying to develop our inspection result parsing application offline while the cell is unavailable. It normally uses Fairino FR10 in a fixture inspection station, with a fixture-mounted coupon as a reference. Our mock returns true for every method, keeping the screen happy without checking the interface properly. I need software response testing, with no claim to physical simulation.

15 条回复

MI
MinaAbbott0076

Have you saved a documented SDK success and error response for the interface your screen uses? Start with those.

8
AN
AnilChan1071

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

16
MI
MinaAbbott0076

@AnilChan1071 Build only the interface you use, with those response shapes and explicit failures for unknown methods. That'll keep the offline run contained.

7
RA
RachelBaker0522

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

1
MI
MinaAbbott0076

My containment claim was too broad. Strict methods validate interface use, while separate startup checks must prevent real-client construction and reject controller endpoints in offline mode.

3
AN
AnilChan1071

Should a missing substitute method always fail the offline run instead of falling back to the real SDK? I want that boundary to be unambiguous.

15
MI
MinaAbbott0076

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

16
TO
TobyAbbott0057

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

9
CH
ChloeCarter1005

Should the substitute validate how a method is called as well as what it returns? I'm unclear how strict the input side needs to be.

16
MI
MinaAbbott0076

Match the documented call signature too. Wrong arguments should fail clearly instead of getting a plausible canned response.

11
AN
AnilChan1071

Adding a strict interface exposed a stale helper call in our application. It had passed through the permissive mock because unknown calls weren't rejected.

8
RA
RachelBaker0522

Have you tied the saved examples to their SDK version? A realistic response from another version could still teach the substitute the wrong behaviour.

19
AN
AnilChan1071

@RachelBaker0522 Our saved examples have the SDK source identifier and matching documentation. I'll keep those attached; loose response files would lose that context.

12
AN
AnilChan1071

The scope question is answered: a narrow contract substitute, with successful and failing responses. Readiness still depends on passing those checks and verifying the offline connection boundary.

11
MI
MinaAbbott0076

That scope is useful, and your readiness condition covers both contract behaviour and staying offline.

21

参与讨论

欢迎来到 Application Robot

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

忘记密码?

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