From c916e9dc84123fa45986ac322aa846925471614f Mon Sep 17 00:00:00 2001 From: debugtalk Date: Wed, 8 Nov 2017 17:53:42 +0800 Subject: [PATCH] add locust installation command --- httprunner/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/httprunner/cli.py b/httprunner/cli.py index f90b8ab6..153388b7 100644 --- a/httprunner/cli.py +++ b/httprunner/cli.py @@ -101,7 +101,9 @@ def main_locust(): try: from httprunner import locusts except ImportError: - print("Locust is not installed, exit.") + msg = "Locust is not installed, install first and try again.\n" + msg += "install command: pip install locustio" + print(msg) exit(1) sys.argv[0] = 'locust'