*** Variables *** ${Remote_Sync} xpath=//div[@id="sideNav_sync"] # 黑方主界面—异地灾备功能栏 ${Tunnel_Manage} xpath=//span[@class="host_manage_trigger"] # 黑方主界面—异地灾备功能栏—管道管理 ${Create_Tunnel} xpath=//span[text()="新建同步管道"] # 黑方主界面—异地灾备功能栏—管道管理—新建同步管道 ${Sou_Name} xpath=//input[@ng-model="channel_source"] # 新建同步管道弹窗—管道名称(源端) ${Des_Name} xpath=//input[@ng-model="channel_target"] # 新建同步管道弹窗—管道名称(目标端) ${Sou_BC} xpath=//input[@ng-model="source_ip"] # 新建同步管道弹窗—源端黑方IP ${Des_BC} xpath=//input[@ng-model="target_ip"] # 新建同步管道弹窗—目标端黑方IP ${Login_Name} xpath=//input[@ng-model="username"] # 新建同步管道弹窗—登录用户名 ${Login_Pwd} xpath=//input[@id="password_mask"] # 新建同步管道弹窗—登录密码 ${Confirm_Create_Tunnel} xpath=//button[@ng-click="finish_add_channel()"] # 新建同步管道弹窗—确定按钮 ${Sync_Tunnel} xpath=//p[contains(text(),"sou")]/.. # 黑方主界面—异地灾备功能栏—管道 ${Add_Sync_Task} xpath=//button[@ng-click="addTask()"] # 黑方主界面—异地灾备功能栏—同步任务栏—添加任务按钮 ${Task_CDP} xpath=//div[@class="sourceSelectList"]/span[3] # 黑方主界面—异地灾备功能栏—添加同步任务—实时数据保护 ${Sync_Policy_Name} xpath=//input[@ng-model="task_name"] # 异地灾备功能栏—添加同步任务—同步任务名称输入框 ${SyncPolicy_NextStep} xpath=//button[@ng-click="fw_1_2()"] # 异地灾备功能栏—添加同步任务—下一步按钮 ${Complete_Create_SyncTask} xpath=//button[@ng-show="(step_2_show && add_mode) || (step_2_show && edit_mode)"] # 异地灾备功能栏—添加同步任务—同步选项—完成按钮 ${Manual_MDS} xpath=//input[@id="manualAssignment"] # 异地灾备功能栏—添加同步任务—同步选项—手动选择介质 ${Button_StartTask} xpath=//td[text()="CDP同步"]/..//span[text()="启动"] # 黑方主界面—异地灾备功能栏—同步任务—任务启动按钮 ${Task_DPM} xpath=//div[@ng-show="add_mode && add_init"]//div[@class="sourceSelectList"]/span[1] # 黑方主界面—异地灾备功能栏—添加同步任务—定时数据保护 ${DPM_StartTask} xpath=//td[text()="DPM同步"]/../..//span[text()="启动"] # 黑方主界面—异地灾备功能栏—同步任务—定时任务启动按钮 ${Success_Confirm} xpath=//button[@class="btn btn-primary ok"] # 操作成功确定按钮 ${DPM_StopTask} xpath=//td[text()="DPM同步"]/..//span[text()="停止"] # 黑方主界面—异地灾备功能栏—同步任务—定时任务停止按钮 ${DPM_DelTask} xpath=//td[text()="DPM同步"]/..//span[text()="删除"] # 黑方主界面—异地灾备功能栏—同步任务—定时任务删除按钮 ${DelTask_Confirm} xpath=//button[@ng-click="finish_del()"] # 删除同步任务弹窗—确定按钮 ${Task_CDM} xpath=//div[@ng-show="add_mode && add_init"]//div[@class="sourceSelectList"]/span[2] # 黑方主界面—异地灾备功能栏—添加同步任务—副本数据保护 ${CDM_StartTask} xpath=//td[text()="CDM同步"]/..//span[text()="启动"] # 异地灾备功能栏—同步任务—CDM任务启动按钮 ${CDM_StopTask} xpath=//td[text()="CDM同步"]/..//span[text()="停止"] # 异地灾备功能栏—同步任务—CDM任务停止按钮 ${CDM_DelTask} xpath=//td[text()="CDM同步"]/..//span[text()="删除"] # 异地灾备功能栏—同步任务—CDM任务删除按钮 ${Inverse_Sync_Task_List} xpath=//span[contains(text(),"来自")]/../..//td[1] # 添加反向同步任务—同步管道名称前的+号 ${Task_Monitor} xpath=//span[text()="任务监控"] # 第一灾备功能栏—任务监控 ${Button_Search_Task} xpath=//span[text()="筛选"] # 异地灾备功能栏—任务监控栏—筛选按钮 ${Sync_Task_More} xpath=//button[@ng-click="close_modal()"]/span[text()="×"] # 异地灾备功能栏—添加同步任务—同步任务详情—关闭 ${Sync_Retain_Time} xpath=//input[@ng-model="retain_days_set" and @value="1"] # 添加同步任务—同步选项—设置保留天数选项 ${Input_Retain_Time} xpath=//input[@id="retain_days_val"] # 添加同步任务—同步选项—保留天数输入框 ${Sync_Tun_Compress} xpath=//input[@id="channel_compress"] # 异地灾备功能栏—添加同步任务—同步选项—管道压缩框 ${Sync_Tun_Encryption} xpath=//input[@id="channel_encryption"] # 异地灾备功能栏—添加同步任务—同步选项—管道加密框 ${Sync_Tun_Dedup} xpath=//input[@id="channel_dedup"] # 异地灾备功能栏—添加同步任务—同步选项—管道重删框 ${CDP_DelTask} xpath=//td[contains(text(),"CDP同步")]/..//span[text()="删除"] # 异地灾备功能栏—同步任务—CDP任务删除按钮 ${CDP_StopTask} xpath=//td["CDP同步")]/..//span[text()="停止"] # 异地灾备功能栏—同步任务—CDP任务停止按钮 ${Umount_Disk} xpath=//span[text()="卸载"] # 容灾功能栏—集成代理—挂载恢复栏—卸载按钮 ${Button_umount_confirm} xpath=//button[text()="卸载"] # 容灾功能栏—卸载快照弹窗—确定卸载按钮 ${Umount_Success} xpath=//p[text()="卸载成功"]/../..//button[text()="确定"] # 容灾功能栏—卸载快照成功弹窗—确定按钮 ${Snapshot_Manage} xpath=//li[text()="快照管理"] # 黑方主界面—持续数据保护栏—快照管理 ${First_Snapshot} xpath=//tr[@class=" ev_dhx_web"]/td[1] # 黑方主界面—持续数据保护栏—快照管理—第一行快照 ${Del_SnapShot} xpath=//button[@ng-click="editSnap('delete')"] # 容灾功能栏—快照管理—删除按钮 ${Del_SnapShot_Confirm} xpath=//button[@ng-click="removeSnap()"] # 容灾功能栏—删除快照弹窗—确定删除按钮 ${Del_Success} xpath=//p[text()="删除成功"] # 容灾功能栏—删除快照成功 ${Del_Sync_Agent} xpath=//div[@dir="ltr"]//div[text()="删除"] # 容灾功能栏—离线代理—右击删除 ${Del_Agent_Confirm} xpath=//button[@ng-click="removeAgent()"] # 容灾功能栏—确定删除离线代理弹窗—确定删除按钮 ${Del_Agent_Success} xpath=//p[text()="删除保护成功"]/../..//button[text()="确定"] # 容灾功能栏—删除代理成功弹窗—删除成功确定按钮 ${CDP_Iframe} xpath=//iframe[@ng-src="./cdp/cdpmodule.htm"] # 黑方主界面—CDPiframe框架 ${Del_Snapshot_Success} xpath=//p[text()="删除成功"]/../..//button[text()="确定"] # 容灾功能栏—删除快照成功弹窗—确定按钮 ${Sync_New_Set} xpath=//input[@id="use_new_option"] # 异地灾备功能栏—添加同步任务—使用新设置选项 ${Sync_com} xpath=//input[@id="bkset_compress"] # 异地灾备功能栏—添加同步任务—同步选项—压缩选项 ${Sync_enc} xpath=//input[@id="bkset_encrypt"] # 异地灾备功能栏—添加同步任务—同步选项—加密选项 ${Sync_Dep} xpath=//input[@id="dedup_apply_check"] # 异地灾备功能栏—添加同步任务—同步选项—重删选项 ${CDM_Sync_Status} xpath=//td[text()="远程同步-副本数据管理"] # 异地灾备—CDM同步任务 ${DPM_Sync_Status} xpath=//td[text()="远程同步-定时数据保护"] # 异地灾备—DPM同步任务 ${Page_Monut} xpath=//span[@class='ng-binding' and text()='挂载点'] # 持续数据保护页面—挂载点页面 ${Mount_Del} xpath=//a[@lay-event='del'] # 持续数据保护—挂载点页面—卸载按钮 ${Mount_Del_Ensure} xpath=//a[text()='确认'] # 持续数据保护—挂载点页面—点击卸载按钮—确认卸载按钮 ${Mount_Del_Confirm} xpath=//a[text()='确定'] # 持续数据保护—挂载点页面—点击卸载按钮—卸载成功确定按钮 ${Choose_SyncSpeed} xpath=//input[@id="spd_limit"] # 新建同步任务—同步选项—设置限速选项 ${Input_SyncSpeed} xpath=//input[@id="spd_limit_val"] # 新建同步任务—同步选项—限速输入框 ${Add_Sync_Source} xpath=//button[@ng-click="SYNC_COPY.moveInTreeNode()"] # 异地同步—创建实时同步策略—添加(数据源按钮) ${Snap_Num1} xpath=//div[@id="viewMode"]//td[3]//span[1] # 异地复制栏—实时异地复制—详情—已经同步的快照数 ${Snap_Num2} xpath=//div[@id="viewMode"]//td[3]//span[2] # 异地复制栏—实时异地复制—详情—总的快照数 ${Local_Copy} xpath=//span[text()="本地复制"] # 黑方主界面—备份数据复制栏—本地复制功能 ${Create_Copy_Policy} xpath=//button[@ng-click="LOCAL_COPY_TASK.openLocalCopyModal()"] # 备份数据复制栏—本地复制功能—复制任务—新建复制策略 ${DPM_Local_Copy} xpath=//span[@ng-click="LOCAL_COPY_TASK.selectLocalCopyType(item.value)"] # 本地复制功能—新建本地复制任务弹窗—定时备份选项 ${Input_Copy_Policy} id=local_copy_task_name # 本地复制功能—新建本地复制任务弹窗—复制任务策略名输入框 ${Input_Search_BkPolicy} id=local_copy_search_name # 新建复制任务—数据源—备份策略名输入框 ${Search_Copy_BkPolicy} id=local_copy_search_btn # 新建本地复制任务—数据源—搜索备份策略名按钮 ${Searched_Policy} xpath=//span[text()="所有主机"]/../..//td[2] # 新建复制任务—数据源—所有主机策略(已经勾选) ${Add_To_LocalCopy} xpath=//button[@ng-click="LOCAL_COPY_TASK.moveInTreeNode()"] # 新建复制任务—数据源—添加到右侧按钮 ${LocalCopy_NextStep_1} xpath=//button[@ng-show="LOCAL_COPY_TASK.copyTaskPolicy.currentPageIndex == 1"] # 新建复制任务—数据源—下一步按钮 ${Stock_Incre_LocalCopy} xpath=//input[@name="backUpSet" and @value="3"] # 新建复制任务—复制选项—存量及增量备份集 ${Incre_LocalCopy} xpath=//input[@name="backUpSet" and @value="2"] # 新建复制任务—复制选项—增量备份集 ${Stock_LocalCopy} xpath=//input[@name="backUpSet" and @value="1"] # 新建复制任务—复制选项—存量备份集 ${Select_KeepTime} xpath=//select[@ng-change="LOCAL_COPY_TASK.saveTypeChangeFunc()"] # 新建复制任务—复制选项—副本保留设置 ${Keep_By_Day} xpath=//option[@value="day"] # 新建复制任务—复制选项—按日保留 ${Keep_By_Mon} xpath=//option[@value="month"] # 新建复制任务—复制选项—按月保留 ${Input_KeepTime} id=local_copy_policy_save_num # 新建复制任务—复制选项—保留数目输入框 ${Add_MDS} xpath=//div[@id="localCopyTargetMdsTable"]/..//button # 新建复制任务—复制选项—添加存储按钮 ${First_MDS_Server} xpath=//tr[@data-index="0"]//input[@placeholder="请选择介质服务器"] # 新建复制任务—复制选项—介质服务器第一行介质服务器选项 ${First_MDS_DataChannel} xpath=//tr[@data-index="0"]//input[@placeholder="请选择数据通道"] # 新建复制任务—复制选项—介质服务器第一行数据通道选项 ${First_MDS_Storage} xpath=//tr[@data-index="0"]//input[@placeholder="请选择介质"] # 新建复制任务—复制选项—介质服务器第一行介质选项 ${First_MDS_Dedup} xpath=//tr[@data-index="0"]//input[@placeholder="请选择重删库"] # 新建复制任务—复制选项—介质服务器第一行重删选项 ${LocalCopy_NextStep_Finish} xpath=//button[@ng-click="LOCAL_COPY_TASK.finish()"] # 新建复制任务—复制选项—完成 ${Create_LocalCopy_Confirm} id=tipsPop_define_btn # 备份数据复制—本地复制栏—创建成功弹窗—确定按钮 ${Start_LocalCopy_Confirm} id=tipsPop_define_btn # 备份数据复制—本地复制栏—任务启动成功弹窗—确定按钮 ${Copy_List} xpath=//span[text()="副本列表"] # 备份数据复制—本地复制栏—副本列表 ${Search_LocalCopy_PolicyName} xpath=//input[@ng-model="LOCAL_COPY_CDM.searchCondition.copyPolicyName"] # 备份数据复制—本地复制栏—复制任务名输入框 ${Button_Search_Copy} xpath=//span[@ng-click="LOCAL_COPY_CDM.searchLocalCopyCdmData()"] # 备份数据复制—本地复制栏—查询按钮 ${Num_LocalCopy} xpath=//div[@id="cdm_table_content_div"]//tbody/tr # 备份数据复制—本地复制栏—备份集副本个数 ${Switch_Confirm} xpath=//a[@class="layui-layer-btn0"] # 备份数据复制—本地复制—备份集副本确认切换弹窗—确定按钮 ${Switch_Success_Confirm} id=tipsPop_define_btn # 备份数据复制—本地复制栏—副本切换成功弹窗—确定按钮 ${Switch_Success_Message} xpath=//div[text()="切换副本信息成功"] # 备份数据复制—本地复制栏—任务日志—副本切换成功信息 ${Log_Input_PolicyName} xpath=//input[@ng-model="LOCAL_COPY_LOG.searchCondition.taskName"] # 备份数据复制—本地复制栏—任务日志—策略名搜索框 ${Log_Search_Button} xpath=//span[@ng-click="LOCAL_COPY_LOG.searchLocalCopyLogData()"] # 备份数据复制—本地复制—任务日志—查询按钮 ${Log_LocalCopy} id=localcopy_log_tab # 备份数据复制—本地复制栏—任务日志栏 ${CopyList_Server} xpath=//select[@ng-model="LOCAL_COPY_CDM.searchCondition.selectedMDS"] # 备份数据复制—本地复制栏—副本列表—介质服务器选项 ${CopyList_Storage} xpath=//select[@ng-model="LOCAL_COPY_CDM.searchCondition.selectedMedia"] # 备份数据复制—本地复制栏—副本列表—介质选项 ${Second_MDS_Server} xpath=//tr[@data-index="1"]//input[@placeholder="请选择介质服务器"] # 新建复制任务—复制选项—介质服务器第二行介质服务器选项 ${Second_MDS_DataChannel} xpath=//tr[@data-index="1"]//input[@placeholder="请选择数据通道"] # 新建复制任务—复制选项—介质服务器第二行数据通道选项 ${Second_MDS_Storage} xpath=//tr[@data-index="1"]//input[@placeholder="请选择介质"] # 新建复制任务—复制选项—介质服务器第二行介质选项 ${Second_MDS_Dedup} xpath=//tr[@data-index="1"]//input[@placeholder="请选择重删库"] # 新建复制任务—复制选项—介质服务器第二行重删选项 ${LocalCopy_Clean} xpath=//span[@ng-click="LOCAL_COPY_CDM.clearLocalCopyCdmData()"] # 备份数据复制—本地复制—副本列表—立即清理 ${Confirm_Clean_LocalCopy} xpath=//a[text()="确定"] # 备份数据复制—本地复制—立即清理确认弹窗—确认按钮 ${Clean_Success} xpath=//a[text()="确定"] # 备份数据复制—本地复制—清理成功按钮