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

增加展厅巡检目录以及脚本文件,调试SMC的测试流程

上级 1ed96e93
......@@ -35,6 +35,7 @@ class Exhibition_hall_inspection_000x:
name:用例名称
conference_name:会议室名称
message_name:会议名称
message_type:会议类型
book_type:预约类型
repetitive_cycle:重复周期
host_name:主持人名称
......@@ -53,7 +54,7 @@ class Exhibition_hall_inspection_000x:
# 从全局存储中获取webdriver实例
wd = GSTORE['wd']
name = self.name
conference_name, message_name, book_type, repetitive_cycle, host_name, message_content, issue_name, book_start_time, book_end_time, inside_participant_name, outside_participant_name, outside_participant_phone, save_template, template_name, message_notification, notification_method, check_text = self.para
conference_name, message_name, message_type, book_type, repetitive_cycle, host_name, message_content, issue_name, book_start_time, book_end_time, inside_participant_name, outside_participant_name, outside_participant_phone, save_template, template_name, message_notification, notification_method, check_text = self.para
# 在会议室列表搜索会议室
STEP(1, f"在会议室列表搜索:{conference_name}")
......@@ -83,10 +84,14 @@ class Exhibition_hall_inspection_000x:
# 在会议预定第一步界面进行数据填入
STEP(3,"会议第一步数据填写")
INFO(f"输入会议名称:{message_name},选择预约类型:{book_type},输入主持人:{host_name},输入会议内容:{message_content},选择会议开始时间:{book_start_time},选择会议结束时间:{book_end_time}")
INFO(f"输入会议名称:{message_name},选择会议类型:{message_type},选择预约类型:{book_type},输入主持人:{host_name},输入会议内容:{message_content},选择会议开始时间:{book_start_time},选择会议结束时间:{book_end_time}")
# 输入会议名称
safe_send_keys((By.XPATH, "//input[@placeholder='请输入会议名称']"),message_name,wd)
# 判断会议类型
safe_click((By.XPATH, f"//div[@class='reserve_input']//span[@class='el-checkbox__label'][normalize-space()='{message_type}']"),wd)
sleep(1)
# 判断预约类型
if book_type == "普通会议":
INFO("预约类型为:普通会议")
......
name,conference_name,message_name,book_type,repetitive_cycle,host_name,message_content,issue_name,book_start_time,book_end_time,inside_participant_name,outside_participant_name,outside_participant_phone,save_template,template_name,message_notification,notification_method,check_text
会议预约_001,产研中心会议室,这是周期会议测试1,周期会议,每天,陈泽键,这是会议内容哈哈,议题1,19:00,20:15,admin@CZJ,陈泽坚,17319004674,否,这是模板,开会前一天提醒,短信,预定成功
\ No newline at end of file
name,conference_name,message_name,message_type,book_type,repetitive_cycle,host_name,message_content,issue_name,book_start_time,book_end_time,inside_participant_name,outside_participant_name,outside_participant_phone,save_template,template_name,message_notification,notification_method,check_text
会议预约_001,产研中心会议室,这是周期会议测试1,SMC3.0,周期会议,每天,陈泽键,这是会议内容哈哈,议题1,19:00,20:15,admin@CZJ,陈泽坚,17319004674,否,这是模板,开会前一天提醒,短信,预定成功
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论