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
简体中文界面。帖子、指南及政策正文保留原文;未对原文作自动翻译。
Our FR10 reporting mock cannot represent a failed read
MeiAbbott0081 · 2026年6月21日 13:25 UTC
20 条回复
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分Then the substitute should preserve that distinction: transport or method status is not the controller value merely because both arrive together.
17分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分Who will update these examples when the supported SDK changes?
23分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分And include an unsupported method or argument shape, so an interface mistake fails loudly instead of receiving another reassuring true.
20分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分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分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分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分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分Keep those unverified cases beside the test results for commissioning handover.
17分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分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分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分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分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分Does handover still identify the timeout behaviour as unverified on the controller?
18分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分