kde-intro / jmeter-json-schema-assertion-plugin

[plugin][maven] JSON Schema Assertion component for Apache JMeter. It allows the user to validate a response against an JSON Schema.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON Schema Assertion component for Apache JMeter

This component allows the user to validate a response against an JSON Schema.

Screenshot for Control-Panel of JSON Schema Assertion

Parameters

Attribute Description Required
Name Descriptive name for this element that is shown in the tree. No
File Name Specify JSON Schema File Name. Yes

Installation

  1. Checkout the source.
  2. Build extension - create jar file by running Maven build package (cli: mvn package).
  3. Put the generated jar file (Custom_JsonSchemaAssertion_component.jar) from target folder to JMeter JMeter home directory/lib/ext/ directory.

Notes

Tasks List

  • Create Maven version (plugin).
  • Add test class JSONSchemaAssertionTest.
  • Add flag schema/response.
  • Add schema validation on click (add the button).

Changelog

v0.1, 06 mar 2017

  • [created] Initial release.

v0.2, 23 mar 2017

  • [fixed] Failure message for the validation error cases.
  • [added] Object flag of the source error (response/schema) into failure message.

v0.3, 26 mar 2017

  • [fixed] Failure message in cases of the object flag using.

v0.4, 14 jun 2017

  • [added] Support of passing json schema by variable and string at the parameter 'File Name'. You can pass a path or json schema by variable or property. For example you can use Variable definition panel to describe json schema and pass it to the assertion into File Name parameter as the variable.

Roadmap

  • Add schema generation (from/based on a response).
  • Unify JSON & XML Schema Assertions and add the protocol type switcher (add radio-box / autodetection?).
  • Add support of variables / properties - pass json schema by variable (or/and properties).

Troubleshooting

Support

About

[plugin][maven] JSON Schema Assertion component for Apache JMeter. It allows the user to validate a response against an JSON Schema.

License:Apache License 2.0


Languages

Language:Java 100.0%