My offline FR10 fake agrees with every parsing mistake

AnnaAli0242 · 27 Jul 2026, 18:41 UTC

Reply to discussion
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 replies

RA
RachelBarnes0609
Replying to AnnaAli0242

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 points
TO
TobyBennett0753
Replying to AnnaAli0242

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 points
AN
AnnaAli0242
Replying to TobyBennett0753

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

7 points
RA
RachelBarnes0609
Replying to AnnaAli0242

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 points
TO
TobyBennett0753
Replying to RachelBarnes0609

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 points
AN
AnnaAli0242
Replying to TobyBennett0753

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

15 points
RA
RachelBarnes0609
Replying to AnnaAli0242

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 points
AN
AnnaAli0242
Replying to RachelBarnes0609

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

8 points
TO
TobyBennett0753
Replying to AnnaAli0242

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 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.