I misspelled a method in our offline inspection reader. The mock still returned true and the screen stayed happy. That is not a useful substitute while the cell is unavailable.
We found ours was accepting any method name. Start by making unknown calls and wrong arguments fail against the documented interface for your installed SDK version.
Developer replaced the catch-all behaviour with the documented methods we actually use. The misspelled call now fails. Response parsing is still barely tested.
Give it representative documented success, failure and incomplete replies, then check what the application does with each. Returning a convenient true value bypasses the parser you are trying to exercise.
And distinguish a failed read from an actual inspection rejection. They can both be non-successful outcomes for the software, but the person at the bench needs different explanations.
The success-then-failure sequence exposed a stale accepted colour. Developer fixed it and added current-read validity. Missing and incomplete replies now show no usable result, not rejected bracket.
Yes. It requires the expected read and validates the parsed result. Removing the call fails. Unknown method, wrong arguments, incomplete reply and initial no-result cases also pass their intended checks.
Have the tutor read the failure wording. We thought unavailable was clear until somebody took it to mean the bracket was physically missing from the fixture.
Tutor distinguished read failed from rejected bracket in the offline sequence. Mock and parser test work is complete. Installed interface comparison remains for commissioning; these tests make no claim about physical handling.