mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
print error info when missing debugging type
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
from httprunner.cli import main_hrun, main_locust
|
from httprunner.cli import main_hrun, main_locust
|
||||||
|
from httprunner.logger import color_print
|
||||||
|
|
||||||
cmd = sys.argv.pop(1)
|
cmd = sys.argv.pop(1)
|
||||||
|
|
||||||
@@ -8,3 +9,11 @@ if cmd in ["hrun", "httprunner", "ate"]:
|
|||||||
main_hrun()
|
main_hrun()
|
||||||
elif cmd in ["locust", "locusts"]:
|
elif cmd in ["locust", "locusts"]:
|
||||||
main_locust()
|
main_locust()
|
||||||
|
else:
|
||||||
|
color_print("Miss debugging type.", "RED")
|
||||||
|
example = "\n".join([
|
||||||
|
"e.g.",
|
||||||
|
"python main-debug.py hrun /path/to/testset_file",
|
||||||
|
"python main-debug.py locusts -f /path/to/testset_file"
|
||||||
|
])
|
||||||
|
color_print(example, "yellow")
|
||||||
|
|||||||
Reference in New Issue
Block a user