google-smart-home - 智能家居测试套件无法执行
问题描述
我正在尝试在我的服务上运行 Google Smarthome 自动化测试。我测试正确地检索了我的服务的设备和特征。但是,当我开始测试时,什么也没有发生。没有超时,没有错误,什么都没有。
在我的网络浏览器开发人员看来,我从 Google 的测试套件应用程序中看到以下错误。会不会导致测试无法启动?这是我的问题还是谷歌的问题?
ERROR a.split is not a function
Yh @ app_compiled.js?523e…-6feac3eecc6b:18199
Zh.handleError @ app_compiled.js?523e…-6feac3eecc6b:18199
next @ app_compiled.js?523e…-6feac3eecc6b:18335
f @ app_compiled.js?523e…-6feac3eecc6b:18316
g.ht @ app_compiled.js?523e…-6feac3eecc6b:18293
g.next @ app_compiled.js?523e…-6feac3eecc6b:18292
g.ba @ app_compiled.js?523e…-6feac3eecc6b:18290
g.next @ app_compiled.js?523e…-6feac3eecc6b:18290
g.next @ app_compiled.js?523e…-6feac3eecc6b:18295
Ln.emit @ app_compiled.js?523e…-6feac3eecc6b:18315
(anonymous) @ app_compiled.js?523e…-6feac3eecc6b:18320
u.vb @ app_compiled.js?523e…-6feac3eecc6b:18086
p.run @ app_compiled.js?523e…-6feac3eecc6b:18078
Nn.Aa @ app_compiled.js?523e…-6feac3eecc6b:18319
Nj @ app_compiled.js?523e…-6feac3eecc6b:18320
u.handleError @ app_compiled.js?523e…-6feac3eecc6b:18086
p.Zo @ app_compiled.js?523e…-6feac3eecc6b:18079
t.gi @ app_compiled.js?523e…-6feac3eecc6b:18088
p @ app_compiled.js?523e…-6feac3eecc6b:18115
q @ app_compiled.js?523e…-6feac3eecc6b:18115
load (async)
ia @ app_compiled.js?523e…-6feac3eecc6b:18108
u.Xg @ app_compiled.js?523e…-6feac3eecc6b:18086
mi @ app_compiled.js?523e…-6feac3eecc6b:18169
u.Xg @ app_compiled.js?523e…-6feac3eecc6b:18086
mi @ app_compiled.js?523e…-6feac3eecc6b:18083
u.Xg @ app_compiled.js?523e…-6feac3eecc6b:18086
p.Xg @ app_compiled.js?523e…-6feac3eecc6b:18080
p.Es @ app_compiled.js?523e…-6feac3eecc6b:18081
(anonymous) @ app_compiled.js?523e…-6feac3eecc6b:18111
(anonymous) @ app_compiled.js?523e…-6feac3eecc6b:18977
Show 36 more frames
解决方案
在这里跟进 - 我遇到的问题是我使用了关于如何在 Sync 请求中可用ThermostatModes 的推荐定义,这是字符串的 JSON 区域。
相反,我被要求实现已弃用的表示格式,它是一个逗号分隔的字符串。一旦切换到不推荐使用的格式,套件就会运行。
请参阅:https ://developers.google.com/assistant/smarthome/traits/temperaturesetting
对于 2 种格式。同样,我不得不使用已弃用的格式(不是最新的推荐格式)。
推荐阅读
- html - 使用 CSS 制作滑出式菜单
- html - 使 div 可滚动不在 div 中滚动
- reactjs - 如何使用 Apollo graphql 和 graphene-django 在 React 中设置初始状态
- r - 如何使用 which() 从 R 中的数据框中仅选择数字
- android - 卡在 ArrayAdapter 上
- google-chrome - URL 哈希片段中的冒号波浪号 (:~:) 是什么意思?
- python - 使用shutil在Python中复制文件,给出TypeError
- react-native - React Native 开发工作流程
- html - 为什么我在使用 HTML5 模式时遇到错误
- java - spring thymeleaf error EL1008E 在“LiveDataController$LiveDataSet”类型的对象上找不到属性或字段可能不是公共的或无效的?