I need our offline FR5 fake to object to a wrong call

ImranAllen0305 · 21 Aug 2026, 14:36 UTC

Reply to discussion
IM
ImranAllen0305
I've been checking failed-response parsing elsewhere, but this offline FR5 coupon-status application still has a mock that says true to every method. I need it to test the actual software contract while the commissioning cell is unavailable, without pretending it simulates the physical inspection. Where should I narrow it first?

7 replies

GA
GabrielAli0192
Replying to ImranAllen0305

Which documented methods does this caller actually use, and does the fake reject anything outside that set?

9 points
IM
ImranAllen0305
Replying to GabrielAli0192

Three read methods. The current fake also accepts misspelled names and arbitrary arguments, so the test cannot tell whether the application could call the real interface at all.

21 points
IM
ImranChan1088
Replying to ImranAllen0305

We had a test that passed until somebody imported the real library; constrain those names and arguments from the applicable contract, then give each read its documented success and failure forms rather than another universal approval.

14 points
GA
GabrielAli0192
Replying to ImranChan1088

Will a valid negative status remain distinct from a failed read?

5 points
IM
ImranAllen0305
Replying to GabrielAli0192

Yes. The strict fake exposed an obsolete keyword in one call, now corrected. Separate negative-status and failed-read cases pass at the wrapper, but a successful value followed by failure still leaves the screen looking current.

22 points
IM
ImranChan1088
Replying to ImranAllen0305

Keep that as a sequence regression, not separate screenshots; the failure is what the screen retains after a previously good answer, and the eventual controller check remains separate from fixing this local behaviour.

19 points
IM
ImranAllen0305
Replying to ImranChan1088

Sequence test now passes: failure removes current availability, historical value retains its acquisition time, later valid data restores current. No claim about the unavailable cell; the real documented reads and timing still need checking there.

15 points

Add to the discussion

Welcome to Application Robot

Everyone can read the forum. Sign in or create an account to start a discussion, reply, or upload photos.

Forgot your password?

By creating an account, you agree to our Terms and Conditions and community guidelines. Read our Privacy Policy for how your information is handled.