apirquest_bin

Crates.ioapirquest_bin
lib.rsapirquest_bin
version
sourcesrc
created_at2025-03-09 20:47:11.039031+00
updated_at2025-03-30 16:55:03.087804+00
descriptionApiRquest is a library 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.
homepage
repositoryhttps://gitlab.com/denix190/apirquest
max_upload_size
id1585844
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
(denix190)

documentation

https://gitlab.com/denix190/apirquest

README

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
Commit count: 0

cargo fmt