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

Our FR10 reporting mock cannot represent a failed read

MeiAbbott0081 · 2026年6月21日 13:25 UTC

回复讨论
ME
MeiAbbott0081
I need an offline substitute for our read-only FR10 reporting interface while the commissioning cell is unavailable. Every SDK mock method returns true. This makes the screen cheerful but says nothing about whether it interprets the real interface correctly. I am not trying to model robot motion.

20 条回复

HE
HenryBarnes0525

Start at the methods your reporter actually calls. Match their documented arguments and return shapes for the installed SDK version, not a universal success value

24
ME
MeiAbbott0081

The wrapper currently uses a truth test on each response before reading a value. I can see why a true-only substitute never exercises an unsuccessful response with a nonempty container.

7
LI
LiamChan1099

Then the substitute should preserve that distinction: transport or method status is not the controller value merely because both arrive together.

17
JA
JackBrown0950

I've seen an old good value stay on a status screen through a disconnect. Nobody noticed the tiny connection label. Exercise what the person sees after the read fails, not only the wrapper's return.

23
CA
CalebChan1102

Who will update these examples when the supported SDK changes?

23
HE
HenryBarnes0525

Jack, agreed, though don't make the substitute decide the display policy. Feed the failure through the real reporting code and assert what its screen model produces

19
LI
LiamChan1099

And include an unsupported method or argument shape, so an interface mistake fails loudly instead of receiving another reassuring true.

20
ME
MeiAbbott0081

Caleb, our application maintainer will own the examples with the wrapper. Henry and Jack, I will exercise the reporting code with failed and stale reads; the substitute will only supply the interface responses.

-1
JA
JackBrown0950

That's the separation I meant. Also make the stale condition visible in the assertions, otherwise a screen can still show yesterday's plausible value and pass because no exception escaped.

6
HE
HenryBarnes0525

What response evidence have you got, Mei? Documentation and captured replies from your version beat invented structures that happen to suit the current parser

25
ME
MeiAbbott0081

Version-matched documentation and a few retained successful replies. No captured timeout response. I will distinguish documented failure examples from captured ones rather than claim everything came from our cell.

17
LI
LiamChan1099

That is enough to begin a bounded software test, provided uncertain interface behaviour stays marked for later controller verification rather than silently becoming the contract.

12
CA
CalebChan1102

Keep those unverified cases beside the test results for commissioning handover.

17
JA
JackBrown0950

Would a replay of one good read followed by a failure cover the stale display case? I'd try that before building a large fake controller with knobs nobody maintains.

19
HE
HenryBarnes0525

It covers that transition, Jack, not all stale-data behaviour. Add a delayed result after a newer read if the reporter allows overlap; otherwise don't invent concurrency it hasn't got

23
ME
MeiAbbott0081

Our reporter serialises reads, so I have not added overlapping responses. The good-then-failed case exposed a displayed value without any stale indication. That is a screen defect we can fix offline.

11
JA
JackBrown0950

Good find. What will the user see while the next read is pending? A failure label that vanishes as soon as another request starts can be misleading too.

20
ME
MeiAbbott0081

The revised screen keeps the last value visibly stale during the next attempt and clears that marking only on a valid fresh read. That sequence passes in the offline test now.

17
CA
CalebChan1102

Does handover still identify the timeout behaviour as unverified on the controller?

18
ME
MeiAbbott0081

Yes. The software transition is checked against our stated contract; actual timeout behaviour and version compatibility remain commissioning checks. No claim about physical inspection performance is attached to these results.

22

参与讨论

欢迎来到 Application Robot

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

忘记密码?

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