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

Our FR5 status lesson passes with the query name misspelled

AlexBrown0907 · 2025年12月20日 03:53 UTC

已关闭
AL
AlexBrown0907
The offline FR5 status lesson looks successful even when I misspell the documented query. Our mock accepts any method and returns true. I want it to enforce the small read-only interface we actually teach, then exercise failure responses. At present the most reliable feature is its approval of mistakes.

11 条回复

RA
RachelArcher0435

Restrict it to the documented method names and argument signatures for the supported version. An unknown method or invalid call should fail the test immediately. Then make the valid calls return version-specific examples rather than a universal boolean.

16
AL
AlexBrown0907

We have a saved successful response from the intended version. The developer built the mock before that capture existed and never changed its return value. I have asked for the supported interface to be explicit.

7
HA
HazelAli0223

What should the screen show when the first valid call fails?

15
JO
JonasAllen0285

Hazel's first-call case is worth keeping. Our old display only handled failure after it had a good value to fall back on. Starting without that value exposed a different problem.

-2
RA
RachelArcher0435

And test good then failed separately. Any retained value needs its age and old status visible, not a quiet promotion back into the current reading.

12
AL
AlexBrown0907

The first failed read should show unavailable with its reason. A previous valid result may remain in a separate last-reading area with its time. Neither should look like a fresh sample status.

2
LU
LucaBarnes0526

Let a tutor see both examples without being told which one failed, because a technically correct label can still be very easy to overlook beside a familiar value.

23
HA
HazelAli0223

Will an unexpected response shape be a separate example too?

15
AL
AlexBrown0907

Yes. The restricted mock now rejects the misspelled method and wrong argument. The saved success parses correctly. Reported failure and malformed-response cases are next; there is no completed display walkthrough yet.

8
JO
JonasAllen0285

Does your lesson identify that this is an offline response exercise? I would not want a student thinking a convincing screen demonstrates the coupon, fixture or physical robot behaved correctly.

21
AL
AlexBrown0907

It does. The lesson names calls, responses and display interpretation as its scope. The installed-interface comparison remains separate for when the station is available, and the physical handling exercise is not represented by this mock.

12

讨论已关闭

此讨论已连续六个月没有活动,现已关闭新回复。 最后活动: .