Files
InterfaceAutoTest/README.md
CNWei 913bb3f396 feat(session): 项目基本完成
- 新增热加载模块funcs.py
- 新增文件加载模块files.py
- 新增了日志打印
- 新增其他功能
2025-02-23 22:46:33 +08:00

55 lines
886 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# interfaceAutoTest
## 简介
...
## 技术特点
...
## 环境搭建
...
## 使用方法
### 1创建测试项目
### 2创建测试文件
- test_开头
- 文件以名字排序,并决定执行顺序
- 文件后缀.yaml
### 3编写用例内容
**必填字段**
| 字段名 | 用途 | 备注 |
|----------|------|------------------|
| title | 用例名称 | |
| request | 请求参数 | |
| extract | 遍历提取 | 保存在extract.yaml中 |
| validate | 接口断言 | 断言定义在CaseInfo中 |
**选填字段**
| 字段名 | 用途 | 备注 |
|-------------|--------|----|
| parametrize | 数据驱动测试 | |
| epic | 项目名称 | |
| feature | 模块名称 | |
| story | 功能名称 | |
**示例**
```yaml
...
```
### 4执行用例