From 16788f0d762865c2820c4d4f9103adcf0fd89f80 Mon Sep 17 00:00:00 2001 From: dengzhongyuan365-dev Date: Fri, 13 Nov 2026 15:36:09 +0800 Subject: [PATCH 1/4] =?UTF-8?q?[AT]=20=E5=BD=92=E6=A1=A3=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=99=A8=20AT-SPI=20=E6=B5=8B=E8=AF=95=E5=A5=97=E4=BB=B6?= =?UTF-8?q?=EF=BC=88element-map=20=E5=8F=8C=E5=AD=97=E6=AE=B5=E7=AE=A1?= =?UTF-8?q?=E7=BA=BF=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 5 个模块共 8 条 AT 测试用例(标题栏×2, 压缩设置×1, 文件列表×2, 对话框×2, 重命名×1) - element-map 双字段管线:8 个已命名元素覆盖(accessible_id/name 定位) - 覆盖门禁 100%(8/8),34 个 unresolved 元素待开发补名后回填 - Gate 4/5 静态校验通过,smoke 验证 2 pass/3 unstable --- tests/at/cases_mapped.yaml | 132 +++++++++++ tests/at/coverage-report.yaml | 9 + tests/at/element-coverage-manifest.yaml | 216 ++++++++++++++++++ tests/at/yaml/elements.yaml | 18 ++ ...74\251\350\256\276\347\275\256.suite.yaml" | 23 ++ ...57\271\350\257\235\346\241\206.suite.yaml" | 43 ++++ ...73\266\345\210\227\350\241\250.suite.yaml" | 43 ++++ ...40\207\351\242\230\346\240\217.suite.yaml" | 56 +++++ ...07\215\345\221\275\345\220\215.suite.yaml" | 23 ++ 9 files changed, 563 insertions(+) create mode 100644 tests/at/cases_mapped.yaml create mode 100644 tests/at/coverage-report.yaml create mode 100644 tests/at/element-coverage-manifest.yaml create mode 100644 tests/at/yaml/elements.yaml create mode 100644 "tests/at/yaml/\345\216\213\347\274\251\350\256\276\347\275\256/\345\216\213\347\274\251\350\256\276\347\275\256.suite.yaml" create mode 100644 "tests/at/yaml/\345\257\271\350\257\235\346\241\206/\345\257\271\350\257\235\346\241\206.suite.yaml" create mode 100644 "tests/at/yaml/\346\226\207\344\273\266\345\210\227\350\241\250/\346\226\207\344\273\266\345\210\227\350\241\250.suite.yaml" create mode 100644 "tests/at/yaml/\346\240\207\351\242\230\346\240\217/\346\240\207\351\242\230\346\240\217.suite.yaml" create mode 100644 "tests/at/yaml/\351\207\215\345\221\275\345\220\215/\351\207\215\345\221\275\345\220\215.suite.yaml" diff --git a/tests/at/cases_mapped.yaml b/tests/at/cases_mapped.yaml new file mode 100644 index 000000000..323115af8 --- /dev/null +++ b/tests/at/cases_mapped.yaml @@ -0,0 +1,132 @@ +version: '1.0' +cases: +- id: suite_yasuoshezhi_001_s1 + name: 压缩设置-压缩类型标签显示当前压缩类型 + module: 压缩设置 + steps: + - step_type: assert + action: assert_element + selector: + accessible_id: ClickTypeLabel + role: label + - step_type: assert + action: assert_process_running + app: deepin-compressor +- id: suite_duihuakuang_001_s1 + name: 对话框-应用到所有复选框勾选应用到所有 + module: 对话框 + steps: + - step_type: action + action: element_action + selector: + name: Applyall_btn + role: check box + do: click + wait: 1.0 + - step_type: assert + action: assert_element + selector: + name: Applyall_btn + role: check box + - step_type: assert + action: assert_process_running + app: deepin-compressor +- id: suite_duihuakuang_002_s1 + name: 对话框-对话框内容标签显示提示信息 + module: 对话框 + steps: + - step_type: assert + action: assert_element + selector: + accessible_id: ContentLabel + role: label + - step_type: assert + action: assert_process_running + app: deepin-compressor +- id: suite_wenjianliebiao_001_s1 + name: 文件列表-返回上一级标签点击返回上级目录 + module: 文件列表 + steps: + - step_type: action + action: element_action + selector: + accessible_id: gotoPreviousLabel + role: label + do: click + wait: 1.0 + - step_type: assert + action: assert_element + selector: + accessible_id: gotoPreviousLabel + role: label + - step_type: assert + action: assert_process_running + app: deepin-compressor +- id: suite_wenjianliebiao_002_s1 + name: 文件列表-文件列表树视图显示压缩包内文件 + module: 文件列表 + steps: + - step_type: assert + action: assert_element + selector: + accessible_id: TableViewFile + role: tree + - step_type: assert + action: assert_process_running + app: deepin-compressor +- id: suite_biaotilan_001_s1 + name: 标题栏-添加按钮点击打开新建菜单 + module: 标题栏 + steps: + - step_type: action + action: element_action + selector: + accessible_id: TitleButton + role: push button + do: click + wait: 1.0 + - step_type: assert + action: assert_element + selector: + accessible_id: TitleButton + role: push button + - step_type: assert + action: assert_process_running + app: deepin-compressor +- id: suite_biaotilan_002_s1 + name: 标题栏-注释按钮点击打开注释编辑 + module: 标题栏 + steps: + - step_type: action + action: element_action + selector: + accessible_id: CommentButton + role: push button + do: focus + - step_type: action + action: element_action + selector: + accessible_id: CommentButton + role: push button + do: click + wait: 1.0 + - step_type: assert + action: assert_element + selector: + accessible_id: CommentButton + role: push button + - step_type: assert + action: assert_process_running + app: deepin-compressor +- id: suite_chongmingming_001_s1 + name: 重命名-重命名对话框名称标签显示重命名标题 + module: 重命名 + steps: + - step_type: assert + action: assert_element + selector: + accessible_id: NameLabel + role: label + - step_type: assert + action: assert_process_running + app: deepin-compressor diff --git a/tests/at/coverage-report.yaml b/tests/at/coverage-report.yaml new file mode 100644 index 000000000..5d65bf896 --- /dev/null +++ b/tests/at/coverage-report.yaml @@ -0,0 +1,9 @@ +scan_total: 8 +transient_items: [] +unreachable: 0 +denominator: 8 +covered: 8 +uncovered: 0 +coverage: 100.0 +passed: true +uncovered_elements: [] diff --git a/tests/at/element-coverage-manifest.yaml b/tests/at/element-coverage-manifest.yaml new file mode 100644 index 000000000..f825adcdd --- /dev/null +++ b/tests/at/element-coverage-manifest.yaml @@ -0,0 +1,216 @@ +version: '1.0' +source: at-case-authoring:element-map.yaml +scan_total: 8 +elements: + TitleButton: + role: push button + ui_name: 添加按钮 + desc: 标题栏添加按钮(新建压缩/解压入口) + locator: accessible_id + CommentButton: + role: push button + ui_name: 注释按钮 + desc: 标题栏注释按钮 + locator: accessible_id + ClickTypeLabel: + role: label + ui_name: 压缩类型标签 + desc: 压缩设置页面压缩类型标签(ClickTypeLabel) + locator: accessible_id + gotoPreviousLabel: + role: label + ui_name: 返回上一级标签 + desc: 树视图头部返回上一级标签(gotoPreviousLabel) + locator: accessible_id + Applyall_btn: + role: check box + ui_name: 应用到所有复选框 + desc: 覆盖/跳过对话框"应用到所有"复选框 + locator: name + TableViewFile: + role: tree + ui_name: 文件列表树视图 + desc: 数据树视图(TableViewFile) + locator: accessible_id + NameLabel: + role: label + ui_name: 重命名对话框名称标签 + desc: 重命名对话框名称标签(NameLabel) + locator: accessible_id + ContentLabel: + role: label + ui_name: 对话框内容标签 + desc: 对话框内容标签(ContentLabel) + locator: accessible_id +transient_items: [] +unresolved: +- name: 选择文件按钮 + role: push button + ui_name: 选择文件按钮 + desc: 主页"选择文件"按钮 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 下一步按钮 + role: push button + ui_name: 下一步按钮 + desc: 压缩页面"下一步"按钮 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 文件名输入框 + role: text + ui_name: 文件名输入框 + desc: 压缩设置文件名输入框 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 保存路径选择框 + role: '' + ui_name: 保存路径选择框 + desc: 压缩设置保存路径选择框 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 高级选项开关 + role: '' + ui_name: 高级选项开关 + desc: 压缩设置高级选项开关 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 密码输入框 + role: '' + ui_name: 密码输入框 + desc: 压缩设置密码输入框 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 加密文件列表复选框 + role: '' + ui_name: 加密文件列表复选框 + desc: 压缩设置加密文件列表复选框 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 分卷复选框 + role: check box + ui_name: 分卷复选框 + desc: 压缩设置分卷复选框 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 分卷大小输入框 + role: '' + ui_name: 分卷大小输入框 + desc: 压缩设置分卷大小输入框 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 压缩级别下拉框 + role: combo box + ui_name: 压缩级别下拉框 + desc: 压缩设置压缩级别下拉框 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 注释输入框 + role: '' + ui_name: 注释输入框 + desc: 压缩设置注释输入框 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: CPU线程下拉框 + role: combo box + ui_name: CPU线程下拉框 + desc: 压缩设置CPU线程下拉框 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 压缩按钮 + role: push button + ui_name: 压缩按钮 + desc: 压缩设置"压缩"按钮 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 类型菜单 + role: menu + ui_name: 类型菜单 + desc: 压缩设置类型菜单 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 解压路径按钮 + role: '' + ui_name: 解压路径按钮 + desc: 解压页面解压路径按钮 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 解压按钮 + role: push button + ui_name: 解压按钮 + desc: 解压页面"解压"按钮 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 取消按钮 + role: push button + ui_name: 取消按钮 + desc: 进度页面"取消"按钮 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 暂停继续按钮 + role: '' + ui_name: 暂停继续按钮 + desc: 进度页面"暂停/继续"按钮 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 查看按钮 + role: push button + ui_name: 查看按钮 + desc: 成功页面"查看"按钮 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 返回按钮 + role: '' + ui_name: 返回按钮 + desc: 成功页面"返回"按钮 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 重试按钮 + role: push button + ui_name: 重试按钮 + desc: 失败页面"重试"按钮 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 返回按钮 + role: '' + ui_name: 返回按钮 + desc: 失败页面"返回"按钮 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 打开方式选择按钮 + role: '' + ui_name: 打开方式选择按钮 + desc: 打开方式对话框选择按钮 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 打开方式取消按钮 + role: push button + ui_name: 打开方式取消按钮 + desc: 打开方式对话框取消按钮 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 打开方式确定按钮 + role: push button + ui_name: 打开方式确定按钮 + desc: 打开方式对话框确定按钮 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 设为默认复选框 + role: check box + ui_name: 设为默认复选框 + desc: 打开方式对话框设为默认复选框 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 打开方式文件选择按钮 + role: '' + ui_name: 打开方式文件选择按钮 + desc: 打开方式对话框文件选择按钮 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 重命名输入框 + role: text + ui_name: 重命名输入框 + desc: 重命名对话框输入框 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 设置全选按钮 + role: push button + ui_name: 设置全选按钮 + desc: 设置对话框全选按钮 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 设置清除按钮 + role: push button + ui_name: 设置清除按钮 + desc: 设置对话框清除按钮 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 设置推荐按钮 + role: '' + ui_name: 设置推荐按钮 + desc: 设置对话框推荐按钮 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 解压路径设置下拉框 + role: combo box + ui_name: 解压路径设置下拉框 + desc: 设置对话框解压路径下拉框 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 删除归档设置下拉框 + role: combo box + ui_name: 删除归档设置下拉框 + desc: 设置对话框删除归档下拉框 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 树视图头部 + role: '' + ui_name: 树视图头部 + desc: 树视图头部视图 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 diff --git a/tests/at/yaml/elements.yaml b/tests/at/yaml/elements.yaml new file mode 100644 index 000000000..6dff0aa3f --- /dev/null +++ b/tests/at/yaml/elements.yaml @@ -0,0 +1,18 @@ +elements: + ClickTypeLabel: + accessible_id: ClickTypeLabel + Applyall_btn: + name: Applyall_btn + role: check box + ContentLabel: + accessible_id: ContentLabel + gotoPreviousLabel: + accessible_id: gotoPreviousLabel + TableViewFile: + accessible_id: TableViewFile + TitleButton: + accessible_id: TitleButton + CommentButton: + accessible_id: CommentButton + NameLabel: + accessible_id: NameLabel diff --git "a/tests/at/yaml/\345\216\213\347\274\251\350\256\276\347\275\256/\345\216\213\347\274\251\350\256\276\347\275\256.suite.yaml" "b/tests/at/yaml/\345\216\213\347\274\251\350\256\276\347\275\256/\345\216\213\347\274\251\350\256\276\347\275\256.suite.yaml" new file mode 100644 index 000000000..55dad2e85 --- /dev/null +++ "b/tests/at/yaml/\345\216\213\347\274\251\350\256\276\347\275\256/\345\216\213\347\274\251\350\256\276\347\275\256.suite.yaml" @@ -0,0 +1,23 @@ +name: 压缩设置_suite +app: deepin-compressor +module: 压缩设置 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_yasuoshezhi_001_s1 + name: 压缩设置-压缩类型标签显示当前压缩类型 + description: '' + steps: [] + assert_steps: + - step_type: assert + action: assert_element + selector: + accessible_id: ClickTypeLabel + role: label + - step_type: assert + action: assert_process_running + app: deepin-compressor +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\345\257\271\350\257\235\346\241\206/\345\257\271\350\257\235\346\241\206.suite.yaml" "b/tests/at/yaml/\345\257\271\350\257\235\346\241\206/\345\257\271\350\257\235\346\241\206.suite.yaml" new file mode 100644 index 000000000..141875836 --- /dev/null +++ "b/tests/at/yaml/\345\257\271\350\257\235\346\241\206/\345\257\271\350\257\235\346\241\206.suite.yaml" @@ -0,0 +1,43 @@ +name: 对话框_suite +app: deepin-compressor +module: 对话框 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_duihuakuang_001_s1 + name: 对话框-应用到所有复选框勾选应用到所有 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: Applyall_btn + role: check box + do: click + wait: 1.0 + assert_steps: + - step_type: assert + action: assert_element + selector: + name: Applyall_btn + role: check box + - step_type: assert + action: assert_process_running + app: deepin-compressor +- id: suite_duihuakuang_002_s1 + name: 对话框-对话框内容标签显示提示信息 + description: '' + steps: [] + assert_steps: + - step_type: assert + action: assert_element + selector: + accessible_id: ContentLabel + role: label + - step_type: assert + action: assert_process_running + app: deepin-compressor +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\346\226\207\344\273\266\345\210\227\350\241\250/\346\226\207\344\273\266\345\210\227\350\241\250.suite.yaml" "b/tests/at/yaml/\346\226\207\344\273\266\345\210\227\350\241\250/\346\226\207\344\273\266\345\210\227\350\241\250.suite.yaml" new file mode 100644 index 000000000..6458896a1 --- /dev/null +++ "b/tests/at/yaml/\346\226\207\344\273\266\345\210\227\350\241\250/\346\226\207\344\273\266\345\210\227\350\241\250.suite.yaml" @@ -0,0 +1,43 @@ +name: 文件列表_suite +app: deepin-compressor +module: 文件列表 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_wenjianliebiao_001_s1 + name: 文件列表-返回上一级标签点击返回上级目录 + description: '' + steps: + - step_type: action + action: element_action + selector: + accessible_id: gotoPreviousLabel + role: label + do: click + wait: 1.0 + assert_steps: + - step_type: assert + action: assert_element + selector: + accessible_id: gotoPreviousLabel + role: label + - step_type: assert + action: assert_process_running + app: deepin-compressor +- id: suite_wenjianliebiao_002_s1 + name: 文件列表-文件列表树视图显示压缩包内文件 + description: '' + steps: [] + assert_steps: + - step_type: assert + action: assert_element + selector: + accessible_id: TableViewFile + role: tree + - step_type: assert + action: assert_process_running + app: deepin-compressor +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\346\240\207\351\242\230\346\240\217/\346\240\207\351\242\230\346\240\217.suite.yaml" "b/tests/at/yaml/\346\240\207\351\242\230\346\240\217/\346\240\207\351\242\230\346\240\217.suite.yaml" new file mode 100644 index 000000000..45579bc19 --- /dev/null +++ "b/tests/at/yaml/\346\240\207\351\242\230\346\240\217/\346\240\207\351\242\230\346\240\217.suite.yaml" @@ -0,0 +1,56 @@ +name: 标题栏_suite +app: deepin-compressor +module: 标题栏 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_biaotilan_001_s1 + name: 标题栏-添加按钮点击打开新建菜单 + description: '' + steps: + - step_type: action + action: element_action + selector: + accessible_id: TitleButton + role: push button + do: click + wait: 1.0 + assert_steps: + - step_type: assert + action: assert_element + selector: + accessible_id: TitleButton + role: push button + - step_type: assert + action: assert_process_running + app: deepin-compressor +- id: suite_biaotilan_002_s1 + name: 标题栏-注释按钮点击打开注释编辑 + description: '' + steps: + - step_type: action + action: element_action + selector: + accessible_id: CommentButton + role: push button + do: focus + - step_type: action + action: element_action + selector: + accessible_id: CommentButton + role: push button + do: click + wait: 1.0 + assert_steps: + - step_type: assert + action: assert_element + selector: + accessible_id: CommentButton + role: push button + - step_type: assert + action: assert_process_running + app: deepin-compressor +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\351\207\215\345\221\275\345\220\215/\351\207\215\345\221\275\345\220\215.suite.yaml" "b/tests/at/yaml/\351\207\215\345\221\275\345\220\215/\351\207\215\345\221\275\345\220\215.suite.yaml" new file mode 100644 index 000000000..94ebba32a --- /dev/null +++ "b/tests/at/yaml/\351\207\215\345\221\275\345\220\215/\351\207\215\345\221\275\345\220\215.suite.yaml" @@ -0,0 +1,23 @@ +name: 重命名_suite +app: deepin-compressor +module: 重命名 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_chongmingming_001_s1 + name: 重命名-重命名对话框名称标签显示重命名标题 + description: '' + steps: [] + assert_steps: + - step_type: assert + action: assert_element + selector: + accessible_id: NameLabel + role: label + - step_type: assert + action: assert_process_running + app: deepin-compressor +teardown: +- action: session_stop From 7cd5d2a9096873c425b78f5f8dbbf5623889635e Mon Sep 17 00:00:00 2001 From: dengzhongyuan365-dev Date: Fri, 13 Nov 2026 16:53:34 +0800 Subject: [PATCH 2/4] =?UTF-8?q?[AT]=20=E5=BD=92=E6=A1=A3=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=99=A8=20AT-SPI=20=E6=B5=8B=E8=AF=95=E5=A5=97=E4=BB=B6?= =?UTF-8?q?=EF=BC=88element-map=20=E5=8F=8C=E5=AD=97=E6=AE=B5=E7=AE=A1?= =?UTF-8?q?=E7=BA=BF=EF=BC=89-=20222=E6=9D=A1=E7=94=A8=E4=BE=8B=E5=85=A8?= =?UTF-8?q?=E9=87=8F=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 基于 xlsx 用例表格(222条)全量转换+映射 - 19个模块,40个suite(32个active + 8个unsupported) - 12个命名元素,覆盖率100%(12/12) - Gate 5/4 静态校验通过 - 替换旧的8条用例版本 --- tests/at/cases_mapped.yaml | 3059 ++++++++++++++++- tests/at/coverage-report.yaml | 6 +- tests/at/element-coverage-manifest.yaml | 410 +-- tests/at/yaml/elements.yaml | 51 +- ...15\267\345\216\213\347\274\251.suite.yaml" | 50 + .../\345\216\213\347\274\251.suite.yaml" | 195 ++ ...74\251\350\247\243\345\216\213.suite.yaml" | 126 + ...74\251\350\256\276\347\275\256.suite.yaml" | 23 - ...24\256\345\216\213\347\274\251.suite.yaml" | 198 ++ ...24\256\350\217\234\345\215\225.suite.yaml" | 38 + ...24\256\350\247\243\345\216\213.suite.yaml" | 144 + ...40\201\345\212\240\345\257\206.suite.yaml" | 544 +++ ...57\271\350\257\235\346\241\206.suite.yaml" | 43 - ...12\251\345\205\263\344\272\216.suite.yaml" | 32 + ...73\266\345\210\227\350\241\250.suite.yaml" | 43 - ...73\266\345\210\240\351\231\244.suite.yaml" | 32 + ...20\215\350\256\276\347\275\256.suite.yaml" | 74 + ...73\266\346\267\273\345\212\240.suite.yaml" | 714 ++++ ...40\207\351\242\230\346\240\217.suite.yaml" | 56 - ...17\243\347\256\241\347\220\206.suite.yaml" | 44 + ...36\234\347\225\214\351\235\242.suite.yaml" | 116 + .../\350\247\243\345\216\213.suite.yaml" | 26 + .../\350\256\276\347\275\256.suite.yaml" | 500 +++ ...72\246\346\216\247\345\210\266.suite.yaml" | 282 ++ ...12\240\345\216\213\347\274\251.suite.yaml" | 92 + ...07\215\345\221\275\345\220\215.suite.yaml" | 23 - ...33\230\344\272\244\344\272\222.suite.yaml" | 32 + 27 files changed, 6460 insertions(+), 493 deletions(-) create mode 100644 "tests/at/yaml/\345\210\206\345\215\267\345\216\213\347\274\251/\345\210\206\345\215\267\345\216\213\347\274\251.suite.yaml" create mode 100644 "tests/at/yaml/\345\216\213\347\274\251/\345\216\213\347\274\251.suite.yaml" create mode 100644 "tests/at/yaml/\345\216\213\347\274\251\350\247\243\345\216\213/\345\216\213\347\274\251\350\247\243\345\216\213.suite.yaml" delete mode 100644 "tests/at/yaml/\345\216\213\347\274\251\350\256\276\347\275\256/\345\216\213\347\274\251\350\256\276\347\275\256.suite.yaml" create mode 100644 "tests/at/yaml/\345\217\263\351\224\256\345\216\213\347\274\251/\345\217\263\351\224\256\345\216\213\347\274\251.suite.yaml" create mode 100644 "tests/at/yaml/\345\217\263\351\224\256\350\217\234\345\215\225/\345\217\263\351\224\256\350\217\234\345\215\225.suite.yaml" create mode 100644 "tests/at/yaml/\345\217\263\351\224\256\350\247\243\345\216\213/\345\217\263\351\224\256\350\247\243\345\216\213.suite.yaml" create mode 100644 "tests/at/yaml/\345\257\206\347\240\201\345\212\240\345\257\206/\345\257\206\347\240\201\345\212\240\345\257\206.suite.yaml" delete mode 100644 "tests/at/yaml/\345\257\271\350\257\235\346\241\206/\345\257\271\350\257\235\346\241\206.suite.yaml" create mode 100644 "tests/at/yaml/\345\270\256\345\212\251\345\205\263\344\272\216/\345\270\256\345\212\251\345\205\263\344\272\216.suite.yaml" delete mode 100644 "tests/at/yaml/\346\226\207\344\273\266\345\210\227\350\241\250/\346\226\207\344\273\266\345\210\227\350\241\250.suite.yaml" create mode 100644 "tests/at/yaml/\346\226\207\344\273\266\345\210\240\351\231\244/\346\226\207\344\273\266\345\210\240\351\231\244.suite.yaml" create mode 100644 "tests/at/yaml/\346\226\207\344\273\266\345\220\215\350\256\276\347\275\256/\346\226\207\344\273\266\345\220\215\350\256\276\347\275\256.suite.yaml" create mode 100644 "tests/at/yaml/\346\226\207\344\273\266\346\267\273\345\212\240/\346\226\207\344\273\266\346\267\273\345\212\240.suite.yaml" delete mode 100644 "tests/at/yaml/\346\240\207\351\242\230\346\240\217/\346\240\207\351\242\230\346\240\217.suite.yaml" create mode 100644 "tests/at/yaml/\347\252\227\345\217\243\347\256\241\347\220\206/\347\252\227\345\217\243\347\256\241\347\220\206.suite.yaml" create mode 100644 "tests/at/yaml/\347\273\223\346\236\234\347\225\214\351\235\242/\347\273\223\346\236\234\347\225\214\351\235\242.suite.yaml" create mode 100644 "tests/at/yaml/\350\247\243\345\216\213/\350\247\243\345\216\213.suite.yaml" create mode 100644 "tests/at/yaml/\350\256\276\347\275\256/\350\256\276\347\275\256.suite.yaml" create mode 100644 "tests/at/yaml/\350\277\233\345\272\246\346\216\247\345\210\266/\350\277\233\345\272\246\346\216\247\345\210\266.suite.yaml" create mode 100644 "tests/at/yaml/\350\277\275\345\212\240\345\216\213\347\274\251/\350\277\275\345\212\240\345\216\213\347\274\251.suite.yaml" delete mode 100644 "tests/at/yaml/\351\207\215\345\221\275\345\220\215/\351\207\215\345\221\275\345\220\215.suite.yaml" create mode 100644 "tests/at/yaml/\351\224\256\347\233\230\344\272\244\344\272\222/\351\224\256\347\233\230\344\272\244\344\272\222.suite.yaml" diff --git a/tests/at/cases_mapped.yaml b/tests/at/cases_mapped.yaml index 323115af8..7a3017c17 100644 --- a/tests/at/cases_mapped.yaml +++ b/tests/at/cases_mapped.yaml @@ -1,132 +1,3029 @@ version: '1.0' cases: -- id: suite_yasuoshezhi_001_s1 - name: 压缩设置-压缩类型标签显示当前压缩类型 - module: 压缩设置 +- id: suite_分卷压缩_001_s1 + name: 解压分卷压缩包 + module: 分卷压缩 steps: - - step_type: assert - action: assert_element + - step_type: action + action: element_action selector: - accessible_id: ClickTypeLabel - role: label - - step_type: assert - action: assert_process_running - app: deepin-compressor -- id: suite_duihuakuang_001_s1 - name: 对话框-应用到所有复选框勾选应用到所有 - module: 对话框 - steps: + name: SplitCheckBox + role: check box + do: click - step_type: action action: element_action selector: - name: Applyall_btn + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox role: check box do: click - wait: 1.0 + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click - step_type: assert action: assert_element selector: - name: Applyall_btn - role: check box - - step_type: assert - action: assert_process_running - app: deepin-compressor -- id: suite_duihuakuang_002_s1 - name: 对话框-对话框内容标签显示提示信息 - module: 对话框 + name: SelectFileButton + role: push button +- id: suite_压缩_001_s1 + name: 压缩快捷键 + module: 压缩 steps: + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: keyboard_hot_key + key: ctrl+s + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: keyboard_hot_key + key: ctrl+o + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click - step_type: assert action: assert_element selector: - accessible_id: ContentLabel - role: label - - step_type: assert - action: assert_process_running - app: deepin-compressor -- id: suite_wenjianliebiao_001_s1 - name: 文件列表-返回上一级标签点击返回上级目录 - module: 文件列表 + name: CompressButton + role: push button +- id: suite_压缩_002_s1 + name: 修改压缩包中文件4 + module: 压缩 steps: - step_type: action action: element_action selector: - accessible_id: gotoPreviousLabel - role: label + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: keyboard_hot_key + key: ctrl+o + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button do: click - wait: 1.0 - step_type: assert action: assert_element selector: - accessible_id: gotoPreviousLabel - role: label - - step_type: assert - action: assert_process_running - app: deepin-compressor -- id: suite_wenjianliebiao_002_s1 - name: 文件列表-文件列表树视图显示压缩包内文件 - module: 文件列表 + name: CompressButton + role: push button +- id: suite_压缩解压_002_s1 + name: 压缩深路径文件 + module: 压缩解压 steps: + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click - step_type: assert action: assert_element selector: - accessible_id: TableViewFile - role: tree - - step_type: assert - action: assert_process_running - app: deepin-compressor -- id: suite_biaotilan_001_s1 - name: 标题栏-添加按钮点击打开新建菜单 - module: 标题栏 + name: ExtractButton + role: push button +- id: suite_压缩解压_003_s1 + name: 解压路径下存在同名文件或文件夹 + module: 压缩解压 steps: - step_type: action action: element_action selector: - accessible_id: TitleButton + name: ExtractButton role: push button do: click - wait: 1.0 - step_type: assert action: assert_element selector: - accessible_id: TitleButton + name: ExtractButton role: push button - - step_type: assert - action: assert_process_running - app: deepin-compressor -- id: suite_biaotilan_002_s1 - name: 标题栏-注释按钮点击打开注释编辑 - module: 标题栏 +- id: suite_右键压缩_002_s1 + name: 压缩包重命名 + module: 右键压缩 steps: - step_type: action action: element_action selector: - accessible_id: CommentButton - role: push button + name: RenameEdit + role: text do: focus - step_type: action action: element_action selector: - accessible_id: CommentButton + name: CompressButton role: push button do: click - wait: 1.0 - - step_type: assert - action: assert_element + - step_type: action + action: element_action selector: - accessible_id: CommentButton + name: CompressButton role: push button - - step_type: assert - action: assert_process_running - app: deepin-compressor -- id: suite_chongmingming_001_s1 - name: 重命名-重命名对话框名称标签显示重命名标题 - module: 重命名 - steps: - - step_type: assert - action: assert_element + do: click + - step_type: action + action: element_action selector: - accessible_id: NameLabel - role: label - - step_type: assert - action: assert_process_running - app: deepin-compressor + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: CompressButton + role: push button +- id: suite_右键压缩_003_s1 + name: 不支持的压缩包格式,禁用部分功能 + module: 右键压缩 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: CompressButton + role: push button +- id: suite_右键菜单_001_s1 + name: 子目录添加文件 + module: 右键菜单 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_右键解压_002_s1 + name: 解压列表打开 + module: 右键解压 + steps: + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_右键解压_003_s1 + name: 解压-暂停1 + module: 右键解压 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: RenameEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_密码加密_001_s1 + name: 汉字密码加密包02 + module: 密码加密 + steps: + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: CompressButton + role: push button +- id: suite_密码加密_002_s1 + name: 右键菜单解压加密压缩包 + module: 密码加密 + steps: + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_密码加密_003_s1 + name: 启动2 + module: 密码加密 + steps: + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_帮助关于_001_s1 + name: 帮助手册 + module: 帮助关于 + steps: + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: CompressButton + role: push button +- id: suite_文件删除_001_s1 + name: 解压列表删除所有文件 + module: 文件删除 + steps: + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: ExtractButton + role: push button +- id: suite_文件名设置_001_s1 + name: 特殊符号命名压缩包 + module: 文件名设置 + steps: + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: CompressButton + role: push button +- id: suite_文件添加_002_s1 + name: 根目录添加文件 + module: 文件添加 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: RenameEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_文件添加_003_s1 + name: 规则 + module: 文件添加 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_文件添加_004_s1 + name: 添加文件类型5 + module: 文件添加 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: RenameEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_文件添加_005_s1 + name: zip分卷压缩4 + module: 文件添加 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_文件添加_006_s1 + name: 进入二级目录后按上键切换到返回键 + module: 文件添加 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_窗口管理_002_s1 + name: 窗口多开 + module: 窗口管理 + steps: + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: CancelButton + role: push button +- id: suite_结果界面_002_s1 + name: 失败界面返回按钮 + module: 结果界面 + steps: + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: ExtractButton + role: push button +- id: suite_解压_001_s1 + name: 授权提示02 + module: 解压 + steps: + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_设置_002_s1 + name: 设置压缩文件位置3 + module: 设置 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: RecommendedButton + role: radio button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_设置_003_s1 + name: 设置压缩文件名5 + module: 设置 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_设置_004_s1 + name: 设置-压缩后删除原来的文件1 + module: 设置 + steps: + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: CompressButton + role: push button +- id: suite_设置_005_s1 + name: 并行压缩支持的格式 + module: 设置 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_进度控制_001_s1 + name: 压缩过程 + module: 进度控制 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_进度控制_002_s1 + name: 压缩暂停3 + module: 进度控制 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_追加压缩_001_s1 + name: 添加过程中出错情况 + module: 追加压缩 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_键盘交互_001_s1 + name: 键盘交互-主菜单、子菜单中的交互 + module: 键盘交互 + steps: + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: CompressButton + role: push button diff --git a/tests/at/coverage-report.yaml b/tests/at/coverage-report.yaml index 5d65bf896..5d444b9a7 100644 --- a/tests/at/coverage-report.yaml +++ b/tests/at/coverage-report.yaml @@ -1,8 +1,8 @@ -scan_total: 8 +scan_total: 12 transient_items: [] unreachable: 0 -denominator: 8 -covered: 8 +denominator: 12 +covered: 12 uncovered: 0 coverage: 100.0 passed: true diff --git a/tests/at/element-coverage-manifest.yaml b/tests/at/element-coverage-manifest.yaml index f825adcdd..b0f86278d 100644 --- a/tests/at/element-coverage-manifest.yaml +++ b/tests/at/element-coverage-manifest.yaml @@ -1,216 +1,216 @@ version: '1.0' source: at-case-authoring:element-map.yaml -scan_total: 8 +scan_total: 12 elements: - TitleButton: + RenameEdit: + role: text + ui_name: 重命名 + desc: 弹窗重命名输入框 popupdialog.cpp m_lineEdit + locator: name + RecommendedButton: + role: radio button + ui_name: 推荐选项 + desc: 设置推荐选项 settingdialog.cpp recommendedButton + locator: name + NextButton: + role: push button + ui_name: 下一步按钮 + desc: 压缩页下一步按钮 compresspage.cpp m_pNextBtn + locator: name + SelectFileButton: + role: push button + ui_name: 打开文件按钮 + desc: 主页选择文件按钮 homepage.cpp m_pChooseBtn + locator: name + BackButton: role: push button - ui_name: 添加按钮 - desc: 标题栏添加按钮(新建压缩/解压入口) - locator: accessible_id - CommentButton: + ui_name: 返回 + desc: 返回按钮 failurepage/successpage + locator: name + CancelButton: role: push button - ui_name: 注释按钮 - desc: 标题栏注释按钮 - locator: accessible_id - ClickTypeLabel: - role: label - ui_name: 压缩类型标签 - desc: 压缩设置页面压缩类型标签(ClickTypeLabel) - locator: accessible_id - gotoPreviousLabel: - role: label - ui_name: 返回上一级标签 - desc: 树视图头部返回上一级标签(gotoPreviousLabel) - locator: accessible_id - Applyall_btn: + ui_name: 取消按钮 + desc: 进度页取消按钮 progresspage.cpp m_pCancelBtn + locator: name + ExtractButton: + role: push button + ui_name: 解压 + desc: 解压按钮 uncompresspage.cpp m_pUnCompressBtn + locator: name + PasswordEdit: + role: text + ui_name: 密码显示按钮 + desc: 密码输入框 compresssettingpage.cpp m_pPasswordEdt + locator: name + SplitCheckBox: role: check box - ui_name: 应用到所有复选框 - desc: 覆盖/跳过对话框"应用到所有"复选框 + ui_name: 分卷压缩 + desc: 分卷压缩复选框 compresssettingpage.cpp m_pSplitCkb + locator: name + CompressButton: + role: push button + ui_name: 压缩按钮 + desc: 压缩按钮 compresssettingpage.cpp m_pCompressBtn + locator: name + ViewFileButton: + role: push button + ui_name: 显示文件按钮 + desc: 成功页查看文件按钮 successpage.cpp m_pShowFileBtn + locator: name + PauseContinueButton: + role: push button + ui_name: 界面上暂停按钮 + desc: 暂停/继续按钮 progresspage.cpp m_pPauseContinueButton locator: name - TableViewFile: - role: tree - ui_name: 文件列表树视图 - desc: 数据树视图(TableViewFile) - locator: accessible_id - NameLabel: - role: label - ui_name: 重命名对话框名称标签 - desc: 重命名对话框名称标签(NameLabel) - locator: accessible_id - ContentLabel: - role: label - ui_name: 对话框内容标签 - desc: 对话框内容标签(ContentLabel) - locator: accessible_id transient_items: [] unresolved: -- name: 选择文件按钮 - role: push button - ui_name: 选择文件按钮 - desc: 主页"选择文件"按钮 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 下一步按钮 - role: push button - ui_name: 下一步按钮 - desc: 压缩页面"下一步"按钮 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 文件名输入框 - role: text - ui_name: 文件名输入框 - desc: 压缩设置文件名输入框 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 保存路径选择框 - role: '' - ui_name: 保存路径选择框 - desc: 压缩设置保存路径选择框 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 高级选项开关 - role: '' - ui_name: 高级选项开关 - desc: 压缩设置高级选项开关 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 密码输入框 - role: '' - ui_name: 密码输入框 - desc: 压缩设置密码输入框 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 加密文件列表复选框 - role: '' - ui_name: 加密文件列表复选框 - desc: 压缩设置加密文件列表复选框 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 分卷复选框 - role: check box - ui_name: 分卷复选框 - desc: 压缩设置分卷复选框 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 分卷大小输入框 - role: '' - ui_name: 分卷大小输入框 - desc: 压缩设置分卷大小输入框 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 压缩级别下拉框 - role: combo box - ui_name: 压缩级别下拉框 - desc: 压缩设置压缩级别下拉框 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 注释输入框 - role: '' - ui_name: 注释输入框 - desc: 压缩设置注释输入框 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: CPU线程下拉框 - role: combo box - ui_name: CPU线程下拉框 - desc: 压缩设置CPU线程下拉框 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 压缩按钮 - role: push button - ui_name: 压缩按钮 - desc: 压缩设置"压缩"按钮 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 类型菜单 +- name: 打开 + role: menu + ui_name: 打开 + desc: 打开方式菜单项,瞬态 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 其他打开方式 + role: menu + ui_name: 其他打开方式 + desc: 其他打开方式菜单项,瞬态 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 提取文件到当前文件夹 + role: menu + ui_name: 提取文件到当前文件夹 + desc: 提取到当前文件夹菜单项,瞬态 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 解压到当前文件夹 + role: menu + ui_name: 解压到当前文件夹 + desc: 解压到当前文件夹菜单项,瞬态 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 确定按钮 + role: TBD + ui_name: 确定按钮 + desc: 确定按钮,无accessible name + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 确认按钮 + role: TBD + ui_name: 确认按钮 + desc: 确认按钮,无accessible name + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: dock上的图标 + role: TBD + ui_name: dock上的图标 + desc: dock栏图标,不可自动化(spec §7) + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 启动器点击图标 + role: TBD + ui_name: 启动器点击图标 + desc: 启动器图标,不可自动化(spec §7) + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 帮助 + role: menu + ui_name: 帮助 + desc: 帮助菜单项,瞬态 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 主菜单 + role: menu + ui_name: 主菜单 + desc: 主菜单,瞬态 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 关于 + role: menu + ui_name: 关于 + desc: 关于菜单项,瞬态 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 添加按钮 + role: TBD + ui_name: 添加按钮 + desc: 添加按钮,无accessible name + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 在新窗口中打开 + role: menu + ui_name: 在新窗口中打开 + desc: 在新窗口中打开菜单项,瞬态 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 添加 + role: TBD + ui_name: 添加 + desc: 添加按钮,无accessible name + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 删除 + role: TBD + ui_name: 删除 + desc: 删除按钮,无accessible name + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 替换按钮 + role: TBD + ui_name: 替换按钮 + desc: 替换按钮,无accessible name + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 从不 + role: TBD + ui_name: 从不 + desc: 设置选项-从不,无accessible name + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 询问确认 + role: TBD + ui_name: 询问确认 + desc: 设置选项-询问确认,无accessible name + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 压缩后删除原来的文件 + role: TBD + ui_name: 压缩后删除原来的文件 + desc: 设置选项-压缩后删除,无accessible name + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 提示框上转换按钮 + role: TBD + ui_name: 提示框上转换按钮 + desc: 提示框转换按钮,无accessible name + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 转换按钮 + role: TBD + ui_name: 转换按钮 + desc: 转换按钮,无accessible name + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 提示框上取消按钮 + role: TBD + ui_name: 提示框上取消按钮 + desc: 提示框取消按钮,无accessible name + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 右上角x按钮 + role: TBD + ui_name: 右上角x按钮 + desc: 窗口关闭按钮,无accessible name + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: dock栏上图标 + role: TBD + ui_name: dock栏上图标 + desc: dock栏图标,不可自动化(spec §7) + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 右键弹出菜单 + role: menu + ui_name: 右键弹出菜单 + desc: 右键弹出菜单,瞬态 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 信息图标 + role: TBD + ui_name: 信息图标 + desc: 信息图标,无accessible name + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 打开方式 + role: menu + ui_name: 打开方式 + desc: 打开方式菜单项,瞬态 + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 双线程 + role: TBD + ui_name: 双线程 + desc: CPU线程下拉选项,属于CpuThreadComboBox + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 单线程 + role: TBD + ui_name: 单线程 + desc: CPU线程下拉选项,属于CpuThreadComboBox + reason: id_name/object_name 未填 (TBD),运行时无法按名定位 +- name: 或右键菜单 role: menu - ui_name: 类型菜单 - desc: 压缩设置类型菜单 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 解压路径按钮 - role: '' - ui_name: 解压路径按钮 - desc: 解压页面解压路径按钮 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 解压按钮 - role: push button - ui_name: 解压按钮 - desc: 解压页面"解压"按钮 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 取消按钮 - role: push button - ui_name: 取消按钮 - desc: 进度页面"取消"按钮 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 暂停继续按钮 - role: '' - ui_name: 暂停继续按钮 - desc: 进度页面"暂停/继续"按钮 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 查看按钮 - role: push button - ui_name: 查看按钮 - desc: 成功页面"查看"按钮 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 返回按钮 - role: '' - ui_name: 返回按钮 - desc: 成功页面"返回"按钮 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 重试按钮 - role: push button - ui_name: 重试按钮 - desc: 失败页面"重试"按钮 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 返回按钮 - role: '' - ui_name: 返回按钮 - desc: 失败页面"返回"按钮 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 打开方式选择按钮 - role: '' - ui_name: 打开方式选择按钮 - desc: 打开方式对话框选择按钮 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 打开方式取消按钮 - role: push button - ui_name: 打开方式取消按钮 - desc: 打开方式对话框取消按钮 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 打开方式确定按钮 - role: push button - ui_name: 打开方式确定按钮 - desc: 打开方式对话框确定按钮 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 设为默认复选框 - role: check box - ui_name: 设为默认复选框 - desc: 打开方式对话框设为默认复选框 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 打开方式文件选择按钮 - role: '' - ui_name: 打开方式文件选择按钮 - desc: 打开方式对话框文件选择按钮 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 重命名输入框 - role: text - ui_name: 重命名输入框 - desc: 重命名对话框输入框 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 设置全选按钮 - role: push button - ui_name: 设置全选按钮 - desc: 设置对话框全选按钮 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 设置清除按钮 - role: push button - ui_name: 设置清除按钮 - desc: 设置对话框清除按钮 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 设置推荐按钮 - role: '' - ui_name: 设置推荐按钮 - desc: 设置对话框推荐按钮 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 解压路径设置下拉框 - role: combo box - ui_name: 解压路径设置下拉框 - desc: 设置对话框解压路径下拉框 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 删除归档设置下拉框 - role: combo box - ui_name: 删除归档设置下拉框 - desc: 设置对话框删除归档下拉框 - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 树视图头部 - role: '' - ui_name: 树视图头部 - desc: 树视图头部视图 + ui_name: 或右键菜单 + desc: 右键菜单,瞬态 reason: id_name/object_name 未填 (TBD),运行时无法按名定位 diff --git a/tests/at/yaml/elements.yaml b/tests/at/yaml/elements.yaml index 6dff0aa3f..11d3a4313 100644 --- a/tests/at/yaml/elements.yaml +++ b/tests/at/yaml/elements.yaml @@ -1,18 +1,37 @@ elements: - ClickTypeLabel: - accessible_id: ClickTypeLabel - Applyall_btn: - name: Applyall_btn + SplitCheckBox: + name: SplitCheckBox role: check box - ContentLabel: - accessible_id: ContentLabel - gotoPreviousLabel: - accessible_id: gotoPreviousLabel - TableViewFile: - accessible_id: TableViewFile - TitleButton: - accessible_id: TitleButton - CommentButton: - accessible_id: CommentButton - NameLabel: - accessible_id: NameLabel + ExtractButton: + name: ExtractButton + role: push button + CancelButton: + name: CancelButton + role: push button + ViewFileButton: + name: ViewFileButton + role: push button + SelectFileButton: + name: SelectFileButton + role: push button + CompressButton: + name: CompressButton + role: push button + PauseContinueButton: + name: PauseContinueButton + role: push button + BackButton: + name: BackButton + role: push button + NextButton: + name: NextButton + role: push button + RenameEdit: + name: RenameEdit + role: text + PasswordEdit: + name: PasswordEdit + role: text + RecommendedButton: + name: RecommendedButton + role: radio button diff --git "a/tests/at/yaml/\345\210\206\345\215\267\345\216\213\347\274\251/\345\210\206\345\215\267\345\216\213\347\274\251.suite.yaml" "b/tests/at/yaml/\345\210\206\345\215\267\345\216\213\347\274\251/\345\210\206\345\215\267\345\216\213\347\274\251.suite.yaml" new file mode 100644 index 000000000..dae84c0a8 --- /dev/null +++ "b/tests/at/yaml/\345\210\206\345\215\267\345\216\213\347\274\251/\345\210\206\345\215\267\345\216\213\347\274\251.suite.yaml" @@ -0,0 +1,50 @@ +name: 分卷压缩_suite +app: deepin-compressor +module: 分卷压缩 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_分卷压缩_001_s1 + name: 解压分卷压缩包 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\345\216\213\347\274\251/\345\216\213\347\274\251.suite.yaml" "b/tests/at/yaml/\345\216\213\347\274\251/\345\216\213\347\274\251.suite.yaml" new file mode 100644 index 000000000..43dd1fe37 --- /dev/null +++ "b/tests/at/yaml/\345\216\213\347\274\251/\345\216\213\347\274\251.suite.yaml" @@ -0,0 +1,195 @@ +name: 压缩_suite +app: deepin-compressor +module: 压缩 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_压缩_001_s1 + name: 压缩快捷键 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: keyboard_hot_key + key: ctrl+s + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: keyboard_hot_key + key: ctrl+o + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: CompressButton + role: push button +- id: suite_压缩_002_s1 + name: 修改压缩包中文件4 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: keyboard_hot_key + key: ctrl+o + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: CompressButton + role: push button +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\345\216\213\347\274\251\350\247\243\345\216\213/\345\216\213\347\274\251\350\247\243\345\216\213.suite.yaml" "b/tests/at/yaml/\345\216\213\347\274\251\350\247\243\345\216\213/\345\216\213\347\274\251\350\247\243\345\216\213.suite.yaml" new file mode 100644 index 000000000..794d8ded6 --- /dev/null +++ "b/tests/at/yaml/\345\216\213\347\274\251\350\247\243\345\216\213/\345\216\213\347\274\251\350\247\243\345\216\213.suite.yaml" @@ -0,0 +1,126 @@ +name: 压缩解压_suite +app: deepin-compressor +module: 压缩解压 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_压缩解压_002_s1 + name: 压缩深路径文件 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: ExtractButton + role: push button +- id: suite_压缩解压_003_s1 + name: 解压路径下存在同名文件或文件夹 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: ExtractButton + role: push button +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\345\216\213\347\274\251\350\256\276\347\275\256/\345\216\213\347\274\251\350\256\276\347\275\256.suite.yaml" "b/tests/at/yaml/\345\216\213\347\274\251\350\256\276\347\275\256/\345\216\213\347\274\251\350\256\276\347\275\256.suite.yaml" deleted file mode 100644 index 55dad2e85..000000000 --- "a/tests/at/yaml/\345\216\213\347\274\251\350\256\276\347\275\256/\345\216\213\347\274\251\350\256\276\347\275\256.suite.yaml" +++ /dev/null @@ -1,23 +0,0 @@ -name: 压缩设置_suite -app: deepin-compressor -module: 压缩设置 -setup: -- action: session_start - command: deepin-compressor - wait: 3.0 -suites: -- id: suite_yasuoshezhi_001_s1 - name: 压缩设置-压缩类型标签显示当前压缩类型 - description: '' - steps: [] - assert_steps: - - step_type: assert - action: assert_element - selector: - accessible_id: ClickTypeLabel - role: label - - step_type: assert - action: assert_process_running - app: deepin-compressor -teardown: -- action: session_stop diff --git "a/tests/at/yaml/\345\217\263\351\224\256\345\216\213\347\274\251/\345\217\263\351\224\256\345\216\213\347\274\251.suite.yaml" "b/tests/at/yaml/\345\217\263\351\224\256\345\216\213\347\274\251/\345\217\263\351\224\256\345\216\213\347\274\251.suite.yaml" new file mode 100644 index 000000000..45253bc5e --- /dev/null +++ "b/tests/at/yaml/\345\217\263\351\224\256\345\216\213\347\274\251/\345\217\263\351\224\256\345\216\213\347\274\251.suite.yaml" @@ -0,0 +1,198 @@ +name: 右键压缩_suite +app: deepin-compressor +module: 右键压缩 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_右键压缩_002_s1 + name: 压缩包重命名 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: RenameEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: CompressButton + role: push button +- id: suite_右键压缩_003_s1 + name: 不支持的压缩包格式,禁用部分功能 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: CompressButton + role: push button +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\345\217\263\351\224\256\350\217\234\345\215\225/\345\217\263\351\224\256\350\217\234\345\215\225.suite.yaml" "b/tests/at/yaml/\345\217\263\351\224\256\350\217\234\345\215\225/\345\217\263\351\224\256\350\217\234\345\215\225.suite.yaml" new file mode 100644 index 000000000..96043b0aa --- /dev/null +++ "b/tests/at/yaml/\345\217\263\351\224\256\350\217\234\345\215\225/\345\217\263\351\224\256\350\217\234\345\215\225.suite.yaml" @@ -0,0 +1,38 @@ +name: 右键菜单_suite +app: deepin-compressor +module: 右键菜单 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_右键菜单_001_s1 + name: 子目录添加文件 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\345\217\263\351\224\256\350\247\243\345\216\213/\345\217\263\351\224\256\350\247\243\345\216\213.suite.yaml" "b/tests/at/yaml/\345\217\263\351\224\256\350\247\243\345\216\213/\345\217\263\351\224\256\350\247\243\345\216\213.suite.yaml" new file mode 100644 index 000000000..8572f5a1f --- /dev/null +++ "b/tests/at/yaml/\345\217\263\351\224\256\350\247\243\345\216\213/\345\217\263\351\224\256\350\247\243\345\216\213.suite.yaml" @@ -0,0 +1,144 @@ +name: 右键解压_suite +app: deepin-compressor +module: 右键解压 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_右键解压_002_s1 + name: 解压列表打开 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_右键解压_003_s1 + name: 解压-暂停1 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: RenameEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\345\257\206\347\240\201\345\212\240\345\257\206/\345\257\206\347\240\201\345\212\240\345\257\206.suite.yaml" "b/tests/at/yaml/\345\257\206\347\240\201\345\212\240\345\257\206/\345\257\206\347\240\201\345\212\240\345\257\206.suite.yaml" new file mode 100644 index 000000000..f9814bdf8 --- /dev/null +++ "b/tests/at/yaml/\345\257\206\347\240\201\345\212\240\345\257\206/\345\257\206\347\240\201\345\212\240\345\257\206.suite.yaml" @@ -0,0 +1,544 @@ +name: 密码加密_suite +app: deepin-compressor +module: 密码加密 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_密码加密_001_s1 + name: 汉字密码加密包02 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: CompressButton + role: push button +- id: suite_密码加密_002_s1 + name: 右键菜单解压加密压缩包 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_密码加密_003_s1 + name: 启动2 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PasswordEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\345\257\271\350\257\235\346\241\206/\345\257\271\350\257\235\346\241\206.suite.yaml" "b/tests/at/yaml/\345\257\271\350\257\235\346\241\206/\345\257\271\350\257\235\346\241\206.suite.yaml" deleted file mode 100644 index 141875836..000000000 --- "a/tests/at/yaml/\345\257\271\350\257\235\346\241\206/\345\257\271\350\257\235\346\241\206.suite.yaml" +++ /dev/null @@ -1,43 +0,0 @@ -name: 对话框_suite -app: deepin-compressor -module: 对话框 -setup: -- action: session_start - command: deepin-compressor - wait: 3.0 -suites: -- id: suite_duihuakuang_001_s1 - name: 对话框-应用到所有复选框勾选应用到所有 - description: '' - steps: - - step_type: action - action: element_action - selector: - name: Applyall_btn - role: check box - do: click - wait: 1.0 - assert_steps: - - step_type: assert - action: assert_element - selector: - name: Applyall_btn - role: check box - - step_type: assert - action: assert_process_running - app: deepin-compressor -- id: suite_duihuakuang_002_s1 - name: 对话框-对话框内容标签显示提示信息 - description: '' - steps: [] - assert_steps: - - step_type: assert - action: assert_element - selector: - accessible_id: ContentLabel - role: label - - step_type: assert - action: assert_process_running - app: deepin-compressor -teardown: -- action: session_stop diff --git "a/tests/at/yaml/\345\270\256\345\212\251\345\205\263\344\272\216/\345\270\256\345\212\251\345\205\263\344\272\216.suite.yaml" "b/tests/at/yaml/\345\270\256\345\212\251\345\205\263\344\272\216/\345\270\256\345\212\251\345\205\263\344\272\216.suite.yaml" new file mode 100644 index 000000000..2d30d7d89 --- /dev/null +++ "b/tests/at/yaml/\345\270\256\345\212\251\345\205\263\344\272\216/\345\270\256\345\212\251\345\205\263\344\272\216.suite.yaml" @@ -0,0 +1,32 @@ +name: 帮助关于_suite +app: deepin-compressor +module: 帮助关于 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_帮助关于_001_s1 + name: 帮助手册 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: CompressButton + role: push button +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\346\226\207\344\273\266\345\210\227\350\241\250/\346\226\207\344\273\266\345\210\227\350\241\250.suite.yaml" "b/tests/at/yaml/\346\226\207\344\273\266\345\210\227\350\241\250/\346\226\207\344\273\266\345\210\227\350\241\250.suite.yaml" deleted file mode 100644 index 6458896a1..000000000 --- "a/tests/at/yaml/\346\226\207\344\273\266\345\210\227\350\241\250/\346\226\207\344\273\266\345\210\227\350\241\250.suite.yaml" +++ /dev/null @@ -1,43 +0,0 @@ -name: 文件列表_suite -app: deepin-compressor -module: 文件列表 -setup: -- action: session_start - command: deepin-compressor - wait: 3.0 -suites: -- id: suite_wenjianliebiao_001_s1 - name: 文件列表-返回上一级标签点击返回上级目录 - description: '' - steps: - - step_type: action - action: element_action - selector: - accessible_id: gotoPreviousLabel - role: label - do: click - wait: 1.0 - assert_steps: - - step_type: assert - action: assert_element - selector: - accessible_id: gotoPreviousLabel - role: label - - step_type: assert - action: assert_process_running - app: deepin-compressor -- id: suite_wenjianliebiao_002_s1 - name: 文件列表-文件列表树视图显示压缩包内文件 - description: '' - steps: [] - assert_steps: - - step_type: assert - action: assert_element - selector: - accessible_id: TableViewFile - role: tree - - step_type: assert - action: assert_process_running - app: deepin-compressor -teardown: -- action: session_stop diff --git "a/tests/at/yaml/\346\226\207\344\273\266\345\210\240\351\231\244/\346\226\207\344\273\266\345\210\240\351\231\244.suite.yaml" "b/tests/at/yaml/\346\226\207\344\273\266\345\210\240\351\231\244/\346\226\207\344\273\266\345\210\240\351\231\244.suite.yaml" new file mode 100644 index 000000000..d6e97e796 --- /dev/null +++ "b/tests/at/yaml/\346\226\207\344\273\266\345\210\240\351\231\244/\346\226\207\344\273\266\345\210\240\351\231\244.suite.yaml" @@ -0,0 +1,32 @@ +name: 文件删除_suite +app: deepin-compressor +module: 文件删除 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_文件删除_001_s1 + name: 解压列表删除所有文件 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: ExtractButton + role: push button +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\346\226\207\344\273\266\345\220\215\350\256\276\347\275\256/\346\226\207\344\273\266\345\220\215\350\256\276\347\275\256.suite.yaml" "b/tests/at/yaml/\346\226\207\344\273\266\345\220\215\350\256\276\347\275\256/\346\226\207\344\273\266\345\220\215\350\256\276\347\275\256.suite.yaml" new file mode 100644 index 000000000..40492ce54 --- /dev/null +++ "b/tests/at/yaml/\346\226\207\344\273\266\345\220\215\350\256\276\347\275\256/\346\226\207\344\273\266\345\220\215\350\256\276\347\275\256.suite.yaml" @@ -0,0 +1,74 @@ +name: 文件名设置_suite +app: deepin-compressor +module: 文件名设置 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_文件名设置_001_s1 + name: 特殊符号命名压缩包 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: CompressButton + role: push button +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\346\226\207\344\273\266\346\267\273\345\212\240/\346\226\207\344\273\266\346\267\273\345\212\240.suite.yaml" "b/tests/at/yaml/\346\226\207\344\273\266\346\267\273\345\212\240/\346\226\207\344\273\266\346\267\273\345\212\240.suite.yaml" new file mode 100644 index 000000000..182bfd9c7 --- /dev/null +++ "b/tests/at/yaml/\346\226\207\344\273\266\346\267\273\345\212\240/\346\226\207\344\273\266\346\267\273\345\212\240.suite.yaml" @@ -0,0 +1,714 @@ +name: 文件添加_suite +app: deepin-compressor +module: 文件添加 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_文件添加_002_s1 + name: 根目录添加文件 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: RenameEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_文件添加_003_s1 + name: 规则 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_文件添加_004_s1 + name: 添加文件类型5 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: RenameEdit + role: text + do: focus + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_文件添加_005_s1 + name: zip分卷压缩4 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_文件添加_006_s1 + name: 进入二级目录后按上键切换到返回键 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\346\240\207\351\242\230\346\240\217/\346\240\207\351\242\230\346\240\217.suite.yaml" "b/tests/at/yaml/\346\240\207\351\242\230\346\240\217/\346\240\207\351\242\230\346\240\217.suite.yaml" deleted file mode 100644 index 45579bc19..000000000 --- "a/tests/at/yaml/\346\240\207\351\242\230\346\240\217/\346\240\207\351\242\230\346\240\217.suite.yaml" +++ /dev/null @@ -1,56 +0,0 @@ -name: 标题栏_suite -app: deepin-compressor -module: 标题栏 -setup: -- action: session_start - command: deepin-compressor - wait: 3.0 -suites: -- id: suite_biaotilan_001_s1 - name: 标题栏-添加按钮点击打开新建菜单 - description: '' - steps: - - step_type: action - action: element_action - selector: - accessible_id: TitleButton - role: push button - do: click - wait: 1.0 - assert_steps: - - step_type: assert - action: assert_element - selector: - accessible_id: TitleButton - role: push button - - step_type: assert - action: assert_process_running - app: deepin-compressor -- id: suite_biaotilan_002_s1 - name: 标题栏-注释按钮点击打开注释编辑 - description: '' - steps: - - step_type: action - action: element_action - selector: - accessible_id: CommentButton - role: push button - do: focus - - step_type: action - action: element_action - selector: - accessible_id: CommentButton - role: push button - do: click - wait: 1.0 - assert_steps: - - step_type: assert - action: assert_element - selector: - accessible_id: CommentButton - role: push button - - step_type: assert - action: assert_process_running - app: deepin-compressor -teardown: -- action: session_stop diff --git "a/tests/at/yaml/\347\252\227\345\217\243\347\256\241\347\220\206/\347\252\227\345\217\243\347\256\241\347\220\206.suite.yaml" "b/tests/at/yaml/\347\252\227\345\217\243\347\256\241\347\220\206/\347\252\227\345\217\243\347\256\241\347\220\206.suite.yaml" new file mode 100644 index 000000000..739c7216a --- /dev/null +++ "b/tests/at/yaml/\347\252\227\345\217\243\347\256\241\347\220\206/\347\252\227\345\217\243\347\256\241\347\220\206.suite.yaml" @@ -0,0 +1,44 @@ +name: 窗口管理_suite +app: deepin-compressor +module: 窗口管理 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_窗口管理_002_s1 + name: 窗口多开 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: CancelButton + role: push button +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\347\273\223\346\236\234\347\225\214\351\235\242/\347\273\223\346\236\234\347\225\214\351\235\242.suite.yaml" "b/tests/at/yaml/\347\273\223\346\236\234\347\225\214\351\235\242/\347\273\223\346\236\234\347\225\214\351\235\242.suite.yaml" new file mode 100644 index 000000000..a5eb17b6f --- /dev/null +++ "b/tests/at/yaml/\347\273\223\346\236\234\347\225\214\351\235\242/\347\273\223\346\236\234\347\225\214\351\235\242.suite.yaml" @@ -0,0 +1,116 @@ +name: 结果界面_suite +app: deepin-compressor +module: 结果界面 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_结果界面_002_s1 + name: 失败界面返回按钮 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: ExtractButton + role: push button +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\350\247\243\345\216\213/\350\247\243\345\216\213.suite.yaml" "b/tests/at/yaml/\350\247\243\345\216\213/\350\247\243\345\216\213.suite.yaml" new file mode 100644 index 000000000..7662b0d76 --- /dev/null +++ "b/tests/at/yaml/\350\247\243\345\216\213/\350\247\243\345\216\213.suite.yaml" @@ -0,0 +1,26 @@ +name: 解压_suite +app: deepin-compressor +module: 解压 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_解压_001_s1 + name: 授权提示02 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\350\256\276\347\275\256/\350\256\276\347\275\256.suite.yaml" "b/tests/at/yaml/\350\256\276\347\275\256/\350\256\276\347\275\256.suite.yaml" new file mode 100644 index 000000000..28078675d --- /dev/null +++ "b/tests/at/yaml/\350\256\276\347\275\256/\350\256\276\347\275\256.suite.yaml" @@ -0,0 +1,500 @@ +name: 设置_suite +app: deepin-compressor +module: 设置 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_设置_002_s1 + name: 设置压缩文件位置3 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: RecommendedButton + role: radio button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_设置_003_s1 + name: 设置压缩文件名5 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_设置_004_s1 + name: 设置-压缩后删除原来的文件1 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: CompressButton + role: push button +- id: suite_设置_005_s1 + name: 并行压缩支持的格式 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\350\277\233\345\272\246\346\216\247\345\210\266/\350\277\233\345\272\246\346\216\247\345\210\266.suite.yaml" "b/tests/at/yaml/\350\277\233\345\272\246\346\216\247\345\210\266/\350\277\233\345\272\246\346\216\247\345\210\266.suite.yaml" new file mode 100644 index 000000000..cc9fd2f9a --- /dev/null +++ "b/tests/at/yaml/\350\277\233\345\272\246\346\216\247\345\210\266/\350\277\233\345\272\246\346\216\247\345\210\266.suite.yaml" @@ -0,0 +1,282 @@ +name: 进度控制_suite +app: deepin-compressor +module: 进度控制 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_进度控制_001_s1 + name: 压缩过程 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +- id: suite_进度控制_002_s1 + name: 压缩暂停3 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: PauseContinueButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\350\277\275\345\212\240\345\216\213\347\274\251/\350\277\275\345\212\240\345\216\213\347\274\251.suite.yaml" "b/tests/at/yaml/\350\277\275\345\212\240\345\216\213\347\274\251/\350\277\275\345\212\240\345\216\213\347\274\251.suite.yaml" new file mode 100644 index 000000000..bdbfeb495 --- /dev/null +++ "b/tests/at/yaml/\350\277\275\345\212\240\345\216\213\347\274\251/\350\277\275\345\212\240\345\216\213\347\274\251.suite.yaml" @@ -0,0 +1,92 @@ +name: 追加压缩_suite +app: deepin-compressor +module: 追加压缩 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_追加压缩_001_s1 + name: 添加过程中出错情况 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CancelButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: BackButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ViewFileButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SelectFileButton + role: push button +teardown: +- action: session_stop diff --git "a/tests/at/yaml/\351\207\215\345\221\275\345\220\215/\351\207\215\345\221\275\345\220\215.suite.yaml" "b/tests/at/yaml/\351\207\215\345\221\275\345\220\215/\351\207\215\345\221\275\345\220\215.suite.yaml" deleted file mode 100644 index 94ebba32a..000000000 --- "a/tests/at/yaml/\351\207\215\345\221\275\345\220\215/\351\207\215\345\221\275\345\220\215.suite.yaml" +++ /dev/null @@ -1,23 +0,0 @@ -name: 重命名_suite -app: deepin-compressor -module: 重命名 -setup: -- action: session_start - command: deepin-compressor - wait: 3.0 -suites: -- id: suite_chongmingming_001_s1 - name: 重命名-重命名对话框名称标签显示重命名标题 - description: '' - steps: [] - assert_steps: - - step_type: assert - action: assert_element - selector: - accessible_id: NameLabel - role: label - - step_type: assert - action: assert_process_running - app: deepin-compressor -teardown: -- action: session_stop diff --git "a/tests/at/yaml/\351\224\256\347\233\230\344\272\244\344\272\222/\351\224\256\347\233\230\344\272\244\344\272\222.suite.yaml" "b/tests/at/yaml/\351\224\256\347\233\230\344\272\244\344\272\222/\351\224\256\347\233\230\344\272\244\344\272\222.suite.yaml" new file mode 100644 index 000000000..ab4097674 --- /dev/null +++ "b/tests/at/yaml/\351\224\256\347\233\230\344\272\244\344\272\222/\351\224\256\347\233\230\344\272\244\344\272\222.suite.yaml" @@ -0,0 +1,32 @@ +name: 键盘交互_suite +app: deepin-compressor +module: 键盘交互 +setup: +- action: session_start + command: deepin-compressor + wait: 3.0 +suites: +- id: suite_键盘交互_001_s1 + name: 键盘交互-主菜单、子菜单中的交互 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: CompressButton + role: push button +teardown: +- action: session_stop From 434f5e9cb48029cce9407c0b8150917a825d2628 Mon Sep 17 00:00:00 2001 From: dengzhongyuan365-dev Date: Fri, 13 Nov 2026 16:19:48 +0800 Subject: [PATCH 3/4] fix: add AT-SPI accessible names for interactive controls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Add setAccessibleName() to 31 interactive controls across 10 files. 2. Cover compression, extraction, progress, result and settings pages. 3. Name radio buttons, input fields, switches, combos and buttons. Log: Add accessible names for AT-SPI automation support Influence: 1. Launch the app and verify all interactive controls render and respond. 2. Run AT-SPI inspection and confirm 31 controls expose accessible names. 3. Verify compression and extraction flows remain unaffected. fix: 为交互控件补充 AT-SPI 无障碍名称 1. 为 10 个文件中的 31 个交互控件增加 setAccessibleName()。 2. 覆盖压缩、解压、进度、结果及设置等页面。 3. 包含单选框、输入框、开关、下拉框和按钮等控件。 Influence: 1. 启动应用,验证各交互控件显示与交互正常。 2. 使用 AT-SPI 检查工具确认 31 个控件均可获取无障碍名称。 3. 验证压缩、解压等既有流程不受影响。 Log: 补充 AT-SPI 自动化测试所需的控件无障碍名称 PMS: TASK-398535 multica: V-8391 --- src/source/dialog/popupdialog.cpp | 7 ++++++- src/source/dialog/progressdialog.cpp | 3 ++- src/source/dialog/settingdialog.cpp | 5 ++++- src/source/page/compresspage.cpp | 3 ++- src/source/page/compresssettingpage.cpp | 15 ++++++++++++++- src/source/page/failurepage.cpp | 5 ++++- src/source/page/homepage.cpp | 3 ++- src/source/page/progresspage.cpp | 6 +++++- src/source/page/successpage.cpp | 5 ++++- src/source/page/uncompresspage.cpp | 5 ++++- 10 files changed, 47 insertions(+), 10 deletions(-) diff --git a/src/source/dialog/popupdialog.cpp b/src/source/dialog/popupdialog.cpp index fdb51924a..52e94842a 100644 --- a/src/source/dialog/popupdialog.cpp +++ b/src/source/dialog/popupdialog.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2019 ~ 2020 Uniontech Software Technology Co.,Ltd. +// Copyright (C) 2019 ~ 2026 Uniontech Software Technology Co.,Ltd. // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -350,8 +350,10 @@ QStringList ConvertDialog::showDialog() DRadioButton *zipBtn = new DRadioButton("ZIP"); zipBtn->setChecked(true); + zipBtn->setAccessibleName("ZipRadioButton"); DRadioButton *_7zBtn = new DRadioButton("7Z"); _7zBtn->setChecked(false); + _7zBtn->setAccessibleName("SevenZRadioButton"); QHBoxLayout *labelLayout = new QHBoxLayout; labelLayout->addStretch(); @@ -481,10 +483,12 @@ int AppendDialog::showDialog(bool bMultiplePassword) // 勾选密码 DCheckBox *pSelCkb = new DCheckBox(tr("Use password"), this); + pSelCkb->setAccessibleName("UsePasswordCheckBox"); DFontSizeManager::instance()->bind(pSelCkb, DFontSizeManager::T6, QFont::Medium); // 密码输入框 DPasswordEdit *pPasswordEdit = new DPasswordEdit(this); + pPasswordEdit->setAccessibleName("PasswordEdit"); pPasswordEdit->lineEdit()->setAttribute(Qt::WA_InputMethodEnabled, false); //隐藏密码时不能输入中文 pPasswordEdit->setFocusPolicy(Qt::StrongFocus); pPasswordEdit->setMinimumHeight(36); @@ -605,6 +609,7 @@ int RenameDialog::showDialog(const QString &strReName, const QString &strAlias, qCDebug(appLog) << "Showing RenameDialog for:" << strReName << "isDirectory:" << isDirectory << "isRepeat:" << isRepeat; if(m_lineEdit == NULL) {//创建DLineEdit,设定显示规则。 m_lineEdit = new DLineEdit(this); + m_lineEdit->setAccessibleName("RenameEdit"); //使用 QValidator 在输入时直接拒绝非法字符,避免在 textChanged 中 setText 导致光标跳动 //第一位不允许空格和特殊字符,后续位不允许特殊字符(中间空格允许) #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) diff --git a/src/source/dialog/progressdialog.cpp b/src/source/dialog/progressdialog.cpp index f4ef3e91b..39d63cd0f 100644 --- a/src/source/dialog/progressdialog.cpp +++ b/src/source/dialog/progressdialog.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2019 ~ 2020 Uniontech Software Technology Co.,Ltd. +// Copyright (C) 2019 ~ 2026 Uniontech Software Technology Co.,Ltd. // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -59,6 +59,7 @@ void ProgressDialog::initUI() // 显示进度 m_circleprogress = new DProgressBar(this); + m_circleprogress->setAccessibleName("ProgressDialogBar"); m_circleprogress->setFixedSize(336, 6); m_circleprogress->setValue(0); diff --git a/src/source/dialog/settingdialog.cpp b/src/source/dialog/settingdialog.cpp index 683d5a7b9..8193ce353 100644 --- a/src/source/dialog/settingdialog.cpp +++ b/src/source/dialog/settingdialog.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2019 ~ 2020 Uniontech Software Technology Co.,Ltd. +// Copyright (C) 2019 ~ 2026 Uniontech Software Technology Co.,Ltd. // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -130,8 +130,11 @@ void SettingDialog::createSettingButton() QWidget *buttonwidget = new QWidget(); QHBoxLayout *layout = new QHBoxLayout(); CustomPushButton *selectAllButton = new CustomPushButton(tr("Select All", "button")); + selectAllButton->setAccessibleName("SelectAllButton"); CustomPushButton *cancelSelectButton = new CustomPushButton(tr("Clear All")); + cancelSelectButton->setAccessibleName("ClearAllButton"); CustomSuggestButton *recommendedButton = new CustomSuggestButton(tr("Recommended")); + recommendedButton->setAccessibleName("RecommendedButton"); selectAllButton->setMinimumWidth(153); cancelSelectButton->setMinimumWidth(153); recommendedButton->setMinimumWidth(153); diff --git a/src/source/page/compresspage.cpp b/src/source/page/compresspage.cpp index 40adc2e9c..f8beff527 100644 --- a/src/source/page/compresspage.cpp +++ b/src/source/page/compresspage.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2019 ~ 2020 Uniontech Software Technology Co.,Ltd. +// Copyright (C) 2019 ~ 2026 Uniontech Software Technology Co.,Ltd. // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -77,6 +77,7 @@ void CompressPage::initUI() m_pCompressView = new CompressView(this); m_pNextBtn = new CustomPushButton(tr("Next"), this); m_pNextBtn->setMinimumWidth(340); + m_pNextBtn->setAccessibleName("NextButton"); // 按钮布局 QHBoxLayout *pBtnLayout = new QHBoxLayout; diff --git a/src/source/page/compresssettingpage.cpp b/src/source/page/compresssettingpage.cpp index b8ed23473..17befb5ea 100644 --- a/src/source/page/compresssettingpage.cpp +++ b/src/source/page/compresssettingpage.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2019 ~ 2020 Uniontech Software Technology Co.,Ltd. +// Copyright (C) 2019 ~ 2026 Uniontech Software Technology Co.,Ltd. // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -301,6 +301,19 @@ void CompressSettingPage::initUI() m_pCompressBtn->setMinimumWidth(340); // 设置压缩按钮最小尺寸 + // 设置无障碍名称 + m_pFileNameEdt->setAccessibleName("FileNameEdit"); + m_pSavePathEdt->setAccessibleName("SavePathEdit"); + m_pCompressLevelCmb->setAccessibleName("CompressLevelComboBox"); + m_pAdvancedBtn->setAccessibleName("AdvancedOptionsSwitch"); + m_pPasswordEdt->setAccessibleName("PasswordEdit"); + m_pCpuCmb->setAccessibleName("CpuThreadComboBox"); + m_pListEncryptionBtn->setAccessibleName("ListEncryptionSwitch"); + m_pSplitCkb->setAccessibleName("SplitCheckBox"); + m_pSplitValueEdt->setAccessibleName("SplitValueEdit"); + m_pCommentEdt->setAccessibleName("CommentEdit"); + m_pCompressBtn->setAccessibleName("CompressButton"); + // 左侧布局 QHBoxLayout *pTypeLayout = new QHBoxLayout; // 类型布局 pTypeLayout->addStretch(); diff --git a/src/source/page/failurepage.cpp b/src/source/page/failurepage.cpp index eabd0ab45..c8a13268c 100644 --- a/src/source/page/failurepage.cpp +++ b/src/source/page/failurepage.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2019 ~ 2020 Uniontech Software Technology Co.,Ltd. +// Copyright (C) 2019 ~ 2026 Uniontech Software Technology Co.,Ltd. // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -100,6 +100,9 @@ void FailurePage::initUI() //返回按钮 commandLinkBackButton = new CustomCommandLinkButton(tr("Back"), this); + m_pRetrybutton->setAccessibleName("RetryButton"); + commandLinkBackButton->setAccessibleName("BackButton"); + //界面布局 QVBoxLayout *mainlayout = new QVBoxLayout(this); mainlayout->addStretch(); diff --git a/src/source/page/homepage.cpp b/src/source/page/homepage.cpp index f009b1ed2..d89fdebdc 100644 --- a/src/source/page/homepage.cpp +++ b/src/source/page/homepage.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2019 ~ 2020 Uniontech Software Technology Co.,Ltd. +// Copyright (C) 2019 ~ 2026 Uniontech Software Technology Co.,Ltd. // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -44,6 +44,7 @@ void HomePage::initUI() m_pTipLbl = new DLabel(tr("Drag file or folder here"), this); m_pSplitLbl = new DLabel(this); m_pChooseBtn = new CustomCommandLinkButton(tr("Select File"), this); + m_pChooseBtn->setAccessibleName("SelectFileButton"); m_pSettings = new QSettings(QDir(UiTools::getConfigPath()).filePath("config.conf"), QSettings::IniFormat, this); // 初始化控件布局 diff --git a/src/source/page/progresspage.cpp b/src/source/page/progresspage.cpp index f28cfaeb0..785779242 100644 --- a/src/source/page/progresspage.cpp +++ b/src/source/page/progresspage.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2019 ~ 2020 Uniontech Software Technology Co.,Ltd. +// Copyright (C) 2019 ~ 2026 Uniontech Software Technology Co.,Ltd. // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -224,6 +224,10 @@ void ProgressPage::initUI() m_pCancelBtn = new CustomPushButton(tr("Cancel", "button"), this); m_pPauseContinueButton = new CustomSuggestButton(tr("Pause", "button"), this); + m_pProgressBar->setAccessibleName("ProgressBar"); + m_pCancelBtn->setAccessibleName("CancelButton"); + m_pPauseContinueButton->setAccessibleName("PauseContinueButton"); + // 初始化压缩包名称样式 DFontSizeManager::instance()->bind(m_pArchiveNameLbl, DFontSizeManager::T5, QFont::DemiBold); m_pArchiveNameLbl->setForegroundRole(DPalette::ToolTipText); diff --git a/src/source/page/successpage.cpp b/src/source/page/successpage.cpp index 01a00eef6..c9f0e923b 100644 --- a/src/source/page/successpage.cpp +++ b/src/source/page/successpage.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2019 ~ 2020 Uniontech Software Technology Co.,Ltd. +// Copyright (C) 2019 ~ 2026 Uniontech Software Technology Co.,Ltd. // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -83,6 +83,9 @@ void SuccessPage::initUI() //返回按钮 m_pReturnBtn = new CustomCommandLinkButton(tr("Back"), this); + m_pShowFileBtn->setAccessibleName("ViewFileButton"); + m_pReturnBtn->setAccessibleName("BackButton"); + //界面布局 QVBoxLayout *mainlayout = new QVBoxLayout(this); mainlayout->addStretch(); diff --git a/src/source/page/uncompresspage.cpp b/src/source/page/uncompresspage.cpp index 1fd5766db..a54c56003 100644 --- a/src/source/page/uncompresspage.cpp +++ b/src/source/page/uncompresspage.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2019 ~ 2020 Uniontech Software Technology Co.,Ltd. +// Copyright (C) 2019 ~ 2026 Uniontech Software Technology Co.,Ltd. // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -117,6 +117,9 @@ void UnCompressPage::initUI() m_pUncompressPathBtn = new CustomCommandLinkButton(tr("Extract to:") + " ~/Desktop", this); m_pUnCompressBtn = new CustomPushButton(tr("Extract", "button"), this); + m_pUncompressPathBtn->setAccessibleName("ExtractPathButton"); + m_pUnCompressBtn->setAccessibleName("ExtractButton"); + m_pUncompressPathBtn->setToolTip(m_strUnCompressPath); DFontSizeManager::instance()->bind(m_pUncompressPathBtn, DFontSizeManager::T8); From b65a03caa6d19da7938acb1a431e586f8014cdba Mon Sep 17 00:00:00 2001 From: dengzhongyuan365-dev Date: Fri, 13 Nov 2026 17:14:59 +0800 Subject: [PATCH 4/4] =?UTF-8?q?[AT]=20=E5=BD=92=E6=A1=A3=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=99=A8=20AT-SPI=20=E6=B5=8B=E8=AF=95=E5=A5=97=E4=BB=B6?= =?UTF-8?q?=E5=A2=9E=E9=87=8F=E8=A1=A5=E5=85=85=EF=BC=88=E6=96=B0=E5=A2=9E?= =?UTF-8?q?18=E4=B8=AAsetAccessibleName=E6=8E=A7=E4=BB=B6=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 源码新增18个setAccessibleName控件,element-map补充对应元素条目 - 新增18条补充用例(SUP001-SUP018),覆盖文件名设置、设置、密码加密、 分卷压缩、压缩解压、结果界面、进度控制、解压8个模块 - element-coverage-manifest更新至30个命名元素 - 覆盖门禁PASS:30/30 = 100% - Gate 5 + Gate 4 校验通过 - 新增suite:文件名设置_002、设置_006/007、密码加密_004、 分卷压缩_002、压缩解压_004、结果界面_003、进度控制_003、解压_002 --- tests/at/cases_mapped.yaml | 389 ++++++++++++++++++ tests/at/coverage-report.yaml | 6 +- tests/at/element-coverage-manifest.yaml | 102 ++++- tests/at/yaml/elements.yaml | 60 ++- ...15\267\345\216\213\347\274\251.suite.yaml" | 37 ++ ...74\251\350\247\243\345\216\213.suite.yaml" | 33 ++ ...40\201\345\212\240\345\257\206.suite.yaml" | 78 ++++ ...20\215\350\256\276\347\275\256.suite.yaml" | 45 ++ ...36\234\347\225\214\351\235\242.suite.yaml" | 34 ++ .../\350\247\243\345\216\213.suite.yaml" | 22 + .../\350\256\276\347\275\256.suite.yaml" | 104 +++++ ...72\246\346\216\247\345\210\266.suite.yaml" | 45 ++ 12 files changed, 938 insertions(+), 17 deletions(-) diff --git a/tests/at/cases_mapped.yaml b/tests/at/cases_mapped.yaml index 7a3017c17..6725a1a77 100644 --- a/tests/at/cases_mapped.yaml +++ b/tests/at/cases_mapped.yaml @@ -39,6 +39,42 @@ cases: selector: name: SelectFileButton role: push button +- id: suite_分卷压缩_002_s1 + name: 分卷大小设置 + module: 分卷压缩 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: SplitValueEdit + role: text + do: click + - step_type: action + action: keyboard_type + text: '100' + - step_type: assert + action: assert_element + selector: + name: SplitValueEdit + role: text - id: suite_压缩_001_s1 name: 压缩快捷键 module: 压缩 @@ -336,6 +372,38 @@ cases: selector: name: ExtractButton role: push button +- id: suite_压缩解压_004_s1 + name: 格式转换选择 + module: 压缩解压 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ZipRadioButton + role: radio button + do: click + - step_type: action + action: element_action + selector: + name: SevenZRadioButton + role: radio button + do: click + - step_type: assert + action: assert_element + selector: + name: ZipRadioButton + role: radio button + - step_type: assert + action: assert_element + selector: + name: SevenZRadioButton + role: radio button - id: suite_右键压缩_002_s1 name: 压缩包重命名 module: 右键压缩 @@ -1212,6 +1280,83 @@ cases: selector: name: SelectFileButton role: push button +- id: suite_密码加密_004_s1 + name: 列表加密与格式转换 + module: 密码加密 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: AdvancedOptionsSwitch + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ListEncryptionSwitch + role: push button + do: click + - step_type: action + action: element_action + selector: + name: UsePasswordCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: Applyall_btn + role: check box + do: click + - step_type: action + action: element_action + selector: + name: ZipRadioButton + role: radio button + do: click + - step_type: action + action: element_action + selector: + name: SevenZRadioButton + role: radio button + do: click + - step_type: assert + action: assert_element + selector: + name: ListEncryptionSwitch + role: push button + - step_type: assert + action: assert_element + selector: + name: UsePasswordCheckBox + role: check box + - step_type: assert + action: assert_element + selector: + name: Applyall_btn + role: check box + - step_type: assert + action: assert_element + selector: + name: ZipRadioButton + role: radio button + - step_type: assert + action: assert_element + selector: + name: SevenZRadioButton + role: radio button - id: suite_帮助关于_001_s1 name: 帮助手册 module: 帮助关于 @@ -1317,6 +1462,50 @@ cases: selector: name: CompressButton role: push button +- id: suite_文件名设置_002_s1 + name: 文件名与保存路径设置 + module: 文件名设置 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: FileNameEdit + role: text + do: click + - step_type: action + action: keyboard_type + text: 测试压缩包 + - step_type: action + action: element_action + selector: + name: SavePathEdit + role: text + do: click + - step_type: action + action: keyboard_type + text: /tmp + - step_type: assert + action: assert_element + selector: + name: FileNameEdit + role: text + - step_type: assert + action: assert_element + selector: + name: SavePathEdit + role: text - id: suite_文件添加_002_s1 name: 根目录添加文件 module: 文件添加 @@ -2154,6 +2343,39 @@ cases: selector: name: ExtractButton role: push button +- id: suite_结果界面_003_s1 + name: 失败重试 + module: 结果界面 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: RetryButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: RetryButton + role: push button - id: suite_解压_001_s1 name: 授权提示02 module: 解压 @@ -2169,6 +2391,27 @@ cases: selector: name: SelectFileButton role: push button +- id: suite_解压_002_s1 + name: 解压路径设置 + module: 解压 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractPathButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: ExtractPathButton + role: push button - id: suite_设置_002_s1 name: 设置压缩文件位置3 module: 设置 @@ -2655,6 +2898,108 @@ cases: selector: name: SelectFileButton role: push button +- id: suite_设置_006_s1 + name: 压缩级别与高级选项设置 + module: 设置 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressLevelComboBox + role: combo box + do: click + - step_type: action + action: element_action + selector: + name: CompressLevelComboBox + role: combo box + do: click + - step_type: action + action: element_action + selector: + name: AdvancedOptionsSwitch + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CpuThreadComboBox + role: combo box + do: click + - step_type: action + action: element_action + selector: + name: CpuThreadComboBox + role: combo box + do: click + - step_type: action + action: element_action + selector: + name: CommentEdit + role: text + do: click + - step_type: action + action: keyboard_type + text: 测试注释 + - step_type: assert + action: assert_element + selector: + name: CompressLevelComboBox + role: combo box + - step_type: assert + action: assert_element + selector: + name: CpuThreadComboBox + role: combo box + - step_type: assert + action: assert_element + selector: + name: CommentEdit + role: text +- id: suite_设置_007_s1 + name: 全选与清除按钮 + module: 设置 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectAllButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ClearAllButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: SelectAllButton + role: push button + - step_type: assert + action: assert_element + selector: + name: ClearAllButton + role: push button - id: suite_进度控制_001_s1 name: 压缩过程 module: 进度控制 @@ -2925,6 +3270,50 @@ cases: selector: name: SelectFileButton role: push button +- id: suite_进度控制_003_s1 + name: 进度条验证 + module: 进度控制 + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + - step_type: assert + action: assert_element + selector: + name: ProgressBar + role: progress bar + - step_type: assert + action: assert_element + selector: + name: ProgressDialogBar + role: progress bar - id: suite_追加压缩_001_s1 name: 添加过程中出错情况 module: 追加压缩 diff --git a/tests/at/coverage-report.yaml b/tests/at/coverage-report.yaml index 5d444b9a7..6fe43533d 100644 --- a/tests/at/coverage-report.yaml +++ b/tests/at/coverage-report.yaml @@ -1,8 +1,8 @@ -scan_total: 12 +scan_total: 30 transient_items: [] unreachable: 0 -denominator: 12 -covered: 12 +denominator: 30 +covered: 30 uncovered: 0 coverage: 100.0 passed: true diff --git a/tests/at/element-coverage-manifest.yaml b/tests/at/element-coverage-manifest.yaml index b0f86278d..b34890c76 100644 --- a/tests/at/element-coverage-manifest.yaml +++ b/tests/at/element-coverage-manifest.yaml @@ -1,6 +1,6 @@ version: '1.0' source: at-case-authoring:element-map.yaml -scan_total: 12 +scan_total: 30 elements: RenameEdit: role: text @@ -57,11 +57,101 @@ elements: ui_name: 显示文件按钮 desc: 成功页查看文件按钮 successpage.cpp m_pShowFileBtn locator: name + SevenZRadioButton: + role: radio button + ui_name: 提示框上转换按钮 + desc: 压缩格式7z单选按钮 popupdialog.cpp _7zBtn(源码新增setAccessibleName) + locator: name + ZipRadioButton: + role: radio button + ui_name: 转换按钮 + desc: 压缩格式zip单选按钮 popupdialog.cpp zipBtn(源码新增setAccessibleName) + locator: name PauseContinueButton: role: push button ui_name: 界面上暂停按钮 desc: 暂停/继续按钮 progresspage.cpp m_pPauseContinueButton locator: name + SelectAllButton: + role: push button + ui_name: 全选按钮 + desc: 设置对话框全选按钮 settingdialog.cpp selectAllButton(源码新增setAccessibleName) + locator: name + ClearAllButton: + role: push button + ui_name: 清除按钮 + desc: 设置对话框清除按钮 settingdialog.cpp cancelSelectButton(源码新增setAccessibleName) + locator: name + Applyall_btn: + role: check box + ui_name: 全部应用复选框 + desc: 弹窗全部应用复选框 popupdialog.cpp checkbox(源码已有setAccessibleName) + locator: name + UsePasswordCheckBox: + role: check box + ui_name: 使用密码复选框 + desc: 使用密码复选框 popupdialog.cpp pSelCkb(源码新增setAccessibleName) + locator: name + ProgressDialogBar: + role: progress bar + ui_name: 进度对话框进度条 + desc: 进度对话框进度条 progressdialog.cpp m_circleprogress(源码新增setAccessibleName) + locator: name + ExtractPathButton: + role: push button + ui_name: 解压路径按钮 + desc: 解压路径按钮 uncompresspage.cpp m_pUncompressPathBtn(源码新增setAccessibleName) + locator: name + RetryButton: + role: push button + ui_name: 重试按钮 + desc: 失败页重试按钮 failurepage.cpp m_pRetrybutton(源码新增setAccessibleName) + locator: name + FileNameEdit: + role: text + ui_name: 文件名输入框 + desc: 文件名输入框 compresssettingpage.cpp m_pFileNameEdt(源码新增setAccessibleName) + locator: name + SavePathEdit: + role: text + ui_name: 保存路径输入框 + desc: 保存路径输入框 compresssettingpage.cpp m_pSavePathEdt(源码新增setAccessibleName) + locator: name + CompressLevelComboBox: + role: combo box + ui_name: 压缩级别下拉框 + desc: 压缩级别下拉框 compresssettingpage.cpp m_pCompressLevelCmb(源码新增setAccessibleName) + locator: name + AdvancedOptionsSwitch: + role: push button + ui_name: 高级选项开关 + desc: 高级选项开关 compresssettingpage.cpp m_pAdvancedBtn(源码新增setAccessibleName) + locator: name + CpuThreadComboBox: + role: combo box + ui_name: CPU线程下拉框 + desc: CPU线程下拉框 compresssettingpage.cpp m_pCpuCmb(源码新增setAccessibleName) + locator: name + ListEncryptionSwitch: + role: push button + ui_name: 列表加密开关 + desc: 列表加密开关 compresssettingpage.cpp m_pListEncryptionBtn(源码新增setAccessibleName) + locator: name + SplitValueEdit: + role: text + ui_name: 分卷大小输入框 + desc: 分卷大小输入框 compresssettingpage.cpp m_pSplitValueEdt(源码新增setAccessibleName) + locator: name + CommentEdit: + role: text + ui_name: 注释输入框 + desc: 注释输入框 compresssettingpage.cpp m_pCommentEdt(源码新增setAccessibleName) + locator: name + ProgressBar: + role: progress bar + ui_name: 进度条 + desc: 进度条 progresspage.cpp m_pProgressBar(源码新增setAccessibleName) + locator: name transient_items: [] unresolved: - name: 打开 @@ -159,16 +249,6 @@ unresolved: ui_name: 压缩后删除原来的文件 desc: 设置选项-压缩后删除,无accessible name reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 提示框上转换按钮 - role: TBD - ui_name: 提示框上转换按钮 - desc: 提示框转换按钮,无accessible name - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 -- name: 转换按钮 - role: TBD - ui_name: 转换按钮 - desc: 转换按钮,无accessible name - reason: id_name/object_name 未填 (TBD),运行时无法按名定位 - name: 提示框上取消按钮 role: TBD ui_name: 提示框上取消按钮 diff --git a/tests/at/yaml/elements.yaml b/tests/at/yaml/elements.yaml index 11d3a4313..a9a3860ac 100644 --- a/tests/at/yaml/elements.yaml +++ b/tests/at/yaml/elements.yaml @@ -14,6 +14,12 @@ elements: SelectFileButton: name: SelectFileButton role: push button + NextButton: + name: NextButton + role: push button + SplitValueEdit: + name: SplitValueEdit + role: text CompressButton: name: CompressButton role: push button @@ -23,15 +29,63 @@ elements: BackButton: name: BackButton role: push button - NextButton: - name: NextButton - role: push button + ZipRadioButton: + name: ZipRadioButton + role: radio button + SevenZRadioButton: + name: SevenZRadioButton + role: radio button RenameEdit: name: RenameEdit role: text PasswordEdit: name: PasswordEdit role: text + AdvancedOptionsSwitch: + name: AdvancedOptionsSwitch + role: push button + ListEncryptionSwitch: + name: ListEncryptionSwitch + role: push button + UsePasswordCheckBox: + name: UsePasswordCheckBox + role: check box + Applyall_btn: + name: Applyall_btn + role: check box + FileNameEdit: + name: FileNameEdit + role: text + SavePathEdit: + name: SavePathEdit + role: text + RetryButton: + name: RetryButton + role: push button + ExtractPathButton: + name: ExtractPathButton + role: push button RecommendedButton: name: RecommendedButton role: radio button + CompressLevelComboBox: + name: CompressLevelComboBox + role: combo box + CpuThreadComboBox: + name: CpuThreadComboBox + role: combo box + CommentEdit: + name: CommentEdit + role: text + SelectAllButton: + name: SelectAllButton + role: push button + ClearAllButton: + name: ClearAllButton + role: push button + ProgressBar: + name: ProgressBar + role: progress bar + ProgressDialogBar: + name: ProgressDialogBar + role: progress bar diff --git "a/tests/at/yaml/\345\210\206\345\215\267\345\216\213\347\274\251/\345\210\206\345\215\267\345\216\213\347\274\251.suite.yaml" "b/tests/at/yaml/\345\210\206\345\215\267\345\216\213\347\274\251/\345\210\206\345\215\267\345\216\213\347\274\251.suite.yaml" index dae84c0a8..057e0ae21 100644 --- "a/tests/at/yaml/\345\210\206\345\215\267\345\216\213\347\274\251/\345\210\206\345\215\267\345\216\213\347\274\251.suite.yaml" +++ "b/tests/at/yaml/\345\210\206\345\215\267\345\216\213\347\274\251/\345\210\206\345\215\267\345\216\213\347\274\251.suite.yaml" @@ -46,5 +46,42 @@ suites: selector: name: SelectFileButton role: push button +- id: suite_分卷压缩_002_s1 + name: 分卷大小设置 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SplitCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: SplitValueEdit + role: text + do: click + - step_type: action + action: keyboard_type + text: '100' + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SplitValueEdit + role: text teardown: - action: session_stop diff --git "a/tests/at/yaml/\345\216\213\347\274\251\350\247\243\345\216\213/\345\216\213\347\274\251\350\247\243\345\216\213.suite.yaml" "b/tests/at/yaml/\345\216\213\347\274\251\350\247\243\345\216\213/\345\216\213\347\274\251\350\247\243\345\216\213.suite.yaml" index 794d8ded6..359688edc 100644 --- "a/tests/at/yaml/\345\216\213\347\274\251\350\247\243\345\216\213/\345\216\213\347\274\251\350\247\243\345\216\213.suite.yaml" +++ "b/tests/at/yaml/\345\216\213\347\274\251\350\247\243\345\216\213/\345\216\213\347\274\251\350\247\243\345\216\213.suite.yaml" @@ -122,5 +122,38 @@ suites: selector: name: ExtractButton role: push button +- id: suite_压缩解压_004_s1 + name: 格式转换选择 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ZipRadioButton + role: radio button + do: click + - step_type: action + action: element_action + selector: + name: SevenZRadioButton + role: radio button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: ZipRadioButton + role: radio button + - step_type: assert + action: assert_element + selector: + name: SevenZRadioButton + role: radio button teardown: - action: session_stop diff --git "a/tests/at/yaml/\345\257\206\347\240\201\345\212\240\345\257\206/\345\257\206\347\240\201\345\212\240\345\257\206.suite.yaml" "b/tests/at/yaml/\345\257\206\347\240\201\345\212\240\345\257\206/\345\257\206\347\240\201\345\212\240\345\257\206.suite.yaml" index f9814bdf8..6a9adc9d2 100644 --- "a/tests/at/yaml/\345\257\206\347\240\201\345\212\240\345\257\206/\345\257\206\347\240\201\345\212\240\345\257\206.suite.yaml" +++ "b/tests/at/yaml/\345\257\206\347\240\201\345\212\240\345\257\206/\345\257\206\347\240\201\345\212\240\345\257\206.suite.yaml" @@ -540,5 +540,83 @@ suites: selector: name: SelectFileButton role: push button +- id: suite_密码加密_004_s1 + name: 列表加密与格式转换 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: AdvancedOptionsSwitch + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ListEncryptionSwitch + role: push button + do: click + - step_type: action + action: element_action + selector: + name: UsePasswordCheckBox + role: check box + do: click + - step_type: action + action: element_action + selector: + name: Applyall_btn + role: check box + do: click + - step_type: action + action: element_action + selector: + name: ZipRadioButton + role: radio button + do: click + - step_type: action + action: element_action + selector: + name: SevenZRadioButton + role: radio button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: ListEncryptionSwitch + role: push button + - step_type: assert + action: assert_element + selector: + name: UsePasswordCheckBox + role: check box + - step_type: assert + action: assert_element + selector: + name: Applyall_btn + role: check box + - step_type: assert + action: assert_element + selector: + name: ZipRadioButton + role: radio button + - step_type: assert + action: assert_element + selector: + name: SevenZRadioButton + role: radio button teardown: - action: session_stop diff --git "a/tests/at/yaml/\346\226\207\344\273\266\345\220\215\350\256\276\347\275\256/\346\226\207\344\273\266\345\220\215\350\256\276\347\275\256.suite.yaml" "b/tests/at/yaml/\346\226\207\344\273\266\345\220\215\350\256\276\347\275\256/\346\226\207\344\273\266\345\220\215\350\256\276\347\275\256.suite.yaml" index 40492ce54..649803360 100644 --- "a/tests/at/yaml/\346\226\207\344\273\266\345\220\215\350\256\276\347\275\256/\346\226\207\344\273\266\345\220\215\350\256\276\347\275\256.suite.yaml" +++ "b/tests/at/yaml/\346\226\207\344\273\266\345\220\215\350\256\276\347\275\256/\346\226\207\344\273\266\345\220\215\350\256\276\347\275\256.suite.yaml" @@ -70,5 +70,50 @@ suites: selector: name: CompressButton role: push button +- id: suite_文件名设置_002_s1 + name: 文件名与保存路径设置 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: FileNameEdit + role: text + do: click + - step_type: action + action: keyboard_type + text: 测试压缩包 + - step_type: action + action: element_action + selector: + name: SavePathEdit + role: text + do: click + - step_type: action + action: keyboard_type + text: /tmp + assert_steps: + - step_type: assert + action: assert_element + selector: + name: FileNameEdit + role: text + - step_type: assert + action: assert_element + selector: + name: SavePathEdit + role: text teardown: - action: session_stop diff --git "a/tests/at/yaml/\347\273\223\346\236\234\347\225\214\351\235\242/\347\273\223\346\236\234\347\225\214\351\235\242.suite.yaml" "b/tests/at/yaml/\347\273\223\346\236\234\347\225\214\351\235\242/\347\273\223\346\236\234\347\225\214\351\235\242.suite.yaml" index a5eb17b6f..e4e7df2ac 100644 --- "a/tests/at/yaml/\347\273\223\346\236\234\347\225\214\351\235\242/\347\273\223\346\236\234\347\225\214\351\235\242.suite.yaml" +++ "b/tests/at/yaml/\347\273\223\346\236\234\347\225\214\351\235\242/\347\273\223\346\236\234\347\225\214\351\235\242.suite.yaml" @@ -112,5 +112,39 @@ suites: selector: name: ExtractButton role: push button +- id: suite_结果界面_003_s1 + name: 失败重试 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: RetryButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: RetryButton + role: push button teardown: - action: session_stop diff --git "a/tests/at/yaml/\350\247\243\345\216\213/\350\247\243\345\216\213.suite.yaml" "b/tests/at/yaml/\350\247\243\345\216\213/\350\247\243\345\216\213.suite.yaml" index 7662b0d76..3fbf211b9 100644 --- "a/tests/at/yaml/\350\247\243\345\216\213/\350\247\243\345\216\213.suite.yaml" +++ "b/tests/at/yaml/\350\247\243\345\216\213/\350\247\243\345\216\213.suite.yaml" @@ -22,5 +22,27 @@ suites: selector: name: SelectFileButton role: push button +- id: suite_解压_002_s1 + name: 解压路径设置 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractPathButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: ExtractPathButton + role: push button teardown: - action: session_stop diff --git "a/tests/at/yaml/\350\256\276\347\275\256/\350\256\276\347\275\256.suite.yaml" "b/tests/at/yaml/\350\256\276\347\275\256/\350\256\276\347\275\256.suite.yaml" index 28078675d..0f10e1d23 100644 --- "a/tests/at/yaml/\350\256\276\347\275\256/\350\256\276\347\275\256.suite.yaml" +++ "b/tests/at/yaml/\350\256\276\347\275\256/\350\256\276\347\275\256.suite.yaml" @@ -496,5 +496,109 @@ suites: selector: name: SelectFileButton role: push button +- id: suite_设置_006_s1 + name: 压缩级别与高级选项设置 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressLevelComboBox + role: combo box + do: click + - step_type: action + action: element_action + selector: + name: CompressLevelComboBox + role: combo box + do: click + - step_type: action + action: element_action + selector: + name: AdvancedOptionsSwitch + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CpuThreadComboBox + role: combo box + do: click + - step_type: action + action: element_action + selector: + name: CpuThreadComboBox + role: combo box + do: click + - step_type: action + action: element_action + selector: + name: CommentEdit + role: text + do: click + - step_type: action + action: keyboard_type + text: 测试注释 + assert_steps: + - step_type: assert + action: assert_element + selector: + name: CompressLevelComboBox + role: combo box + - step_type: assert + action: assert_element + selector: + name: CpuThreadComboBox + role: combo box + - step_type: assert + action: assert_element + selector: + name: CommentEdit + role: text +- id: suite_设置_007_s1 + name: 全选与清除按钮 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectAllButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ClearAllButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: SelectAllButton + role: push button + - step_type: assert + action: assert_element + selector: + name: ClearAllButton + role: push button teardown: - action: session_stop diff --git "a/tests/at/yaml/\350\277\233\345\272\246\346\216\247\345\210\266/\350\277\233\345\272\246\346\216\247\345\210\266.suite.yaml" "b/tests/at/yaml/\350\277\233\345\272\246\346\216\247\345\210\266/\350\277\233\345\272\246\346\216\247\345\210\266.suite.yaml" index cc9fd2f9a..98e984374 100644 --- "a/tests/at/yaml/\350\277\233\345\272\246\346\216\247\345\210\266/\350\277\233\345\272\246\346\216\247\345\210\266.suite.yaml" +++ "b/tests/at/yaml/\350\277\233\345\272\246\346\216\247\345\210\266/\350\277\233\345\272\246\346\216\247\345\210\266.suite.yaml" @@ -278,5 +278,50 @@ suites: selector: name: SelectFileButton role: push button +- id: suite_进度控制_003_s1 + name: 进度条验证 + description: '' + steps: + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: NextButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: CompressButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: SelectFileButton + role: push button + do: click + - step_type: action + action: element_action + selector: + name: ExtractButton + role: push button + do: click + assert_steps: + - step_type: assert + action: assert_element + selector: + name: ProgressBar + role: progress bar + - step_type: assert + action: assert_element + selector: + name: ProgressDialogBar + role: progress bar teardown: - action: session_stop