Commit 5b4a86a8 authored by 桂秋月's avatar 桂秋月

Update README.md

parent 57a2447b
...@@ -31,7 +31,7 @@ unzip BeautifulReport.zip ...@@ -31,7 +31,7 @@ unzip BeautifulReport.zip
### 使用教程 ### 使用教程
``` ```
### 新增项目接口(禅道不存在该项目) **新增项目接口(禅道不存在该项目)**
1、禅道上新增模块(禅道访问链接:http://chandao.liangkebang.com/zentao/testcase-browse-5-0-bymodule-0-id_desc-0-100.html) 1、禅道上新增模块(禅道访问链接:http://chandao.liangkebang.com/zentao/testcase-browse-5-0-bymodule-0-id_desc-0-100.html)
2、确定该项目对应的yapi地址,通过yapi编写用例 2、确定该项目对应的yapi地址,通过yapi编写用例
3、用例完成后,通过autoInterface/blueprints/tools/zentaopms_cases.py将禅道上的项目下载到本地目录 3、用例完成后,通过autoInterface/blueprints/tools/zentaopms_cases.py将禅道上的项目下载到本地目录
...@@ -39,10 +39,10 @@ unzip BeautifulReport.zip ...@@ -39,10 +39,10 @@ unzip BeautifulReport.zip
5、增加场景:autoInterface/blueprints/KeyData,在testsuit下增加测试场景,其格式:[{'XXX':[编号1,编号2,编号3.。。。]}],key值对应testcase文件夹下的目录名 5、增加场景:autoInterface/blueprints/KeyData,在testsuit下增加测试场景,其格式:[{'XXX':[编号1,编号2,编号3.。。。]}],key值对应testcase文件夹下的目录名
6、增加配置:autoInterface/blueprints/cases_mapping.py,按已有例子增加 6、增加配置:autoInterface/blueprints/cases_mapping.py,按已有例子增加
### 执行场景 **执行场景**
1、确定执行环境,修改autoInterface/blueprints/KeyData,在baseinfo下更改environment;确定autoInterface/blueprints/settings.py是否存在该环境,如不存在,增加即可 1、确定执行环境,修改autoInterface/blueprints/KeyData,在baseinfo下更改environment;确定autoInterface/blueprints/settings.py是否存在该环境,如不存在,增加即可
2、cd autoInterface/blueprints/exec-temp.py,在main下,修改name值即可执行 #该name值对应autoInterface/blueprints/cases_mapping.py下的project_mapping的key值 2、cd autoInterface/blueprints/exec-temp.py,在main下,修改name值即可执行 #该name值对应autoInterface/blueprints/cases_mapping.py下的project_mapping的key值
3、执行完场景后,可在statis/report/XXX下查看生成的测试报告
``` ```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment