软件测试过程中,最重要、最核心就是测试用例的设计,也是测试同学、测试团队日常投入最多时间的工作内容之一。
然而,传统的测试用例设计过程有很多痛点:
思维导图其发散性思维、图形化思维的特点,跟测试用例设计时所需的思维非常吻合,所以在实际工作中极大提升了我们测试用例设计的效率,也非常方便测试用例评审。
所以现在采用XMind2TestCase
来将思维导图
转化为禅道用例
进行导入
https://www.xmind.cn/xmind8-pro/
需要安装Xmind8 update3
或更新版本
$ pip install xmind2testcase
$ xmind2testcase webtool
(venv) (base) localhost:wytest zhongxin$ xmind2testcase webtool
2021-09-13 16:46:02,412 webtool.application INFO [application - init]: Start initializing the database...
2021-09-13 16:46:02,414 webtool.application INFO [application - init]: Congratulations! the xmind2testcase webtool database has initialized successfully!
* Serving Flask app 'webtool.application' (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: on
2021-09-13 16:46:02,431 werkzeug WARNING [_internal - _log]: * Running on all addresses.
WARNING: This is a development server. Do not use it in a production deployment.
2021-09-13 16:46:02,431 werkzeug WARNING [_internal - _log]: * Running on all addresses.
WARNING: This is a development server. Do not use it in a production deployment.
2021-09-13 16:46:02,431 werkzeug INFO [_internal - _log]: * Running on http://172.28.58.248:5001/ (Press CTRL+C to quit)
2021-09-13 16:46:02,431 werkzeug INFO [_internal - _log]: * Running on http://172.28.58.248:5001/ (Press CTRL+C to quit)
2021-09-13 16:46:02,437 werkzeug INFO [_internal - _log]: * Restarting with stat
2021-09-13 16:46:02,437 werkzeug INFO [_internal - _log]: * Restarting with stat
2021-09-13 16:46:02,855 webtool.application INFO [application - init]: Start initializing the database...
2021-09-13 16:46:02,856 webtool.application INFO [application - init]: Congratulations! the xmind2testcase webtool database has initialized successfully!
2021-09-13 16:46:02,862 werkzeug WARNING [_internal - _log]: * Debugger is active!
2021-09-13 16:46:02,862 werkzeug WARNING [_internal - _log]: * Debugger is active!
2021-09-13 16:46:02,875 werkzeug INFO [_internal - _log]: * Debugger PIN: 139-105-920
2021-09-13 16:46:02,875 werkzeug INFO [_internal - _log]: * Debugger PIN: 139-105-920
从运行的结果中我们可以看到,服务运行在了http://172.28.58.248:5001/
服务
进入禅道用例页面:http://testcase.guahao-test.com/zentao/testcase-browse-56--byModule-4243.html
打开F12,以门户改版-记录仪
为例找到它的「模块ID」为「4244」,这样创建用例的时候它的节点应该为门户改版-记录仪(#4244)
用例模块
如果不指定模块ID,那么就会放在根路径下,建议先点击「维护模块」创建好自己用例所属的模块,然后开始用例编写
demo
下载
生成用例
禅道CSV
导入禅道
由于禅道有一部分定制化,所以「优先级」、「适用阶段」、「适用阶段」导入失败
暂时可以先手动修改导出禅道的CSV中的「优先级」、「适用阶段」、「适用阶段」
修改
修改后导入
http://testcase.guahao-test.com/zentao/testcase-view-37201-1.html
完成导入1
完成导入2