Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yeshan333/apachejmeter_schema_assertion
a ApacheJmeter assertion plugin to validate Sampler response field types based on JSON/YAML Schema.
https://github.com/yeshan333/apachejmeter_schema_assertion
apache-jmeter java jmeter-assertion jmeter-plugin json-schema yaml-schema
Last synced: about 2 months ago
JSON representation
a ApacheJmeter assertion plugin to validate Sampler response field types based on JSON/YAML Schema.
- Host: GitHub
- URL: https://github.com/yeshan333/apachejmeter_schema_assertion
- Owner: yeshan333
- License: mit
- Created: 2022-01-14T15:18:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-06T06:29:22.000Z (9 months ago)
- Last Synced: 2024-05-08T18:15:36.114Z (9 months ago)
- Topics: apache-jmeter, java, jmeter-assertion, jmeter-plugin, json-schema, yaml-schema
- Language: Java
- Homepage:
- Size: 96.9 MB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ApacheJmeter Schema Assertion
[![Maven Tests CI](https://github.com/yeshan333/ApacheJmeter_Schema_Assertion/actions/workflows/run-tests.yaml/badge.svg)](https://github.com/yeshan333/ApacheJmeter_Schema_Assertion/actions/workflows/run-tests.yaml) [![codecov](https://codecov.io/gh/yeshan333/ApacheJmeter_Schema_Assertion/branch/main/graph/badge.svg?token=WN0DZ6QQ9H)](https://codecov.io/gh/yeshan333/ApacheJmeter_Schema_Assertion)
a ApacheJmeter assertion plugin to validate JSON/YAML Schema (Based on Sampler response).
## Features
- Get JSON/YAML Schema from textarea or filepath
- Use [JsonPath](https://github.com/json-path/JsonPath) expression to extract the schema object## Quick Usage
> [Java JDK](https://adoptopenjdk.net/) is required.
```shell
git clone [email protected]:yeshan333/ApacheJmeter_Schema_Assertion.gitcd ApacheJmeter_Schema_Assertion/examples
chmod +x jmeter_installer.sh
# install ApacheJmeter
./jmeter_installer.sh./apache-jmeter-5.5/bin/jmeter -t Schema_Assertion_5.5.jmx
```![Assertion Settings](https://cdn.jsdelivr.net/gh/yeshan333/jsDelivrCDN@main/20220115114549.jpg)
![Assertion Results](https://cdn.jsdelivr.net/gh/yeshan333/jsDelivrCDN@main/20220115114624.jpg)
## Running Tests
> Maven & JDK 1.8+ is required.
To run tests, run the following command:
```bash
mvn clean test
```## License
Distributed under the MIT License. See [LICENSE](./LICENSE) for more information.
## Acknowledgements
Thanks for these awesome resources that were used during the development of the **ApacheJmeter Schema Assertion**:
- [Open API](https://spec.openapis.org/oas/latest.html#info-object-example)
- [JSON Schema](https://json-schema.org/specification.html)
- [YAML Schema](https://asdf-standard.readthedocs.io/en/1.5.0/schemas/yaml_schema.html#Schema%20Definitions)
- [https://github.com/networknt/json-schema-validator](https://github.com/networknt/json-schema-validator)
- [https://github.com/json-path/JsonPath](https://github.com/json-path/JsonPath)