mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
20 lines
500 B
Python
20 lines
500 B
Python
import sys
|
|
|
|
from httprunner.cli import main_hrun, main_locust
|
|
from httprunner.logger import color_print
|
|
|
|
cmd = sys.argv.pop(1)
|
|
|
|
if cmd in ["hrun", "httprunner", "ate"]:
|
|
main_hrun()
|
|
elif cmd in ["locust", "locusts"]:
|
|
main_locust()
|
|
else:
|
|
color_print("Miss debugging type.", "RED")
|
|
example = "\n".join([
|
|
"e.g.",
|
|
"python main-debug.py hrun /path/to/testcase_file",
|
|
"python main-debug.py locusts -f /path/to/testcase_file"
|
|
])
|
|
color_print(example, "yellow")
|