FR10 status adapter converts a failed response into a current reading

AmyAli0206 · 2026年3月29日 01:01 UTC

已关闭

主帖中文翻译暂不可用,以下显示英文原文;回复保留原文。 查看英文原文

AM
AmyAli0206
Our replacement SDK returns a structured response where the old environment returned the value expected by the wrapper. The dashboard now extracts a number from failed replies and stamps it as current. I want the adapter to handle both supported contracts explicitly, with no useful data represented as unavailable.

3 条回复

LU
LucaCarter0961
回复 AmyAli0206

Start with a saved failure that shows the bug and the documentation for the loaded version. Check the success indication before extracting the named status value, then test the screen after a good reply followed by that failure.

8分
AM
AmyAli0206

The saved failure reproduces it. Maintainer has identified both contracts; the first test now asserts unavailable rather than just checking that the display contains text.

1分
LU
LucaCarter0961
回复 AmyAli0206

Add success with the required value missing too. The outer reply can sound fine while the useful bit isn't there, and the adapter mustn't fill that hole with a believable default.

13分

讨论已关闭

此讨论已连续六个月没有活动,现已关闭新回复。 最后活动: .