Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature suggestion] API testing - compare JSON #2528

Open
LouisPnq opened this issue Jun 7, 2024 · 0 comments
Open

[feature suggestion] API testing - compare JSON #2528

LouisPnq opened this issue Jun 7, 2024 · 0 comments

Comments

@LouisPnq
Copy link

LouisPnq commented Jun 7, 2024

We want to test our APIs and compare the responses sent with a predefined JSON as an input.

The idea is :

  • call the API
  • compare the returned response (JSON) with the expected response (JSON)

The goal is to avoid storing each of the response field in a datalib and to test each field one by one.
This is like a JSON diff.

Scope should also include diff support on XML.

Could be used:
https://github.com/fslev/json-compare?tab=readme-ov-file
or
https://github.com/fslev/jtest-utils
or
https://github.com/deblockt/json-diff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants