bump version to v4.2.0

This commit is contained in:
debugtalk
2022-07-26 10:46:05 +08:00
parent 1c8291b7a5
commit 191123734e
23 changed files with 48 additions and 46 deletions
+4 -2
View File
@@ -88,17 +88,20 @@ Usage:
Available Commands: Available Commands:
boom run load test with boomer boom run load test with boomer
build build plugin for testing
completion generate the autocompletion script for the specified shell completion generate the autocompletion script for the specified shell
har2case convert HAR to json/yaml testcase files convert convert to JSON/YAML/gotest/pytest testcases
help Help about any command help Help about any command
pytest run API test with pytest pytest run API test with pytest
run run API test with go engine run run API test with go engine
startproject create a scaffold project startproject create a scaffold project
wiki visit https://httprunner.com
Flags: Flags:
-h, --help help for hrp -h, --help help for hrp
--log-json set log to json format --log-json set log to json format
-l, --log-level string set log level (default "INFO") -l, --log-level string set log level (default "INFO")
--venv string specify python3 venv path
-v, --version version for hrp -v, --version version for hrp
Use "hrp [command] --help" for more information about a command. Use "hrp [command] --help" for more information about a command.
@@ -107,7 +110,6 @@ Use "hrp [command] --help" for more information about a command.
## User Cases ## User Cases
<a href="https://httprunner.com/docs/cases/dji-ibg"><img src="https://httprunner.com/image/logo/dji.jpeg" title="大疆 - 基于 HttpRunner 构建完整的自动化测试体系" width="60"></a> <a href="https://httprunner.com/docs/cases/dji-ibg"><img src="https://httprunner.com/image/logo/dji.jpeg" title="大疆 - 基于 HttpRunner 构建完整的自动化测试体系" width="60"></a>
<a href="https://httprunner.com/docs/cases/bytedance-feishu"><img src="https://httprunner.com/image/logo/feishu.jpeg" title="飞书 - 使用 HttpRunner 替换已有测试平台的执行引擎" width="60"></a>
<a href="https://httprunner.com/docs/cases/youmi"><img src="https://httprunner.com/image/logo/youmi.png" title="有米科技 - 基于 HttpRunner 建设自动化测试平台" width="60"></a> <a href="https://httprunner.com/docs/cases/youmi"><img src="https://httprunner.com/image/logo/youmi.png" title="有米科技 - 基于 HttpRunner 建设自动化测试平台" width="60"></a>
<a href="https://httprunner.com/docs/cases/umcare"><img src="https://httprunner.com/image/logo/umcare.png" title="通用环球医疗 - 使用 HttpRunner 实践接口自动化测试" width="100"></a> <a href="https://httprunner.com/docs/cases/umcare"><img src="https://httprunner.com/image/logo/umcare.png" title="通用环球医疗 - 使用 HttpRunner 实践接口自动化测试" width="100"></a>
<a href="https://httprunner.com/docs/cases/mihoyo"><img src="https://httprunner.com/image/logo/miHoYo.png" title="米哈游 - 基于 HttpRunner 搭建接口自动化测试体系" width="100"></a> <a href="https://httprunner.com/docs/cases/mihoyo"><img src="https://httprunner.com/image/logo/miHoYo.png" title="米哈游 - 基于 HttpRunner 搭建接口自动化测试体系" width="100"></a>
+4 -2
View File
@@ -81,17 +81,20 @@ Usage:
Available Commands: Available Commands:
boom run load test with boomer boom run load test with boomer
build build plugin for testing
completion generate the autocompletion script for the specified shell completion generate the autocompletion script for the specified shell
har2case convert HAR to json/yaml testcase files convert convert to JSON/YAML/gotest/pytest testcases
help Help about any command help Help about any command
pytest run API test with pytest pytest run API test with pytest
run run API test with go engine run run API test with go engine
startproject create a scaffold project startproject create a scaffold project
wiki visit https://httprunner.com
Flags: Flags:
-h, --help help for hrp -h, --help help for hrp
--log-json set log to json format --log-json set log to json format
-l, --log-level string set log level (default "INFO") -l, --log-level string set log level (default "INFO")
--venv string specify python3 venv path
-v, --version version for hrp -v, --version version for hrp
Use "hrp [command] --help" for more information about a command. Use "hrp [command] --help" for more information about a command.
@@ -100,7 +103,6 @@ Use "hrp [command] --help" for more information about a command.
## 用户案例 ## 用户案例
<a href="https://httprunner.com/docs/cases/dji-ibg"><img src="https://httprunner.com/image/logo/dji.jpeg" title="大疆 - 基于 HttpRunner 构建完整的自动化测试体系" width="60"></a> <a href="https://httprunner.com/docs/cases/dji-ibg"><img src="https://httprunner.com/image/logo/dji.jpeg" title="大疆 - 基于 HttpRunner 构建完整的自动化测试体系" width="60"></a>
<a href="https://httprunner.com/docs/cases/bytedance-feishu"><img src="https://httprunner.com/image/logo/feishu.jpeg" title="飞书 - 使用 HttpRunner 替换已有测试平台的执行引擎" width="60"></a>
<a href="https://httprunner.com/docs/cases/youmi"><img src="https://httprunner.com/image/logo/youmi.png" title="有米科技 - 基于 HttpRunner 建设自动化测试平台" width="60"></a> <a href="https://httprunner.com/docs/cases/youmi"><img src="https://httprunner.com/image/logo/youmi.png" title="有米科技 - 基于 HttpRunner 建设自动化测试平台" width="60"></a>
<a href="https://httprunner.com/docs/cases/umcare"><img src="https://httprunner.com/image/logo/umcare.png" title="通用环球医疗 - 使用 HttpRunner 实践接口自动化测试" width="100"></a> <a href="https://httprunner.com/docs/cases/umcare"><img src="https://httprunner.com/image/logo/umcare.png" title="通用环球医疗 - 使用 HttpRunner 实践接口自动化测试" width="100"></a>
<a href="https://httprunner.com/docs/cases/mihoyo"><img src="https://httprunner.com/image/logo/miHoYo.png" title="米哈游 - 基于 HttpRunner 搭建接口自动化测试体系" width="100"></a> <a href="https://httprunner.com/docs/cases/mihoyo"><img src="https://httprunner.com/image/logo/miHoYo.png" title="米哈游 - 基于 HttpRunner 搭建接口自动化测试体系" width="100"></a>
+9 -10
View File
@@ -1,19 +1,18 @@
# Release History # Release History
## v4.2.0 (2022-07-22) ## v4.2.0 (2022-07-26)
**go version** **go version**
- feat: support multi-machine collaborative distributed load testing - feat: support distributed load testing on multi-machines
- feat: support indicating type and filename when uploading file - feat: support run/boom/convert curl command(s)
- feat: support to infer MIME type of the file automatically - feat: support uploading file with indicated type and filename
- feat: support omitting websocket url if not necessary - feat: support to infer MIME type of the uploaded file automatically
- feat: support multiple websocket connections each session - feat: using `@FILEPATH` to indicate the path of the file
- feat: support convert curl command(s) to testcase(s) - change: support omitting websocket url if not necessary
- feat: support run curl as subcommand of run/boom/convert - change: support multiple websocket connections for each session
- fix: optimize websocket step initialization - fix: optimize websocket step initialization
- fix: using `@FILEPATH` to indicate the path of the file - fix: reuse plugin instance if already initialized
- fix: reuse plugin instance if it already initialized
- fix: deep copy api step to avoid data racing - fix: deep copy api step to avoid data racing
## v4.1.6 (2022-07-04) ## v4.1.6 (2022-07-04)
+1 -1
View File
@@ -37,4 +37,4 @@ Copyright 2017 debugtalk
* [hrp startproject](hrp_startproject.md) - create a scaffold project * [hrp startproject](hrp_startproject.md) - create a scaffold project
* [hrp wiki](hrp_wiki.md) - visit https://httprunner.com * [hrp wiki](hrp_wiki.md) - visit https://httprunner.com
###### Auto generated by spf13/cobra on 22-Jul-2022 ###### Auto generated by spf13/cobra on 26-Jul-2022
+4 -4
View File
@@ -21,14 +21,14 @@ hrp boom [flags]
### Options ### Options
``` ```
--autostart Starts the test immediately (without disabling the web UI). Use --spawn-count and --spawn-rate to control user count and increase rate --auto-start Starts the test immediately. Use --spawn-count and --spawn-rate to control user count and increase rate
--cpu-profile string Enable CPU profiling. --cpu-profile string Enable CPU profiling.
--cpu-profile-duration duration CPU profile duration. (default 30s) --cpu-profile-duration duration CPU profile duration. (default 30s)
--disable-compression Disable compression --disable-compression Disable compression
--disable-console-output Disable console output. --disable-console-output Disable console output.
--disable-keepalive Disable keepalive --disable-keepalive Disable keepalive
--expect-workers int How many workers master should expect to connect before starting the test (only when --autostart is used) (default 1) --expect-workers int How many workers master should expect to connect before starting the test (only when --autostart is used) (default 1)
--expect-workers-max-wait int How many workers master should expect to connect before starting the test (only when --autostart is used --expect-workers-max-wait int How many workers master should expect to connect before starting the test (only when --autostart is used (default 120)
-h, --help help for boom -h, --help help for boom
--ignore-quit ignores quit from master (only when --worker is used) --ignore-quit ignores quit from master (only when --worker is used)
--loop-count int The specify running cycles for load testing (default -1) --loop-count int The specify running cycles for load testing (default -1)
@@ -52,6 +52,6 @@ hrp boom [flags]
### SEE ALSO ### SEE ALSO
* [hrp](hrp.md) - Next-Generation API Testing Solution. * [hrp](hrp.md) - Next-Generation API Testing Solution.
* [hrp boom curl](hrp_boom_curl.md) - run load test with boomer by curl command * [hrp boom curl](hrp_boom_curl.md) - run load test with curl command
###### Auto generated by spf13/cobra on 22-Jul-2022 ###### Auto generated by spf13/cobra on 26-Jul-2022
+2 -2
View File
@@ -1,6 +1,6 @@
## hrp boom curl ## hrp boom curl
run load test with boomer by curl command run load test with curl command
``` ```
hrp boom curl URLs [flags] hrp boom curl URLs [flags]
@@ -16,4 +16,4 @@ hrp boom curl URLs [flags]
* [hrp boom](hrp_boom.md) - run load test with boomer * [hrp boom](hrp_boom.md) - run load test with boomer
###### Auto generated by spf13/cobra on 22-Jul-2022 ###### Auto generated by spf13/cobra on 26-Jul-2022
+1 -1
View File
@@ -28,4 +28,4 @@ hrp build $path ... [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution. * [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 22-Jul-2022 ###### Auto generated by spf13/cobra on 26-Jul-2022
+1 -1
View File
@@ -23,4 +23,4 @@ hrp convert $path... [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution. * [hrp](hrp.md) - Next-Generation API Testing Solution.
* [hrp convert curl](hrp_convert_curl.md) - convert curl command to httprunner testcase * [hrp convert curl](hrp_convert_curl.md) - convert curl command to httprunner testcase
###### Auto generated by spf13/cobra on 22-Jul-2022 ###### Auto generated by spf13/cobra on 26-Jul-2022
+1 -1
View File
@@ -16,4 +16,4 @@ hrp convert curl URLs [flags]
* [hrp convert](hrp_convert.md) - convert to JSON/YAML/gotest/pytest testcases * [hrp convert](hrp_convert.md) - convert to JSON/YAML/gotest/pytest testcases
###### Auto generated by spf13/cobra on 22-Jul-2022 ###### Auto generated by spf13/cobra on 26-Jul-2022
+1 -1
View File
@@ -16,4 +16,4 @@ hrp pytest $path ... [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution. * [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 22-Jul-2022 ###### Auto generated by spf13/cobra on 26-Jul-2022
+2 -2
View File
@@ -34,6 +34,6 @@ hrp run $path... [flags]
### SEE ALSO ### SEE ALSO
* [hrp](hrp.md) - Next-Generation API Testing Solution. * [hrp](hrp.md) - Next-Generation API Testing Solution.
* [hrp run curl](hrp_run_curl.md) - run API test with go engine by curl command * [hrp run curl](hrp_run_curl.md) - run API test with curl command
###### Auto generated by spf13/cobra on 22-Jul-2022 ###### Auto generated by spf13/cobra on 26-Jul-2022
+2 -2
View File
@@ -1,6 +1,6 @@
## hrp run curl ## hrp run curl
run API test with go engine by curl command run API test with curl command
``` ```
hrp run curl URLs [flags] hrp run curl URLs [flags]
@@ -16,4 +16,4 @@ hrp run curl URLs [flags]
* [hrp run](hrp_run.md) - run API test with go engine * [hrp run](hrp_run.md) - run API test with go engine
###### Auto generated by spf13/cobra on 22-Jul-2022 ###### Auto generated by spf13/cobra on 26-Jul-2022
+1 -1
View File
@@ -21,4 +21,4 @@ hrp startproject $project_name [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution. * [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 22-Jul-2022 ###### Auto generated by spf13/cobra on 26-Jul-2022
+1 -1
View File
@@ -16,4 +16,4 @@ hrp wiki [flags]
* [hrp](hrp.md) - Next-Generation API Testing Solution. * [hrp](hrp.md) - Next-Generation API Testing Solution.
###### Auto generated by spf13/cobra on 22-Jul-2022 ###### Auto generated by spf13/cobra on 26-Jul-2022
+2 -2
View File
@@ -1,5 +1,5 @@
{ {
"project_name": "demo-with-go-plugin", "project_name": "demo-with-go-plugin",
"create_time": "2022-07-11T11:44:36.214909+08:00", "create_time": "2022-07-26T10:30:29.31361+08:00",
"hrp_version": "v4.1.6" "hrp_version": "v4.2.0"
} }
+2 -2
View File
@@ -1,5 +1,5 @@
{ {
"project_name": "demo-with-py-plugin", "project_name": "demo-with-py-plugin",
"create_time": "2022-07-11T11:44:37.021634+08:00", "create_time": "2022-07-26T10:30:30.601095+08:00",
"hrp_version": "v4.1.6" "hrp_version": "v4.2.0"
} }
+2 -2
View File
@@ -15,7 +15,7 @@ import (
var runCurlCmd = &cobra.Command{ var runCurlCmd = &cobra.Command{
Use: "curl URLs", Use: "curl URLs",
Short: "run API test with go engine by curl command", Short: "run API test with curl command",
Args: cobra.MinimumNArgs(1), Args: cobra.MinimumNArgs(1),
DisableFlagParsing: true, DisableFlagParsing: true,
PreRun: func(cmd *cobra.Command, args []string) { PreRun: func(cmd *cobra.Command, args []string) {
@@ -31,7 +31,7 @@ var runCurlCmd = &cobra.Command{
var boomCurlCmd = &cobra.Command{ var boomCurlCmd = &cobra.Command{
Use: "curl URLs", Use: "curl URLs",
Short: "run load test with boomer by curl command", Short: "run load test with curl command",
Args: cobra.MinimumNArgs(1), Args: cobra.MinimumNArgs(1),
DisableFlagParsing: true, DisableFlagParsing: true,
PreRun: func(cmd *cobra.Command, args []string) { PreRun: func(cmd *cobra.Command, args []string) {
@@ -1,4 +1,4 @@
# NOTE: Generated By hrp v4.1.6, DO NOT EDIT! # NOTE: Generated By hrp v4.2.0, DO NOT EDIT!
import sys import sys
import os import os
@@ -10,7 +10,6 @@ from debugtalk import *
if __name__ == "__main__": if __name__ == "__main__":
import funppy import funppy
funppy.register("get_user_agent", get_user_agent) funppy.register("get_user_agent", get_user_agent)
funppy.register("sleep", sleep) funppy.register("sleep", sleep)
funppy.register("sum", sum) funppy.register("sum", sum)
@@ -1,4 +1,4 @@
// NOTE: Generated By hrp v4.1.6, DO NOT EDIT! // NOTE: Generated By hrp v4.2.0, DO NOT EDIT!
package main package main
import ( import (
+1 -1
View File
@@ -1 +1 @@
v4.1.6 v4.2.0
+1 -1
View File
@@ -1,4 +1,4 @@
__version__ = "v4.1.6" __version__ = "v4.2.0"
__description__ = "One-stop solution for HTTP(S) testing." __description__ = "One-stop solution for HTTP(S) testing."
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "httprunner" name = "httprunner"
version = "v4.1.6" version = "v4.2.0"
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"