fr5 sample mock accepts calls the real interface may reject

CalebChan1102 · 2026年7月4日 04:40 UTC

回复讨论

主帖中文翻译暂不可用,以下显示英文原文;回复保留原文。 查看英文原文

CA
CalebChan1102
Controller unavailable. Our sample-display mock returns true for everything. How do I test the actual software calls without claiming an inspection trial?

8 条回复

ME
MeiBell0690

Make the substitute expose the methods and arguments your installed interface supports, with matching response shapes; accepting every call can hide mistakes before the parser even sees a result

9分
CA
CalebChan1102

Found a misspelled read method. The mock's generic fallback accepted it; the installed interface does not.

22分
TO
TobyBrown0927

Remove that fallback. Unknown calls should fail the test, not produce another reassuring screen.

1分
HE
HenryBaker0438

Does the corrected call now exercise the application's normal response parser, or is the fake still handing the display a simplified value?

7分
ME
MeiBell0690

Use retained responses with their version noted for that parser, including unsuccessful reads; detailed method checking and response interpretation are separate bits of software coverage

9分
CA
CalebChan1102

Normal parser now used. Correct and failed saved responses produce the expected display states. The strict substitute also rejects the misspelled method and wrong argument count; tests name those cases. No controller behaviour inferred.

20分
HE
HenryBaker0438

Will those strict-interface tests remain in the normal test run when the controller returns, rather than becoming an offline-only tool nobody opens again?

10分
CA
CalebChan1102

Included in the standard run and handover. Controller comparison remains a separate commissioning task.

10分

参与讨论

欢迎来到 Application Robot

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

忘记密码?

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