diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 74bef791..f72658df 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,5 +1,14 @@ # Release History +## v4.1.6 (2022-07-04) + +**go version** + +- fix: step name with parameterize mechanism +- fix: error of concurrent map writes occurred while uploading in boom mode +- fix: record all requests of testcase reference in boom mode +- fix: failed to record the step of occurring error in the html report + ## v4.1.5 (2022-06-27) **go version** diff --git a/docs/cmd/hrp.md b/docs/cmd/hrp.md index 4273be35..7dc86997 100644 --- a/docs/cmd/hrp.md +++ b/docs/cmd/hrp.md @@ -37,4 +37,4 @@ Copyright 2017 debugtalk * [hrp startproject](hrp_startproject.md) - create a scaffold project * [hrp wiki](hrp_wiki.md) - visit https://httprunner.com -###### Auto generated by spf13/cobra on 27-Jun-2022 +###### Auto generated by spf13/cobra on 4-Jul-2022 diff --git a/docs/cmd/hrp_boom.md b/docs/cmd/hrp_boom.md index 40cd994d..7354315a 100644 --- a/docs/cmd/hrp_boom.md +++ b/docs/cmd/hrp_boom.md @@ -42,4 +42,4 @@ hrp boom [flags] * [hrp](hrp.md) - Next-Generation API Testing Solution. -###### Auto generated by spf13/cobra on 27-Jun-2022 +###### Auto generated by spf13/cobra on 4-Jul-2022 diff --git a/docs/cmd/hrp_build.md b/docs/cmd/hrp_build.md index d8b6c97b..8103dbbd 100644 --- a/docs/cmd/hrp_build.md +++ b/docs/cmd/hrp_build.md @@ -28,4 +28,4 @@ hrp build $path ... [flags] * [hrp](hrp.md) - Next-Generation API Testing Solution. -###### Auto generated by spf13/cobra on 27-Jun-2022 +###### Auto generated by spf13/cobra on 4-Jul-2022 diff --git a/docs/cmd/hrp_convert.md b/docs/cmd/hrp_convert.md index 75684067..d438da68 100644 --- a/docs/cmd/hrp_convert.md +++ b/docs/cmd/hrp_convert.md @@ -22,4 +22,4 @@ hrp convert $path... [flags] * [hrp](hrp.md) - Next-Generation API Testing Solution. -###### Auto generated by spf13/cobra on 27-Jun-2022 +###### Auto generated by spf13/cobra on 4-Jul-2022 diff --git a/docs/cmd/hrp_pytest.md b/docs/cmd/hrp_pytest.md index 5c70465b..fc51e272 100644 --- a/docs/cmd/hrp_pytest.md +++ b/docs/cmd/hrp_pytest.md @@ -16,4 +16,4 @@ hrp pytest $path ... [flags] * [hrp](hrp.md) - Next-Generation API Testing Solution. -###### Auto generated by spf13/cobra on 27-Jun-2022 +###### Auto generated by spf13/cobra on 4-Jul-2022 diff --git a/docs/cmd/hrp_run.md b/docs/cmd/hrp_run.md index 3b93507e..428e6984 100644 --- a/docs/cmd/hrp_run.md +++ b/docs/cmd/hrp_run.md @@ -35,4 +35,4 @@ hrp run $path... [flags] * [hrp](hrp.md) - Next-Generation API Testing Solution. -###### Auto generated by spf13/cobra on 27-Jun-2022 +###### Auto generated by spf13/cobra on 4-Jul-2022 diff --git a/docs/cmd/hrp_startproject.md b/docs/cmd/hrp_startproject.md index acfcb432..49544063 100644 --- a/docs/cmd/hrp_startproject.md +++ b/docs/cmd/hrp_startproject.md @@ -21,4 +21,4 @@ hrp startproject $project_name [flags] * [hrp](hrp.md) - Next-Generation API Testing Solution. -###### Auto generated by spf13/cobra on 27-Jun-2022 +###### Auto generated by spf13/cobra on 4-Jul-2022 diff --git a/docs/cmd/hrp_wiki.md b/docs/cmd/hrp_wiki.md index 7614dbe6..219920fe 100644 --- a/docs/cmd/hrp_wiki.md +++ b/docs/cmd/hrp_wiki.md @@ -16,4 +16,4 @@ hrp wiki [flags] * [hrp](hrp.md) - Next-Generation API Testing Solution. -###### Auto generated by spf13/cobra on 27-Jun-2022 +###### Auto generated by spf13/cobra on 4-Jul-2022 diff --git a/examples/demo-empty-project/proj.json b/examples/demo-empty-project/proj.json index 7405d8a2..fe59965d 100644 --- a/examples/demo-empty-project/proj.json +++ b/examples/demo-empty-project/proj.json @@ -1,5 +1,5 @@ { "project_name": "demo-empty-project", - "create_time": "2022-06-27T16:52:45.660111+08:00", - "hrp_version": "v4.1.4" + "create_time": "2022-07-04T14:54:33.795693+08:00", + "hrp_version": "v4.1.5" } diff --git a/examples/demo-with-go-plugin/proj.json b/examples/demo-with-go-plugin/proj.json index 33679c33..08ee1070 100644 --- a/examples/demo-with-go-plugin/proj.json +++ b/examples/demo-with-go-plugin/proj.json @@ -1,5 +1,5 @@ { "project_name": "demo-with-go-plugin", - "create_time": "2022-06-27T16:51:52.779837+08:00", - "hrp_version": "v4.1.4" + "create_time": "2022-07-04T14:53:59.755944+08:00", + "hrp_version": "v4.1.5" } diff --git a/examples/demo-with-py-plugin/proj.json b/examples/demo-with-py-plugin/proj.json index fca33a09..6c789922 100644 --- a/examples/demo-with-py-plugin/proj.json +++ b/examples/demo-with-py-plugin/proj.json @@ -1,5 +1,5 @@ { "project_name": "demo-with-py-plugin", - "create_time": "2022-06-27T16:51:54.32061+08:00", - "hrp_version": "v4.1.4" + "create_time": "2022-07-04T14:54:00.346082+08:00", + "hrp_version": "v4.1.5" } diff --git a/examples/demo-without-plugin/proj.json b/examples/demo-without-plugin/proj.json index 29065d5b..24b61c18 100644 --- a/examples/demo-without-plugin/proj.json +++ b/examples/demo-without-plugin/proj.json @@ -1,5 +1,5 @@ { "project_name": "demo-without-plugin", - "create_time": "2022-06-27T16:52:45.363472+08:00", - "hrp_version": "v4.1.4" + "create_time": "2022-07-04T14:54:33.495643+08:00", + "hrp_version": "v4.1.5" } diff --git a/hrp/internal/scaffold/templates/plugin/.debugtalk_gen.py b/hrp/internal/scaffold/templates/plugin/.debugtalk_gen.py index a57fef72..70910180 100644 --- a/hrp/internal/scaffold/templates/plugin/.debugtalk_gen.py +++ b/hrp/internal/scaffold/templates/plugin/.debugtalk_gen.py @@ -1,4 +1,4 @@ -# NOTE: Generated By hrp v4.1.4, DO NOT EDIT! +# NOTE: Generated By hrp v4.1.5, DO NOT EDIT! import sys import os diff --git a/hrp/internal/scaffold/templates/plugin/debugtalk_gen.go b/hrp/internal/scaffold/templates/plugin/debugtalk_gen.go index 6e6c9067..0ee1ae22 100644 --- a/hrp/internal/scaffold/templates/plugin/debugtalk_gen.go +++ b/hrp/internal/scaffold/templates/plugin/debugtalk_gen.go @@ -1,4 +1,4 @@ -// NOTE: Generated By hrp v4.1.4, DO NOT EDIT! +// NOTE: Generated By hrp v4.1.5, DO NOT EDIT! package main import ( diff --git a/hrp/step_request.go b/hrp/step_request.go index 8603bf1e..f39fedfa 100644 --- a/hrp/step_request.go +++ b/hrp/step_request.go @@ -271,14 +271,11 @@ func prepareUpload(parser *Parser, step *TStep, stepVariables map[string]interfa if step.Request.Upload == nil { return } - uploadSlice := map[string]interface{}{} - for key, value := range step.Request.Upload { - uploadSlice[key], err = parser.Parse(value, stepVariables) - if err != nil { - return - } + uploadMap, err := parser.Parse(step.Request.Upload, stepVariables) + if err != nil { + return } - stepVariables["m_upload"] = uploadSlice + stepVariables["m_upload"] = uploadMap mEncoder, err := parser.Parse("${multipart_encoder($m_upload)}", stepVariables) if err != nil { return