From 8c02c651d6fa76635542d3e79d9955a87bf8cef2 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Thu, 11 Nov 2021 20:29:19 +0800 Subject: [PATCH] docs: change to details --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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