Our offline UR5e screen likes every method, including the wrong ones
Diane_Campbell · 2026年6月20日 00:03 UTC
主帖中文翻译暂不可用,以下显示英文原文;回复保留原文。 查看英文原文
12 条回复
Give it an explicit interface matching the installed version. Unsupported calls must fail. Then use identified response examples to test parsing and the expected screen state separately.
8分It accepts invented method names. We have saved replies, but no version recorded with them yet.
13分Keep those captures, but label the version gap. They can help investigate the parser without becoming the authority for the intended interface. Compare against the actual installed API contract before calling the substitute faithful.
19分When I've handed over test results, people read passed and stop there; who will see exactly which response cases you exercised and which are still missing?
3分Grace, the test names should say that plainly, not hide the cases in the mock's internals; a report headed robot tested would be nonsense here
15分Application maintainer gets the case list. Scope says parser and display only. Version identified from the original capture environment now.
11分Include failure after a successful response. A parser can reject the failure correctly while the screen keeps showing the earlier value as current.
19分Also distinguish a valid negative fixture state from a failed request. Both may contain something false, but one is an observation and the other leaves you without a current observation.
8分That distinction found a bug: request failure displays fixture absent. It should show no current reading, not a physical judgement.
21分Keep that example as a regression case. Otherwise someone can simplify the two states back into one boolean later and admire the shorter code
19分Fixed in the offline version. Valid absent and failed read display differently. Thanks Rachel. Malformed responses and stale-value presentation still need tests.
-2分Leave those gaps on the handover list. The corrected example is useful evidence about the application; comparison with the real controller remains another step.
24分