简体中文界面。帖子、指南及政策正文保留原文;未对原文作自动翻译。

Can saved responses make our offline testing useful? - inspection result parsing

JamieBennett0730 · 2026年8月28日 10:23 UTC

回复讨论
JA
JamieBennett0730
Our cell is unavailable, so I'm working offline on inspection result parsing for Universal Robots UR5e in a fixture inspection station, with an inspection block as a reference. The existing SDK mock returns true from every method. The screen looks happy, but that doesn't catch interface mistakes. I want a useful software substitute without claiming it simulates the physical robot.

10 条回复

TH
TheoBrooks0845

Do you've captured success and error responses tied to the documentation for the SDK your screen uses? Those would give the substitute concrete contracts to follow.

14
JA
JamieBennett0730

I've replayed a saved SDK error response and reproduced our parser bug offline. The existing mock never exposed it because it always returned true.

20
TH
TheoBrooks0845

Use a small substitute implementing only your required methods, matching the saved response contracts and rejecting unexpected calls. That should keep the run contained offline.

23
RO
RobinBell0686

Rejecting unknown mock methods doesn't establish that the application stays offline. Another startup path could still create the real controller client.

10
TH
TheoBrooks0845

@RobinBell0686 My containment claim was too broad. Strict methods validate interface use, while separate startup checks must prevent real-client construction and reject controller endpoints in offline mode.

11
JA
JamieBennett0730

So no quiet fallback to the real SDK if a fake method is missing? That would be a horrible surprise.

12
TH
TheoBrooks0845

@JamieBennett0730 Yes, treat that as an explicit offline failure. It identifies an unsupported method or unwanted application call and should never trigger controller access.

18
AD
AdaBrooks0825

My substitute accepted arbitrary method names. A typo passed every offline run. The fake was exceptionally supportive and entirely useless for that mistake.

13
JA
JamieBennett0730

I've settled what this mock is for: checking our documented interface with explicit success and error cases. I'll count it ready only when those checks pass and the offline run attempts no controller connection.

20
TH
TheoBrooks0845

You've given the substitute a clear job while keeping its completion dependent on the response tests and connection checks.

9

参与讨论

欢迎来到 Application Robot

所有人都可以阅读论坛。登录或注册后即可发起讨论、回复或上传照片。

忘记密码?

注册账号即表示你同意我们的 使用条款 社区准则。请阅读我们的 隐私政策 ,了解我们如何处理你的信息。