My offline UR5e test even accepts a misspelled method

EllaCarter0990 · 6 May 2026, 10:31 UTC

Reply to discussion
EL
EllaCarter0990
The cell is unavailable, so I'm testing inspection-result parsing offline. Our mock returns true for everything. Even a misspelled call keeps the screen happy. What should this substitute actually check?

7 replies

AI
AishaAdams0170
Replying to EllaCarter0990

Start with the documented interface for the version you're using. The substitute should reject unknown methods and wrong arguments, and return representative success and failure shapes rather than one universal true. Keep that separate from any claim about robot motion

18 points
EL
EllaCarter0990
Replying to AishaAdams0170

Thanks Aisha. I can get the installed version and recorded query returns. We only need this to test the parser and screen, not to imitate the physical cell.

2 points
WI
WillCarter1009
Replying to EllaCarter0990

Add explicit expected screen states for those recorded returns. Otherwise the mock may become more realistic while the test still checks only that the page renders.

18 points
AI
AishaAdams0170
Replying to WillCarter1009

And check what happens after a valid result followed by a failed request. I mean the screen shouldn't quietly keep the old result looking current just because the failure case itself no longer crashes

6 points
EL
EllaCarter0990
Replying to AishaAdams0170

That case caught another gap. The old result stays visible with no age or failure indication. I've added a separate expected unavailable state to the screen review.

11 points
WI
WillCarter1009
Replying to EllaCarter0990

Include startup too, before a valid result exists. That case cannot borrow an old reading (unless the mock invents one for it).

1 points
AI
AishaAdams0170
Replying to AishaAdams0170

Keep the original typo as a failing interface test after the replacement is written. It is a useful small check that the new substitute hasn't accidentally become permissive again

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