v0.1.9.4(2024/07/15)
1. [profile: aio.py]:完善durable text相关逻辑 2. [profile: do_brake/do_current/btn_functions.py]:删除validate_resp函数,修改execution函数 3. [profile: factory_test.py] - 新增耐久/老化测试程序 - 实现六轴折线图显示 4. [profile: openapi.py]:多次合并遗留问题处理 5. templates文件夹组织架构调整
This commit is contained in:
@ -2,18 +2,6 @@ from json import loads
|
||||
from sys import argv
|
||||
|
||||
|
||||
def validate_resp(_id, response, w2t):
|
||||
match _id:
|
||||
case 'DATA ERR':
|
||||
w2t(f"数据处理错误,需要确认", 0, 4, 'red', tab_name='Automatic Test')
|
||||
case 'DATA READ ERR':
|
||||
w2t(f"无法读取数据,需要确认", 0, 3, 'red', tab_name='Automatic Test')
|
||||
case 'NOT SUPPORT':
|
||||
w2t(f"不支持的功能,需要确认", 0, 2, 'red', tab_name='Automatic Test')
|
||||
if not response:
|
||||
w2t(f"无法获取{id}请求的响应信息", 0, 1, 'red', tab_name='Automatic Test')
|
||||
|
||||
|
||||
def execution(cmd, hr, w2t, **kwargs):
|
||||
_id = hr.execution(cmd, **kwargs)
|
||||
_msg = hr.get_from_id(_id)
|
||||
@ -21,7 +9,8 @@ def execution(cmd, hr, w2t, **kwargs):
|
||||
w2t(f"无法获取{_id}请求的响应信息", 0, 6, 'red', tab_name='Automatic Test')
|
||||
else:
|
||||
_response = loads(_msg)
|
||||
validate_resp(_id, _response, w2t)
|
||||
if not _response:
|
||||
w2t(f"无法获取{id}请求的响应信息", 0, 1, 'red', tab_name='Automatic Test')
|
||||
return _response
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user