add locust installation command

This commit is contained in:
debugtalk
2017-11-08 17:53:42 +08:00
parent eca35ebcef
commit c916e9dc84

View File

@@ -101,7 +101,9 @@ def main_locust():
try: try:
from httprunner import locusts from httprunner import locusts
except ImportError: 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) exit(1)
sys.argv[0] = 'locust' sys.argv[0] = 'locust'