apirquest_bin

Crates.ioapirquest_bin
lib.rsapirquest_bin
version0.7.1
created_at2025-03-09 20:47:11.039031+00
updated_at2025-06-25 20:16:13.342674+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
size109,211
(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: 22

cargo fmt