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

Our FR10 parser never complains because the mock always says true

LeahBrooks0843 · 2026年7月30日 13:52 UTC

回复讨论
LE
LeahBrooks0843
I'm testing inspection-result parsing offline while our FR10 station is unavailable. Every mock method returns true, so the display looks healthy despite interface mistakes. What response tests would make this useful without pretending to simulate hardware?

7 条回复

YA
YasminChen1137

Make the substitute match the documented software boundary: argument expectations and response shapes for the supported version, including failures. Assert parsed values, not just whether the screen opens.

21
LE
LeahBrooks0843

We have documentation and saved read-only responses. The mock currently ignores both its arguments and the parser's output.

4
AN
AnikaAli0247

Then put a deliberately wrong call through it. If that still looks fine, it isn't testing the boundary you care about. No need to construct a pretend robot to find that.

15
YA
YasminChen1137

Also exercise malformed replies and unavailable data. Don't make every failure another valid-looking status with a different number.

-3
AN
AnikaAli0247

Who maintains those saved examples after the real SDK changes? Otherwise today's useful substitute becomes next year's very convincing wrong interface.

19
LE
LeahBrooks0843

The software maintainer owns the versioned examples now. Tests catch wrong arguments and a missing parser field. Real-controller comparison remains pending while the station is unavailable.

19
YA
YasminChen1137

Did you include success followed by failure? A previous good result can stay misleadingly current even when the new failure is parsed correctly.

7

参与讨论

欢迎来到 Application Robot

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

忘记密码?

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