diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 6ee78e52..a715669d 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,20 +1,18 @@ # Release History -## v4.2.0 (2022-07-26) +## v4.2.0 (2022-08-21) **go version** - feat: support distributed load testing on multi-machines - feat: support run/boom/convert curl command(s) -- feat: support uploading file with indicated type and filename -- feat: support to infer MIME type of the uploaded file automatically -- feat: using `@FILEPATH` to indicate the path of the file +- feat: add ping/dns/traceroute/curl sub commands +- feat: improve builtin uploading feature, support `@` indicator and inferring MIME type - change: support omitting websocket url if not necessary - change: support multiple websocket connections for each session - fix: optimize websocket step initialization - fix: reuse plugin instance if already initialized - fix: deep copy api step to avoid data racing -- feat: support ping/dns/traceroute for dial test ## v4.1.6 (2022-07-04) diff --git a/docs/cmd/hrp.md b/docs/cmd/hrp.md index 445e658b..fae4a004 100644 --- a/docs/cmd/hrp.md +++ b/docs/cmd/hrp.md @@ -32,9 +32,13 @@ Copyright 2017 debugtalk * [hrp boom](hrp_boom.md) - run load test with boomer * [hrp build](hrp_build.md) - build plugin for testing * [hrp convert](hrp_convert.md) - convert to JSON/YAML/gotest/pytest testcases +* [hrp curl](hrp_curl.md) - run integrated curl command +* [hrp dns](hrp_dns.md) - DNS resolution for different source and record types +* [hrp ping](hrp_ping.md) - run integrated ping command * [hrp pytest](hrp_pytest.md) - run API test with pytest * [hrp run](hrp_run.md) - run API test with go engine * [hrp startproject](hrp_startproject.md) - create a scaffold project +* [hrp traceroute](hrp_traceroute.md) - run integrated traceroute command * [hrp wiki](hrp_wiki.md) - visit https://httprunner.com -###### Auto generated by spf13/cobra on 26-Jul-2022 +###### Auto generated by spf13/cobra on 21-Aug-2022 diff --git a/docs/cmd/hrp_boom.md b/docs/cmd/hrp_boom.md index b8d10d41..20adfde0 100644 --- a/docs/cmd/hrp_boom.md +++ b/docs/cmd/hrp_boom.md @@ -54,4 +54,4 @@ hrp boom [flags] * [hrp](hrp.md) - Next-Generation API Testing Solution. * [hrp boom curl](hrp_boom_curl.md) - run load test with curl command -###### Auto generated by spf13/cobra on 26-Jul-2022 +###### Auto generated by spf13/cobra on 21-Aug-2022 diff --git a/docs/cmd/hrp_boom_curl.md b/docs/cmd/hrp_boom_curl.md index 587ecb9a..87a0a66f 100644 --- a/docs/cmd/hrp_boom_curl.md +++ b/docs/cmd/hrp_boom_curl.md @@ -16,4 +16,4 @@ hrp boom curl URLs [flags] * [hrp boom](hrp_boom.md) - run load test with boomer -###### Auto generated by spf13/cobra on 26-Jul-2022 +###### Auto generated by spf13/cobra on 21-Aug-2022 diff --git a/docs/cmd/hrp_build.md b/docs/cmd/hrp_build.md index 30e93c8b..0be74f06 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 26-Jul-2022 +###### Auto generated by spf13/cobra on 21-Aug-2022 diff --git a/docs/cmd/hrp_convert.md b/docs/cmd/hrp_convert.md index 93a89cac..24b7ecd9 100644 --- a/docs/cmd/hrp_convert.md +++ b/docs/cmd/hrp_convert.md @@ -23,4 +23,4 @@ hrp convert $path... [flags] * [hrp](hrp.md) - Next-Generation API Testing Solution. * [hrp convert curl](hrp_convert_curl.md) - convert curl command to httprunner testcase -###### Auto generated by spf13/cobra on 26-Jul-2022 +###### Auto generated by spf13/cobra on 21-Aug-2022 diff --git a/docs/cmd/hrp_convert_curl.md b/docs/cmd/hrp_convert_curl.md index 23d89f48..9880780a 100644 --- a/docs/cmd/hrp_convert_curl.md +++ b/docs/cmd/hrp_convert_curl.md @@ -16,4 +16,4 @@ hrp convert curl URLs [flags] * [hrp convert](hrp_convert.md) - convert to JSON/YAML/gotest/pytest testcases -###### Auto generated by spf13/cobra on 26-Jul-2022 +###### Auto generated by spf13/cobra on 21-Aug-2022 diff --git a/docs/cmd/hrp_curl.md b/docs/cmd/hrp_curl.md new file mode 100644 index 00000000..82fe7511 --- /dev/null +++ b/docs/cmd/hrp_curl.md @@ -0,0 +1,19 @@ +## hrp curl + +run integrated curl command + +``` +hrp curl $url [flags] +``` + +### Options + +``` + -h, --help help for curl +``` + +### SEE ALSO + +* [hrp](hrp.md) - Next-Generation API Testing Solution. + +###### Auto generated by spf13/cobra on 21-Aug-2022 diff --git a/docs/cmd/hrp_dns.md b/docs/cmd/hrp_dns.md new file mode 100644 index 00000000..57f051d3 --- /dev/null +++ b/docs/cmd/hrp_dns.md @@ -0,0 +1,29 @@ +## hrp dns + +DNS resolution for different source and record types + +``` +hrp dns $url [flags] +``` + +### Options + +``` + --dns-record int DNS record type + 1: A + 28: AAAA + 5: CNAME (default 1) + --dns-server string DNS server, only available for local DNS source + --dns-source int DNS source type + 0: local DNS + 1: http DNS + 2: google DNS + -h, --help help for dns + --save-tests Save DNS resolution result as json +``` + +### SEE ALSO + +* [hrp](hrp.md) - Next-Generation API Testing Solution. + +###### Auto generated by spf13/cobra on 21-Aug-2022 diff --git a/docs/cmd/hrp_ping.md b/docs/cmd/hrp_ping.md new file mode 100644 index 00000000..164652ad --- /dev/null +++ b/docs/cmd/hrp_ping.md @@ -0,0 +1,23 @@ +## hrp ping + +run integrated ping command + +``` +hrp ping $url [flags] +``` + +### Options + +``` + -c, --count int Stop after sending (and receiving) N packets (default 10) + -h, --help help for ping + -i, --interval duration Wait N seconds between sending each packet (default 1s) + --save-tests Save ping result as json + -t, --timeout duration Ping exits after N seconds (default 20s) +``` + +### SEE ALSO + +* [hrp](hrp.md) - Next-Generation API Testing Solution. + +###### Auto generated by spf13/cobra on 21-Aug-2022 diff --git a/docs/cmd/hrp_pytest.md b/docs/cmd/hrp_pytest.md index 9f644920..b5eced08 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 26-Jul-2022 +###### Auto generated by spf13/cobra on 21-Aug-2022 diff --git a/docs/cmd/hrp_run.md b/docs/cmd/hrp_run.md index 6983ba63..7079fc39 100644 --- a/docs/cmd/hrp_run.md +++ b/docs/cmd/hrp_run.md @@ -36,4 +36,4 @@ hrp run $path... [flags] * [hrp](hrp.md) - Next-Generation API Testing Solution. * [hrp run curl](hrp_run_curl.md) - run API test with curl command -###### Auto generated by spf13/cobra on 26-Jul-2022 +###### Auto generated by spf13/cobra on 21-Aug-2022 diff --git a/docs/cmd/hrp_run_curl.md b/docs/cmd/hrp_run_curl.md index c7c98150..cdc3f54c 100644 --- a/docs/cmd/hrp_run_curl.md +++ b/docs/cmd/hrp_run_curl.md @@ -16,4 +16,4 @@ hrp run curl URLs [flags] * [hrp run](hrp_run.md) - run API test with go engine -###### Auto generated by spf13/cobra on 26-Jul-2022 +###### Auto generated by spf13/cobra on 21-Aug-2022 diff --git a/docs/cmd/hrp_startproject.md b/docs/cmd/hrp_startproject.md index 45a81b7b..d64f16dc 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 26-Jul-2022 +###### Auto generated by spf13/cobra on 21-Aug-2022 diff --git a/docs/cmd/hrp_traceroute.md b/docs/cmd/hrp_traceroute.md new file mode 100644 index 00000000..f959d880 --- /dev/null +++ b/docs/cmd/hrp_traceroute.md @@ -0,0 +1,22 @@ +## hrp traceroute + +run integrated traceroute command + +``` +hrp traceroute $url [flags] +``` + +### Options + +``` + -h, --help help for traceroute + -m, --max-hops int Set the max number of hops (max TTL to be reached) (default 30) + -q, --queries int Set the number of probes per each hop (default 1) + --save-tests Save traceroute result as json +``` + +### SEE ALSO + +* [hrp](hrp.md) - Next-Generation API Testing Solution. + +###### Auto generated by spf13/cobra on 21-Aug-2022 diff --git a/docs/cmd/hrp_wiki.md b/docs/cmd/hrp_wiki.md index b18979f2..56669a98 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 26-Jul-2022 +###### Auto generated by spf13/cobra on 21-Aug-2022