usage: hrun run [-h] optional arguments: -h, --help show this help message and exit
时间: 2024-03-22 12:38:17 浏览: 167
这个命令的输出是提示信息,说明 `run` 命令需要传入一些参数。下面是 `run` 命令的使用说明:
```
usage: hrun run [-h] [-k CASELIST] [-V] [-H HEADERS] [-s VARIABLES] [-o REPORT] [-n PROCESS_NUMBER] [-d DELAY] [-e EXPORT] [-q] testcase_file
positional arguments:
testcase_file specify a testcase file
optional arguments:
-h, --help show this help message and exit
-k CASELIST, --cases CASELIST
specify case name, support regex match
-V, --verify enable SSL certificate verification
-H HEADERS, --headers HEADERS
specify request headers, overwrite the headers in testcase
-s VARIABLES, --variables VARIABLES
specify variables file, overwrite the variables in testcase
-o REPORT, --report REPORT
specify report file, generate html report and api doc
-n PROCESS_NUMBER, --processes PROCESS_NUMBER
specify process number to run testcase in parallel
-d DELAY, --delay DELAY
specify delay seconds between two testcases
-e EXPORT, --export EXPORT
export testcases to CSV/JSON/YAML format files
-q, --quite print log with error level
```
你可以根据实际需要在命令中添加相应的参数来执行测试用例。例如,执行 `hrun run testsuites/example_testcase.yml` 命令来运行示例测试用例。
阅读全文