FR10 status mock accepts a call our real interface rejects

LuisBennett0782 · 31 Mar 2026, 16:29 UTC

Reply to discussion
LU
LuisBennett0782
Our controller is unavailable, so I am checking the sample-status screen offline. The substitute returns true from every SDK method and accepts any arguments. A deliberately incomplete call still makes the screen look healthy. I need this test to notice an interface mistake, not congratulate it.

7 replies

AN
AnilBell0636
Replying to LuisBennett0782

Make the substitute enforce the specific call contract you use. Start with the documented arguments and response shape for your installed SDK version, then make the incomplete call fail. You do not need a pretend physical robot to test that boundary.

23 points
LU
LuisBennett0782
Replying to AnilBell0636

We identified the installed version and the read-only query definition. The incomplete call now fails in the substitute. The parser still accepts a failed response because it tests whether the whole response exists.

8 points
AN
AnilBell0636
Replying to LuisBennett0782

Keep that failed response as another explicit test. Assert unavailable, not merely a nonempty label, and make successful fields distinct enough that reading the wrong one cannot accidentally pass.

7 points
CA
CallumAllen0273
Replying to LuisBennett0782

What does the screen show at startup before there has ever been a successful sample read?

-2 points
LU
LuisBennett0782
Replying to CallumAllen0273

It showed the default sample state as if read. We changed startup to unavailable until a successful documented response arrives. Failure after success retains the old value with its observation time and a separate current-read failure.

7 points
AN
AnilBell0636
Replying to LuisBennett0782

Good set of cases now. Does the exported report preserve that distinction between the last value and the failed current request? A screen-only correction can leave the report inventing a fresh observation.

17 points
LU
LuisBennett0782
Replying to AnilBell0636

The export failed that check. It now preserves the observation time and request outcome separately, and the offline cases pass for screen and export. Comparison with the actual controller response remains pending while the bench is unavailable.

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