2 releases
new 0.6.3 | Mar 30, 2025 |
---|---|
0.6.2 | Mar 9, 2025 |
#325 in Debugging
118 downloads per month
150KB
2.5K
SLoC
ApiRquest_bin
apiRquest_bin is the command line interface to apiRquest_core. There are two uses for apiRquest, the first being the generation of a scenario from an OpenApi file or the execution of the scenario.
Generating a scenario from OpenApi
The following example generates a scenario for the createObject
operation from the OpenApi description file api_restful_api.yaml
.
apirquest_bin -l config/log4rs.yaml generate --openapi-file api_restful_api.yaml --operation createObject --output-file api_restful_api.feature
Running scenarios
Run all the tests in a file
apirquest_bin -l config/log4rs.yaml run --script features/api_restful_api.feature
Running scenarios in a Feature
apirquest_bin -l config/log4rs.yaml run --script features/api_restful_api.feature --tags @scenario_post
Display help
apirquest_bin --help
ApiRquest is a tool for testing Api Rest.
Written in Rust, it allows you to use the Rhai scripting language to increase test flexibility.
It uses Gherkin syntax for test scenarios.
Usage: apirquest_bin [OPTIONS] [COMMAND]
Commands:
generate Generates a new API request.
run Runs a single test request
help Print this message or the help of the given subcommand(s)
Options:
-l, --log <log>
Location of the log file
-h, --help
Print help (see a summary with '-h')
-V, --version
Print version
Send your bug reports, questions and discussions or open a ticket on https://gitlab.com/denix190/apirquest/-/issues
Dependencies
~18–33MB
~502K SLoC