-
Notifications
You must be signed in to change notification settings - Fork 2
Command Parameters Description
TTL edited this page Apr 19, 2019
·
3 revisions
usage
python -m haf run init
usage
python -m haf run [params]
param | param-easy | desc | type | remark | sample | json config |
---|---|---|---|---|---|---|
--name | -name | the test name | string | if not name, default is autotest | -name=Haf | {"name": "Haf"} |
--case | -case | the case path name | string | split by ',' | -case=./cases/test.xlsx | "case": [ { "case_path": "./case/test.xlsx" }] |
--api | -api | test type is api | boolean | default is true | -api=true | "type" : "api" |
--only-runner | -ol | only mode of runner | boolean | default is false | -ol=true | "runner": { "only": true } |
--runner-count | -rc | the runner count | int | default is 1 | -rc=4 | "runner" : { "count": 4 } |
--bus-server | -bs | connect to other bus server which in olny bus-server mode | string | password@ip:port | -bs=hafbus@localhost:9000 | "bus": { "only": false, "host": "localhost", "port": 9000, "auth_key": "hafbus" } |
--bus-server-port | -bsp | bus server port | int | default is 9000 | -bsp=90001 | "bus_server_port": 9003 |
--only-bus | -ob | only start bus server mode | boolean | default is false | -ob=true | "bus": { "only": true } |
--report-html | -rh | generate html report or not | boolean | default is true | -rh=true | "report": { "report_html" : true } |
--report-output-dir | -rod | html report path | string | default is ./data/report.html | -rod=./report.html | "report": { "report_path": "./report.html" } |
--report-template | -rt | html report template | string | default is base | -rt=base_app | "report": { "report_template" : "base_app" } |
--report-export-template | -ret | export html template,using for email | string | default is email | -ret=email | "report" : {"report_export_template" : "email" } |
--report-export-dir | -red | export hteml report path | string | default is ./data/report-export.html | -red=./report-export.html | "report": { "report_export_path": "./report-export.html" } |
--log-dir | -ld | log output dir | string | default is ./data | -ld=./data | "log": { "log_path": "./data" } |
--only-loader | -ol | only loader mode | boolean | default is false, always with --bus-server | -ol=true -bs=hafbus@localhost:9000 | "loader": { "only": true } |
--only-recorder | -ore | only recorder mode | boolean | default is false | -ore=true | "recorder": { "only": true } |
--config | -c | config path | string | default is None | -c=config.json | none |
--debug | -debug | debug mode | boolean | default is False | -debug=true | "debug": true |
--console | -console | console after test | boolean | default is false | -console=true | "console": true |
--no-output | -nout | out put or not | boolean | default is flase | -nout=true | "nout": true |
--filter-case | -fc | run cases in fc | string | split by ',' | -fc=Test1,Test2 | "filter_case": [ "Test1", "test2"] |
--local-logger | -llog | local logger, write log to ./data/log/log.log | boolean | default is false, use haf logger | -llog=true | "local_logger" : true |