From bcd07629d4cc7564f1ec1879c9a21c3cb1bdcd91 Mon Sep 17 00:00:00 2001 From: lvmingyao <1300203001@qq.com> Date: Tue, 13 Aug 2024 12:30:02 +0800 Subject: [PATCH] Update zentao.py --- xmind2testcase/zentao.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xmind2testcase/zentao.py b/xmind2testcase/zentao.py index 88eadbf..6a95a11 100644 --- a/xmind2testcase/zentao.py +++ b/xmind2testcase/zentao.py @@ -46,7 +46,7 @@ def gen_a_testcase_row(testcase_dict): case_keyword = '' case_priority = gen_case_priority(testcase_dict['importance']) case_type = gen_case_type(testcase_dict['execution_type']) - case_apply_phase = '迭代测试' + case_apply_phase = '功能测试阶段' row = [case_module, case_title, case_precontion, case_step, case_expected_result, case_keyword, case_priority, case_type, case_apply_phase] return row @@ -74,22 +74,22 @@ def gen_case_step_and_expected_result(steps): def gen_case_priority(priority): - mapping = {1: '高', 2: '中', 3: '低'} + mapping = {1: '1', 2: '2', 3: '3', 4: '4'} if priority in mapping.keys(): return mapping[priority] else: - return '中' + return '2' def gen_case_type(case_type): - mapping = {1: '手动', 2: '自动'} + mapping = {1: '功能测试', 2: '性能测试', 3:'配置相关, 4:'安全相关', 5:'接口测试', 6:'单元测试', 7:'其他'} if case_type in mapping.keys(): return mapping[case_type] else: - return '手动' + return '功能测试' if __name__ == '__main__': xmind_file = '../docs/zentao_testcase_template.xmind' zentao_csv_file = xmind_to_zentao_csv_file(xmind_file) - print('Conver the xmind file to a zentao csv file succssfully: %s', zentao_csv_file) \ No newline at end of file + print('Conver the xmind file to a zentao csv file succssfully: %s', zentao_csv_file)