Index: .idea/shelf/更改1/shelved.patch IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/.idea/shelf/更改1/shelved.patch b/.idea/shelf/更改1/shelved.patch new file mode 100644 --- /dev/null (date 1735806911111) +++ b/.idea/shelf/更改1/shelved.patch (date 1735806911111) @@ -0,0 +1,277 @@ +Index: 运维集控/项目测试/运维标准版/cases/05区域功能/__st__.py +IDEA additional info: +Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP +<+>import sys\r\nimport os\r\nsys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', '..', '..')))\r\nfrom 运维集控.项目测试.运维标准版.lib.base import *\r\n\r\ndef suite_setup():\r\n wd = GSTORE['wd']\r\n user_login(\"admin@pgy\", \"ub@123456\", \"csba\")\r\n enter_system()\r\n enter_manage()\r\n enter_areafuntion_manage()\r\n\r\n# def suite_teardown():\r\n# INFO('进行清除操作')\r\n# wd = GSTORE['wd']\r\n# wd.quit()\r\n\r\n +Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP +<+>UTF-8 +=================================================================== +diff --git a/运维集控/项目测试/运维标准版/cases/05区域功能/__st__.py b/运维集控/项目测试/运维标准版/cases/05区域功能/__st__.py +--- a/运维集控/项目测试/运维标准版/cases/05区域功能/__st__.py (revision b789fc6f1e5a92b7596341cee33aeff2b5a8357e) ++++ b/运维集控/项目测试/运维标准版/cases/05区域功能/__st__.py (date 1735806568100) +@@ -10,8 +10,8 @@ + enter_manage() + enter_areafuntion_manage() + +-# def suite_teardown(): +-# INFO('进行清除操作') +-# wd = GSTORE['wd'] +-# wd.quit() ++def suite_teardown(): ++ INFO('进行清除操作') ++ wd = GSTORE['wd'] ++ wd.quit() + +Index: 运维集控/项目测试/运维标准版/cases/05区域功能/01新增区域功能.py +IDEA additional info: +Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP +<+>import sys\r\nimport os\r\nsys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', '..', '..')))\r\nfrom 运维集控.项目测试.运维标准版.lib.base import *\r\n\r\nclass AreafuntionAdd001:\r\n name = 'Areafuntion_add_001'\r\n def teststeps(self):\r\n wd = GSTORE['wd']\r\n\r\n STEP(1, '点击新增按钮')\r\n areafuntion_add = WebDriverWait(wd, 10).until(\r\n EC.element_to_be_clickable((By.XPATH, \"//div[@class='company-edmit-right']//span[contains(text(),'新增')]\"))\r\n )\r\n areafuntion_add.click()\r\n sleep(2)\r\n\r\n STEP(2, '填写功能名称')\r\n funtion_name = WebDriverWait(wd, 10).until(\r\n EC.presence_of_element_located((By.XPATH, \"//div[@class='el-input el-input--suffix']//input[@placeholder='请输入功能名称']\"))\r\n )\r\n funtion_name.clear()\r\n funtion_name.send_keys(\"测试功能1\")\r\n\r\n STEP(3, '填写排序')\r\n funtion_sort = WebDriverWait(wd, 10).until(\r\n EC.presence_of_element_located((By.XPATH, \"//input[@placeholder='排序']\"))\r\n )\r\n funtion_sort.clear()\r\n funtion_sort.send_keys(\"123\")\r\n\r\n STEP(4, '填写备注')\r\n funtion_remark = WebDriverWait(wd, 10).until(\r\n EC.presence_of_element_located(\r\n (By.XPATH, \"//input[@placeholder='备注']\"))\r\n )\r\n funtion_remark.clear()\r\n funtion_remark.send_keys(\"功能备注测试\")\r\n\r\n STEP(5, '点击确认')\r\n commit = WebDriverWait(wd, 10).until(\r\n EC.element_to_be_clickable((By.XPATH, \"//div[@class='dialog-footer']//span[contains(text(),'确 定')]\"))\r\n )\r\n commit.click()\r\n\r\n STEP(6, '验证是否新增成功')\r\n get_menu = WebDriverWait(wd, 10).until(\r\n EC.presence_of_element_located((By.CSS_SELECTOR, '.el-message__content'))\r\n )\r\n get_menu1 = get_menu.text\r\n CHECK_POINT('检查是否出现成功提示弹窗', get_menu1 == \"操作成功!\")\r\n sleep(2) +Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP +<+>UTF-8 +=================================================================== +diff --git a/运维集控/项目测试/运维标准版/cases/05区域功能/01新增区域功能.py b/运维集控/项目测试/运维标准版/cases/05区域功能/01新增区域功能.py +--- a/运维集控/项目测试/运维标准版/cases/05区域功能/01新增区域功能.py (revision b789fc6f1e5a92b7596341cee33aeff2b5a8357e) ++++ b/运维集控/项目测试/运维标准版/cases/05区域功能/01新增区域功能.py (date 1735806754678) +@@ -3,50 +3,68 @@ + sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', '..', '..'))) + from 运维集控.项目测试.运维标准版.lib.base import * + +-class AreafuntionAdd001: +- name = 'Areafuntion_add_001' ++# 构建 CSV 文件的绝对路径 ++csv_path = os.path.abspath( ++ os.path.join(os.path.dirname(__file__), '..', '..', 'testdata', '05区域功能', '新增区域功能.csv')) ++ ++class AreafuntionAdd: ++ tag = ['新增区域功能'] ++ ddt_cases = read_csv_data(csv_path) + def teststeps(self): + wd = GSTORE['wd'] + ++ #从self.para中解构出数据 ++ name = self.name ++ funtion_name, sort, remark, info= self.para ++ + STEP(1, '点击新增按钮') + areafuntion_add = WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "//div[@class='company-edmit-right']//span[contains(text(),'新增')]")) ++ EC.element_to_be_clickable( ++ (By.XPATH, "//div[@class='company-edmit-right']//span[contains(text(),'新增')]")) + ) + areafuntion_add.click() +- sleep(2) ++ sleep(1) + +- STEP(2, '填写功能名称') +- funtion_name = WebDriverWait(wd, 10).until( +- EC.presence_of_element_located((By.XPATH, "//div[@class='el-input el-input--suffix']//input[@placeholder='请输入功能名称']")) ++ STEP(2, f'填写功能名称:{funtion_name}') ++ funtion_name_input = WebDriverWait(wd, 10).until( ++ EC.presence_of_element_located( ++ (By.XPATH, "//div[@class='el-input el-input--suffix']//input[@placeholder='请输入功能名称']")) + ) +- funtion_name.clear() +- funtion_name.send_keys("测试功能1") ++ funtion_name_input.clear() ++ funtion_name_input.send_keys(funtion_name) + +- STEP(3, '填写排序') ++ STEP(3, f'填写排序:{sort}') + funtion_sort = WebDriverWait(wd, 10).until( +- EC.presence_of_element_located((By.XPATH, "//input[@placeholder='排序']")) ++ EC.presence_of_element_located( ++ (By.XPATH, "//input[@placeholder='排序']")) + ) + funtion_sort.clear() +- funtion_sort.send_keys("123") ++ funtion_sort.send_keys(sort) + +- STEP(4, '填写备注') ++ STEP(4, f'填写备注:{remark}') + funtion_remark = WebDriverWait(wd, 10).until( + EC.presence_of_element_located( + (By.XPATH, "//input[@placeholder='备注']")) + ) + funtion_remark.clear() +- funtion_remark.send_keys("功能备注测试") ++ funtion_remark.send_keys(remark) + + STEP(5, '点击确认') + commit = WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "//div[@class='dialog-footer']//span[contains(text(),'确 定')]")) ++ EC.element_to_be_clickable( ++ (By.XPATH, "//div[@class='dialog-footer']//span[contains(text(),'确 定')]")) + ) + commit.click() + + STEP(6, '验证是否新增成功') + get_menu = WebDriverWait(wd, 10).until( +- EC.presence_of_element_located((By.CSS_SELECTOR, '.el-message__content')) ++ EC.visibility_of_element_located( ++ (By.CSS_SELECTOR, '.el-message__content')) + ) + get_menu1 = get_menu.text +- CHECK_POINT('检查是否出现成功提示弹窗', get_menu1 == "操作成功!") +- sleep(2) +\ No newline at end of file ++ CHECK_POINT('检查是否出现成功提示弹窗', get_menu1 == info) ++ ++ # 截图并保存 ++ SELENIUM_LOG_SCREEN(wd, "50%") ++ sleep(1) ++ wd.refresh() +\ No newline at end of file +Index: 运维集控/项目测试/运维标准版/cases/05区域功能/03删除区域功能.py +IDEA additional info: +Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP +<+>import sys\r\nimport os\r\nsys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', '..', '..')))\r\nfrom 运维集控.项目测试.运维标准版.lib.base import *\r\n\r\nclass areafuntionDel001:\r\n name = 'areafuntion_del_001'\r\n def teststeps(self):\r\n wd = GSTORE['wd']\r\n\r\n STEP(1, '搜索对应的区域功能')\r\n areafuntion_search= WebDriverWait(wd, 10).until(\r\n EC.element_to_be_clickable((By.XPATH, \"(//input[contains(@placeholder,'请输入区域功能')])[1]\"))\r\n )\r\n areafuntion_search.clear()\r\n areafuntion_search.send_keys(\"修改-测试功能1\")\r\n\r\n STEP(2, '勾选区域功能')\r\n areafuntion_select = WebDriverWait(wd, 10).until(\r\n EC.element_to_be_clickable((By.XPATH, \"(//span[contains(@class,'el-checkbox__inner')])[2]\"))\r\n )\r\n areafuntion_select.click()\r\n\r\n STEP(3, '点击删除按钮')\r\n areafuntion_mod = WebDriverWait(wd, 10).until(\r\n EC.element_to_be_clickable((By.XPATH, \"//div[@class='company-edmit-right']//span[contains(text(),'删除')]\"))\r\n )\r\n areafuntion_mod.click()\r\n sleep(2)\r\n\r\n STEP(4, '点击确认')\r\n commit = WebDriverWait(wd, 10).until(\r\n EC.element_to_be_clickable((By.XPATH, \"//div[@class='dialog-footer']//span[contains(text(),'确 定')]\"))\r\n )\r\n commit.click()\r\n\r\n STEP(5, '验证是否修改成功')\r\n get_menu = WebDriverWait(wd, 10).until(\r\n EC.presence_of_element_located((By.CSS_SELECTOR, '.el-message__content'))\r\n )\r\n get_menu1 = get_menu.text\r\n CHECK_POINT('检查是否出现成功提示弹窗', get_menu1 == \"操作成功!\")\r\n sleep(2) +Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP +<+>UTF-8 +=================================================================== +diff --git a/运维集控/项目测试/运维标准版/cases/05区域功能/03删除区域功能.py b/运维集控/项目测试/运维标准版/cases/05区域功能/03删除区域功能.py +--- a/运维集控/项目测试/运维标准版/cases/05区域功能/03删除区域功能.py (revision b789fc6f1e5a92b7596341cee33aeff2b5a8357e) ++++ b/运维集控/项目测试/运维标准版/cases/05区域功能/03删除区域功能.py (date 1735806794306) +@@ -10,34 +10,43 @@ + + STEP(1, '搜索对应的区域功能') + areafuntion_search= WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "(//input[contains(@placeholder,'请输入区域功能')])[1]")) ++ EC.element_to_be_clickable( ++ (By.XPATH, "//input[@placeholder='请输入功能名称']")) + ) + areafuntion_search.clear() + areafuntion_search.send_keys("修改-测试功能1") + + STEP(2, '勾选区域功能') + areafuntion_select = WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "(//span[contains(@class,'el-checkbox__inner')])[2]")) ++ EC.element_to_be_clickable( ++ (By.XPATH, "(//span[@class='el-checkbox__inner'])[2]")) + ) + areafuntion_select.click() + + STEP(3, '点击删除按钮') + areafuntion_mod = WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "//div[@class='company-edmit-right']//span[contains(text(),'删除')]")) ++ EC.element_to_be_clickable( ++ (By.XPATH, "//span[contains(text(),'删除')]")) + ) + areafuntion_mod.click() +- sleep(2) ++ sleep(1) + + STEP(4, '点击确认') + commit = WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "//div[@class='dialog-footer']//span[contains(text(),'确 定')]")) ++ EC.element_to_be_clickable( ++ (By.XPATH, "(//span[contains(text(),'确 定')])[3]")) + ) + commit.click() + + STEP(5, '验证是否修改成功') + get_menu = WebDriverWait(wd, 10).until( +- EC.presence_of_element_located((By.CSS_SELECTOR, '.el-message__content')) ++ EC.visibility_of_element_located( ++ (By.CSS_SELECTOR, '.el-message__content')) + ) + get_menu1 = get_menu.text + CHECK_POINT('检查是否出现成功提示弹窗', get_menu1 == "操作成功!") +- sleep(2) +\ No newline at end of file ++ ++ # 截图并保存 ++ SELENIUM_LOG_SCREEN(wd, "50%") ++ sleep(1) ++ wd.refresh() +\ No newline at end of file +Index: 运维集控/项目测试/运维标准版/cases/05区域功能/02编辑区域功能.py +IDEA additional info: +Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP +<+>import sys\r\nimport os\r\nsys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', '..', '..')))\r\nfrom 运维集控.项目测试.运维标准版.lib.base import *\r\n\r\nclass areafuntionMod001:\r\n name = 'areafuntion_mod_001'\r\n def teststeps(self):\r\n wd = GSTORE['wd']\r\n\r\n STEP(1, '搜索对应的区域功能')\r\n areafuntion_search= WebDriverWait(wd, 10).until(\r\n EC.element_to_be_clickable((By.XPATH, \"(//input[contains(@placeholder,'请输入区域功能')])[1]\"))\r\n )\r\n areafuntion_search.clear()\r\n areafuntion_search.send_keys(\"测试功能1\")\r\n\r\n STEP(2, '勾选区域功能')\r\n areafuntion_select = WebDriverWait(wd, 10).until(\r\n EC.element_to_be_clickable((By.XPATH, \"(//span[contains(@class,'el-checkbox__inner')])[2]\"))\r\n )\r\n areafuntion_select.click()\r\n\r\n STEP(3, '点击编辑按钮')\r\n areafuntion_mod = WebDriverWait(wd, 10).until(\r\n EC.element_to_be_clickable((By.XPATH, \"//div[@class='company-edmit-right']//span[contains(text(),'编辑')]\"))\r\n )\r\n areafuntion_mod.click()\r\n sleep(2)\r\n\r\n STEP(4, '修改区域功能内容')\r\n funtion_name = WebDriverWait(wd, 10).until(\r\n EC.presence_of_element_located((By.XPATH, \"//div[@class='el-input el-input--suffix']//input[@placeholder='请输入区域功能']\"))\r\n )\r\n funtion_name.clear()\r\n funtion_name.send_keys(\"修改-测试功能1\")\r\n\r\n STEP(5, '修改排序')\r\n funtion_sort = WebDriverWait(wd, 10).until(\r\n EC.presence_of_element_located((By.XPATH, \"//input[@placeholder='排序']\"))\r\n )\r\n funtion_sort.clear()\r\n funtion_sort.send_keys(\"999\")\r\n\r\n STEP(6, '修改备注信息')\r\n funtion_remark = WebDriverWait(wd, 10).until(\r\n EC.presence_of_element_located(\r\n (By.XPATH, \"//input[@placeholder='备注']\"))\r\n )\r\n funtion_remark.clear()\r\n funtion_remark.send_keys(\"修改-功能备注\")\r\n\r\n STEP(7, '点击确认')\r\n commit = WebDriverWait(wd, 10).until(\r\n EC.element_to_be_clickable((By.XPATH, \"//div[@class='dialog-footer']//span[contains(text(),'确 定')]\"))\r\n )\r\n commit.click()\r\n\r\n STEP(8, '验证是否修改成功')\r\n get_menu = WebDriverWait(wd, 10).until(\r\n EC.presence_of_element_located((By.CSS_SELECTOR, '.el-message__content'))\r\n )\r\n get_menu1 = get_menu.text\r\n CHECK_POINT('检查是否出现成功提示弹窗', get_menu1 == \"操作成功!\")\r\n sleep(2) +Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP +<+>UTF-8 +=================================================================== +diff --git a/运维集控/项目测试/运维标准版/cases/05区域功能/02编辑区域功能.py b/运维集控/项目测试/运维标准版/cases/05区域功能/02编辑区域功能.py +--- a/运维集控/项目测试/运维标准版/cases/05区域功能/02编辑区域功能.py (revision b789fc6f1e5a92b7596341cee33aeff2b5a8357e) ++++ b/运维集控/项目测试/运维标准版/cases/05区域功能/02编辑区域功能.py (date 1735806777108) +@@ -3,41 +3,46 @@ + sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', '..', '..'))) + from 运维集控.项目测试.运维标准版.lib.base import * + +-class areafuntionMod001: +- name = 'areafuntion_mod_001' ++class areafuntionMod: ++ name = 'areafuntion_mod' + def teststeps(self): + wd = GSTORE['wd'] + + STEP(1, '搜索对应的区域功能') + areafuntion_search= WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "(//input[contains(@placeholder,'请输入区域功能')])[1]")) ++ EC.element_to_be_clickable( ++ (By.XPATH, "//input[@placeholder='请输入功能名称']")) + ) + areafuntion_search.clear() +- areafuntion_search.send_keys("测试功能1") ++ areafuntion_search.send_keys("语音翻译") + + STEP(2, '勾选区域功能') + areafuntion_select = WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "(//span[contains(@class,'el-checkbox__inner')])[2]")) ++ EC.element_to_be_clickable( ++ (By.XPATH, "(//span[@class='el-checkbox__inner'])[2]")) + ) + areafuntion_select.click() + + STEP(3, '点击编辑按钮') + areafuntion_mod = WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "//div[@class='company-edmit-right']//span[contains(text(),'编辑')]")) ++ EC.element_to_be_clickable( ++ (By.XPATH, "//span[contains(text(),'编辑')]")) + ) + areafuntion_mod.click() +- sleep(2) ++ sleep(1) + + STEP(4, '修改区域功能内容') + funtion_name = WebDriverWait(wd, 10).until( +- EC.presence_of_element_located((By.XPATH, "//div[@class='el-input el-input--suffix']//input[@placeholder='请输入区域功能']")) ++ EC.presence_of_element_located( ++ (By.XPATH, "//div[contains(@class,'dialog-input')]//input[contains(@placeholder,'请输入功能名称')]")) + ) + funtion_name.clear() + funtion_name.send_keys("修改-测试功能1") + + STEP(5, '修改排序') + funtion_sort = WebDriverWait(wd, 10).until( +- EC.presence_of_element_located((By.XPATH, "//input[@placeholder='排序']")) ++ EC.presence_of_element_located( ++ (By.XPATH, "//input[contains(@placeholder,'排序')]")) + ) + funtion_sort.clear() + funtion_sort.send_keys("999") +@@ -52,14 +57,20 @@ + + STEP(7, '点击确认') + commit = WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "//div[@class='dialog-footer']//span[contains(text(),'确 定')]")) ++ EC.element_to_be_clickable( ++ (By.XPATH, "(//span[contains(text(),'确 定')])[2]")) + ) + commit.click() + + STEP(8, '验证是否修改成功') + get_menu = WebDriverWait(wd, 10).until( +- EC.presence_of_element_located((By.CSS_SELECTOR, '.el-message__content')) ++ EC.visibility_of_element_located( ++ (By.CSS_SELECTOR, '.el-message__content')) + ) + get_menu1 = get_menu.text + CHECK_POINT('检查是否出现成功提示弹窗', get_menu1 == "操作成功!") +- sleep(2) +\ No newline at end of file ++ ++ # 截图并保存 ++ SELENIUM_LOG_SCREEN(wd, "50%") ++ sleep(1) ++ wd.refresh() +\ No newline at end of file Index: .idea/shelf/.xml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/.idea/shelf/.xml b/.idea/shelf/.xml new file mode 100644 --- /dev/null (date 1735807179362) +++ b/.idea/shelf/.xml (date 1735807179362) @@ -0,0 +1,4 @@ + + \ No newline at end of file Index: .idea/shelf/1.xml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/.idea/shelf/1.xml b/.idea/shelf/1.xml new file mode 100644 --- /dev/null (date 1735807179364) +++ b/.idea/shelf/1.xml (date 1735807179364) @@ -0,0 +1,4 @@ + + \ No newline at end of file Index: .idea/shelf/更改/shelved.patch IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/.idea/shelf/更改/shelved.patch b/.idea/shelf/更改/shelved.patch new file mode 100644 --- /dev/null (date 1735806491572) +++ b/.idea/shelf/更改/shelved.patch (date 1735806491572) @@ -0,0 +1,1628 @@ +Index: 运维集控/项目测试/运维标准版/cases/05区域功能/01新增区域功能.py +=================================================================== +diff --git a/运维集控/项目测试/运维标准版/cases/05区域功能/01新增区域功能.py b/运维集控/项目测试/运维标准版/cases/05区域功能/01新增区域功能.py +deleted file mode 100644 +--- a/运维集控/项目测试/运维标准版/cases/05区域功能/01新增区域功能.py (revision b789fc6f1e5a92b7596341cee33aeff2b5a8357e) ++++ /dev/null (revision b789fc6f1e5a92b7596341cee33aeff2b5a8357e) +@@ -1,52 +0,0 @@ +-import sys +-import os +-sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', '..', '..'))) +-from 运维集控.项目测试.运维标准版.lib.base import * +- +-class AreafuntionAdd001: +- name = 'Areafuntion_add_001' +- def teststeps(self): +- wd = GSTORE['wd'] +- +- STEP(1, '点击新增按钮') +- areafuntion_add = WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "//div[@class='company-edmit-right']//span[contains(text(),'新增')]")) +- ) +- areafuntion_add.click() +- sleep(2) +- +- STEP(2, '填写功能名称') +- funtion_name = WebDriverWait(wd, 10).until( +- EC.presence_of_element_located((By.XPATH, "//div[@class='el-input el-input--suffix']//input[@placeholder='请输入功能名称']")) +- ) +- funtion_name.clear() +- funtion_name.send_keys("测试功能1") +- +- STEP(3, '填写排序') +- funtion_sort = WebDriverWait(wd, 10).until( +- EC.presence_of_element_located((By.XPATH, "//input[@placeholder='排序']")) +- ) +- funtion_sort.clear() +- funtion_sort.send_keys("123") +- +- STEP(4, '填写备注') +- funtion_remark = WebDriverWait(wd, 10).until( +- EC.presence_of_element_located( +- (By.XPATH, "//input[@placeholder='备注']")) +- ) +- funtion_remark.clear() +- funtion_remark.send_keys("功能备注测试") +- +- STEP(5, '点击确认') +- commit = WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "//div[@class='dialog-footer']//span[contains(text(),'确 定')]")) +- ) +- commit.click() +- +- STEP(6, '验证是否新增成功') +- get_menu = WebDriverWait(wd, 10).until( +- EC.presence_of_element_located((By.CSS_SELECTOR, '.el-message__content')) +- ) +- get_menu1 = get_menu.text +- CHECK_POINT('检查是否出现成功提示弹窗', get_menu1 == "操作成功!") +- sleep(2) +\ No newline at end of file +Index: 运维集控/项目测试/运维标准版/cases/05区域功能/02编辑区域功能.py +=================================================================== +diff --git a/运维集控/项目测试/运维标准版/cases/05区域功能/02编辑区域功能.py b/运维集控/项目测试/运维标准版/cases/05区域功能/02编辑区域功能.py +deleted file mode 100644 +--- a/运维集控/项目测试/运维标准版/cases/05区域功能/02编辑区域功能.py (revision b789fc6f1e5a92b7596341cee33aeff2b5a8357e) ++++ /dev/null (revision b789fc6f1e5a92b7596341cee33aeff2b5a8357e) +@@ -1,65 +0,0 @@ +-import sys +-import os +-sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', '..', '..'))) +-from 运维集控.项目测试.运维标准版.lib.base import * +- +-class areafuntionMod001: +- name = 'areafuntion_mod_001' +- def teststeps(self): +- wd = GSTORE['wd'] +- +- STEP(1, '搜索对应的区域功能') +- areafuntion_search= WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "(//input[contains(@placeholder,'请输入区域功能')])[1]")) +- ) +- areafuntion_search.clear() +- areafuntion_search.send_keys("测试功能1") +- +- STEP(2, '勾选区域功能') +- areafuntion_select = WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "(//span[contains(@class,'el-checkbox__inner')])[2]")) +- ) +- areafuntion_select.click() +- +- STEP(3, '点击编辑按钮') +- areafuntion_mod = WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "//div[@class='company-edmit-right']//span[contains(text(),'编辑')]")) +- ) +- areafuntion_mod.click() +- sleep(2) +- +- STEP(4, '修改区域功能内容') +- funtion_name = WebDriverWait(wd, 10).until( +- EC.presence_of_element_located((By.XPATH, "//div[@class='el-input el-input--suffix']//input[@placeholder='请输入区域功能']")) +- ) +- funtion_name.clear() +- funtion_name.send_keys("修改-测试功能1") +- +- STEP(5, '修改排序') +- funtion_sort = WebDriverWait(wd, 10).until( +- EC.presence_of_element_located((By.XPATH, "//input[@placeholder='排序']")) +- ) +- funtion_sort.clear() +- funtion_sort.send_keys("999") +- +- STEP(6, '修改备注信息') +- funtion_remark = WebDriverWait(wd, 10).until( +- EC.presence_of_element_located( +- (By.XPATH, "//input[@placeholder='备注']")) +- ) +- funtion_remark.clear() +- funtion_remark.send_keys("修改-功能备注") +- +- STEP(7, '点击确认') +- commit = WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "//div[@class='dialog-footer']//span[contains(text(),'确 定')]")) +- ) +- commit.click() +- +- STEP(8, '验证是否修改成功') +- get_menu = WebDriverWait(wd, 10).until( +- EC.presence_of_element_located((By.CSS_SELECTOR, '.el-message__content')) +- ) +- get_menu1 = get_menu.text +- CHECK_POINT('检查是否出现成功提示弹窗', get_menu1 == "操作成功!") +- sleep(2) +\ No newline at end of file +Index: 运维集控/项目测试/运维标准版/cases/05区域功能/03删除区域功能.py +=================================================================== +diff --git a/运维集控/项目测试/运维标准版/cases/05区域功能/03删除区域功能.py b/运维集控/项目测试/运维标准版/cases/05区域功能/03删除区域功能.py +deleted file mode 100644 +--- a/运维集控/项目测试/运维标准版/cases/05区域功能/03删除区域功能.py (revision b789fc6f1e5a92b7596341cee33aeff2b5a8357e) ++++ /dev/null (revision b789fc6f1e5a92b7596341cee33aeff2b5a8357e) +@@ -1,43 +0,0 @@ +-import sys +-import os +-sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', '..', '..'))) +-from 运维集控.项目测试.运维标准版.lib.base import * +- +-class areafuntionDel001: +- name = 'areafuntion_del_001' +- def teststeps(self): +- wd = GSTORE['wd'] +- +- STEP(1, '搜索对应的区域功能') +- areafuntion_search= WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "(//input[contains(@placeholder,'请输入区域功能')])[1]")) +- ) +- areafuntion_search.clear() +- areafuntion_search.send_keys("修改-测试功能1") +- +- STEP(2, '勾选区域功能') +- areafuntion_select = WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "(//span[contains(@class,'el-checkbox__inner')])[2]")) +- ) +- areafuntion_select.click() +- +- STEP(3, '点击删除按钮') +- areafuntion_mod = WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "//div[@class='company-edmit-right']//span[contains(text(),'删除')]")) +- ) +- areafuntion_mod.click() +- sleep(2) +- +- STEP(4, '点击确认') +- commit = WebDriverWait(wd, 10).until( +- EC.element_to_be_clickable((By.XPATH, "//div[@class='dialog-footer']//span[contains(text(),'确 定')]")) +- ) +- commit.click() +- +- STEP(5, '验证是否修改成功') +- get_menu = WebDriverWait(wd, 10).until( +- EC.presence_of_element_located((By.CSS_SELECTOR, '.el-message__content')) +- ) +- get_menu1 = get_menu.text +- CHECK_POINT('检查是否出现成功提示弹窗', get_menu1 == "操作成功!") +- sleep(2) +\ No newline at end of file +Index: .idea/shelf/_2024_12_25_15_22____.xml +=================================================================== +diff --git a/.idea/shelf/_2024_12_25_15_22____.xml b/.idea/shelf/_2024_12_25_15_22____.xml +deleted file mode 100644 +--- a/.idea/shelf/_2024_12_25_15_22____.xml (revision b789fc6f1e5a92b7596341cee33aeff2b5a8357e) ++++ /dev/null (revision b789fc6f1e5a92b7596341cee33aeff2b5a8357e) +@@ -1,4 +0,0 @@ +- +- +\ No newline at end of file +Index: .idea/shelf/_2024_12_25_15_28____.xml +=================================================================== +diff --git a/.idea/shelf/_2024_12_25_15_28____.xml b/.idea/shelf/_2024_12_25_15_28____.xml +deleted file mode 100644 +--- a/.idea/shelf/_2024_12_25_15_28____.xml (revision b789fc6f1e5a92b7596341cee33aeff2b5a8357e) ++++ /dev/null (revision b789fc6f1e5a92b7596341cee33aeff2b5a8357e) +@@ -1,4 +0,0 @@ +- +- +\ No newline at end of file +Index: .idea/shelf/在进行更新之前于_2024_12_25_15_22_取消提交了更改_[更改]/shelved.patch +=================================================================== +diff --git a/.idea/shelf/在进行更新之前于_2024_12_25_15_22_取消提交了更改_[更改]/shelved.patch b/.idea/shelf/在进行更新之前于_2024_12_25_15_22_取消提交了更改_[更改]/shelved.patch +deleted file mode 100644 +--- a/.idea/shelf/在进行更新之前于_2024_12_25_15_22_取消提交了更改_[更改]/shelved.patch (revision b789fc6f1e5a92b7596341cee33aeff2b5a8357e) ++++ /dev/null (revision b789fc6f1e5a92b7596341cee33aeff2b5a8357e) +@@ -1,66 +0,0 @@ +-Index: .idea/workspace.xml +-IDEA additional info: +-Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP +-<+>\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {\r\n "associatedIndex": 6\r\n}\r\n \r\n \r\n \r\n {\r\n "keyToString": {\r\n "RunOnceActivity.ShowReadmeOnStart": "true",\r\n "git-widget-placeholder": "develop",\r\n "last_opened_file_path": "C:/Users/EDY/Desktop/git/ubains-module-test/ubains-module-test"\r\n }\r\n}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n 1735027895112\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n +-Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP +-<+>UTF-8 +-=================================================================== +-diff --git a/.idea/workspace.xml b/.idea/workspace.xml +---- a/.idea/workspace.xml (revision b57d56b8584255c28e848a0ed183e36a51541a57) +-+++ b/.idea/workspace.xml (date 1735111282242) +-@@ -4,11 +4,7 @@ +-