|
| 1 | +--- |
| 2 | +id: how-to-use |
| 3 | +title: How to use |
| 4 | +sidebar_label: How to use |
| 5 | +--- |
| 6 | + |
| 7 | +``` |
| 8 | +Usage: rest-cli [-hV] [-e=<environmentName>] [-l=<logLevel>] |
| 9 | + [-r=<testReportNames>] FILES... |
| 10 | +IntelliJ RestCli |
| 11 | + FILES... Path to one ore more http script files. |
| 12 | + -e, --env=<environmentName> |
| 13 | + Name of the environment in config file |
| 14 | + (http-client.env.json/http-client.private.env.json). |
| 15 | + -h, --help Show this help message and exit. |
| 16 | + -l, --log-level=<logLevel> |
| 17 | + Config log level while the executor running. |
| 18 | + Valid values: NONE, BASIC, HEADERS, BODY |
| 19 | + -r, --report-names=<testReportNames> |
| 20 | + Custom test report names inside folder "test-reports". |
| 21 | + The report names must separate by ':' character; |
| 22 | + If the split string of the report name is empty, then the |
| 23 | + test request file name will |
| 24 | + be used for report name |
| 25 | + Such as: |
| 26 | + java -jar restcli.jar -r custom_report1::custom_report3 test1. |
| 27 | + http test2.http test3.http |
| 28 | + Then the test report for test1.http will be custom_report1.xml |
| 29 | + test2.http -> test2.xml (Because the report name for test2. |
| 30 | + http is empty) |
| 31 | + test3.http -> custom_report3.xml |
| 32 | + -V, --version Print version information and exit. |
| 33 | +``` |
0 commit comments