提交 75628d60 authored 作者: 陈泽健's avatar 陈泽健

用例更新

上级 0b259ae7
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -4491,8 +4491,8 @@ XLSX文件成功打开
},
{
"page": "ConferenceDeclaration",
"locator_type": "id",
"locator_value": "tree-selector-confirm",
"locator_type": "XPATH",
"locator_value": "(//button[@id='tree-selector-confirm'])[3]",
"element_type": "click",
"element_value": "",
"expented_result": ""
......@@ -4563,7 +4563,7 @@ XLSX文件成功打开
}
]
}
行 7 JSON解析成功: {'name': '会议申报测试003', 'para': [{'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//div[@id='CreateMeeting']", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'id', 'locator_value': 'create-meeting-name-input', 'element_type': 'input', 'element_value': '会议申报测试', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//input[@id='create-meeting-start-time-datepicker']", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//input[@placeholder='选择时间']", 'element_type': 'input', 'element_value': '09:30', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//button[@class='el-button el-picker-panel__link-btn el-button--default el-button--mini is-plain']//span[contains(text(),'确定')]", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//input[@id='create-meeting-location-select']", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//span[contains(text(),'会议申报会议室001')]", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//input[@placeholder='请选择主办单位']", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "(//div[@class='el-tree-node__content'])[10]", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'id', 'locator_value': 'tree-selector-confirm', 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//input[@id='create-meeting-compere-select']", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//div[@x-placement='bottom-start']//span[contains(text(),'范公司主管领导')]", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//input[@id='create-meeting-department-leader-select']", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//span[contains(text(),'陈部门领导')]", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//input[@id='create-meeting-company-leader-select']", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//div[@x-placement='bottom-start']//span[contains(text(),'范公司主管领导')]", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//span[contains(text(),'提交')]", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//p[@class='el-message__content']", 'element_type': 'getTips', 'element_value': '', 'expented_result': '会议预定成功'}]}
行 7 JSON解析成功: {'name': '会议申报测试003', 'para': [{'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//div[@id='CreateMeeting']", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'id', 'locator_value': 'create-meeting-name-input', 'element_type': 'input', 'element_value': '会议申报测试', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//input[@id='create-meeting-start-time-datepicker']", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//input[@placeholder='选择时间']", 'element_type': 'input', 'element_value': '09:30', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//button[@class='el-button el-picker-panel__link-btn el-button--default el-button--mini is-plain']//span[contains(text(),'确定')]", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//input[@id='create-meeting-location-select']", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//span[contains(text(),'会议申报会议室001')]", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//input[@placeholder='请选择主办单位']", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "(//div[@class='el-tree-node__content'])[10]", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "(//button[@id='tree-selector-confirm'])[3]", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//input[@id='create-meeting-compere-select']", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//div[@x-placement='bottom-start']//span[contains(text(),'范公司主管领导')]", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//input[@id='create-meeting-department-leader-select']", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//span[contains(text(),'陈部门领导')]", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//input[@id='create-meeting-company-leader-select']", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//div[@x-placement='bottom-start']//span[contains(text(),'范公司主管领导')]", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//span[contains(text(),'提交')]", 'element_type': 'click', 'element_value': '', 'expented_result': ''}, {'page': 'ConferenceDeclaration', 'locator_type': 'XPATH', 'locator_value': "//p[@class='el-message__content']", 'element_type': 'getTips', 'element_value': '', 'expented_result': '会议预定成功'}]}
行 8 原始JSON数据: {
"name": "会议申报测试004",
"para": [
......@@ -23728,7 +23728,7 @@ XLSX文件处理完成,共找到 2 条用例
========= 测试开始 : 20250623_150236 =========
========= 测试开始 : 20250623_181949 =========
......@@ -23751,25 +23751,85 @@ XLSX文件处理完成,共找到 2 条用例
>>> cases\项目定制\兰州中石化项目25-05-24\兰州中石化测试.py
* 会议申报测试003 - 2025-06-23 15:02:46
* 会议申报测试003 - 2025-06-23 18:19:56
[ case execution steps ]
页面: ConferenceDeclaration、元素定位类型: xpath、元素定位值: //div[@id='CreateMeeting']、元素类型: click、元素值: 、预期结果:
picture imgs/20250623150249252095.png
picture imgs/20250623181959488471.png
页面: ConferenceDeclaration、元素定位类型: id、元素定位值: create-meeting-name-input、元素类型: input、元素值: 会议申报测试、预期结果:
picture imgs/20250623150251662842.png
picture imgs/20250623182001818088.png
页面: ConferenceDeclaration、元素定位类型: xpath、元素定位值: //input[@id='create-meeting-start-time-datepicker']、元素类型: click、元素值: 、预期结果:
picture imgs/20250623150253935015.png
picture imgs/20250623182004135762.png
页面: ConferenceDeclaration、元素定位类型: xpath、元素定位值: //input[@placeholder='选择时间']、元素类型: input、元素值: 09:30、预期结果:
picture imgs/20250623150256226295.png
picture imgs/20250623182006549234.png
页面: ConferenceDeclaration、元素定位类型: xpath、元素定位值: //button[@class='el-button el-picker-panel__link-btn el-button--default el-button--mini is-plain']//span[contains(text(),'确定')]、元素类型: click、元素值: 、预期结果:
picture imgs/20250623150258556167.png
picture imgs/20250623182008812381.png
页面: ConferenceDeclaration、元素定位类型: xpath、元素定位值: //input[@id='create-meeting-location-select']、元素类型: click、元素值: 、预期结果:
picture imgs/20250623150300830469.png
picture imgs/20250623182011122519.png
页面: ConferenceDeclaration、元素定位类型: xpath、元素定位值: //span[contains(text(),'会议申报会议室001')]、元素类型: click、元素值: 、预期结果:
picture imgs/20250623150303111442.png
picture imgs/20250623182013402236.png
页面: ConferenceDeclaration、元素定位类型: xpath、元素定位值: //input[@placeholder='请选择主办单位']、元素类型: click、元素值: 、预期结果:
picture imgs/20250623150305371665.png
picture imgs/20250623182015686509.png
页面: ConferenceDeclaration、元素定位类型: xpath、元素定位值: (//div[@class='el-tree-node__content'])[10]、元素类型: click、元素值: 、预期结果:
picture imgs/20250623150307604639.png
页面: ConferenceDeclaration、元素定位类型: id、元素定位值: tree-selector-confirm、元素类型: click、元素值: 、预期结果:
picture imgs/20250623182017942679.png
页面: ConferenceDeclaration、元素定位类型: xpath、元素定位值: (//button[@id='tree-selector-confirm'])[3]、元素类型: click、元素值: 、预期结果:
picture imgs/20250623182020194540.png
页面: ConferenceDeclaration、元素定位类型: xpath、元素定位值: //input[@id='create-meeting-compere-select']、元素类型: click、元素值: 、预期结果:
picture imgs/20250623182022506602.png
页面: ConferenceDeclaration、元素定位类型: xpath、元素定位值: //div[@x-placement='bottom-start']//span[contains(text(),'范公司主管领导')]、元素类型: click、元素值: 、预期结果:
picture imgs/20250623182025797106.png
页面: ConferenceDeclaration、元素定位类型: xpath、元素定位值: //input[@id='create-meeting-department-leader-select']、元素类型: click、元素值: 、预期结果:
picture imgs/20250623182028067087.png
页面: ConferenceDeclaration、元素定位类型: xpath、元素定位值: //span[contains(text(),'陈部门领导')]、元素类型: click、元素值: 、预期结果:
picture imgs/20250623182030335902.png
页面: ConferenceDeclaration、元素定位类型: xpath、元素定位值: //input[@id='create-meeting-company-leader-select']、元素类型: click、元素值: 、预期结果:
picture imgs/20250623182032636179.png
页面: ConferenceDeclaration、元素定位类型: xpath、元素定位值: //div[@x-placement='bottom-start']//span[contains(text(),'范公司主管领导')]、元素类型: click、元素值: 、预期结果:
TimeoutException: Element ('xpath', "//div[@x-placement='bottom-start']//span[contains(text(),'范公司主管领导')]") not found or not clickable within 20 seconds.
picture imgs/20250623182056513564.png
页面: ConferenceDeclaration、元素定位类型: xpath、元素定位值: //span[contains(text(),'提交')]、元素类型: click、元素值: 、预期结果:
picture imgs/20250623182058839369.png
页面: ConferenceDeclaration、元素定位类型: xpath、元素定位值: //p[@class='el-message__content']、元素类型: getTips、元素值: 、预期结果: 会议预定成功
picture imgs/20250623182059049245.png
获取到的提示信息为:请选择公司主管领导
** 检查点 ** 获取到的提示信息为:请选择公司主管领导 ----> !! 不通过!!
FAIL
Traceback:
File "E:\GithubData\自动化\ubains-module-test\预定系统\cases\项目定制\兰州中石化项目25-05-24\兰州中石化测试.py", line 88, in teststeps
CHECK_POINT(f"获取到的提示信息为:{notify_text}", expented_result in notify_text)
File "E:\Python\lib\site-packages\hytest\common.py", line 76, in CHECK_POINT
raise AssertionError()
AssertionError
[ suite teardown ] cases\项目定制\兰州中石化项目25-05-24\
[ suite teardown ] cases\
清除浏览器
========= 测试结束 : 20250623_182119 =========
耗时 : 89.967 秒
预备执行用例数量 : 1
实际执行用例数量 : 1
通过 : 0
失败 : 1
异常 : 0
套件初始化失败 : 0
套件清除 失败 : 0
用例初始化失败 : 0
用例清除 失败 : 0
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论