My offline UR5e test even accepts a misspelled method

EllaCarter0990 · 2026年5月6日 10:31 UTC

回复讨论

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

EL
EllaCarter0990
The cell is unavailable, so I'm testing inspection-result parsing offline. Our mock returns true for everything. Even a misspelled call keeps the screen happy. What should this substitute actually check?

7 条回复

AI
AishaAdams0170

Start with the documented interface for the version you're using. The substitute should reject unknown methods and wrong arguments, and return representative success and failure shapes rather than one universal true. Keep that separate from any claim about robot motion

18分
EL
EllaCarter0990

Thanks Aisha. I can get the installed version and recorded query returns. We only need this to test the parser and screen, not to imitate the physical cell.

2分
WI
WillCarter1009

Add explicit expected screen states for those recorded returns. Otherwise the mock may become more realistic while the test still checks only that the page renders.

18分
AI
AishaAdams0170

And check what happens after a valid result followed by a failed request. I mean the screen shouldn't quietly keep the old result looking current just because the failure case itself no longer crashes

6分
EL
EllaCarter0990

That case caught another gap. The old result stays visible with no age or failure indication. I've added a separate expected unavailable state to the screen review.

11分
WI
WillCarter1009

Include startup too, before a valid result exists. That case cannot borrow an old reading (unless the mock invents one for it).

1分
AI
AishaAdams0170

Keep the original typo as a failing interface test after the replacement is written. It is a useful small check that the new substitute hasn't accidentally become permissive again

22分

参与讨论

欢迎来到 Application Robot

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

忘记密码?

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