diff --git a/README.md b/README.md index a36bd82f..1191d096 100644 --- a/README.md +++ b/README.md @@ -57,10 +57,12 @@ Flags: Use "hrp [command] --help" for more information about a command. ``` -You can use `hrp run` command to run HttpRunner JSON/YAML testcases. +You can use `hrp run` command to run HttpRunner JSON/YAML testcases. The following is an example running [examples/demo.json](examples/demo.json) + +
+$ hrp run examples/demo.json ```text -$ hrp run examples/demo.json 8:04PM INF Set log to pretty console 8:04PM INF Set log level to INFO 8:04PM INF [init] SetDebug debug=true @@ -146,6 +148,7 @@ Vary: Accept-Encoding 8:04PM INF run step end exportVars=null step="post form data" success=true 8:04PM INF run testcase end testcase="demo with complex mechanisms" ``` +
### use as library @@ -157,6 +160,10 @@ $ go get -u github.com/httprunner/hrp This is an example of `HttpRunner+` testcase. You can find more in the [`examples`][examples] directory. + +
+demo + ```go import ( "testing" @@ -225,6 +232,7 @@ func TestCaseDemo(t *testing.T) { } } ``` +
[HttpRunner]: https://github.com/httprunner/httprunner [Boomer]: https://github.com/myzhan/boomer