mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-07 00:17:37 +08:00
Merge pull request #836 from httprunner/leo_dev
2.5.3
**Fixed**
- fix json schema: variables maybe in string type, e.g. '${prepare_variables()}'
- fix json schema: post json maybe in string type, e.g. '${prepare_post_data()}', '$post_data'
This commit is contained in:
@@ -17,6 +17,16 @@ Please complete the following information:
|
|||||||
- OS: [e.g. macos, Linux, Windows]
|
- OS: [e.g. macos, Linux, Windows]
|
||||||
- Python [e.g. 3.6]
|
- Python [e.g. 3.6]
|
||||||
- HttpRunner [e.g. 2.1.2]
|
- HttpRunner [e.g. 2.1.2]
|
||||||
|
- **Device ID**: [e.g. 190070690681122]
|
||||||
|
|
||||||
|
How to get device ID?
|
||||||
|
|
||||||
|
In Python interactive shell, execute the following command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
>>> import uuid; print(uuid.getnode())
|
||||||
|
190070690681122
|
||||||
|
```
|
||||||
|
|
||||||
## Traceback
|
## Traceback
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,16 @@ assignees: debugtalk
|
|||||||
- 操作系统类型: [e.g. macos, Linux, Windows]
|
- 操作系统类型: [e.g. macos, Linux, Windows]
|
||||||
- Python 版本 [e.g. 3.6]
|
- Python 版本 [e.g. 3.6]
|
||||||
- HttpRunner 版本 [e.g. 2.1.2]
|
- HttpRunner 版本 [e.g. 2.1.2]
|
||||||
|
- **设备 ID**: [e.g. 190070690681122]
|
||||||
|
|
||||||
|
获取方式:
|
||||||
|
|
||||||
|
在 Python 交互式 shell 中输入如下命令进行获取:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
>>> import uuid; print(uuid.getnode())
|
||||||
|
190070690681122
|
||||||
|
```
|
||||||
|
|
||||||
## 项目文件内容(非必须)
|
## 项目文件内容(非必须)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# Release History
|
# Release History
|
||||||
|
|
||||||
|
## 2.5.3 (2020-01-03)
|
||||||
|
|
||||||
|
**Fixed**
|
||||||
|
|
||||||
|
- fix json schema: variables maybe in string type, e.g. '${prepare_variables()}'
|
||||||
|
- fix json schema: post json maybe in string type, e.g. '${prepare_post_data()}', '$post_data'
|
||||||
|
|
||||||
## 2.5.2 (2020-01-02)
|
## 2.5.2 (2020-01-02)
|
||||||
|
|
||||||
**Fixed**
|
**Fixed**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
__version__ = "2.5.2"
|
__version__ = "2.5.3"
|
||||||
__description__ = "One-stop solution for HTTP(S) testing."
|
__description__ = "One-stop solution for HTTP(S) testing."
|
||||||
|
|
||||||
__all__ = ["__version__", "__description__"]
|
__all__ = ["__version__", "__description__"]
|
||||||
|
|||||||
@@ -23,6 +23,14 @@
|
|||||||
"maxProperties": 1,
|
"maxProperties": 1,
|
||||||
"minProperties": 1
|
"minProperties": 1
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^\\$.*",
|
||||||
|
"examples": [
|
||||||
|
"${prepare_variables()}",
|
||||||
|
"${prepare_variables($a, $b)}"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -110,9 +118,22 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"json": {
|
"json": {
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
"description": "request body in json format",
|
"description": "request body in json format",
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"description": "request body in string format, e.g. '${prepare_json($a, $b)}'",
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^\\$.*",
|
||||||
|
"examples": [
|
||||||
|
"$post_data",
|
||||||
|
"${prepare_post_data($a, $b)}"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"headers": {
|
"headers": {
|
||||||
"description": "request headers",
|
"description": "request headers",
|
||||||
"type": "object"
|
"type": "object"
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "httprunner"
|
name = "httprunner"
|
||||||
version = "2.5.2"
|
version = "2.5.3"
|
||||||
description = "One-stop solution for HTTP(S) testing."
|
description = "One-stop solution for HTTP(S) testing."
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|||||||
Reference in New Issue
Block a user