Robot Framework SchemathesisLibrary to automatically create test cases from API specifications.
Project description
Robot Framework SchemathesisLibrary
Robot Framework SchemathesisLibrary is a library build top of the Schemathesis. Schemathesis automatically generates thousands of test cases from your OpenAPI or GraphQL schema and finds edge cases that break your API.
SchemathesisLibrary uses DataDriver to create test cases from the Schemathesis Case object.
Installation
Install with pip, uv or any package manager that supports PyPi
pip install robotframework-schemathesislibrary
Keyword documentation
See keyword documentation for more details. A link older keyword documentation can be found from versions page
Usage
Test are automatically generated based your API specification, SchemathesisLibrary uses DataDriver internally, but you need to create template suite, so that DataDriver is able to create needed test for your test suite.
SchemathesisLibrary must be imported by url or path argument, which tell where
the API specification can obtained. As like with Datadriver, there must be
Test Template
setting defined. The template keyword must take one argument, usually referred as
${case} and the template keyword must call Call And Validate keyword with the
${case} argument.
Example test suite:
*** Settings ***
Library SchemathesisLibrary url=http://127.0.0.1/openapi.json
Test Template Wrapper
*** Test Cases ***
All Tests # This test is deleted by DataDriver
Wrapper test_case_1
*** Keywords ***
Wrapper
[Arguments] ${case}
Call And Validate ${case}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file robotframework_schemathesislibrary-0.26.0.tar.gz.
File metadata
- Download URL: robotframework_schemathesislibrary-0.26.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0d3e155ce4d90514baf304461034459009f1098c7c6d2c37e1342bd6b9c6b61
|
|
| MD5 |
6bca982b95b48753305c3a8a4ef1a933
|
|
| BLAKE2b-256 |
d96eebb0fab5c53ad6806a72cb5e00bfa7b6e1a3fbf293ca8cb011c393637935
|
File details
Details for the file robotframework_schemathesislibrary-0.26.0-py3-none-any.whl.
File metadata
- Download URL: robotframework_schemathesislibrary-0.26.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a20664cad33603a5dfab1f6f7715d7c116afe881e1b69f4c3e65ab3afcb600a
|
|
| MD5 |
f3cf3b51e07b25809715fb0013299b59
|
|
| BLAKE2b-256 |
76713b71bd2ac8047e2a7b6dc978e747c0132a6d6f737192a9fc14565d811085
|