My offline FR10 fake agrees with every parsing mistake

AnnaAli0242 · 2026年7月27日 18:41 UTC

回复讨论

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

AN
AnnaAli0242
I'm developing inspection-result parsing while our FR10 cell is unavailable; my fake returns true for everything, which keeps the housing screen cheerful but tells me nothing about response handling (software testing only, not a motion simulation).

9 条回复

RA
RachelBarnes0609

Pick one method the parser actually consumes. Give its fake responses the documented structure for your SDK version, including failure cases. Then check the resulting application state rather than whether the fake was called.

7分
TO
TobyBennett0753

I would include a result whose housing identity is missing. You have already pointed out elsewhere that a completion should not borrow the order currently on screen; an offline test can hold that rule even while the cell is unavailable.

22分
AN
AnnaAli0242

Yes, that identity rule stays; I need the response fake to exercise it instead of bypassing the parser with a Boolean.

7分
RA
RachelBarnes0609

Keep two sorts of cases visible. Documented responses check the supported contract; deliberately malformed inputs check your own defensive handling. A made-up failure shape should not become evidence of what the SDK returns.

1分
TO
TobyBennett0753

And make a wrong call fail the test. A fake that politely accepts any arguments can reproduce the response shapes and still miss an application using the interface incorrectly.

11分
AN
AnnaAli0242

The first strict case caught our caller omitting an argument; fixed that in the offline branch, with controller confirmation still outstanding.

15分
RA
RachelBarnes0609

Did you also check the visible result after failure? I would want no current acceptance claim there, not merely a passing assertion inside the wrapper.

18分
AN
AnnaAli0242

That check now fails because the previous housing result remains looking current; useful catch, and the offline work is not finished.

8分
TO
TobyBennett0753

Retain the sequence that exposed it: known result followed by failed retrieval. The person reviewing the fix can then see exactly which mistaken acceptance claim disappeared, while any claims about the real cell remain for commissioning.

13分

参与讨论

欢迎来到 Application Robot

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

忘记密码?

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