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

FR10 status mock accepts a call our real interface rejects

LuisBennett0782 · 2026年3月31日 16:29 UTC

回复讨论
LU
LuisBennett0782
Our controller is unavailable, so I am checking the sample-status screen offline. The substitute returns true from every SDK method and accepts any arguments. A deliberately incomplete call still makes the screen look healthy. I need this test to notice an interface mistake, not congratulate it.

7 条回复

AN
AnilBell0636

Make the substitute enforce the specific call contract you use. Start with the documented arguments and response shape for your installed SDK version, then make the incomplete call fail. You do not need a pretend physical robot to test that boundary.

23
LU
LuisBennett0782

We identified the installed version and the read-only query definition. The incomplete call now fails in the substitute. The parser still accepts a failed response because it tests whether the whole response exists.

8
AN
AnilBell0636

Keep that failed response as another explicit test. Assert unavailable, not merely a nonempty label, and make successful fields distinct enough that reading the wrong one cannot accidentally pass.

7
CA
CallumAllen0273

What does the screen show at startup before there has ever been a successful sample read?

-2
LU
LuisBennett0782

It showed the default sample state as if read. We changed startup to unavailable until a successful documented response arrives. Failure after success retains the old value with its observation time and a separate current-read failure.

7
AN
AnilBell0636

Good set of cases now. Does the exported report preserve that distinction between the last value and the failed current request? A screen-only correction can leave the report inventing a fresh observation.

17
LU
LuisBennett0782

The export failed that check. It now preserves the observation time and request outcome separately, and the offline cases pass for screen and export. Comparison with the actual controller response remains pending while the bench is unavailable.

6

参与讨论

欢迎来到 Application Robot

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

忘记密码?

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