Commit 92251f55 by 贾伟

首次提交

parent b7be1248
# Default ignored files
/shelf/
/workspace.xml
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoredIdentifiers">
<list>
<option value="requests" />
</list>
</option>
</inspection_tool>
</profile>
</component>
\ No newline at end of file
<component name="InspectionProjectProfileManager">
<settings>
<option name="PROJECT_PROFILE" value="Default" />
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9" project-jdk-type="Python SDK" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/script_template.iml" filepath="$PROJECT_DIR$/.idea/script_template.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
*** Settings ***
Documentation
... Keyword List:
... My Suite Setup
... My Test Setup
... My Test Teardown
... My Suite Teardown
*** Keywords ***
My Suite Setup
[Documentation]
Log ========================== My Suite Setup Start ========================== console=True
&{gbl_vars}= Fetch Json Vars file=D:\\word\\自动化\\script_template\\json_file\\call_center_vars.json
Set Global Variable ${gbl_vars}
#Log ${gbl_vars}[url] #推荐这种写法
#Log ${gbl_vars}[customer_email]
#Log ${gbl_vars}[customer_email][2]
#Log ${gbl_vars}[time]
#Log ${gbl_vars}[time][minute]
&{locator_vars}= Fetch Json Vars file=D:\\word\\自动化\\script_template\\json_file\\call_center_locator_vars.json
Set Global Variable ${locator_vars}
Set Log Level ${gbl_vars}[log_level]
#Debug Mode
Close All Browsers
Open Browser And Set Size url=${gbl_vars}[url] set_window_size=${True} set_max_browser_window=${True}
Logon Soboten logon_type=0 email=${gbl_vars}[email] password=${gbl_vars}[password]
Sleep 7
Wait Until Element Is Enabled ${locator_vars}[我知道了] 60s
Click Button ${locator_vars}[我知道了]
Click Element ${locator_vars}[智客]
switch window NEW
Wait Until Page Contains 已有企业微信 60s
My Test Setup
Click Link ${locator_vars}[首页]
Wait Until Page Contains 首页 60s
Sleep 2
#My Test Teardown
# Sleep 1
#
#My Suite Teardown
# Close All Browsers
*** Settings ***
Documentation callcenter_callreports_v1_fun1.robot
... case link: xxxxxx
... use command: robot -d xxx -T callcenter_callreports_v1_fun1.robot
... description: funcation description info
... author: xxxxxx
... min support version: xxxxxx
... technology area: 智客
... sub-area: 呼叫中心
... Case List :
... Tc1: case1 info detail description
... Tc2: case2 info detail description
... Tc3: case3 info detail description
Resource ${EXECDIR}/keyword/common_keywords_set.robot
#Resource ${EXECDIR}/keyword/call_center_keyword.robot
Resource ${EXECDIR}/callcenter_callreports_v1_setup_teardown.robot
Suite Setup Run Keywords My Suite Setup
Test Setup Run Keywords My Test Setup
#Test Teardown Run Keywords My Test Teardown
#Suite Teardown Run Keywords My Suite Teardown
#*********************************************************************
*** Variables ***
#*********************************************************************
*** Test Cases ***
Tc0 debug case
[Documentation]
... - xxxxxx
... - xxxxxx
... - xxxxxx
[Tags] Sanity 0 1
Log ---------- Tc1 step: ok ok ok ------------ console=True
Tc1 Test basic function under call reports of call center
[Documentation]
... - 进入呼叫中心
... - 进入呼叫中心 > 通话记录
... - 手工输入起始和结束日期和时间
... - 下拉菜单单选
... - 下拉菜单多选
[Tags] Sanity 1 呼叫中心
Log ---------- Tc1 step 1: 进入呼叫中心 ------------ console=True
Click Link ${locator_vars}[呼叫中心]
Log ---------- Tc1 step 2: 进入呼叫中心 > 通话记录 ------------ console=True
Wait Until Page Contains 记录 60s
Click Element ${locator_vars}[呼叫中心_通话记录]
Wait Until Page Contains 通话记录 60s
#Write Url And Session Into File
Log ---------- Tc1 step 3: 手工输入起始和结束日期和时间 ------------ console=True
Set Calendar From Start To End By Input Date And Time
... clear_locator=${locator_vars}[通话记录_日期控件_时间清除]
... calendar_locator=${locator_vars}[通话记录_日期控件_选中]
... start_locator=${locator_vars}[通话记录_日期控件_开始日期位置]
... end_locator=${locator_vars}[通话记录_日期控件_结束日期位置]
... input_start_date_and_time=2011-01-01 00:00
... input_end_date_and_time=2018-01-01 00:00
... commit_locator=${locator_vars}[通话记录_日期控件_确定]
Log ---------- Tc1 step 4: 下拉菜单单选 ------------ console=True
Select Single Item From Dropdown List dl_locator=${locator_vars}[呼叫方向_下拉框选中] item_locator=${locator_vars}[呼叫方向_呼出]
Select Single Item From Dropdown List dl_locator=${locator_vars}[呼叫方向_下拉框选中] item_locator=${locator_vars}[呼叫方向_呼入]
Select Single Item From Dropdown List dl_locator=${locator_vars}[呼叫方向_下拉框选中] item_locator=${locator_vars}[呼叫方向_全部方向]
Select Single Item From Dropdown List dl_locator=${locator_vars}[接听状态_下拉框选中] item_locator=${locator_vars}[接听状态_未接听]
Select Single Item From Dropdown List dl_locator=${locator_vars}[接听状态_下拉框选中] item_locator=${locator_vars}[接听状态_已接听]
Select Single Item From Dropdown List dl_locator=${locator_vars}[接听状态_下拉框选中] item_locator=${locator_vars}[接听状态_全部接听状态]
Select Single Item From Dropdown List dl_locator=${locator_vars}[是否填写总结_下拉框选中] item_locator=${locator_vars}[是否填写总结_已总结]
Select Single Item From Dropdown List dl_locator=${locator_vars}[是否填写总结_下拉框选中] item_locator=${locator_vars}[是否填写总结_未总结]
Select Single Item From Dropdown List dl_locator=${locator_vars}[是否填写总结_下拉框选中] item_locator=${locator_vars}[是否填写总结_全部总结填写情况]
Select Single Item From Dropdown List dl_locator=${locator_vars}[处理状态_下拉框选中] item_locator=${locator_vars}[处理状态_未处理]
Select Single Item From Dropdown List dl_locator=${locator_vars}[处理状态_下拉框选中] item_locator=${locator_vars}[处理状态_未解决]
Select Single Item From Dropdown List dl_locator=${locator_vars}[处理状态_下拉框选中] item_locator=${locator_vars}[处理状态_全部处理状态]
Select Single Item From Dropdown List dl_locator=${locator_vars}[处理状态_下拉框选中] item_locator=${locator_vars}[处理状态_已解决]
Log ---------- Tc1 step 5: 下拉菜单多选 ------------ console=True
Select Mutiple Items From Dropdown List
... dl_locator=${locator_vars}[最后接待技能组_下拉框选中]
... input_locator=${locator_vars}[最后接待技能组_请输入搜索内容]
... input_content=无技能组
... items_locator=${locator_vars}[最后接待技能组_选项_无技能组]
... commit_locator=${locator_vars}[最后接待技能组_确定]
Select Mutiple Items From Dropdown List
... dl_locator=${locator_vars}[转接/三方现场_下拉框选中]
... items_locator=${locator_vars}[转接/三方现场_选项_列表]
... commit_locator=${locator_vars}[转接/三方现场_确定]
Tc2 go into ZhiKe - 智客SCRM
[Documentation]
... - xxxxxx
... - xxxxxx
... - xxxxxx
[Tags] Sanity 2
Log ---------- Tc2 step 0: 进入智客SCRM > 通话记录 ------------
Click Link ${locator_vars}[智客SCRM]
Wait Until Page Contains 客户中心 60s
Click Element xpath=//a[text()="待分配客户"]
Wait Until Page Contains 待分配客户 60s
Log ---------- Tc2 step 1: 齿轮下拉列表 ------------
Click Element xpath=//*[@id="root"]/div/div[3]/div[2]/div/div/div[2]/div/div/div/div[2]/div/div/div[4] #点击齿轮
Sleep 0.5
Click Element xpath=//*[@id="root"]/div/div[3]/div[2]/div/div/div[2]/div/div/div/div[2]/div/div/div[4]/div/div/div/div/div[2]/div[1]/div/label/span[2] #选中列展示
Sleep 0.5
Click Element xpath=//*[@id="root"]/div/div[3]/div[2]/div/div/div[2]/div/div/div/div[2]/div/div/div[4]/div/div/div/div/div[2]/div[1]/div/span #点击重置
Sleep 0.5
Click Element xpath=//*[@id="root"]/div/div[3]/div[2]/div/div/div[2]/div/div/div/div[2]/div/div/div[4]/div/div/div/div/div[2]/div[2]/div/div[7]/label/span[2] #点击QQ
Sleep 0.5
Click Element xpath=//*[@id="root"]/div/div[3]/div[2]/div/div/div[2]/div/div/div/div[2]/div/div/div[4]/div/div/div/div/div[2]/div[2]/div/div[10]/label/span[2] #点击界面看不到的元素
Log ---------- Tc2 step 2: 上传文件 ------------
Upload Local File
... batch_import_button_locator=${locator_vars}[上传文件_批量导入]
... upload_button_locator=${locator_vars}[上传文件_上传文件]
... file=${locator_vars}[上传文件_文件]
... import_button_locator=${locator_vars}[上传文件_导入]
... confirm_button_locator=${locator_vars}[上传文件_确认]
... sleep_time=2
*** Settings ***
Documentation
... Keyword List:
... My Suite Setup
... My Test Setup
... My Test Teardown
... My Suite Teardown
*** Keywords ***
My Suite Setup
[Documentation]
Log ========================== My Suite Setup Start ========================== console=True
&{gbl_vars}= Fetch Json Vars file=D:\\word\\自动化\\script_template\\json_file\\call_center_vars.json
Set Global Variable ${gbl_vars}
#Log ${gbl_vars}[url] #推荐这种写法
#Log ${gbl_vars}[customer_email]
#Log ${gbl_vars}[customer_email][2]
#Log ${gbl_vars}[time]
#Log ${gbl_vars}[time][minute]
&{locator_vars}= Fetch Json Vars file=D:\\word\\自动化\\script_template\\json_file\\call_center_locator_vars.json
Set Global Variable ${locator_vars}
Set Log Level ${gbl_vars}[log_level]
Close All Browsers
Open Browser And Set Size url=${gbl_vars}[url] set_window_size=${True} set_max_browser_window=${True}
Logon Soboten logon_type=0 email=${gbl_vars}[email] password=${gbl_vars}[password]
Wait Until Element Is Enabled ${locator_vars}[我知道了] 60s
Click Button ${locator_vars}[我知道了]
Click Element ${locator_vars}[智客]
switch window NEW
Wait Until Page Contains 已有企业微信 60s
My Test Setup
Click Element ${locator_vars}[首页]
Wait Until Page Contains 首页 60s
Sleep 2
#My Test Teardown
# Sleep 1
#
#My Suite Teardown
# Close All Browsers
http://127.0.0.1:52990,d05b65ce2dc61b507d1dbac3824f4d58
\ No newline at end of file
{
"我知道了" : "xpath=//button[text()=\"我知道了\"]",
"智客" : "xpath=//div[@data-title=\"智客\"]",
"首页" : "xpath=//*[@id=\"root\"]/div/div[2]/ul/li[2]/a",
"呼叫中心" : "x、】path=//*[@id=\"root\"]/div/div[2]/ul/li[3]/a",
"企微智客" : "xpath=//*[@id=\"root\"]/div/div[2]/ul/li[4]/a",
"智客SCRM" : "xpath=//*[@id=\"root\"]/div/div[2]/ul/li[5]/a",
"在线客服机器人" : "xpath=//*[@id=\"root\"]/div/div[2]/ul/li[6]/a",
"套电机器人" : "xpath=//*[@id=\"root\"]/div/div[2]/ul/li[7]/a",
"客服管理" : "xpath=//*[@id=\"root\"]/div/div[2]/ul/li[8]/a",
"WIKI" : "xpath=//*[@id=\"root\"]/div/div[2]/ul/li[9]/a",
"V6新呼叫中心" : "xpath=//*[@id=\"root\"]/div/div[3]/div/div/div/div[2]/div/div[10]/a",
"在线客服" : "xpath=//*[@id=\"root\"]/div/div[2]/ul/li[11]/a",
"V6-呼叫技能组" : "xpath=//*[@id=\"0-0$Menu\"]/li[3]/a[text()=(\"呼叫技能组\")]",
"V6-新呼叫中心" : "xpath=//*[@id=\"root\"]/div/div[3]/div/div/div/div[2]/div/div[10]/a",
"V6-技能组-新建" : "xpath=//*[@id=\"searchRight\"]/button/span[text()=\"新建\"]",
"V6-技能组-名/组号搜索框" : "xpath=//*[@id=\"searchLeft\"]/span/input[contains(@placeholder,\"搜索技能组名称/组号\")]",
"V6-技能组-搜索框-删除": "xpath=//*[@id=\"searchLeft\"]/span/span",
"V6-技能组tbody":"xpath=//*[@id=\"ant-design-pro-table\"]//table/tbody",
"V6-列表-下一页":"xpath=//*[@id=\"ant-design-pro-table\"]//li[@title=\"下一页\"]/button[@class=\"ant-pagination-item-link\"]",
"V6-技能组-新增": "xpath=//*[@id=\"searchRight\"]/button/span[text()=\"新建\"]",
"V6-技能组-名称文本":"xpath=//*[@id=\"queueName\"]",
"V6-技能组-组号": "xpath=//*[@id=\"queueID\"]",
"V6-技能组-弹板-新建": "xpath=/html/body//button/span[text()=\"新 建\"]",
"V6-技能组-弹板-取消": "xpath=/html/body//button/span[text()=\"取 消\"]",
"V6-技能组-创建返回列表": "xpath=//*[@id=\"call-setting-root\"]/div/div[3]/div[2]/div/div/div[2]/div/div/div/div[1]/h2/a",
"V6-列表-第一页切换": "xpath=//*[@id=\"ant-design-pro-table\"]//a[text()=\"1\"]",
"组成员-列表tbody": "xpath=//*[@id=\"ant-design-pro-table\"]//div[@class=\"ant-table-body\"]/table/tbody",
"组织架构搜索": "xpath=//*[@id=\"rc-tabs-0-panel-1\"]//span[2][text()=\"组织架构\"]",
"组成员-搜索坐席": "xpath=//*[@id=\"rc-tabs-0-panel-1\"]//*[@placeholder='搜索座席姓名/工号/邮箱']",
"组成员-添加": "xpath=//*[@id=\"rc-tabs-0-panel-1\"]//button/span[text()=\"添加\"]",
"组成员-添加-错误提示弹板": "xpath=//html/body/div[3]/div",
"组成员-添加-重复组号提示": "xpath=//html/body//span[text()=\"队列号已存在\"]",
"组成员-添加-界面": "xpath=//html/body/div[6]/div/div[2]/div/div[2]",
"组成员-添加-界面-组织架构下拉": "xpath=//html/body//span[text()=\"组织架构\"]",
"组成员-添加-界面-角色下拉": "xpath=//html/body//span[text()=\"角色\"]",
"组成员-添加-界面-状态下拉": "",
"组成员-列表-移除": "xpath=//*[@id=\"ant-design-pro-table\"]//a[text()=\"移除\"]",
"组成员-移除-按钮": "xpath=//*[@id=\"rc-tabs-0-panel-1\"]//button/span[text()=\"添加\"]",
"组成员-列表-全选-当页": "xpath=//*[@id=\"ant-design-pro-table\"]//div[1]/table/thead/tr/th[1]/div/label",
"V6-技能组-组成员-添加勾选-1行": "xpath=//*[@id=\"ant-design-pro-table\"]/div/div/div[2]/div/div/div/div/div[2]/table/tbody/tr[2]/td[1]/label",
"V6-技能组-组成员-添加勾选-2行": "xpath=//*[@id=\"ant-design-pro-table\"]/div/div/div[2]/div/div/div/div/div[2]/table/tbody/tr[3]/td[1]/label",
"V6-技能组-组成员-弹板-添加": "xpath=//html/body/div[2]/div/div[2]/div/div[2]/div[3]/button[2]",
"V6-技能组-组成员-弹板-全部移除": "xpath=//div/i[text()=\"全部移除\"]",
"V6-技能组-组成员-全部移除": "xpath=//*[@id=\"rc-tabs-0-panel-1\"]/div/button/span[text()=\"移除\"]",
"V6-技能组-组成员-全部移除-确定": "xpath=//div/button/span[text()=\"确 定\"]",
"V6-技能组-组成员-添加-添加成功": "xpath=//span[text()=\"保存成功\"]",
"V6-技能组-组成员-添加-删除成功": "xpath=//span[text()=\"删除成功\"]",
"V6-技能组-技能组排队-Tab": "xpath=//*[@id=\"rc-tabs-0-tab-2\"]",
"V6-技能组-技能组排队-VIP客户": "xpath=//*[@id=\"vipPriority\"]",
"V6-技能组-技能组排队-最大排队人数": "xpath=//*[@id=\"maxMembers\"]",
"V6-技能组-技能组排队-客户最大排队时长": "xpath=//*[@id=\"maxWaitTime\"]",
"V6-技能组-技能组排队人数-错误提示": "xpath=//*[@id=\"rc-tabs-0-panel-2\"]//*[text()=\"排队人数范围为1-99\"]",
"V6-技能组-技能组排队-排队等待背景音": "xpath=//*[@id=\"rc-tabs-0-panel-2\"]//label[text()=\"排队等待背景音\"]/following::span[@class=\"ant-select-selection-item\"]",
"V6-技能组-技能组排队-排队等待背景音-下拉列表": "xpath=//*[@id=\"mohSoundId_list\"]/following-sibling::div[@class=\"rc-virtual-list\"]",
"V6-技能组-技能组排队-排队等待背景音-选中位置": "xpath=//*[@id=\"mohSoundId_list\"]/following-sibling::div[@class=\"rc-virtual-list\"]//div[@label=\"测试2\"]",
"V6-技能组-技能组排队-等待间隔提示音-开关": "xpath=//*[@id=\"tipSound\"]",
"V6-技能组-技能组排队-等待间隔提示音-播放间隔": "xpath=//*[@id=\"tipSoundTime\"]",
"V6-技能组-技能组排队-等待间隔提示音-播放语音-类型": "xpath=//*[@id=\"rc-tabs-0-panel-2\"]//label[text()=\"播放语音\"]/following::span[@class=\"ant-select-selection-item\"]",
"V6-技能组-技能组排队-等待间隔提示音-播放语音-类型-下拉列表": "xpath=//*[@id=\"yy_tipSoundType_list\"]/following-sibling::div[@class=\"rc-virtual-list\"]",
"V6-技能组-技能组排队-等待间隔提示音-播放语音-类型-选中位置-音频": "xpath=//*[@id=\"yy_tipSoundType_list\"]/following-sibling::div[@class=\"rc-virtual-list\"]//div[@title=\"音频\"]",
"V6-技能组-技能组排队-等待间隔提示音-播放语音-类型-选中位置-文本转语音": "xpath=//*[@id=\"yy_tipSoundType_list\"]/following-sibling::div[@class=\"rc-virtual-list\"]//div[@title=\"文本转语音\"]",
"V6-技能组-技能组排队-等待间隔提示音-播放语音-文字转语音-文本": "xpath=//*[@id=\"yy_tipSoundContent\"]",
"V6-技能组-技能组排队-等待间隔提示音-播放语音-音频": "xpath=//*[@id=\"yy_tipSoundId\"]/../parent::div[@class=\"ant-select-selector\"]",
"V6-技能组-技能组排队-等待间隔提示音-播放语音-音频-下拉列表":"xpath=//*[@id=\"yy_tipSoundId_list\"]/following-sibling::div[@class=\"rc-virtual-list\"]",
"V6-技能组-技能组排队-等待间隔提示音-播放语音-音频-选中位置": "xpath=//*[@id=\"yy_tipSoundId_list\"]/following-sibling::div[@class=\"rc-virtual-list\"]//div[@label=\"测试2\"]",
"V6-技能组-组内座席分配": "xpath=//*[@id=\"rc-tabs-0-tab-3\"]",
"V6-技能组-座席分配-优先分配上次接待座席": "xpath=//*[@id=\"lastTalkAgent\"]",
"V6-技能组-座席分配-座席分配策略-空闲时长最长座席": "xpath=//*[@id=\"strategy\"]//input[@value=\"1\"]",
"V6-技能组-座席分配-座席分配策略-电话数最少座席": "xpath=//*[@id=\"strategy\"]//input[@value=\"0\"]",
"V6-技能组-座席分配-座席分配策略-随机分配座席": "xpath=//*[@id=\"strategy\"]//input[@value=\"2\"]",
"V6-技能组-座席分配-座席分配策略-顺序轮流分配座席": "xpath=//*[@id=\"strategy\"]//input[@value=\"3\"]",
"V6-技能组-座席分配-座席分配策略-座席最长振铃时间": "xpath=//*[@id=\"agentOriginateTimeout\"]",
"V6-技能组-座席分配-座席分配策略-客户侧提示音": "xpath=//*[@id=\"announcedAgentId\"]",
"V6-技能组-座席分配-座席分配策略-客户侧提示音-添加":"xpath=//*[@id=\"rc-tabs-5-panel-3\"]//button/span[text()=\"添加\"]",
"V6-技能组-座席分配-技能组资料": "xpath=//*[@id=\"rc-tabs-0-tab-4\"]",
"V6-技能组-座席分配-技能组资料-名称": "xpath=//*[@id=\"queueName\"]",
"V6-技能组-未保存Tab-弹板-取消": "xpath=//div/button[@class=\"ant-btn\"]/span[text()=\"取 消\"]",
"V6-技能组-未保存Tab-弹板-确定": "xpath=//div/button[@class=\"ant-btn ant-btn-primary\"]/span[text()=\"确 定\"]",
"V6-技能组-保存": "xpath=//button[@type=\"submit\"]/span[text()=\"保存\"]",
"": "",
"": "",
"v6-技能组-编辑-1行": "xpath=//*[@id=\"ant-design-pro-table\"]//table/tbody//a[text()=\"编辑\"]",
"v6-技能组-删除-1行":"xpath=//*[@id=\"ant-design-pro-table\"]//table/tbody//a[text()=\"删除\"]",
"V6-呼入路由":"xpath=//*[@id=\"0-0$Men\"]/li/a[text()=\"呼入路由\"]",
"V6-呼入路由-新建":"xpath=//*[@id=\"rc-tabs-12-panel-1\"]//button/span[text()=\"新建路由\"]",
"V6-呼入路由-编辑-路由名称":"xpath=//*[@id=\"routeName\"]",
"V6-呼入路由-编辑-呼入中继号码":"xpath=//*[@id=\"numberRuleFields\"]",
"V6-呼入路由-编辑-呼入中继号码-选择号码-全选-lable":"xpath=//*[@id=\"ant-design-pro-table\"]//th[text()=\"外显号码\"]/preceding-sibling::th//label",
"V6-呼入路由-编辑-呼入中继号码-选择号码-全选-span":"xpath=//*[@id=\"ant-design-pro-table\"]//th[text()=\"外显号码\"]/preceding-sibling::th//span",
"V6-呼入路由-编辑-呼入中继号码-选择号码-确定":"xpath=//button/span[text()=\"确定\"]",
"V6-呼入路由-编辑-呼入中继号码-分配规则-选IVR":"xpath=//*[@id=\"ivrName\"]//parent::span",
"":"",
"":"",
"":""
}
\ No newline at end of file
{
"log_level" : "DEBUG",
"url" : "http://test.sobot.com/console/login",
"browser" :"gc",
"email" : "mjmj@zhichi.com",
"password" : "sobot1234",
"w_size_hor_pixels" : 1920,
"w_size_ver_pixels" : 1080,
"time" : {"hour" : 11, "minute" : "20", "second" : "55"},
"content" : ["abc", "QWE", "!@#", "中国人"],
"has_result" : true,
"comments" : null,
"customer_email" : ["123@test.com", "abc@test.cn", "ruby@sobot.net", "qwe@sobot.net"],
"prov_city_dist" : ["辽宁省", "沈阳市", "大东区"],
"上传文件_文件" : ["C:\\Users\\Administrator\\Desktop\\reports\\3_1.xlsx", "C:\\Users\\Administrator\\Desktop\\reports\\3_2.xlsx", "C:\\Users\\Administrator\\Desktop\\reports\\3_3.xlsx"]
}
\ No newline at end of file
*** Settings ***
Documentation This is call center V6 keyword
... author: Jiawei
...
*** Variables ***
*** Keywords ***
#Skill group queuing
# [Documentation] 技能组排队
# [Arguments] ${vip}=true #是否开启
# ${vip_locator} #开关位置
# ${queuing_people} #最大排队人数
# ${duration}
# ${music_text}
# ${music_locator}
Check text boundary
[Documentation] 校验文本边界
[Arguments] ${text_locator}
... ${min}=0
... ${max}=${None}
... ${number}
Log 填写内容为:${number}
Log 边界为最小:最大 ${min} : ${max}
Log ===============================================
Run keyword IF ${number}>=${min} and
# #!/usr/bin/env python3
# #-*- coding: UTF-8 -*-
#
# """
# Author: JW
# """
# import os
# import json
# #import requests
# from collections import Counter
#
# class public_python_keywords(object):
#
# def __init__(self):
# pass
# """
# 验证查询信息是否符合预期
# """
# @classmethod
# def qery_result_verification(self,data=None,query=""):
# if data is None:
# #再次之后所有内容不在执行
# raise Exception("------please provide raw data------")
# listinfo=[]
# for info in range(len(data)):
# if data[info] is query:
# listinfo.append(data[info])
# return listinfo
\ No newline at end of file
*** Settings ***
Documentation all keywords for zhike test automation
... this is collection of all product lines and public keyword
... author: wuwei
#智科测试自动化的所有关键词
#这是所有产品线和公共关键字的集合
#作者:武威
#Library self_library/globalvars.py
#Library self_library/debug.py
Library Collections
Library String
Library OperatingSystem
Library DateTime
Library re
Library SeleniumLibrary
Library ./public_python_keywords.py
Library ./callcenter_V6_python_keywords.py
Resource ./public_robot_keywords.robot
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
This source diff could not be displayed because it is too large. You can view the blob instead.
script_template @ 347bf94c
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment