测试用例执行xmind的软件,玩转用例设计:XMind2TestCase一个高效的测试用例设计解决方案...

from xmind2testcase.utils import get_xmind_testsuite_list

xmind_file = 'docs/xmind_testcase_demo.xmind'

testsuites = get_xmind_testsuite_list(xmind_file)

print(testsuites)

Output:

[

{                                                 # XMind画布(Sheet)列表

"name": "我是产品名",                             # 产品名称

"details": null,                                 # 产品摘要

"testcase_list": [],                             # 用例列表

"sub_suites": [                                  # 用例集列表

{

"name": "我是模块名(测试集1)",                  # 用例集1名称(模块名)

"details": null,                             # 用例集摘要

"testcase_list": [                           # 用例列表

{                                          # 具体用例

"name": "测试用例1",

"version": 1,

"summary": "测试用例1",

"preconditions": "前置条件",

"execution_type": 1,

"importance": 1,

"estimated_exec_duration": 3,

"status": 7,

"steps": [

{

"step_number": 1,

"actions": "测试步骤1",

"expectedresults": "预期结果1",

"execution_type": 1

},

{

"step_number": 2,

"actions": "测试步骤2",

"expectedresults": "预期结果2",

"execution_type": 1

}

]

},

{

"name": "测试用例2",

"version": 1,

"summary": "测试用例2",

"preconditions": "前置条件",

"execution_type": 1,

"importance": 1,

"estimated_exec_duration": 3,

"status": 7,

"steps": [

{

"step_number": 1,

"actions": "测试步骤1",

"expectedresults": "预期结果1",

"execution_type": 1

},

{

"step_number": 2,

"actions": "测试步骤2(预期结果2可以为空)",

"expectedresults": "",

"execution_type": 1

},

{

"step_number": 3,

"actions": "测试步骤3",

"expectedresults": "预期结果3",

"execution_type": 1

},

{

"step_number": 4,

"actions": "测试步骤4",

"expectedresults": "预期结果4",

"execution_type": 1

}

]

},

{

"name": "测试用例3(测试步骤和预期结果可以都为空)",

"version": 1,

"summary": "测试用例3(测试步骤和预期结果可以都为空)",

"preconditions": "无",

"execution_type": 1,

"importance": 2,

"estimated_exec_duration": 3,

"status": 7,

"steps": []

}

],

"sub_suites": []                            # 用例集中可以包含子用例集(目前只要产品类别下有用例集)

},

{

"name": "我是模块名(测试集2)",                  # 用例集2名称(模块名)

"details": "测试集摘要(详情)",

"testcase_list": [

{

"name": "测试步骤2(优先级默认为中)",

"version": 1,

"summary": "测试步骤2(优先级默认为中)",

"preconditions": "无",

"execution_type": 1,

"importance": 3,

"estimated_exec_duration": 3,

"status": 7,

"steps": [

{

"step_number": 1,

"actions": "测试步骤1",

"expectedresults": "预期结果1",

"execution_type": 1

},

{

"step_number": 2,

"actions": "测试步骤3",

"expectedresults": "",

"execution_type": 1

}

]

},

{

"name": "测试用例3(前置条件默认为空) 无设置优先级,这里加入用例标题",

"version": 1,

"summary": "测试用例3(前置条件默认为空) 无设置优先级,这里加入用例标题",

"preconditions": "无",

"execution_type": 1,

"importance": 2,

"estimated_exec_duration": 3,

"status": 7,

"steps": []

}

],

"sub_suites": []

}

]

}

]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值