*** Settings *** Library Selenium2Library *** Variables *** ${dpm_date_protection} xpath=//a[@href="#/index"] # 定时数据保护 ${Input_ip} xpath=//*[@id="inputSuccess2"] # 定位IP搜索输入框 ${Select_master} xpath=//*[@id="treeboxbox_tree"]/div/table/tbody/tr[2]/td[2]/table/tbody/tr[2]/td[2]/table/tbody/tr/td[4]/span # 选择主机 ${Button_AddStrategy} xpath=//*[@id="strategy"]/..//span[@ng-show="singleHost"] # 策略添加按钮 ${Sqlserver_Module} xpath=//span[@id="dpm_policy_sqlserver_btn"] # 策略添加按钮 ${dpm_Protection strategy} xpath=//li[@id="switchContainer_tab_policy_li"]/span[text()="保护策略"] # 定时保护策略 ${S3 strategy} xpath=//span[text()="策略"] # S3策略 ${Select_onlyone} xpath=//*[@id="promptly"] # 勾选仅一次 ${Week_OK} xpath=//*[@ng-show="step3_3"]/..//button[text()="确定"] # 完成任务周期确定 ${Task_Next} xpath=//*[@ng-show="step3_2"]/..//button[@ng-click="NetStep3()"] # 任务周期下一步 ${Backup storage_Next} xpath=//*[@id="stepCycle_add"]/div[6]/button[2] # 备份集存储下一步 ${Backuphigh_OK} xpath=//*[@id="dialogues_backupAdvOptions_stepLastDefine_btn"] # 备份高级选项完成 ${Input_celuename} xpath=//*[@id="PolicyName"] # 定位输入策略名框 ${Click_recover} xpath=//div[@id="compileButtonBackup0"]/span[text()="恢复"] # 点击恢复 ${S3_recovery} xpath=//tr[@data-index="0"]/td[13]/div/button[text()="恢复"] # 点击恢复 ${Restore_Name} xpath=//input[@id="cnwareName"] # CNware名称输入框Add_Policy ${Restore_cpu} xpath=//input[@id="cnwareCpu"] # CNwareCPU输入框 ${Restore_Memory} xpath=//input[@id="cnwareMemory"] # CNware内存输入框 ${CnwareStoragePool} xpath=//select[@id="cnwareStoragePool"]/option[contains(text(),'data3')] # 选择存储池 ${Oracle_Recover_Next1} xpath=//*[@id="dpm_oracle_addRecoveryPolicy_nextstep1_btn"] # oracle恢复页面-备份内容下一步 ${Oracle_Recover_Next2} xpath=//*[@id="oracle_addRecoveryPolicy_nextStep2_btn"] # oracle恢复页面-恢复目标下一步 ${Oracle_Recover_Next3} xpath=//div/button[@ng-click="to_4()" and text()="下一步"] # oracle恢复页面-Oracle选项下一步 ${Oracle_Recover_Next4} xpath=//div/button[@ng-click="to_5()" and text()="下一步"] # oracle恢复页面-恢复选项下一步 ${Click_run} xpath=//*[@id="BackupDialog"]/div/div/ng-include/div/div[1]/div[2]/div[5]/button[3] # 点击执行 ${Root_HostList} xpath=.//td[span='所有主机']/span # 所有主机 ${Add_Backup} xpath=//*[@id="incrementalBackupEdit"] # 增量备份 ${Difference_Backup} xpath=//*[@id="differenceBackupEdit"] # 差量备份 ${GD_Backup} xpath=//*[@id="logBackup_gdEdit"] # oracle归档日志备份 ${Cl_addOK} xpath=//*[@id="tipsPop_define_btn"] # 策略完成弹框确定 ${Task} xpath=//li[@id="switchContainer_tab_work_li"]/span[text()="作业"] # 作业界面显示 ${Backup_html} xpath=//li[@id="switchContainer_tab_backupset_li"]/span[text()="备份集"] # 备份集页面 ${Recover_next1_db2} xpath=//*[@id="dpm_db2_addRecoveryPolicy_nextStep1_btn"] # db2恢复目标下一步 ${Recover_next_db2} xpath=//*[@id="dpm_db2_addRecoveryPolicy_nextStep3_btn"] # db2恢复目标下一步 ${Recover_finish_db2} xpath=//*[@id="dpm_db2_addRecoveryPolicy_nextStep4_btn"] # db2恢复目标完成按钮 ${Recover_run} xpath=//*[@id="BackupDialog"]/.//button[text()='完成'] # 恢复目标执行 ${Recover_OK} xpath=//*[@id="alertMargin"]/.//button[text()="确定"] # 恢复策略弹框确定 ${Select_Backup source} xpath=//span[@ng-click="setpolicy('oracle')"] # 选择备份源类型_oracle ${Instance_name} xpath=//input[@id="alone_instance"] # 备份--实例名输入框 ${Connection credentials_Next} xpath=//*[@id="addXML"]/.//button[@ng-click="fw_step_2()"] # 连接凭证下一步 ${Select_Target database} xpath=//*[@id="addPolicyOracleTree"]/div/table/tbody/tr[2]/td[2]/table/tbody/tr[1]/td[2]/div # 选择目标数据库 ${Target_database_Next} xpath=//*[@id="dpm_db2_addPolicy_nextStep3_btn"] # DB2目标数据库下一步 ${Target_database_Next_Oracle} xpath=//*[@id="dpm_oracle_addPolicy_nextStep3_btn"] # oracle目标数据库下一步 ${Target_database_Next_DM} xpath=//button[@id="dpm_dm_addPolicy_nextStep2_btn"] # DM目标数据库下一步 ${Target_database_Next_Gbase8t} xpath=//button[@id="dpm_gbase8t_addPolicy_fw_step_3_btn"] # Gbase8t目标数据库下一步 ${Target_database_Next_ST} xpath=//button[@id="dpm_shentong_addPolicyGuide_nextStep3_btn"] # ST目标数据库下一步 ${Target_database_Next_Oracle_Logic} xpath=//button[@id="dpm_oracleLogic_addPolicy_nextStep3_btn"] # oracle逻辑目标数据库下一步 ${Target_database_Next_Postgres} xpath=//button[@id="dpm_postgresql_addPolicyGuide_nextStep3_btn"] # postgresql逻辑目标数据库下一步 ${Target_database_Next_MongoDB} xpath=//*[@id="addXML"]//div[@ng-show="step_2_show"]/button[text()="下一步"] # MongoDB目标数据库下一步 ${Oracle_Parameter_Next} xpath=//*[@id="dpm_oracle_addpolicy_fw_step_3_button"] # oracle选项页面下一步 ${Recover_ControlFile} xpath=//*[@id="withControlFile"] # 带控制文件恢复 ${Input_Policy_Name} xpath=//*[@id="backTabPolicy"] # 备份集界面--按策略名查找输入框 ${Input_S3_Policy_Name} xpath=//input[@id="hcs_tabBackupset_policyNameFilter_input"] # S3备份集界面--按策略名查找输入框 ${Button_Searchbk} xpath=//*[@id="backupSetTable"]/..//div[text()='状态'] # 备份集界面--状态栏 ${Timed_DataProtect} xpath=//div[@id="sideNav_dpm"] # 黑方主界面—定时数据保护栏 ${Add_Policy} xpath=//button[@id="dpm_tab_policy_addPolicy1_btn"] # 黑方主界面—定时数据保护栏—添加策略按钮 ${S3_Add_Policy} xpath=//button[@id="hcs_tabPolicy_addPolicy_btn" and text()="新建备份策略"] # 黑方主界面—定时数据保护栏—添加策略按钮 ${File_Module} xpath=//span[@id="dpm_policy_file_btn"] # 定时数据保护栏—添加策略—选择备份源类型—文件 ${Input_S3_PolicyName} xpath=//ng-include[1]/div[1]/div[2]/div[2]/div[1]/div[2]/div[1]/div/div[2]/input # 定时数据保护栏—策略—策略名称输入框 ${Select_S3_master} xpath=//span[text()="主机"]/../..//td[@width="20px"]/div[@class="dhx_bg_img_fix"] # 定时数据保护栏—添加策略—勾选主机 ${Set_File_PolicyName} xpath=//input[@id="PolicyName"] # 定时数据保护栏—添加策略-file策略名输入框 ${Set_S3_PolicyName} xpath=//input[@id="s3_addPolicy_basicinfoName_input"] # 定时数据保护栏—添加策略-S3策略名输入框 ${Set_Mysql_PolicyName} xpath=//input[@id="dpm_mySql_addPolicy_policyName_input"] # 定时数据保护栏—添加策略—mysql策略名输入框 ${Set_PolicyName} xpath=//input[@id="PolicyName"] # 定时数据保护栏—添加策略—策略名输入框 ${Bk_File} xpath=//span[text()="A.txt"]/../../td[2]/div # 定时数据保护栏—添加策略—选择目标文件—备份文件 ${Bk_File_NextStep} xpath=//button[@id="dpm_file_addPolicy_nextStep1_btn"] # 定时数据保护栏—添加策略—选择目标文件—下一步按钮 ${Bk_S3_NextStep} xpath=//button[@id="s3_addpolicy_go_fusionStep_2_btn"] # 定时数据保护栏—添加策略—选择目标文件—下一步按钮 ${Bk_S3_NextStep2} xpath=//button[@id="s3_addPolicy_go_fusionStep_3_button"] # 定时数据保护栏—添加策略—多通道配置—下一步按钮 ${select_S3_node} xpath=//*[@id="massiveFusionCloudPolicy"]/div/div/div[2]/ng-include/div/div/div[2]/div[8]/div/div[3]/div/div[1]/table/thead/tr/th[1]/div/div/i # 定时数据保护栏—添加策略—勾选执行节点 ${restore_select_S3_node} xpath=//*[@id="massiveFusionCloudRecovery"]/div/div/div[2]/ng-include/div/div[1]/div[2]/div[8]/div/div[2]/div[2]/div/div[1]/table/thead/tr/th[1]/div/div/i # 定时数据保护栏—添加策略—勾选执行节点 ${Bk_S3_NextStep3} xpath=//button[@id="s3_addPolicy_go_fusionStep_4_button"] # 定时数据保护栏—添加策略—勾选执行节点—下一步按钮 ${Bk_S3_NextStep4} xpath=//button[@id="s3_addPolicy_go_fusionStep_5_button"] # 定时数据保护栏—添加策略—备份集存储—下一步按钮 ${Bk_S3_NextStep5} xpath=//button[@id="dialogues_backupAdvOptions_step4_5_next_btn"] # 定时数据保护栏—添加策略—备份高级选项—下一步按钮 ${select_media} xpath=//div[text()="pt"]/../..//i[@class="layui-anim layui-icon"] # 定时数据保护栏—添加策略—备份集存储—勾选介质 ${select_increment_backup} xpath=//input[@id="incrementalBackup"] # 备份模式—增量备份 ${Add_TaskCycle} xpath=//button[@id="AddTaskCycle"] # 定时数据保护栏—添加策略—任务周期—添加任务周期按钮 ${Cycle_Once} xpath=//input[@id="promptly"] # 添加策略—任务周期—循环模式—仅一次 ${Cycle_Confirm} xpath=//button[@id="dialogues_addCycleStorage_step3_3_define_btn"] # 添加策略—任务周期—确定按钮 ${Cycle_NextStep} xpath=//button[@id="dialogues_addCycleStorage_step3_2_next_btn"] # 定时数据保护栏—添加策略—任务周期—下一步按钮 ${CNware_NextStep} xpath=//button[@id="dialogues_backupAdvOptions_cnware_step4_5_next_btn"] # 定时数据保护栏—添加策略—任务周期—下一步按钮 ${H3C_NextStep} xpath=//button[@id="dialogues_addCycleStorage_step3_2_next_btn"] # 定时数据保护栏—添加策略—任务周期—下一步按钮 ${FS_NextStep} xpath=//button[@id="dialogues_backupAdvOptions_step4_5_next_btn"] # 定时数据保护栏—添加策略—任务周期—下一步按钮 ${Manual_ChooseMDS} xpath=//*[@id="backupStorageType2"] # 定时数据保护栏—添加策略—备份集存储—手动指定 ${Manual_ChooseMDS1} xpath=//*[@id="backupStorageType4"] # 定时数据保护栏—添加策略—备份集存储—手动指定 ${Select_MDS} xpath=//select[@id="dialogues_addCycleStorage_fileOrOracle_selectMedia_select"] # 定时数据保护栏—添加策略—备份集存储—选择介质 ${Select_MDS_DM} xpath=//select[@id="dialogues_addCycleStorage_storagePath_selectMedia_selectedMdsIP_select"] # 定时数据保护栏—添加策略—备份集存储—选择介质 ${Select_MDS1} xpath=//*[@id="stepCycle_edit"]/div[4]/div/div[2]/div[1]/div[2]/div[3]/div/select[3] # 定时数据保护栏—添加策略—备份集存储—选择介质 ${Storage_NextStep} xpath=//button[@id="dialogues_addCycleStorage_step3_4_nodb2_next_btn"] # 定时数据保护栏—添加策略—备份集存储—下一步按钮 ${CNware_Storage_NextStep} xpath=//button[@id="dialogues_addCycleStorage_step3_2_cnwareVal_next_btn"] # 定时数据保护栏—添加策略—备份集存储—下一步按钮 ${Complete_CreatePolicy} xpath=//button[@id="dialogues_backupAdvOptions_cnware_stepLastDefine_btn"] # 定时数据保护—添加策略—备份高级选项—完成按钮 ${FS_Complete_CreatePolicy} xpath=//button[@id="dialogues_addCycleStorage_finish_btn"] # 定时数据保护—添加策略—备份高级选项—完成按钮 ${H3C_Complete_CreatePolicy} xpath=//button[@id="dialogues_backupAdvOptions_stepLastDefine_btn"] # 定时数据保护—添加策略—备份高级选项—完成按钮 ${MongoDB_Complete_CreatePolicy} xpath=//button[@id="dialogues_backupAdvOptions_stepLastDefine_btn"] # 定时数据保护—添加策略—备份高级选项—完成按钮 ${MySQL_Phy_Complete_CreatePolicy} xpath=//button[@id="dialogues_addCycleStorage_finish_btn"] # 定时数据保护—添加策略-MySQL物理普通—备份高级选项—完成按钮 ${Sanfor_CreatePolicy} xpath=//button[@id="dialogues_backupAdvOptions_stepLastDefine_btn"] ${Success_Confirm} xpath=//button[@id="tipsPop_define_btn"] # 操作成功弹窗—确定按钮 ${BackupSet} xpath=//li[@id="switchContainer_tab_backupset_li"]//span[text()="备份集"] # 定时数据保护栏—备份集栏 ${S3_BackupSet} xpath=//li[@id="hcs_index_tableTool_backupset_btn"]/span[text()="备份集"] # S3定时数据保护栏—备份集栏 ${Full_Backup} xpath=//*[@id="fullBackup"] # 添加策略—任务周期—完全备份 ${Divergence_Backup} xpath=//*[@id="divergenceBackup"] # 添加策略—任务周期—差量备份 ${Total_Backup} xpath=//*[@id="totalBackupLog"] # 添加策略—任务周期—累计增量备份 ${Option_Encryption} xpath=//div[@class="col-md-12"]/label/span[text()="加密"] # 添加策略—备份高级选项—备份数据集—加密 ${Option_Compress} xpath=//input[@id="compress"] # 添加策略—备份高级选项—备份数据集—压缩 ${Option_Dedup} xpath=//div[@class="col-md-12"]/div/label/span[text()="数据重删"] # 添加策略—备份高级选项—备份数据集—重删 ${Compress_Attr} xpath=//*[@id="dpm_backupset_backUpSetInfo_compress_state_td"] # 备份集详情—压缩属性 ${S3_Compress_Attr} xpath=//tr[@ng-show="backupsetInfo.sourceType == 's_s3'"]/../tr[10]/td[2] # 备份集详情—压缩属性 ${Encryption_Attr} xpath=//td[@id="dpm_backupset_backUpSetInfo_encryption_state_td"] # 备份集详情—加密属性 ${S3_Encryption_Attr} xpath=//tr[@ng-show="backupsetInfo.sourceType == 's_s3'"]/../tr[10]/td[4] # S3备份集详情—加密属性 ${File_Deduped_Attr} id=dpm_backupset_backUpSetInfo_delete_state_td # 备份集详情—重删属性 ${Exe_Mysql_Bk} xpath=//select[@id="dpm_mySql_executePolicy_selectedBackupType_btn"] # 定时数据保护栏—立即执行弹窗—立即执行选项框 ${Mysql_Exe_Confirm} xpath=//button[@id="dpm_mySql_executePolicy_confirmExecutePolicy_btn"] # 定时保护策略—立即执行弹窗—确认按钮 ${Total_Backup_Style} id=totalBackupLog_child # 定时保护策略—添加策略—任务周期—增量备份下拉框 ${Total_Backup_Scan} xpath=//select[@id="totalBackupLog_child"]/option[1] # 定时保护策略—添加策略—任务周期—增量备份—扫描方式 ${Total_Backup_Driver} xpath=//select[@id="totalBackupLog_child"]/option[2] # 定时保护策略—添加策略—任务周期—增量备份—驱动方式 ${Exe_File_Bk} xpath=//select[@id="dpm_file_ExecutePolicyGuide_selectedSrctype_select"] # 定时数据保护栏—定时保护策略—立即执行—备份类型下拉框 ${Exe_S3_Bk} xpath=//tr[@data-index="0"]//div/button[text()="立即执行"] # 定时数据保护栏—定时保护策略—立即执行—备份类型下拉框 ${Now_Total} xpath=//select[@id="dpm_file_ExecutePolicyGuide_selectedSrctype_select"]/option[text()="累积增量备份"] # 定时保护策略—立即执行—累计增量备份选项 ${Exe_Total_Bk} xpath=//select[@id="dpm_file_ExecutePolicyGuide_subTypeSelected_select"] # 定数保护策略—立即执行—累计增量备份下拉框 ${Exe_Total_Scan} xpath=//select[@id="dpm_file_ExecutePolicyGuide_subTypeSelected_select"]/option[text()="扫描方式"] # 定数保护策略—立即执行—累计增量备份—扫描方式 ${Exe_Total_Driver} xpath=//select[@id="dpm_file_ExecutePolicyGuide_subTypeSelected_select"]/option[text()="驱动监控方式"] # 定数保护策略—立即执行—累计增量备份—驱动方式 ${Now_Compose} xpath=//select[@id="dpm_file_ExecutePolicyGuide_selectedSrctype_select"]/option[text()="合成备份"] # 定数保护策略—立即执行—合成备份选项 ${Exe_Compose} xpath=//select[@id="dpm_file_ExecutePolicyGuide_mergeBackUpType_select"] # 定时保护策略—立即执行—合成备份下拉框 ${Exe_Compose_Full} xpath=//select[@id="dpm_file_ExecutePolicyGuide_mergeBackUpType_select"]/option[1] # 定时保护策略—立即执行—合成备份—完全 ${Exe_Compose_Incre} xpath=//select[@id="dpm_file_ExecutePolicyGuide_mergeBackUpType_select"]/option[2] # 定时保护策略—立即执行—合成备份—增量 ${Select_Backup source_DB2} xpath=//*[@id="dpm_policy_db2_btn"] # 选择备份源类型_db2 ${Attr_Cancel} xpath=//span[@id="dpm_tab_backupset_backUpSetInfo_cancel_btn"] # 备份集栏—详情—备份集详情弹窗—取消按钮 ${S3_Attr_Cancel} xpath=//span[@id="fusionCloud_backupset_infoDialog_cancel_btn"] # S3备份集栏—详情—备份集详情弹窗—取消按钮 ${Recover_File} xpath=//div[@id="recoverySourceFileTree"]//span[text()="主机"]/../../td[2]/div # 备份集恢复弹窗—恢复目标—需要恢复的文件 ${S3_Recover_File} xpath=/html/body/div[3]/div/div/div[2]/div[2]/div/div[35]/div/div/div[2]/ng-include/div/div[1]/div[2]/div[2]/div/div/div/div[1]/div/div/table/tbody/tr[2]/td[2]/table/tbody/tr[1]/td[2]/div # 备份集恢复弹窗—恢复目标—需要恢复的文件 ${Recover_To_Oldpath} xpath=//input[@id="oriAdress"] # 备份集恢复弹窗—恢复目标—恢复到原路径 ${Recover_mysqlNextstep} xpath=//button[@id="dpm_mySql_addRecoveryPolicy_nextStep1_btn"] # 备份集恢复弹窗—恢复目标—mysql下一步按钮 ${Recover_fileNextstep} xpath=//button[@id="dpm_file_addRecoveryPolicy_nextStep1_btn"] # 备份集恢复弹窗—恢复目标—file下一步按钮 ${Recover_S3_Nextstep} xpath=//button[@id="s3_recovery_go_step_2_button"] # 备份集恢复弹窗—恢复目标—S3下一步按钮 ${Recover_Source_path} xpath=//input[@id="s3_restoreBarrel_original"] # 备份集恢复弹窗—恢复桶选择—恢复到源桶 ${Recover_mysqlExec} xpath=//button[@id="dpm_mySql_addRecoveryPolicy_carryOut_btn"] # 备份集恢复弹窗—高级选项—mysql执行按钮 ${Recover_fileExec} xpath=//button[@id="dpm_file_addRecoveryPolicy_step2Implement_btn"] # 备份集恢复弹窗—高级选项—file执行按钮 ${Policy_Work} xpath=//*[@id="switchContainer_tab_work_li"] # 黑方主界面—定时数据保护栏—作业栏 ${S3_Policy_Work} xpath=//li[@id="hcs_index_tableTool_work_btn"]/span[text()="作业"] # 黑方主界面—定时数据保护栏—作业栏 ${Recover_Success} xpath=//tbody/tr[1]/td[@data-field="description"]/div[contains(text(),"本次恢复成功")] # 定时数据保护栏—作业栏—本次作业恢复成功 ${S3_Recover_Success} xpath=//*[@id="fusionCloud_work_table"]/div/table/tbody/tr[1]/td[8]/text() # 定时数据保护栏—作业栏—本次作业恢复成功 ${Mysql_Module} xpath=//span[@id="dpm_policy_mysql_btn"] # 定时数据保护栏—添加策略—Mysql组件 ${Input_Mysql_Name} xpath=//div[@ng-controller="addPolicyMySQL as addMySQL"]//*[@id="userName"] # 定时数据保护栏—添加策略—连接凭据—MySQL用户名输入框 ${Input_Mysql_Pwd} xpath=//input[@id="dpm_mySql_addPolicy_sendPass_input"] # 定时数据保护栏—添加策略—连接凭据—MySQL密码输入框 ${Input_Mysql_Port} xpath=//input[@id="port"] # 定时数据保护栏—添加策略—连接凭据—MySQL端口输入框 ${Input_Mysql_IP} xpath=//div[@class="view_scroll"]//input[@id="IPAddress"] # 定时数据保护栏—连接凭据—MySQL_IP地址输入框 ${Bk_DB} xpath=//span[contains(text(),'test(')]/../..//td[@width="20px"]/div[@class="dhx_bg_img_fix"] # 定时数据保护栏—添加策略—目标数据库—备份目标数据库 ${Connect_Mysql_NextStep} xpath=//button[@id="dpm_mySql_addPolicy_nextStep1_btn"] # 定时数据保护栏—添加策略—连接凭据—下一步 ${Bk_Mysql_NextStep} xpath=//button[@id="dpm_mySql_addPolicy_nextStep2_btn"] # 定时数据保护栏—添加策略—目标数据库—下一步 ${Incre_Backup} xpath=//*[@id="incrementalBackup"] # 添加策略—任务周期—增量备份 ${Cache_Path} xpath=//input[@id="cachePath"] # 添加策略—高级备份选项—缓存—缓存路径 ${Fin_CachePath} xpath=//button[@id="dialogues_backupAdvOptions_cacheMod_define_btn"] # 添加策略—高级备份选项—缓存—确定按钮 ${Active_Cache} xpath=//*[@id="cacheB"] # 定时数据保护栏—添加策略—备份高级选项—缓存 ${Recover_Mysql_Name} xpath=//div[@ng-controller="addMySQLRecoveryPolicy as recoveryMySQL"]//input[@id="userName"] # 备份集恢复—恢复目标—用户名输入框 ${Recover_Mysql_Pwd} xpath=//input[@id="dpm_mySql_addRecoveryPolicy_sendPass_input"] # 备份集恢复—恢复目标—密码输入框 ${Recover_Mysql_Port} xpath=//div[@ng-controller="addMySQLRecoveryPolicy as recoveryMySQL"]//input[@id="port"] # 备份集恢复—恢复目标—端口输入框 ${Recover_Mysql_IP} xpath=//div[@class="view_scroll"]//input[@id="IPAddress"] # 备份集恢复—恢复目标—IP输入框 ${Recover_Cache} xpath=//input[@id="cache"] # 备份集恢复—高级选项—缓存 ${Recover_CachePath} xpath=//input[@ng-model="recoverCache.cachePathR"] # 备份集恢复—高级选项—本地缓存设置—缓存路径输入框 ${Fin_Recover_CachePath} xpath=//button[@ng-click="finishCacheR()"] # 备份集恢复—高级选项—本地缓存设置—确定按钮 ${Cache_Attr} xpath=//*[@id="dpm_backupset_backUpSetInfo_cache_state_td"] # 备份集详情—缓存属性 ${Recover_instancename} xpath=//input[@id="instance"] # 恢复实例名输入框 ${Button_Searchwork} xpath=//*[@id="worktableContent"]/..//span[text()="作业状态"] # 作业页面--作业状态 ${Policy_Delete} xpath=//*[@id="compileButton0"]/span[7] # 定时策略删除 ${recover_sucessOK} xpath=//*[@id="alertMargin"]/div/div[3]/button[text()='确定'] # 恢复完成后确定 ${Oracle_encryption} xpath=//*[@id="encryption"] # oracle加密 ${Full_Recovery} xpath=//input[@id="dpm_oracle_addRecoveryPolicy_fullRecovery_input"] # oracle完全恢复 ${BackupStorage_hand} xpath=//*[@id="backupStorageType2"] # oracle备份存储--手动指定 ${Oracle_dedup} xpath=//*[@id="dedup"] # oracle数据重删 ${SQLServer_source} xpath=//*[@id="sourceSelectList"]/.//i[@ng-class="moduleSwitch('sqlserver')"] # 选择备份源类型_SQLServer ${SQLServer_instance next} xpath=//*[@id="addXML"]/div/div/div[2]/.//div[@class="modal-footer"]/button[text()='下一步'] # SQLServer---实例选择下一步 ${SQLServer_mbdata} xpath=//*[@id="addPolicySqlServerTree"]/div/table/tbody/tr[2]/td[2]/table/tbody/tr[6]/td[2]/table/tbody/tr/td[2]/div # SQLServer---目标数据库选择 ${SQLServer_mbdata next} xpath=//*[@id="addXML"]/div/div/div[2]/ng-include/div/div/div[2]/div[8]/button[text()="下一步"] # SQLServer---目标数据库下一步 ${SQLServer_sw} xpath=//*[@id="logBackup_sw"] # SQLServer---事务日志 ${SQLServer_recover next} xpath=//*[@id="BackupDialog"]/.//div[3]/button[text()="下一步"] # SQLServer---恢复目标下一步 ${SQLServer_recinstance next} xpath=//*[@id="BackupDialog"]/.//div[5]/button[text()="下一步"] # SQLServer--实例选择下一步 ${SQLServer_highOK} xpath=//*[@id="BackupDialog"]/.//div[7]/button[text()="完成"] # SQLServer---高级选项完成 ${Select_Backup source_DB2} xpath=//*[@id="sourceSelectList"]/..//i[@ng-class="moduleSwitch('db2')"] # 选择备份源类型_db2 ${DB2_Username} xpath=//div[@id="alone_normal"]/div[@class="form-group"]/*[@id="userName"] # 用户名输入框_db2 ${DB2_Password} xpath=//*[@id="alone_normal"]/div[2]/div/input[2] # 密码输入框_db2 ${DB2_Instance} xpath=//div[@class="form-group"]/input[@id="sid"] # 实例名输入框_db2 ${Advanced_Setup_DB2} xpath=//li[@id="db2_backup_setting_tab_advanced"]/a[text()="高级设置"] # 高级设置_db2 ${DB2_UpdatePath} xpath=//div[@class="senior-item-wrapper pull-left"]/input[@id="updatePath"] # 安装路径_db2 ${Select_Target database_DB2} xpath=//span[text()="TEST"]/../..//td[2] # 选择目标数据库_db2 ${Backup Storage_Next_DB2} xpath=//*[@id="dialogues_addCycleStorage_step3_4_isdb2_next_btn"] #备份集存储下一步_db2 ${Option_Encryption_DB2} xpath=//input[@ng-model="backup_adv_opt.apply_encryption"] # 添加策略-备份集高级选项-备份数据集-加密_db2 ${Option_Dedup_DB2} xpath=//*[@id="stepCycle_add"]//input[@id="dedup"] # 添加策略-备份集高级选项-备份数据集-重删_db2 ${recover_DB2} xpath=//*[@id="compileBackupRecId0"] # 备份集恢复按钮_db2 ${Advanced_Setup_Recovery_DB2} xpath=//li[@id="db2_recovery_setting_tab_advanced"]/a[text()="高级设置"] # 高级设置_db2_恢复 ${Recover_run_DB2} xpath=//*[@id="BackupDialog"]/.//button[text()="完成"] # 恢复策略完成_db2 ${Button_Searchwork} xpath=//*[@id="worktableContent"]/..//span[text()="作业状态"] # 作业页面--作业状态 ${Run_Now} xpath=//*[@id="compileButton0"]/span[text()="立即执行"] # 定时保护策略-立即执行 ${Select_BackType} xpath=//select[@ng-change="chooseSrctype(selectedSrctype)"] # 立即执行-选择备份类型 ${Now Full_Bacup} xpath=//select[@ng-change="chooseSrctype(selectedSrctype)"]/option[text()="完全备份"] # 立即执行-完全备份 ${Now Full_Bacup_S3} xpath=//*[@id="s3_executeNow_handleExecuteNowConfirm_button"] # 立即执行-完全备份 ${Now Add_Backu_S3} xpath=//*[@id="s3_executeNow_selectedSrctype"]/option[2] # 立即执行-增量备份S3 ${Now Difference_Backup} xpath=//select[@ng-change="chooseSrctype(selectedSrctype)"]/option[text()="差量备份"] # 立即执行-差量备份 ${Now Add_Backup} xpath=//*[@id="executeXML"]/.//option[text()='增量备份'] # 立即执行--增量备份 ${Now GD_Backup} xpath=//*[@id="executeXML"]/.//option[text()='归档日志'] # 立即执行---归档日志 ${Now RZ_Backup} xpath=//*[@id="executeXML"]/.//option[text()='日志备份'] #立即执行--日志备份呢 ${Now Sure} xpath=//*[@id="executeXML"]/.//button[text()="确定"] # 立即执行-确定 ${Mysql_Phy_Module} xpath=//span[@ng-click="setpolicy('mysql_physical')"] # 定时数据保护栏—添加策略—mysql物理组件 ${Change_Cachepath} xpath=//*[@id="PathChangeB"] # 定时数据备份栏—添加策略—备份高级选项—更改缓存路径 ${Recover_Change_Cachepath} xpath=//div[@ng-controller="addMySQLRecoveryPolicy_physical as recoveryMySQL"]//input[@value="更改缓存路径"] # 定时数据备份栏—备份集恢复—高级选项—更改缓存路径 ${Bk_Storage} xpath=//div[@id="backUpSetInfo"]//td[text()="备份集大小:"]/../td[2] # 备份集栏—备份集详情—备份集大小 ${Bk_RealStorage} xpath=//div[@id="backUpSetInfo"]//td[text()="备份集大小:"]/../td[4] # 备份集栏—备份集详情—备份集实际大小 ${Bk_Dedup_Per} xpath=//td[text()="重删率"]/../td[2] # 定时数据保护栏—备份集—备份集恢复—重删率 ${DM_source} xpath=//span[@id="dpm_policy_dm_btn"] # 定时数据保护栏—添加策略—DM组件 ${DM-Version_7} xpath=//*[@id="select_dm7"] #添加策略-选择达梦版本-dm7_DM ${Input_DM_Pwd} xpath=//input[@id="dpm_dm_addPolicy_password_password_input"] #密码输入框_DM ${Select_Target_Database_DM} xpath=//span[contains(text(),"DAMENG")]/../../td[2]/div #选择目标数据库_DM ${Type_encrypt} xpath=//input[@id="encryption" and @ng-change="toggleEncryption()"] #备份高级选项-加密_DM——6.9DPM ${Type_compress} xpath=//*[@ng-model="backup_adv_opt.apply_compress"] #备份高级选项-压缩_DM ${Type_dedup} xpath=//*[@id="stepCycle_add"]//*[@id="dedup"] #备份高级选项-重删_DM ${DM-Version_7_recovery} xpath=//div[@ng-controller="addDMRecoveryPolicy"]//input[@id="select_dm7"] #恢复策略-选择达梦版本-dm7_DM ${Input_DM_PwdR} xpath=//div[@ng-controller="addDMRecoveryPolicy"]//input[@ng-model="password"][2] #恢复策略-输入数据库密码_DM ${Recover_DM} xpath=//*[@id="BackupDialog"]//button[3] #恢复策略-完成_DM ${Complie_execute} xpath=//*[@id="compileButton0"]/span[3] # 策略立即执行_DM ${Complie_execute_Informix} xpath=//div[@id="compileButton0"]/*[@id="dpm_policy_excuteDialog_fbd6070e554ebfd4a5697a0737047088_btn"][text()="立即执行"] # 策略立即执行_Informix ${Select_Srctype} xpath=//div[@id="executeXML"]//*[@ng-model="selectedSrctype"] # 策略立即执行-选择备份类型 ${Select_Srctype_DM} xpath=//*[@id="dpm_dm_executePolicy_srctypeArray_select"] # 策略立即执行-选择备份类型_DM ${Select_Srctype_Gbase8t} xpath=//*[@id="executeXML"]//select # 策略立即执行-选择备份类型_Gbase8t ${ExecutePolicy_execute} xpath=//button[@ng-click="executePolicy_execute()"] # 策略立即执行-确定_DM ${Complie_full} xpath=//*[@ng-model="selectedSrctype"]/*[@label="完全备份"] # 策略立即执行-选择备份类型-完全备份_DM ${Complie_incre} xpath=//*[@ng-model="selectedSrctype"]/*[@label="增量备份"] # 策略立即执行-选择备份类型-增量备份_DM ${Complie_diff} xpath=//*[@ng-model="selectedSrctype"]/*[@label="差量备份"] # 策略立即执行-选择备份类型-差量备份_DM ${Complie_full_DM} xpath=//*[@id="dpm_dm_executePolicy_srctypeArray_select"]/*[@label="完全备份"] # 策略立即执行-选择备份类型-完全备份_DM ${Complie_incre_DM} xpath=//*[@id="dpm_dm_executePolicy_srctypeArray_select"]/*[@label="增量备份"] # 策略立即执行-选择备份类型-增量备份_DM ${Complie_diff_DM} xpath=//*[@id="dpm_dm_executePolicy_srctypeArray_select"]/*[@label="差量备份"] # 策略立即执行-选择备份类型-差量备份_DM ${Complie_diff_Gbase8t} xpath=//*[@ng-model="selectedSrctype"]/*[@label="差量备份"] # 策略立即执行-选择备份类型-差量备份_Gbase8t ${Complie_incre_Sybase} xpath=//*[@id="executeXML"]//select/option[@label="增量备份"] # 策略立即执行-选择备份类型-增量备份_Sybase ${Complie_confirm} xpath=//*[@id="alertMargin"]/div/div[3]/button # 策略立即执行-选择备份类型-完成-确认_DM ${Complie_confirm_S3} xpath=//a[text()="确定"] # 策略立即执行-选择备份类型-完成-确认_s3 ${DB2_Recory_Username} xpath=.//div[@ng-controller="addDb2RecoveryPolicy"]//input[@id="userName"] # DB2恢复页面用户输入框 ${DB2_Recovry_Pwd} xpath=//div[@ng-controller="addDb2RecoveryPolicy"]//input[@ng-model="password"][2] # DB2恢复界面密码输入框 ${DB2_Recovry_Instance} xpath=//div[@ng-controller="addDb2RecoveryPolicy"]//input[@id="sid"] # DB2恢复页面实例输入框 ${DB2_Recovry_InstallPath} xpath=//div[@id="BackupDialog"]//input[@id='updatePath'] # DB2恢复页面安装路径输入框 ${Gbase8t_module} Xpath=//span[@ng-click="setpolicy('gbase_8t')"] # 定时数据保护栏—添加策略—Gbase8t组件 ${Input_Gbase_user} Xpath=//div[@ng-controller="addPolicyGbase8t"]//input[@ng-model="userName"] # 备份策略-输入用户名_Gbase8t ${Input_Gbase_pwd} Xpath=//div[@ng-controller="addPolicyGbase8t"]//input[@ng-model="password"][2] # 备份策略-输入用户密码_Gbase8t ${Input_Gbase_sid} Xpath=//div[@ng-controller="addPolicyGbase8t"]//input[@ng-model="sid"] # 备份策略-输入服务名_Gbase8t ${Input_Gbase_port} Xpath=//div[@ng-controller="addPolicyGbase8t"]//input[@ng-model="port"] # 备份策略-输入端口号_Gbase8t ${Input_Gbase_ip} Xpath=//div[@ng-controller="addPolicyGbase8t"]//input[@ng-model="IPAddress"] # 备份策略-输入IP地址_Gbase8t ${Input_Rgbase_user} Xpath=//div[@ng-controller="addGbase8tRecoveryPolicy"]//input[@ng-model="userName"] # 恢复策略-输入用户名_Gbase8t ${Input_Rgbase_pwd} Xpath=//div[@ng-controller="addGbase8tRecoveryPolicy"]//input[@ng-model="password"][2] # 恢复策略-输入用户密码_Gbase8t ${Input_Rgbase_sid} Xpath=//div[@ng-controller="addGbase8tRecoveryPolicy"]//input[@ng-model="sid"] # 恢复策略-输入服务名_Gbase8t ${Input_Rgbase_port} Xpath=//div[@ng-controller="addGbase8tRecoveryPolicy"]//input[@ng-model="port"] # 恢复策略-输入端口号_Gbase8t ${Input_Rgbase_ip} Xpath=//div[@ng-controller="addGbase8tRecoveryPolicy"]//input[@ng-model="IPAddress"] # 恢复策略-输入IP地址_Gbase8t ${Gbase_cache} Xpath=//*[@id="PathChangeB"] # 备份策略-高级选项-更改缓存路径_Gbase8t ${Rcache_path} Xpath=//*[@id="recoveryCachePath"] # 恢复策略-高级选项-更改缓存路径_Gbase8t ${Recovery_Gbase8t} Xpath=//div[@class="modal-footer" and @ng-show="step_2_show"]/button[3] # 恢复策略-完成_Gbase8t ${Select_Backup source_kingbase} xpath=//*[@id="sourceSelectList"]/..//i[@ng-class="moduleSwitch('kingbase')"] # 选择备份源类型_kingbase ${Advanced_Setup_kingbase} xpath=//li[@id="kingbase_backup_setting_tab_advanced"]/a[text()="高级设置"] # 高级设置_kingbase ${Kingbase_install_User} xpath=//div[@class="senior-item-wrapper"]/input[@type="text"] # 数据库安装用户_kingbase ${kingbase_UpdatePath} xpath=//div[@class="senior-item-wrapper pull-left"]/input[@type="text"] # 安装路径_kingbase ${Select_Target database_kingbase} xpath=//*[@id="addPolicyKingbaseEsTree"]/div/table/tbody/tr[2]/td[2]/table/tbody/tr[2]/td[2]/table/tbody/tr/td[2]/div # 选择目标数据库_kingbase ${Advanced_Setup_Recovery_kingbase} xpath=//li[@id="kingbase_recovery_setting_tab_advanced"]/a[text()="高级设置"] # 高级设置-恢复页面_kingbase ${kingbase_Recovery_InstallUser} xpath=//div[@class="senior-item-wrapper"]/input[@id="kingbase_recovery_updateUser"] # kingbase恢复页面安装用户输入框 ${kingbase_Recovery_InstallPath} xpath=//div[@class="senior-item-wrapper pull-left"]/input[@id="kingbase_recovery_updatePath"] # kingbase恢复页面安装路径输入框 ${kingbase_Recory_Username} xpath=//div[@ng-controller="addKingbaseEsRecoveryPolicy"]//input[@id="userName"] # kingbase恢复页面用户名输入框 ${kingbase_Recovry_Pwd} xpath=//div[@ng-controller="addKingbaseEsRecoveryPolicy"]//div[@class="input-group hide-password-plaintext"]/input[@type="password"] # kingbase恢复页面密码输入框 ${Recovery_run_kingbase} xpath=//*[@id="BackupDialog"]/.//button[text()="执行"] # 恢复策略完成_kingbase ${SQLServer_down} xpath=//*[@id="dropdownMenu1"]/div # SQLServer身份验证下拉框 ${SQLServer_Shenfen} xpath=//*[@id="addXML"]/div/div/div[2]/ng-include/div/div/div[2]/div[3]/div/div[2]/div[2]/div/div/ul/li[2]/a # SQLServer身份验证 ${SQLServer_Pwd} xpath=//*[@id="addXML"]/div/div/div[2]/ng-include/div/div/div[2]/div[5]/div/div[2]/div[4]/div/input[2] # SQLServer实例密码 ${Button_RecoveryIdentifyVarification} xpath=//div[@ng-controller="addSqlServerRecoveryPolicy"]//button[@id="dropdownMenu1"] # SQLServer恢复页面身份验证下拉框 ${Span_RecoveryIdentifyVarification} xpath=//div[@ng-controller="addSqlServerRecoveryPolicy"]//a[@ng-click="identityVerHf('SQL Server 身份验证')"] # SQLServer恢复页面SQL身份 ${SQLServer_Recory_InputPwd} xpath=//div[@ng-controller="addSqlServerRecoveryPolicy"]//input[@ng-model="password"][2] # SQLServer恢复页面输入密码 ${Now SW_Backup} xpath=//select[@ng-change="chooseSrctype(selectedSrctype)"]/option[text()="事务日志"] # 立即执行--事务日志 ${Option_Mysql_Phy_Encryption} xpath=//div[@class="col-md-12"]//input[@id="encryption"] # Mysql物理—定时保护策略—备份高级选项—加密选项 ${Option_Mysql_Encryption} xpath=//input[@id="encryption"] # 定时备份策略—mysql添加策略—mysql加密 ${Speed_Control} id=LPS_addPeriod_btn # 添加策略—备份高级选项—数据传输—限速勾选框 ${Input_Speed} id=eps_limitVal # 添加策略—备份高级选项—数据传输—速度输入框 ${Speed_Control_Recover} xpath=//div[@ng-controller="addRecoveryPolicy_file"]//input[@ng-model="speedLimit.apply"] # 备份集恢复—高级选项—限定最大速度勾选框 ${Input_Speed_Recover} xpath=//div[@ng-controller="addRecoveryPolicy_file"]//input[@ng-model="speedLimit.value"] # 备份集恢复—高级选项—速度输入框 ${Select_Bk_Savetime} xpath=//select[@ng-model="selectedCleanType"] #添加策略—备份集存储—备份集保留时间下拉框 ${Save_by_Day} xpath=//option[@label="按日"] # 添加策略—备份集存储—备份集保留时间—按日 ${Input_Savetime} xpath=//input[@ng-change="set_bktclean(cleanTime)"] # 添加策略—备份集存储—备份集保留时间—保留时间输入框 ${Option_Check} xpath=//input[@id="checkboxData"] # 添加策略—备份高级选项—备份数据集—校验 ${Tab_Work} xpath=//div[@ng-controller="hostInfoGridCtrl"]//li[@ng-click="clickWorkBut()"] # 定时数据保护—作业栏 ${First_Check_Work} xpath=//div[@id="work"]//tbody/tr[1]//div[text()="备份集校验完成"] # 定时数据保护—作业栏—第一行的校验作业 ${Select_Hostname} xpath=//div[@class="main"]//input[@placeholder="请选择"] # 备份集恢复弹窗—恢复目标—选择需要恢复的主机下拉框 ${Module_ST} xpath=//i[@ng-class="moduleSwitch('shentong')"] # 定时数据保护栏—添加策略—神通数据库模块 ${Input_ST_Usename} xpath=//div[@ng-show="step_1_show"]//input[@id="userName"] # 添加策略—连接凭据—神通数据库用户名输入框 ${Input_ST_Pwd} xpath=//div[@ng-show="step_1_show"]//input[@type="password"] # 添加策略—连接凭据—神通数据库密码输入框 ${Input_ST_Instance} xpath=//div[@ng-show="step_1_show"]//input[@id="sid_input"] # 添加策略—连接凭据—神通数据库实例名 ${ST_BK_Target} xpath=//span[contains(text(),"OSRDB")]/../../td[2]/div # 添加策略—目标数据库—神通数据库勾选框 ${Button_Change_Cachepath} xpath=//input[@id="PathChangeB"] # 添加策略—备份高级选项—更改缓存路径 ${Recover_ST_User} xpath=//div[@ng-show="first_tab_auth_show"]/div[2]/input[@ng-model="userName"] # 备份集恢复弹窗—恢复目标—用户名输入框 ${Recover_ST_PWD} xpath=//div[@ng-show="first_tab_auth_show"]/div[3]//input[@type="password"] # 备份集恢复弹窗—恢复目标—密码输入框 ${Recover_ST_Instance} xpath=//div[@ng-show="first_tab_auth_show"]/div[4]//input[@ng-model="sid"] # 备份集恢复弹窗—恢复目标—实例名输入框 ${Oracle_Logic_Module} xpath=//span[@id="dpm_policy_oracle_logic_btn"] # 定时数据保护栏—添加策略弹窗—oracle逻辑备份模块 ${Ora_Logic_Target} xpath=//span[text()="orcl.UNARY"]/../../td[2]/div # 定时数据保护栏—添加策略弹窗—目标数据库—需要备份的数据库 ${Ora_Logic_Target_12C} xpath=//span[text()="orcl.C##TEST"]/../../td[2]/div # 定时数据保护栏—添加策略弹窗—目标数据库—需要备份的数据库 ${Ora_Logic_Target_Add} xpath=//button[@id="dpm_oracleLogic_addPolicy_addition_btn"]/i # 定时数据保护栏—添加策略弹窗—Oracle逻辑目标数据库—添加按钮 ${Recover_Ora_Logic_Target} xpath=//div[@ng-controller="addOrcLogicRecoveryPolicy"]//span[text()="orcl.UNARY"]/../../td[2]/div # 备份集恢复弹窗—恢复目标—需要恢复的数据 ${Recover_Ora_Logic_Target_12c} xpath=//div[@ng-controller="addOrcLogicRecoveryPolicy"]//span[text()="orcl.C##TEST"]/../../td[2]/div # 备份集恢复弹窗—恢复目标—需要恢复的数据 ${Recover_Delete_Tab} id=deltables_checkbox # 备份集恢复弹窗—恢复目标选项—删除表选项 ${Recover_All} id=fullLibraryImport # 备份集恢复弹窗—恢复目标选项—全库恢复 ${Recover_Target_Next_Step} xpath=//button[@ng-click="fw_2_3()"] # 备份集恢复弹窗—恢复目标—下一步按钮 ${Input_Recover_Instance} xpath=//ng-include[@src="addRecoveryPolicy"]//input[@id="alone_instance"] # 备份集恢复弹窗—连接凭据—实例输入框 ${Select_Backup source_kingbase_physical} xpath=//*[@id="sourceSelectList"]/..//i[@ng-class="moduleSwitch('kingbase_physical')"] # 选择备份源类型_kingbase_physical ${Advanced_Setup_kingbase_physical} xpath=//li[@id="kingbase_physical_backup_setting_tab_advanced"]/a[text()="高级设置"] # 高级设置_kingbase_physical ${Kingbase_updateDataPath} xpath=//div[@class="senior-item-wrapper pull-left"]/input[@id="updateDataPath"] # 数据库data路径_kingbase ${Kingbase_archivePath} xpath=//div[@class="senior-item-wrapper pull-left"]/input[@id="archivePath"] # 数据库归档路径_kingbase ${kingbase_physical_Recory_Username} xpath=//div[@ng-controller="addKinPhysicalRecoveryPolicy"]//input[@id="userName_uppercase"] # kingbase_physical恢复页面用户名输入框 ${kingbase_physical_Recovry_Pwd} xpath=//div[@ng-controller="addKinPhysicalRecoveryPolicy"]//div[@class="input-group hide-password-plaintext"]/input[@type="password"] # kingbase_physical恢复页面密码输入框 ${kingbase_physical_recovery_updateUser} xpath=//div[@class="senior-item-wrapper"]/input[@id="kingbase_physical_recovery_updateUser"] # kingbase恢复页面用户输入框 ${kingbase_physical_recovery_updatePath} xpath=//div[@class="senior-item-wrapper pull-left"]/input[@id="kingbase_physical_recovery_updatePath"] # kingbase恢复页面bin输入框 ${kingbase_physical_recovery_updateDataPath} xpath=//div[@class="senior-item-wrapper pull-left"]/input[@id="kingbase_physical_recovery_updateDataPath"] # kingbase恢复页面data输入框 ${kingbase_physical_recovery_archivePath} xpath=//div[@class="senior-item-wrapper pull-left"]/input[@id="kingbase_physical_recovery_archivePath"] # kingbase恢复页面归档日志输入框 ${kingbase_physical_recovery_setting_tab_advanced} xpath=//li[@id="kingbase_physical_recovery_setting_tab_advanced"]/a[text()="高级设置"] # 高级设置_kingbase_physical恢复 ${Mysql_Deduped_Attr} id=dpm_backupset_backUpSetInfo_delete_state_td # 备份集栏—备份集详情—重删属性 ${work_type_select} xpath=//*[@id="work_type_select"] # 所有类型下拉框 ${select_recover} xpath=//*[@id="work_type_select"]/option[5] # 选择恢复类型 ${H3C_Virtual} xpath=//div[@class="col-xs-3"]//input[@id="particle"] # 定时数据保护栏—添加策略弹窗—目标虚拟机—虚拟机(备份对象类型:宿主机/虚拟机) ${Input_SearchVM} xpath=//input[@id="treeSearchInput" and @placeholder="搜索备份源"] # 添加策略—目标虚拟机—搜索备份源输入框 ${Input_SearchVM_H3C} xpath=//input[@id="treeSearchInput" and @placeholder="搜索备份源"] # 添加策略—目标虚拟机—搜索备份源输入框_H3C ${Button_SearchVM} xpath=//button[@ng-disabled="searchDis"] # 添加策略—目标虚拟机—搜索虚拟机按钮 ${Button_SearchVM_H3C} xpath=//button[@ng-disabled="searchDis"] # 添加策略—目标虚拟机—搜索虚拟机按钮_H3C ${Bk_Vm_Target} xpath=//span[text()="test_cxw"]/../../td[2] # 添加策略—目标虚拟机—需要备份的虚拟机 ${Add_Bk_List} xpath=/html/body/div[3]/div/div/div[2]/div[2]/div/ng-include[1]/div/div/div/div[2]/ng-include/div/div[1]/div[2]/div[4]/div/div[2]/div[1]/div[3]/button # 添加策略—目标虚拟机—添加到已选列表框 ${Add_Bk_List_FusionSphere} xpath=//div[@id="bkSource"]//button[@ng-click="addSelected('add')"] # 添加策略—目标虚拟机—添加到已选列表框-FusionSphere ${Add_VM_NextStep} xpath=//button[@ng-click="addH3C.fw_1_2()"] # 添加策略—目标虚拟机—下一步按钮 ${Add_CNware_NextStep} xpath=//button[@id="dpm_cce_addPolicy_fwstep2fs_btn"] # 添加策略—目标虚拟机—下一步按钮 ${Select_CNware_Use_logical} xpath=//label[@for="logic"]/input[@ng-model="backupMethod"] # 备份方式选择逻辑 ${Cache_Agent_IP} xpath=//label[text()="代理IP:"]/../input # 添加策略—备份集高级选项—本地缓存设置—代理IP输入框 ${Cache_Agent_Name} xpath=//input[@id="cacheNum.shareuser"] # 添加策略—备份集高级选项—本地缓存设置—代理用户名输入框 ${Cache_Agent_PWD} xpath=//input[@type="password" and @ng-model="cacheNum.sharepwd"] # 添加策略—备份集高级选项—本地缓存设置—代理密码输入框 ${Add_H3C_Policy} xpath=//button[@id="dpm_tab_policy_addPolicy2_btn" and text()="新建备份策略"] # 定时数据保护栏—定时保护策略—添加策略按钮 ${H3C_Encryption} xpath=//div[@class="col-md-12"]/label[@class="checkbox inline"]/input[@id="encryption"] # 添加备份策略—备份集高级选项—加密选项 ${H3C_Recover_NextStep} xpath=//button[@ng-click="recoveryH3C.fw_1_2()"] # H3C备份集恢复—恢复目标—下一步按钮 ${CNware_Recover_NextStep} xpath=//button[@id="dpm_cnware_addRecoveryPolicy_fw12_btn"] # H3C备份集恢复—恢复目标—下一步按钮 ${CNware_Recover_finish} xpath=//button[@id="dpm_cnware_addRecoveryPolicy_fw12_btn"] # H3C备份集恢复—恢复目标—下一步按钮 ${H3C_Recover_Cache} xpath=//input[@ng-model="recoverCache.cacheRe"] # H3C备份集恢复—高级选项—本地缓存勾选框 ${H3C_Recover_CachePath} xpath=//input[@ng-model="recoverCache.cachePathR"] # H3C备份集恢复—高级选项—本地缓存设置—缓存路径输入框 ${H3C_Recover_Cache_IP} xpath=//input[@ng-model="h3c_cache.shareIP"] # H3C备份集恢复—高级选项—本地缓存设置—代理IP输入框 ${H3C_Recover_Cache_Name} xpath=//input[@ng-model="h3c_cache.shareuser"] # H3C备份集恢复—高级选项—本地缓存设置—用户名输入框 ${H3C_Recover_Cache_PWD} xpath=//input[@ng-model="h3c_cache.password"] # H3C备份集恢复—高级选项—本地缓存设置—密码输入框 ${H3C_Recover_Cache_sharePath} xpath=//input[@id="sharePath"] # H3C备份集恢复—高级选项—本地缓存设置—临时缓存路径输入框 ${H3C_Recover_Cache_Confirm} xpath=//button[@id="finishCacheSet"] # H3C备份集恢复—高级选项—本地缓存设置—确定按钮 ${H3C_Recover_Confirm} xpath=//button[@ng-click="recoveryH3C.finish()"] # H3C备份集恢复—高级选项—确定按钮 ${CNware_Recover_Confirm} xpath=//button[@id="dpm_cnware_addRecoveryPolicy_finish_btn"] # CNware备份集恢复—高级选项—挖槽按钮 ${H3C_Deduped_Attr} xpath=//tr[@ng-show="bdCache"]/td[2] # 备份集详情—重删属性 ${CNware_Deduped_Attr} xpath=//*[@id="dpm_backupset_backUpSetInfo_noEasystack_delete_state_td"] # 备份集详情—重删属性 ${DPM_Tab_Policy} xpath=//li[@ng-class="{active:policyShow}"] # 定时数据保护栏—定时数据保护标签页 ${Confirm_Delete} xpath=//div[contains(text(),"删除该策略")]/..//button[text()="确定"] # 定时数据保护栏—删除策略弹窗—确定按钮 ${Sanfor_Delete} xpath=//a[text()="确认"] # 定时数据保护栏—删除策略弹窗—确定按钮 ${Sybase_source} Xpath=//span[@ng-click="setpolicy('sybase')"] # 定时数据保护栏—添加策略—Sybase ${Sybase_engine} Xpath=//*[@id="engineName"] # Sybase—连接凭证—引擎名称框 ${Input_Sybase_user} Xpath=//div[@ng-controller="addPolicySybase"]//input[@id="userName"] # 备份策略—输入用户名—Sybase ${Input_Sybase_pwd} Xpath=//*[@id="alone_normal"]/div[3]/div/input[2] # 备份策略—输入用户密码—Sybase ${Sybase_select} xpath=//*[@id="addPolicySybaseTree"]//span[contains(text(),"test")]/../../td[2] # 备份策略—选择目标数据库test—Sybase ${Sybase_change_cache} xpath=//*[@id="PathChangeB"] # 备份策略—高级选项—更改缓存路径—Sybase ${Sybase_cache} Xpath=//*[@id="cacheB"] # 备份策略—高级选项—缓存勾选—Sybase ${Sybase_engine_recovery} Xpath=//div[@ng-controller="addSybaseRecoveryPolicy"]//input[@ng-model="engineName"] # 恢复策略—引擎名—Sybase ${Sybase_rec_user} Xpath=//div[@ng-controller="addSybaseRecoveryPolicy"]//input[@id="userName"] # 恢复策略—用户名—Sybase ${Input_Sybase_rec_pwd} Xpath=//div[@ng-controller="addSybaseRecoveryPolicy"]//input[@type="password"][@ng-model="password"] # 恢复策略—用户密码—Sybase ${Sybase_rec_cache} Xpath=//*[@id="cache"] # 恢复策略—勾选缓存—Sybase ${win_Sybase_select} Xpath=//*[@id="addPolicySybaseTree"]//tr[6]//td[2]/div # 备份策略—选择目标数据库test1—Sybase ${Sybase_source} Xpath=//span[@ng-click="setpolicy('sybase')"] # 定时数据保护栏—添加策略—Sybase ${Sybase_engine} Xpath=//*[@id="engineName"] # Sybase—连接凭证—引擎名称框 ${Input_Sybase_user} Xpath=//div[@ng-controller="addPolicySybase"]//input[@id="userName"] # 备份策略—输入用户名—Sybase ${Input_Sybase_pwd} Xpath=//*[@id="alone_normal"]/div[3]/div/input[2] # 备份策略—输入用户密码—Sybase ${Sybase_select} Xpath=//*[@id="addPolicySybaseTree"]//tr[7]//td[2]/div # 备份策略—选择目标数据库test—Sybase ${Postgresql_Module} xpath=//span[@ng-click="setpolicy('postgresql')"] # 定时数据保护栏—添加策略弹窗—Postgresql模块 ${Postgresql_Username} xpath=//div[@id="alone_normal"]//input[@id="userName"] # 定时数据保护栏—添加策略弹窗—连接凭据—用户名输入框 ${Postgresql_PWD} xpath=//div[@id="orc-content-wrapper"]//input[@type="password"] # 定时数据保护栏—添加策略弹窗—连接凭据—密码输入框 ${Postgresql_Option_Encryption} xpath=//input[@id="encryption" and @ng-change="toggleEncryption()"] # 添加策略弹窗—备份高级选项—加密选项 ${Postgresql_Option_Compress} xpath=//div[@class="col-sm-3"]//input[@id="compress"] # 添加策略弹窗—高级选项—压缩选项 ${Recover_Postgresql_Username} xpath=//ng-include[@src="addRecoveryPolicy"]//input[@id="userName"] # 备份集恢复弹窗—恢复目标—用户名输入框 ${Recover_Postgresql_PWD} xpath=//div[@ng-controller="addPostgresqlRecoveryPolicy"]//div[@id="orc-content-wrapper"]//input[@type="password"] # 备份集恢复弹窗—恢复目标—密码输入框 ${Input_All_Policy} xpath=//input[@ng-model="workPolicyName"] # 定时数据保护栏—作业—所有策略输入框 ${Input_S3_Policy} xpath=//input[@id="hcs_tabWork_policyName_input"] # 定时数据保护栏—作业—所有策略输入框 ${Search_By_Policy} xpath=//span[@id="dpm_tab_work_workPolicyName_search_btn"] # 定时数据保护—作业—查找按钮 ${FS_Add_Policy} xpath=//button[@id="dpm_tab_policy_addPolicy2_btn"][text()="新建备份策略"] # 定时数据保护栏—定时数据保护策略—添加策略按钮 ${FS_Bk_Target} xpath=//span[text()="minimal"]/../../td[2]/div # 定时数据保护栏—添加策略弹窗—目标虚拟机—minimal虚拟机 ${Bk_Target_NextStep} xpath=//button[@ng-click="fw_step_2fs()"] # 定时数据保护栏—添加策略弹窗—目标虚拟机—下一步按钮 ${FS_Encryption} xpath=//div[@class="col-md-12 form-group"]/label/span[text()="加密"] # 添加策略弹窗—备份高级选项—加密选项 ${Recover_Datastore} xpath=//span[contains(text(),"本地存储")]/../../td[2]/div # 备份集恢复弹窗—恢复目标—datastore ${Recover_Policy_Complete} xpath=//h4[text()="备份集恢复"]/../..//button[@ng-click="finish()" and text()="完成"] # 备份集恢复弹窗—高级选项—完成按钮 ${FS_Deduped_Attr} xpath=//tr[@ng-show="!bdCache && backupDetail_componentType != 's_easystack'"]/td[2] # 华为备份集详情弹窗—重删属性 ${Oracle_Logic_Option_Encryption} xpath=//div[@class="col-md-12"]/label[@class="checkbox inline"]/input[@id="encryption"] # 定时数据保护栏—定时数据保护—添加策略—备份高级选项—加密 ${SelectH3C_BackType} xpath=//*[@id="executeXML"]/.//select[@ng-model="exeH3C.selectedBackupType"] # 立即执行-选择备份类型 ${Now Difference_Backup_H3C} xpath=//*[@id="executeXML"]/.//select[@ng-model="exeH3C.selectedBackupType"]/option[text()="差量备份"] # 立即执行-选择备份类型-差量备份_H3C ${MongoDB_Module} xpath=//span[@ng-click="setpolicy('mongodb')"] # 定时数据保护栏—添加策略弹窗—mongodb备份模块 ${Input_MongoDB_username} Xpath=//div[@id="alone_normal"]//input[@id="userName"] # 备份策略—输入用户名—MongoDB ${Input_MongoDB_password} Xpath=//*[@id="alone_normal"]/div[2]/div/input[2] # 备份策略—输入密码—MongoDB ${Input_Recover_MongoDB_username} Xpath=//ng-include[@src="addRecoveryPolicy"]//input[@id="userName"] # 恢复策略—输入用户名—MongoDB ${Input_Recover_MongoDB_password} Xpath=//ng-include[@src="addRecoveryPolicy"]//*[@id="alone_normal"]/div[2]/div/input[2] # 恢复策略—输入密码—MongoDB ${Select_MongoDB_dbname} Xpath=//*[@id="addPolicyMongodbEsTree"]/div/table/tbody/tr[2]/td[2]/table/tbody/tr[5]/td[2]/table/tbody/tr/td[2]/div # 备份策略—选择目标数据库—MongoDB ${MongoDB_Encrypt} xpath=//div[@class="col-md-12"]/label[@class="checkbox inline"]/input[@id="encryption"] #备份高级选项-加密_MongoDB ${MongoDB_Compress} xpath=//*[@ng-model="backup_adv_opt.apply_compress"] #备份高级选项-压缩_MongoDB ${MongoDB_Deduped} xpath=//div[@class="col-md-12"]/div/label/span[text()="数据重删"] #备份高级选项-重删_MongoDB ${MongoDB_Change_Cache_Path} xpath=//*[@id="PathChangeB"] #备份高级选项-修改缓存地址_MongoDB ${MongoDB_Cache_Path} xpath=//*[@id="cachePath"] #备份高级选项-缓存_MongoDB ${MongoDB_Fin_CachePath} xpath=//button[@ng-click="finishCache()"] # 添加策略—高级备份选项—缓存—确定按钮 ${MongoDB_Recover_run} xpath=//*[@id="BackupDialog"]/.//button[text()='执行'] # MongoDB恢复目标执行 ${Informix_Module} xpath=//span[@ng-click="setpolicy('informix')"] # 定时数据保护栏—添加策略弹窗—informix备份模块 ${Input_Informix_username} Xpath=//div[@id="addXML"]//input[@id="userName"] # 备份策略—输入用户名—Informix ${Input_Informix_password} Xpath=//div[@id="addXML"]//input[@ng-hide="plaintext"] # 备份策略—输入密码—Informix ${Input_Informix_server} Xpath=//div[@id="addXML"]//input[@id="sid"] # 备份策略—输入服务名—Informix ${Input_Informix_port} Xpath=//div[@id="addXML"]//input[@id="port"] # 备份策略—输入端口—Informix ${Input_Informix_IP} Xpath=//div[@id="addXML"]//input[@id="IPAddress"] # 备份策略—输入IP地址—Informix ${Select_Informix_dbname} xpath=//span[contains(text(), 'datadbs')] # 备份策略—选择目标数据库—Informix ${Informix_Encrypt} xpath=//input[@id="encryption" and @ng-change="toggleEncryption()"] #备份高级选项-加密_Informix ${Informix_Compress} xpath=//*[@ng-model="backup_adv_opt.apply_compress"] #备份高级选项-压缩_Informix ${Informix_Deduped} xpath=//*[@ng-model="backup_adv_opt.apply_dedup"] #备份高级选项-重删_Informix ${Informix_Change_Cache_Path} xpath=//*[@id="PathChangeB"] #备份高级选项-修改缓存地址_Informix ${Informix_Cache_Path} xpath=//*[@id="cachePath"] #备份高级选项-缓存_Informix ${Informix_Fin_CachePath} xpath=//button[@ng-click="finishCache()"] # 添加策略—高级备份选项—缓存—确定按钮 ${Input_Recover_Informix_username} Xpath=//ng-include[@src="addRecoveryPolicy"]//input[@id="userName"] # 恢复策略—输入用户名—Informix ${Input_Recover_Informix_password} Xpath=//ng-include[@src="addRecoveryPolicy"]//*[@id="alone_normal"]/div[2]/div/input[2] # 恢复策略—输入密码—Informix ${Input_Recover_Informix_sid} Xpath=//ng-include[@src="addRecoveryPolicy"]//input[@id="sid"] # 恢复策略—输入用户名—Informix ${Input_Recover_Informix_port} Xpath=//ng-include[@src="addRecoveryPolicy"]//input[@id="port"] # 恢复策略—输入密码—Informix ${Input_Recover_Informix_IPAddress} Xpath=//ng-include[@src="addRecoveryPolicy"]//input[@id="IPAddress"] # 恢复策略—输入用户名—Informix ${Informix_Recover_run} xpath=//*[@id="BackupDialog"]/.//button[text()='完成'] # Informix恢复目标执行 ${SF_Add_Policy} xpath=//button[@ng-click="showAddVirtualDialog()" and text()="新建备份策略"] # 定时数据保护栏—定时数据保护策略—添加策略按钮 ${SF_Bk_Target} xpath=//span[text()="whb_test"]/../..//td[2]/div # 定时数据保护栏—添加策略弹窗—目标虚拟机—Minimal虚拟机 ${SF_Change_Cache_Path} xpath=//*[@id="PathChangeB"] #备份高级选项-修改缓存地址 ${SF_Recover_DataStore} xpath=//span[text()="DataStore"] #恢复-DataStore列表 ${SF_Recover_DataStore_Select} Xpath=//span[contains(text(), '虚拟存储卷')]/../../td[2]/div # 恢复-DataStore列表-选择 ${SF_Recover_Change_Cachepath} Xpath=//input[@value="更改缓存路径"] # 备份集恢复-高级选项-更改缓存路径 ${SF_Recover_Cache} xpath=//input[@ng-model="recoverCache.cacheRe"] # 备份集恢复—高级选项—本地缓存勾选框 ${SF_Recover_CachePath} xpath=//input[@ng-model="recoverCache.cachePathR"] # 备份集恢复—高级选项—本地缓存设置—缓存路径输入框 ${SF_Recover_Cache_Confirm} xpath=//button[@id="finishCacheSet"] # 备份集恢复—高级选项—本地缓存设置—确定按钮 ${SF_Recover_run} xpath=//*[@id="BackupDialog"]/.//button[text()='完成'] # Sangfor恢复目标执行 ${SelectSF_BackType} xpath=//select[@id="sangfor_executePolicy_selectedSrctype_select"] # 立即执行-选择备份类型 ${SF_Deduped_Attr} xpath=//tr[@ng-show="!bdCache && backupDetail_componentType != 's_easystack'"]/td[@class="info-title ng-binding" and text()="重删:"] # 备份集详情—重删属性 ${Sanfor_Deduped_Attr} xpath=//td[@id="dpm_backupset_backUpSetInfo_delete_state_td"] # 备份集详情—重删属性 ${Recover_Speed} xpath=//tr[@data-index="0"]//td[@data-field="networkSpeed"]/div # 定时数据保护—作业栏—恢复作业速率 ${Edit_Policy_Name} xpath=//input[@id="policyName"] # 编辑策略—目标文件—策略名输入框 ${Edit_Encryption} xpath=//h4[text()="编辑策略"]/../..//input[@ng-disabled="!dpm_encrypt_module.editable"] # 编辑策略—备份高级选项—加密勾选框 ${Edit_Compress} xpath=//h4[text()="编辑策略"]/../..//input[@ng-model="backup_adv_opt.apply_compress"] # 编辑策略—备份高级选项—压缩勾选框 ${Edit_Check} xpath=//h4[text()="编辑策略"]/../..//input[@ng-model="backup_adv_opt.apply_check"] # 编辑策略—备份高级选项—校验勾选框 ${Edit_BK_Senior_Config} xpath=//div[@class="item activated"]//span[text()="备份高级选项"] # 编辑策略—备份高级选项栏 ${Finish_Edit} xpath=//button[@id="file_finishEdit"] # 编辑策略—备份高级选项—完成按钮 ${sybase_find} xpath=//span[@ng-click="searchByPolicyName()"] # sybase备份集页面查找按钮 ${Set_Mysql_Phy_PolicyName} xpath=//input[@ng-model="addMySQL.PolicyName"] # mysql物理—添加策略框—策略名输入框 ${Input_Mysql_Phy_Name} xpath=//div[@class="section_body"]/div[@class="form-group"]/*[@id="userName"] # 定时数据保护栏—添加策略—连接凭据—mysql物理用户名输入框 ${Input_Mysql_Phy_Pwd} xpath=//*[@id="dpm_mySqlPhysical_addPolicy_sendPass_input"] # 定时数据保护栏—添加备份策略框—mysql物理用户密码输入框 ${Input_Mysql_Phy_Port} xpath=//input[@id="port"] # 定时数据保护策略—添加备份策略框—mysql物理端口输入框 ${Input_Mysql_Phy_IP} xpath=//div[@class="view_scroll"]//input[@id="IPAddress"] # 定时数据保护栏—添加备份策略框—mysql物理ip地址输入框 ${Connect_Mysql_Phy_NextStep} xpath=//*[@id="dpm_mysqlPhysical_addPolicy_step_1_next_btn"] # 定时数据保护栏—添加备份策略框—MySQL物理连接凭据-下一步按钮 ${Bk_Mysql_Phy_NextStep} xpath=//button[@ng-click="NetStep3()" and @id="dpm_mysqlPhysical_addPolicy_step_2_next_btn"] # 定时数据保护栏—添加策略—目标数据库—下一步 ${Recover_Mysql_Phy_Name} xpath=//div[@ng-controller="addMySQLRecoveryPolicy_physical as recoveryMySQL"]//input[@id="userName"] # 定时数据保护—备份集恢复弹窗—mysql物理用户名输入框 ${Recover_Mysql_Phy_Pwd} xpath=//*[@id="dpm_mysqlPhysical_addRecoveryPolicy_sendPass_input"] # 定时数据保护栏—备份集恢复框—mysql物理密码输入框 ${Recover_Mysql_Phy_IP} xpath=//div[@ng-controller="addMySQLRecoveryPolicy_physical as recoveryMySQL"]//*[@id="IPAddress"] # 定时数据保护栏—备份集恢复框—mysql物理ip输入框 ${Recover_Mysql_Phy_Port} xpath=//div[@ng-controller="addMySQLRecoveryPolicy_physical as recoveryMySQL"]//*[@id="port"] # 定时数据保护栏—备份集恢复框—mysql物理端口输入框 ${Recover_Mysql_Phy_Nextstep} xpath=//*[@id="dpm_mysqlPhysical_addRecoveryPolicy_step_1_next_btn"] # 定时数据保护栏—备份集恢复框—mysql物理恢复目标-下一步按钮 ${Recover_Nextstep} xpath=//button[@ng-click="fw_1_2()"] # 定时数据保护栏—备份集恢复弹窗—下一步按钮 ${Recover_Nextstep_FS} xpath=//button[@id="dpm_fusionsphere_addRecoveryPolicy_fw_1_2_btn"] # 定时数据保护栏—备份集恢复弹窗—下一步按钮-FusionSphere ${Recover_Nextstep_DM} xpath=//button[@id="dpm_dm_addRecoverPolicy_nextStep1_btn"] # 定时数据保护栏—DM备份集恢复弹窗—下一步按钮 ${Recover_Nextstep_Postgres} xpath=//button[@id="dpm_postgresql_addRecoveryPolicy_nextStep12_btn"] # 定时数据保护栏—Postgresql逻辑备份集恢复弹窗—下一步按钮 ${Recover_Nextstep_Mongodb} xpath=//*[@id="BackupDialog"]//button[text()="下一步"] # 定时数据保护栏—MongoDB备份集恢复弹窗—下一步按钮 ${Recover_Complete} xpath=//button[@ng-click="finish()" and text()="执行"] # 定时数据保护栏—备份集恢复框—策略完成 ${Select_Mysql_Phy_Style} xpath=//select[@ng-model="exeMySQL.selectedBackupType"] # 定时数据保护—立即执行—立即执行下拉菜单 ${Mysql_Phy_Exe_Confirm} xpath=//button[@ng-click="exeMySQL.executePolicy_execute()"] # 定时数据保护栏—立即执行弹窗—确定按钮 ${Edit_File_PolicyName} xpath=//input[@id="dpm_file_editPolicy_PolicyName_input"] # 定时数据保护栏—编辑策略—策略名编辑框 ${Input_PolicyName_Search} xpath=//input[@id="workPolicyName"] # 定时数据保护栏—作业栏—策略名输入框 ${Button_PolicyName_Search} xpath=//span[@id="dpm_tab_work_workPolicyName_search_btn"] # 定时数据保护栏—作业栏—策略名输入按钮 ${Del_All_Bk} xpath=//div[@id="delBackupSetCom"]//input[@id="delAll"] # 副本数据保护界面—备份集栏—删除备份集弹窗—完全删除选项 ${Complete_Mssql_Rec} xpath=//ng-include[@src="addRecoveryPolicy"]//button[text()="完成"] # 副本数据保护栏—备份集栏—恢复策略—恢复策略完成按钮 ${Del_Local_Bk} xpath=//h4[text()="删除副本数据"]/../..//input[@value="delLocal"] # 删除副本备份集—仅删除本地备份集 ${DL_Local} xpath=//a[text()=" 加载"] # 副本备份集—操作—加载 ${Load_Confirm} xpath=//div[@id="loadWin_CDM_arType"]//button[@ng-click="loadSure()"] # 加载备份集弹窗—确定按钮 ${Del_Local_Confirm} xpath=//a[text()="确定"] # 删除备份集弹窗—删除确定按钮 ${Edit_Bk_Storage} xpath=//h4[text()="编辑策略"]/../..//button[@id="dpm_file_sideNav_addMode_goStep3_btn"] # 定时数据保护栏—文件策略编辑弹窗—备份集存储步骤 ${Edit_Select_Media} xpath=//h4[text()="编辑策略"]/../..//select[@ng-model="item.media"] # 编辑策略弹窗—备份集存储—选择介质下拉框 ${Input_PolicyName_Sqlserver} xpath=//input[@id="dpm_sqlserver_addPolicy_policyName_input"] # sqlserver—添加策略弹窗—策略名称输入框 ${Input_PolicyName_Oracle} xpath=//input[@id="PolicyName"] # oracle—添加策略弹窗—策略名称输入框 ${ST_BK_Setting} xpath=//li[@id="dpm_shentong_addPolicyGuide_switchAuthTab1_li"]/a[text()="高级设置"] # 神通数据库添加策略弹窗—高级设置 ${Input_ST_BK_Path} xpath=//input[@id="updatePath"] # 神通数据库添加策略弹窗—高级设置—安装路径输入框 ${ST_Rec_Setting} xpath=//h4[text()="备份集恢复"]/../..//a[text()="高级设置"] # 神通数据库添加恢复策略弹窗—高级设置 ${Input_ST_Rec_Path} xpath=//h4[text()="备份集恢复"]/../..//input[@id="updatePath"] # 神通数据库添加恢复策略弹窗—高级设置—安装路径输入框 ${ST_Rec_Exe} xpath=//button[text()="执行"] # 神通数据库备份集恢复弹窗—高级选项—恢复执行按钮 ${Del_All_Bk_DPM} xpath=//div[@id="delBackupSet"]//input[@id="delAll"] # 定时数据保护界面一备份集栏一删除备份集一完全删除选项 ${Check_Archpath} xpath=//div[text()="已归档"]/..//span[@ng-disabled="disArPathSearch"] # 备份集详情—归档状态—归档路径查询 ${Instance_name_Oracle_logic} xpath=//input[@id="alone_instance"] # 定时数据保护栏—添加备份策略框—oracle逻辑实例输入框 ${File_More_NextStep} xpath=//button[@ng-click="fw_step_5File()"] # 新建文件备份策略—文件选项—下一步按钮 ${File_Senior_NextStep} xpath=//button[@ng-click="goInfoCommit()"] # 新建文件备份策略—备份高级选项—下一步 ${File_Rec_More_NextStep} xpath=//button[@id="dpm_file_addRecoveryPolicy_nextStep1_2_btn"] # 新建文件恢复策略—文件选项—下一步 ${Recover_S3_Nextstep2} xpath=//button[@id="s3_recovery_go_step_3_button"] # 新建S3恢复策略—恢复桶—下一步 ${Recover_S3_Nextstep3} xpath=//button[@id="s3_recovery_go_step_4_button"] # 新建S3恢复策略—多通道配置—下一步 ${Recover_S3_Nextstep4} xpath=//button[@id="s3_recovery_go_step_5_button"] # 新建S3恢复策略—执行节点—下一步 ${Recover_S3_complete} xpath=//button[@id="s3_recovery_finish_button"] # 新建S3恢复策略—完成 ${File_Rec_Senior_NextStep} id=dpm_file_addRecoveryPolicy_step2Implement_btn # 新建文件恢复策略—高级选项—下一步 ${Bk_Info} xpath=//div[@id="backUpSetInfo"]//h4[text()="备份集详情"] # 备份集详情弹窗 ${MySQL__Srcbkfun_Select} xpath=//*[@id="dpm_mySql_addPolicy_srcbkfun_select"] # MySQL--备份级别选择 ${MySQL_Dump_Option} xpath=//*[@id="dpm_mySql_addPolicy_dump_option"] # MySQL--备份级别--库级别 ${MySQL_Instance_Option} xpath=//*[@id="dpm_mySql_addPolicy_instance_option"] # MySQL--备份级别--实例级别 ${BackupAdvOptions_Next} xpath=//button[@id="dialogues_backupAdvOptions_stepLastDefine_btn"] # MySQL--备份高级选项--确定 ${AddRecoveryPolicy_Next} xpath=//button[@id="dpm_mySql_addRecoveryPolicy_carryOut_btn"] # MySQL--恢复高级选项--确定 ${MySqlPhysical_Srcbkfun_Select} xpath=//*[@id="dpm_mySqlPhysical_addPolicy_srcbkfun_select"] # MySQL物理--备份方式选择 ${KingbasePhysical_Srcbkfun_Select} xpath=//div[@id="alone_normal"]//select[@ng-model="srcbkfun"] # Kingbase物理--备份方式选择 ${MySqlPhysical_Dump_Option} xpath=//*[@id="dpm_mySqlPhysical_addPolicy_dump_option"] # MySQL物理--备份方式--普通 ${MySqlPhysical_Binary_Option} xpath=//*[@id="dpm_mySqlPhysical_addPolicy_binary_option"] # MySQL物理--备份方式--流式 ${KingbasePhysical_Dump_Option} xpath=//div[@id="alone_normal"]//select[@ng-model="srcbkfun"]/option[text()="普通"] # Kingbase物理--备份方式--普通 ${KingbasePhysical_Binary_Option} xpath=//div[@id="alone_normal"]//select[@ng-model="srcbkfun"]/option[text()="流式"] # Kingbase物理--备份方式--流式 ${Bk_Senior_Config} xpath=//h4[text()="编辑策略"]/../..//button[@id="dpm_file_sideNav_addMode_goStep5_btn"] # 编辑策略弹窗—备份高级选项步骤 ${Button_Edit_Info} id=info_commit # 编辑策略弹窗—信息确认按钮 ${Button_File_Finish} id=file_finishEdit # 编辑策略弹窗—确认修改按钮 ${Input_File_Policy_Name} xpath=//input[@id="policyName"] # 编辑策略弹窗—策略名编辑框 ${Select_Mysql_MDS} xpath=//select[@id="dialogues_addCycleStorage_storagePath_selectMedia_selectedMdsIP_select"] # 新建备份策略—备份集存储—选择介质 ${Mysql_Path} id=dpm_mySql_addPolicy_selectMyPathNum_btn # 新建备份策略—目标数据库—mysql路径参数 ${Select_Mysqldump} id=checkboxDump # mysql配置参数—mysqldump勾选框 ${Input_MysqlDump} id=textFieldDump # mysql配置参数—mysqldump输入框 ${Select_MysqlBinLog} id=checkboxBinlog # mysql配置参数—mysqlbinlog勾选框 ${Input_MysqlBinLog} id=textFieldBinlog # mysql配置参数—mysqlbinlog输入框 ${Select_Log} id=checkboxQ # mysql配置参数—二进制参数配置 ${Input_Log} id=textField # mysql配置参数—二进制参数输入框 ${Select_Config} id=checkboxConf # mysql配置参数—mysql参数配置勾选框 ${Input_Config} id=textFieldConf # mysql配置参数—mysql参数配置输入框 ${Mysql_Path_Confirm} id=dpm_mySql_addPolicy_define_btn # mysql配置参数—确认按钮 ${Search_Agent} xpath=//input[@ng-model="searchHostName"] # 定数数据保护—代理搜索框 ${Input_Sync_Name} id=authentication_userName_input # 异地同步—备份集恢复—鉴权用户名输入框 ${Input_Sync_Pwd} id=authentication_userPwd_input # 异地同步—备份集恢复—鉴权密码输入框 ${Sync_Confirm} id=authentication_confirm_btn # 异地同步鉴权弹窗—确定按钮 ${Complete_Policy_Create_No_Info} xpath=//button[@id="dialogues_backupAdvOptions_stepLastDefine_btn"] # 新建备份策略—备份高级选项—确定按钮 ${Complete_Policy_Create_S3} xpath=//button[@id="dialogues_addCycleStorage_finish_btn"] # 新建备份策略—备份高级选项—确定按钮 ${Deduped_Attr} xpath=//td[text()="重删:"]/..//td[@ng-if="dedupChoose == '是'" and text()="是"] # 备份集重删属性 ${S3_Deduped_Attr} xpath=//tr[@ng-show="backupsetInfo.sourceType == 's_s3'"]/../tr[11]/td[2] # s3备份集重删属性 ${Sqlserver_Conn_NextStep} xpath=//div[@ng-show="step_1_show"]/button[@ng-click="fw_step_2()"] # 新建备份策略—连接凭据—下一步 ${Sqlserver__NextStep} xpath=//button[@id="dpm_sqlserver_addPolicy_nextStep3_btn"] # 新建备份策略—实例选择—下一步 ${Select_Sqlserver_MDS} xpath=//select[@id="dialogues_addCycleStorage_storagePath_selectMedia_selectedMdsIP_select"] # 新建备份集—备份集存储—选择介质 ${Sqlserver_Encryption} xpath=//input[@id="encryption" and @ng-change="toggleEncryption()"] # 新建备份策略—高级备份选项—加密选项 ${Senior_NextStep} xpath=//button[@id="dialogues_backupAdvOptions_stepLastDefine_btn"] # 新建备份策略—备份高级选项—下一步 ${Finish_CreatePolicy_Sqlserver} xpath=//button[@id="dialogues_backupAdvOptions_stepLast_define_btn"] # 新建备份策略—信息确认—确定按钮 ${Recover_Target_NextStep_Sqlserver} xpath=//button[@id="dpm_sqlserver_addRecoveryPolicy_nextstep1_btn"] # sqlserver备份集恢复—恢复目标—下一步 ${Recover_Instance_NextStep} xpath=//button[@id="dpm_sqlserver_addRecoveryPolicy_nextstep3_btn"] # 备份集恢复—实例选择—下一步 ${Recover_Senior_NextStep} xpath=//button[@id="dpm_sqlserver_addRecoveryPolicy_finish_btn"] # 备份集恢复—高级选项—下一步 ${Sqlserver_Recover_Finish} xpath=//button[@id="dpm_sqlserver_addRecoveryPolicy_finish_btn"] # 备份集恢复—确认恢复—完成按钮 ${DB2_Recover_InstallPath} xpath=//button[@id="dialogues_addRecoveryPolicy_close_btn"]/../..//input[@id="updatePath"] # 新建DB2恢复策略—恢复目标—高级设置—DB2安装路径 ${DB2_Instant_Exc} xpath=//button[@id="dpm_db2_executePolicy_confirm_btn"] # DB2—立即执行弹窗—确定按钮 ${Bk_File_NextStep_Config} xpath=//button[@id="dpm_file_addPolicy_nextStep4_btn"] # 定时数据保护栏—添加策略—文件选项—下一步按钮 ${Ux_source} xpath=//span[@id="dpm_policy_uxdb_btn"] # 定时数据保护栏—添加策略—Uxdb组件 ${Input_Ux_user} xpath=//div[@id="alone_normal"]/div[1]/input #用户输入框_DM ${Input_Ux_Pwd} xpath=//div[@id="alone_normal"]/div[2]/div/input #密码输入框_DM ${Oracle_Cache_Pach} xpath=//input[@id="cacheB"] #备份高级选项-启动本地备份缓存_Oracle ${Oracle_backup_CachePath} xpath=//button[@id="dialogues_backupAdvOptions_cacheMod_define_btn"] # 添加策略-高级备份选项-缓存-确定按钮 ${Save_by_geshu} xpath=//option[@label="按个数"] # 添加策略—备份集存储—备份集保留时间—按个数 ${Bk_DB_unary} xpath=//span[contains(text(),"unary(")]/../../td[2]/div # 定时数据保护栏—添加策略—目标数据库—备份目标数据库unary ${Now Full_BackupMysql} xpath=//*[@id="executeXML"]/.//option[text()='完全备份'] # 立即执行--完全备份mysql逻辑 ${DPMFind_Policy} xpath=//input[@placeholder="按策略名查询" and @id="backTabPolicy"] #定时备份集页面—策略名输入框 ${DPMButton_Searchbutton} xpath=//span[@id="dpm_tab_backupset_searchFilter_span" and text()="查询"] #定时备份集页面—查询按钮 ${S3_DPMButton_Searchbutton} xpath=//button[@id="hcs_tabBackupset_search_btn"] #定时备份集页面—S3查询按钮 ${S3_Job_Searchbutton} xpath=//button[@id="hcs_tabPolicy_search_btn"] #定时备份集页面—S3查询按钮 ${S3_Searchbutton} xpath=//button[@id="hcs_tabWork_search_button"] #作业页面—S3查询按钮 ${ST_Complete_CreatePolicy} xpath=//button[@id="dialogues_backupAdvOptions_stepLastDefine_btn"] # 定时数据保护—ST添加策略—备份高级选项—完成按钮 ${Exe_Oracle_Bk} xpath=//div[@class="modal-body"]/select[@ng-model="selectedSrctype"] # 定时数据保护栏—定时oracle保护策略—立即执行—备份类型下拉框 ${PG_Complete_CreatePolicy} xpath=//*[@id="dialogues_backupAdvOptions_stepLastDefine_btn"] # 定时数据保护—postgresql添加策略—备份高级选项—完成按钮 ${Exe_ST_BK} xpath=//*[@id="executeXML"]/div/ng-include/div/div[2]/select # 定时数据保护栏—定时保护策略—立即执行—备份类型下拉框_ST ${PG_addBackup_Scheme} xpath=//*[@id="addXML"]//*[@id="addBackupModulePostgresql"] # 定时数据保护—postgresql--备份方案选择 ${Cycle_H3C_Police_Delete} xpath=//span[text()="删除"] # 定时数据保护-H3C策略-删除 ${Cycle_H3C_Policy_Delete_Confirm} xpath=//div[@class="modal-footer"]/button[@ng-click="deletePolicy()"] # 定时数据保护-保护策略-删除-删除策略-确定 ${Delete_succeeded_OK} xpath=//button[@id="tipsPop_define_btn"] # 定时数据保护-保护策略-删除-删除策略-确定-删除成功 ${Exe_H3C_Bk} xpath=//div[@class="modal-body"]/select[@ng-model="exeH3C.selectedBackupType"] # 定时数据保护栏—定时H3C保护策略—立即执行—备份类型下拉框 ${Exe_CNware_Bk} xpath=//option[text()="请选择备份类型"] # 定时数据保护栏—定时保护策略—立即执行—备份类型下拉框 ${Now Full_Bacup_H3C} xpath=//select[@ng-model="exeH3C.selectedBackupType"]/option[text()="完全备份"] # H3C备份策略立即执行完全备份 ${Now Full_Bacup_CNware} xpath=//select[@ng-change="chooseSrctype(selectedSrctype)"]/option[text()="完全备份"] # CNware备份策略立即执行完全备份 ${Add_Backup_H3C} xpath=//select[@ng-model="exeH3C.selectedBackupType"]/option[text()="增量备份"] # H3C备份策略立即执行-增量备份 ${Add_Backup_CNware} xpath=//select[@ng-change="chooseSrctype(selectedSrctype)"]/option[text()="增量备份"] # CNware备份策略立即执行-增量备份 ${Complie_confirm_H3C} xpath=//button[@id="dpm_h3c_excutePolicy_finish_btn"] # 策略立即执行-选择备份类型-完成-确认_H3C ${Complie_confirm_CNware} xpath=//button[@id="dpm_cnware_executePolicy_executePolicy_execute_btn"] # 策略立即执行-选择备份类型-完成-确认_CNWARE ${Bk_Vm_Target_agent} xpath=//span[text()="mimimal_cxw"]/../../td[2] # H3C有代理备份添加策略—目标虚拟机—需要备份的虚拟机 ${PG_addBackup_Logic} xpath=//*[@id="addBackupModulePostgresql"]//option[text()='逻辑备份'] # 定时数据保护—postgresql--备份方案选择--逻辑备份 ${PG_addBackup_Physics} xpath=//*[@id="addBackupModulePostgresql"]//option[text()='物理备份'] # 定时数据保护—postgresql--备份方案选择--物理备份 ${SQLserver_Deduped_Attr} xpath=//td[@id="dpm_backupset_backUpSetInfo_noEasystack_delete_state_td"] # SQLserver备份集栏—备份集详情—重删属性 ${Select_MysqldumpRe} xpath=//input[@id="checkboxDumpRe"] # mysql备份集恢复—高级选项—mysql文件位置勾选框 ${Select_checkboxBinlogRe} xpath=//input[@id="checkboxBinlogRe"] # mysql备份集恢复—高级选项—mysqlbinlog文件位置勾选框 ${Select_checkboxQ} xpath=//input[@ng-model="recoveryMySQL.checkboxQ"] # mysql备份集恢复—高级选项—二进制日志文件位置勾选框 ${Select_checkboxConf} xpath=//input[@ng-model="recoveryMySQL.checkboxConf"] # mysql备份集恢复—高级选项—mysql配置文件位置 ${Input_MysqlDumpRe} xpath=//input[@id="textFieldDumpRe"] # mysql备份集恢复—高级选项—mysql文件位置输入框 ${Input_mysqlField} xpath=//input[@ng-model="recoveryMySQL.textField"] # mysql备份集恢复—高级选项—二进制日志文件位置输入框 ${Input_FieldConf} xpath=//input[@ng-disabled="recoveryMySQL.confDis"] # mysql备份集恢复—高级选项—mysql配置文件位置输入框 ${Input_mysqlBinlogRe} xpath=//input[@id="textFieldBinlogRe"] # mysql备份集恢复—高级选项—mysqlbinlog文件位置输入框 ${PG_Advanced_Setup} xpath=//li[@id="dpm_postgresql_addPolicyGuide_switchAuthTab1_li"]/a # 定时数据保护—postgresql--备份高级设置 ${PG_Recover_Setup} xpath=//li[@id="dpm_postgresql_addRecoveryPolicy_switchAuthTab1_btn"]/a #定时--postgresql恢复高级设置 ${PG_UpdatePath} xpath=//button[@id="addPostgresqlUpdatePathBtn"]/..//input[@id="updatePath"] #定时--postgresql备份高级设置--安装路径 ${PG_UpdateUser} xpath=//input[@id="addPostgresqlUpdateUser"] #定时--postgresql物理备份高级设置--系统用户名 ${PG_UpdateArchivePath} xpath=//input[@id="addPostgresqlUpdateArchivePath"] #定时--postgresql物理备份高级设置--归档日志路径 ${PG_UpdateDataPath} xpath=//input[@id="addPostgresqlUpdateDataPath"] #定时--postgresql物理备份高级设置--data目录 ${PG_Recover_UpdateUser} xpath=//input[@id="rePostgresqlUpdateUser"] #定时--postgresql物理恢复高级设置--系统用户名 ${PG_Recover_UpdatePath} xpath=//button[@id="updatePathBtn"]/..//input[@id="updatePath"] #定时--postgresql物理\逻辑恢复高级设置--安装路径 ${PG_Recover_ArchivePath} xpath=//input[@id="rePostgresqlUpdateArchivePath"] #定时--postgresql物理恢复高级设置--归档日志路径 ${PG_Recover_DataPath} xpath=//input[@id="rePostgresqlUpdateDataPath"] #定时--postgresql物理恢复高级设置--data目录 ${Finish_CreatePolicy_DB2} xpath=//*[@id="dialogues_backupAdvOptions_stepLast_define_btn"] # DB2新建备份策略—信息确认—确定按钮 ${Gbase8t_Execute_Confirm} xpath=//button[@id="tipsPop_define_btn"] #定时Gbase8t立即执行策略--添加成功_确定+ ${Dedup_Confirm} xpath=//*[@id="dpm_backupset_backUpSetInfo_delete_state_td"] #定时Gbase8t|informix-重删属性确认 ${Detail} xpath=//div[@id="compileButtonBackup0"]/span[text()="详情"] #定时数据保护--备份集详情 ${Backup_Completed} xpath=//*[@id="compileButtonBackup0"]/../../td[contains(text(),"已完成")] #定时数据保护--备份集状态--已完成 ${Confirm_Recovery} xpath=//div[@class="layui-layer-btn layui-layer-btn-"]/a[1] #定时数据保护--数据库恢复确认执行 ${BinlogRe_new} xpath=//*[@id="textFieldBinlogRe_new"] #MySQLPhysical恢复-—高级选项—mysqlbinlog文件位置输入框 ${checkboxBinlogRe} xpath=//*[@id="checkboxBinlogRe_new"] #MySQLPhysical恢复-—高级选项—mysqlbinlog勾选框 ${confirm_restore} xpath=//a[@class="layui-layer-btn0" and text()="确认"] # 备份集恢复-确认恢复-确认 ${RecoveryPolicy_nextStep2} xpath=//button[@id="dpm_mySql_addRecoveryPolicy_carryOut_btn"] # mysql逻辑备份集恢复—恢复目标—点击下一步 ${BK_Details} xpath=//div[@id="compileButtonBackup0"]/span[text()="详情"] # 定时数据保护—备份集—第一个备份集详情按钮 ${window_button_recover_confirm} xpath=//a[text()="确定"] # 恢复确认弹窗_确认按钮 ${recover_confirm} xpath=//a[text()="确认"] # 恢复确认弹窗_确认按钮 ${Choice_Mysql_Encryption} xpath=//input[@id="encryption" and @ng-change="toggleEncryption()"] # 新建mysql备份策略—备份高级选项—加密选项 ${Recover_Mysql_NextStep_2} id=dpm_mySql_addRecoveryPolicy_nextStep2_btn # mysql备份集恢复—恢复目标—下一步按钮 ${Button_Change_Cache} id=PathChangeB # 新建mysql备份策略—备份高级选项—更改缓存路径 ${Choose_LimitSpeed} xpath=//h4[text()="备份集恢复"]/../..//button[@id="LPS_addPeriod_btn"] # 备份集恢复弹窗—高级选项—限速勾选框 ${Input_LimitSpeed} xpath=//input[@id="eps_limitVal"] # 备份集恢复弹窗—高级选项—限速输入框 ${Add_OracleRACPolicy} xpath=//button[@id="dpm_tab_policy_addPolicy3_btn"] #黑方主界面—定时数据保护栏—OracleRAC添加策略按钮 ${Select_Backup_source1} xpath=//select[@id="dialogues_postPoliceCluster_forPolicy_host_select"] #新建OracleRAC备份策略-下发策略-选择浏览备份源节点 ${Select_Node} xpath=//select[@id="dialogues_postPoliceCluster_forPolicy_host_select"]/option[text()="racnode1-p"] #新建OracleRAC备份策略-下发策略-选择浏览备份源节点-选择racnode1-p节点 ${Click_Next} xpath=//button[@id="dialogues_postPoliceCluster_forPolicy_nextStep0_btn"] #新建OracleRAC备份策略-下发策略-点击下一步 ${Add_Instance} xpath=//button[text()="添加实例"] #新建OracleRAC备份策略-下发策略-点击下一步-点击添加实例 ${Select_Node1} xpath=//select[@id="oracleChoice"]/option[text()="racnode1-p"] #新建OracleRAC备份策略-连接凭据-添加实例-选择代理节点1 ${Select_TNS} xpath=//select[@id="colony_orcattend"]/option[text()="TNS"] #新建OracleRAC备份策略-连接凭据-添加实例-选择代理节点1-选择TNS方式 ${Input_OracleTNS} xpath=//input[@id="alone_instance_rac"] #新建OracleRAC备份策略-连接凭据-添加实例-选择代理节点1-输入TNS名 ${InputRAC1_User_Name} xpath=//input[@id="colony_orcusername"and@class="form-control ng-pristine ng-untouched ng-valid"] #新建OracleRAC备份策略-连接凭据-添加实例-选择代理节点1-输入用户名 ${InputRAC2_User_Name} xpath=xpath=//input[@id="colony_orcusername"and@name="colony_orcusername"] #新建OracleRAC备份策略-连接凭据-添加实例-选择代理节点1-输入用户名 ${InputRAC1_Password} xpath=//input[@id="colony_orcpwd"and@class="form-control ng-pristine ng-untouched ng-valid"] #新建OracleRAC备份策略-连接凭据-添加实例-选择代理节点1-输入密码 ${InputRAC2_Password} xpath=//input[@id="colony_orcpwd"and@type="password"] #新建OracleRAC备份策略-连接凭据-添加实例-选择代理节点1-输入密码 ${Click_Sure} xpath=//a[text()="确定"] #新建OracleRAC备份策略-连接凭据-添加实例-选择代理节点1-点击确定 ${Select_Node2} xpath=//select[@id="oracleChoice"]/option[text()="racnode2-p"] #新建OracleRAC备份策略-连接凭据-添加实例-选择代理节点2 ${Click_Next1} xpath=//button[@id="dpm_oracle_addPolicy_nextStep2_btn"] #新建OracleRAC备份策略-连接凭据-点击下一步 ${Click_Next2} xpath=//button[@id="dpm_oracle_addPolicy_nextStep3_btn"] #新建OracleRAC备份策略-选择目标数据库-点击下一步 ${Click_Next3} xpath=//button[@id="dpm_oracle_addpolicy_fw_step_3_button"] #新建OracleRAC备份策略-Oracle选项-点击下一步 ${OracleRAC_Option_Encryption} xpath=//input[@ng-change="toggleEncryption()"] # 定时数据保护栏—定时数据保护—添加策略—备份高级选项—加密 ${Recover_RACinstancename} xpath=/html/body/div[3]/div/div/div[2]/div[2]/div/ng-include[2]/div/div/div/div/ng-include/div/div[1]/div[2]/div[5]/div/div[4]/div[1]/button #OracleRAC备份集恢复—添加实例信息 ${Recover_Select_Node1} xpath=/html/body/div[3]/div/div/div[2]/div[2]/div/ng-include[2]/div/div/div/div/ng-include/div/div[2]/div/div[2]/div/div[1]/div/select[@id="oracleChoice"]/option[contains(text(),"racnode1-p")] #OracleRAC备份集恢复—添加实例信息—RAC1 ${Recover_RAC1InstanceName} xpath=//input[@id="colony_instance"] #OracleRAC备份集恢复—添加实例信息—RAC1—实例名 ${Recover_RAC1_User_Name} xpath=/html/body/div[3]/div/div/div[2]/div[2]/div/ng-include[2]/div/div/div/div/ng-include/div/div[2]/div/div[2]/div/div[2]/div/div[1]/div[4]/div/input[@id="colony_orcusername"] #OracleRAC备份集恢复—添加实例信息—RAC1—用户名 ${Recover_RAC1_Password} xpath=/html/body/div[3]/div/div/div[2]/div[2]/div/ng-include[2]/div/div/div/div/ng-include/div/div[2]/div/div[2]/div/div[2]/div/div[1]/div[5]/div/div/input[@id="colony_orcpwd"] #OracleRAC备份集恢复—添加实例信息—RAC1—密码 ${Recover_Select_Node2} xpath=/html/body/div[3]/div/div/div[2]/div[2]/div/ng-include[2]/div/div/div/div/ng-include/div/div[2]/div/div[2]/div/div[1]/div/select[@id="oracleChoice"]/option[@label="racnode2-p (10.10.31.181)"] #OracleRAC备份集恢复—添加实例信息—RAC2 ${Recover_RAC2InstanceName} xpath=//input[@id="colony_instance"] #OracleRAC备份集恢复—添加实例信息—RAC2—实例名 ${Recover_RAC2_User_Name} xpath=/html/body/div[3]/div/div/div[2]/div[2]/div/ng-include[2]/div/div/div/div/ng-include/div/div[2]/div/div[2]/div/div[2]/div/div[1]/div[4]/div/input[@id="colony_orcusername"] #OracleRAC备份集恢复—添加实例信息—RAC2—用户名 ${Recover_RAC2_Password} xpath=/html/body/div[3]/div/div/div[2]/div[2]/div/ng-include[2]/div/div/div/div/ng-include/div/div[2]/div/div[2]/div/div[2]/div/div[1]/div[5]/div/div/input[@id="colony_orcpwd"] #OracleRAC备份集恢复—添加实例信息—RAC2—密码 ${Select_recovery_host} xpath=/html/body/div[3]/div/div/div[2]/div[2]/div/ng-include[2]/div/div/div/div/ng-include/div/div[1]/div[2]/div[1]/div/div/div/input[@placeholder="请选择"] #OracleRA恢复—选择主机 ${Select_recovery_RAC1} xpath=//dd[@class=""and @lay-value="c5d8ddc4c6a83f3e4803fc48805e783c"] #OracleRA恢复—选择主机—节点1 ${Oracle_Recover_Finish} xpath=//*[@id="oracle_addRecoveryPolicy_finish_btn"] # oracle恢复页面-恢复选项完成 ${Host_Search} xpath=//input[@id="inputSuccess2"] #主机搜索框 ${Gbase8s_module} xpath=//span[@id="dpm_policy_gbase8s_btn"] #定时数据保护—添加策略-Gbase8s组件 ${Input_Gbase8s_user} xpath=//input[@ng-model="addGbase8s.userName"] #添加策略-用户名输入框-Gbase8s ${Input_Gbase8s_pwd} xpath=//input[@type="password" and @ng-model="addGbase8s.password"] #添加策略-密码输入框-Gbase8s ${Gbase8s_NextStep_2} xpath=//button[@id="dpm_gbase8s_addPolicy_fw_step_2_btn"] #添加策略下一步-进入目标数据库-Gbase8s ${Gbase8s_BKDB} xpath=//div[@id="addPolicyGbase8sTree"]//span[contains(text(),"test")]/../../td[2] #选择目标数据库-Gbase8s ${Gbase8s_NextStep_3} xpath=//button[@id="dpm_gbase8s_addPolicy_fw_step_3_btn"] #目标数据库下一步-进入任务周期-Gbase8s ${Gbase8s_NextStep3_2} xpath=//*[@id="dialogues_addCycleStorage_step3_2_next_btn"] # 定时添加策略—任务周期—下一步按钮-Gbase8s ${Gbase8s_executeSure} xpath=//button[@id="dpm_gbase8s_executePolicy_markSure_btn"] #立即执行-确定-Gbase8s ${Gbase8s_RecoveryUser} xpath=//input[@ng-model="recoveryGbase8s.userName"] #恢复策略-用户名输入框-Gbase8s ${Gbase8s_RecoveryPWD} xpath=//input[@type="password" and @ng-hide="recoveryGbase8s.plaintext"] #恢复策略-密码输入框-Gbase8s ${Gbase8s_RecoveryNext} xpath=//button[@id="dpm_gbase8s_addRecoveryPolicy_fw_1_2_btn"] #恢复目标下一步-Gbase8s ${Gbase8s_changecache} xpath=//input[@id="dialogues_recoveryAdv_pathChangeRe_button"] #恢复高级选项-更改缓存路径-Gbase8s ${Gbase8s_Cancelcache} xpath=//input[@id="cache"] #恢复高级选项--取消缓存-Gbase8s ${Gbase8s_finish} xpath=//*[@id="dpm_gbase8s_addRecoveryPolicy_finish_btn"] #恢复高级选项--点击执行-Gbase8s ${VM_DPM_Addpolicy} xpath=//*[@id="dpm_tab_policy_addPolicy2_btn"] #定时数据保护—添加策略-VMware组件 ${VM_DPM_virtual} xpath=//input[@id="particle" and @ng-model="bkSourceType"] #添加策略-选择备份源类型为虚拟机-VMware组件 ${VM_DPM_Vmname} xpath=//*[@id="treeSearchInput" and @ng-disabled="searchDis"] #添加策略-目标虚拟机—虚拟机名称输入框-VMware ${VM_DPM_Vmnamesearch} xpath=//*[@id="dialogues_bkSource_searchTree_btn"] #添加策略-目标虚拟机—虚拟机搜索-VMware ${VM_DPM_AddSelected} xpath=//button[@id="dialogues_bkSource_addSelected_btn"] #添加策略-目标虚拟机-添加备份虚拟机-VMware ${VM_DPM_fwStep2} xpath=//button[@id="dpm_vmware_addPolicy_fwStep2Vm_btn"] #添加策略-目标虚拟机下一步-VMware ${Recover_data} xpath=//span[contains(text(),"datastore(1)")]/../../td[2] #恢复-DataStore列表-选择-VMware ${Recover_next} xpath=//button[@id="dpm_vmware_addRecoveryPolicy_fw12_btn"] #恢复目标-下一步按钮-VMware ${Recover_finish} xpath=//button[@id="dpm_vmware_addRecoveryPolicy_finish_btn"] #恢复高级选项-完成-VMware ${VM_DPM_executeSure} xpath=//button[@id="dpm_vmware_executePolicy_executePolicy_execute_btn"] #立即执行-确定-VMware ${VM_DPM_RESExpand} xpath=//span[contains(text(),"10.18.32.254")]/../../td[1] #立即执行备份-展开备份虚拟机 ${File_Expand} xpath=//*[@id="addPolicyFileTree"]//span[contains(text(),'C:')]/../../td[1] #Windows-文件备份展开C盘 ${Select_Dedup} xpath=//*[@id="stepCycle_add"]//*[@id="dedup"] #备份集存储--勾选重删 ${S3_Select_Dedup} xpath=//span[text()="数据重删"]/../../../..//div[@ng-show="s3Val"]//input[@id="dedup"] #备份集存储--勾选重删 ${WIN2019_SelectTarget} xpath=//*[@id="addPolicySqlServerTree"]//span[contains(text(),"yy")]/../../td[2] #WIN2019SQL2019-添加备份策略--勾选test数据库 ${All_Day} id=allday # 备份策略—备份高级选项—限速策略—全天选项 ${Confirm_SpeedLimit} id=eps_confirmAdd # 备份策略—备份高级选项—限速策略—确定按钮 ${VMDPM_Delconfirm} xpath=//a[@class="layui-layer-btn1"] #VM定时-策略删除确认按钮 ${Input_MysqlPhy_Inst} id=dumppath # mysql物理弹窗—连接凭据—mysql实例端口输入框 ${Mysql_Phy_Connect_NextStep} id=dpm_mysqlPhysical_addPolicy_step_1_next_btn # mysql物理—新建备份策略—连接凭据—下一步按钮 ${Mysql_Phy_SelectDump} id=dpm_mySqlPhysical_addPolicy_checkConfigpath_checkbox # mysql物理—mysql选项—mysql参数选项—mysql配置文件路径勾选框 ${Mysql_Phy_SelectBinLog} id=dpm_mySqlPhysical_addPolicy_checkboxBinlog_checkbox # mysql物理—mysql选项—mysql参数选项—mysql binlog路径勾选框 ${Mysql_Phy_SelectBin} id=dpm_mySqlPhysical_addPolicy_checkboxscripttype_checkbox # mysql物理—mysql选项—mysql参数选项—mysql bin路径勾选框 ${Mysql_Phy_SelectBackup} id=dpm_mySqlPhysical_addPolicy_checkToolDirectory_checkbox # mysql物理—mysql选项—mysql参数选项—mysql backup路径勾选框 ${Input_SelectDump} id=textFieldConf # mysql物理—mysql选项—mysql参数选项—mysql配置文件路径输入框 ${Input_SelectBinLog} id=textFieldBinlog # mysql物理—mysql选项—mysql参数选项—mysql binlog路径输入框 ${Input_SelectBin} id=textFieldBin # mysql物理—mysql选项—mysql参数选项—mysql bin路径输入框 ${Input_SelectBackup} id=ToolDirectoryDis # mysql物理—mysql选项—mysql参数选项—mysql backup路径输入框 ${Mysql_Phy_SelectConfig_NextStep} id=dpm_mysqlPhysical_addPolicy_step_2_next_btn # mysql物理—mysql选项—mysql参数选项—下一步按钮 ${Mysql_Phy_Storage_NextStep} id=dialogues_addCycleStorage_step3_4_nodb2_next_btn # mysql物理—新建策略—mysql备份集存储—下一步按钮 ${Mysql_Phy_Senior_NextStep} id=dialogues_backupAdvOptions_step4_5_next_btn # mysql物理—新建策略—备份集高级选项—下一步按钮 ${DPM_attribute} xpath=//div[text()="属性"] #定时数据库代理-属性 ${DPM_attribute2} xpath=//span[text()="数据库"] #定时数据库代理-属性-数据库 ${DPM_InstallPath} xpath=//input[@id="dpm_agentInfo_mainTab_paramValue1_input"] #定时数据库代理-属性-数据库-安装路径 ${DPM_UpdateVar} xpath=//*[@id="dpm_agentInfo_mainTab_updateVariable2_btn"] #定时数据库代理-属性-数据库-安装路径-更新按钮 ${DPM_Cancel} xpath=//*[@id="dpm_agentInfo_mainTab_cancel_btn"] #定时数据库代理-属性-数据库-安装路径--关闭按钮 ${MySQL_multichannel} xpath=//*[@ng-model="addMySQL.pipelinenum" and @id="pipelinenum"] #MySQL物理-新建策略-MySQL选项-通道数设置 ${MySQL_channel} xpath=//*[@id="performancelimit2"] #MySQL物理-新建策略-MySQL选项-单通道备份 ${MySQL_connect} xpath=//select[@ng-change="addMySQL.permissionChangeFunc()"] #MySQL物理-新建策略-连接凭据-连接协议下拉框 ${MySQL_connsock} xpath=//select[@ng-change="addMySQL.permissionChangeFunc()"]/option[text()="socket"] #MySQL物理-新建策略-连接凭据-连接协议-socket连接 ${MySQL_Rec} xpath=//select[@ng-change="recoveryMySQL.permissionChangeFunc()"] #MySQL物理恢复-连接协议下拉框 ${MySQL_Recsock} xpath=//select[@ng-change="recoveryMySQL.permissionChangeFunc()"]/option[text()="socket"] #MySQL物理恢复-连接协议-socket连接协议 ${MySQL_Reccheck} xpath=//*[@id="dpm_mySqlPhysical_addRecoveryPolicy_beforeStopMysql_checkbox"] #MySQL物理恢复-MySQL选项-恢复前停止数据库服务 ${MySQL_Recstart} xpath=//*[@id="startcmd"] #MySQL物理恢复-MySQL选项-恢复前启动数据库服务 ${MySQL_Recstop} xpath=//*[@id="stopcmd"] #MySQL物理恢复-MySQL选项-停止数据库服务输入框 ${MySQL_Recstep2} xpath=//*[@id="dpm_mysqlPhysical_addRecoveryPolicy_step_2_next_btn"] #MySQL物理恢复-MySQL选项-下一步按钮 ${MySQL_Recxtra} xpath=//*[@id="xtrabackupPath"] #MySQL物理-多通道备份集恢复--恢复工具路径 ${MySQL_Recbinlog} xpath=//*[@id="dpm_mySqlPhysical_addRecoveryPolicy_checkBinlogPath_checkbox"] #MySQL物理-单通道备份集恢复--恢复工具目录 ${MySQL_Recbinlogpath} xpath=//*[@id="binlogPathDis"] #MySQL物理-单通道备份集恢复--恢复工具路径输入框 ${MysqlPhy_Deduped_Attr} id=dpm_backupset_backUpSetInfo_noEasystack_delete_state_td # mysql物理_备份集详情_重删属性 ${PG_BackupMode_Scheme} xpath=//*[@id="addXML"]//*[@id="addBackupModePostgresql"] #定时数据保护—postgresql--物理备份-备份模式选择 ${PG_BackupMode} xpath=//*[@id="addXML"]//select[@id="addBackupModePostgresql"]/option[2] #定时数据保护-postgresql--物理备份-备份模式选择-流式备份 ${PG_bk_time} xpath=//*[@id="backupSetTable"]//tr[2]/td[contains(text(), "2023-")] #定时数据保护-postgresql最新备份集时间点 ${PG_appointRecover} id=restoreToAppointTime #恢复高级选项-指定时间点——uxdb ${PG_select_timeDi} id=assemblyBeginTime ${Add_Policy_ByTemplate} id=dpm_addPolicy_templateCreate # 定时数据保护栏—新建备份策略—新建方式—模板创建 ${Select_DPM_Template} id=dpm_policySelectTemplate_select # 定时数据保护—新建备份策略—策略模板选择 ${Selected_Template} xpath=//div[contains(text(),"Template") and @class="xm-option-content"] # 定时数据保护栏—新建备份策略—已经创建的策略模板Template ${Template_Finish_Create} id=dialogues_backupAdvOptions_stepLastDefine_btn # 定时数据保护栏—新建备份策略(模板)—备份高级选项—确定创建策略按钮 *** Keywords ***