-
Notifications
You must be signed in to change notification settings - Fork 11
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
Improvement: Add a possibility to do good JSON assertions #279
Labels
codeReadyForMerge
The issue was implemented and the branch is ready to be reviewed and merged into develop
docsReadyForMerge
Documentation was created for this issue in a separate branch which is ready to merge to develop
Milestone
Comments
wurzelkuchen
added
docsNeeded
The documenttion needs to be checked if there are changes needed and if so, adaptions should be made
codeImplementationNeeded
This issue requires a change in the code of Neodymium
labels
Jul 31, 2024
wurzelkuchen
changed the title
Add a possibility to do good JSON assertions
Improvement: Add a possibility to do good JSON assertions
Jul 31, 2024
kqmpetenz
pushed a commit
that referenced
this issue
Aug 15, 2024
kqmpetenz
pushed a commit
that referenced
this issue
Aug 20, 2024
Update: after internal discussion the requirements were adapted. We want to support different JSON compare modes, as we need those in different customer projects |
kqmpetenz
added
docsReadyForMerge
Documentation was created for this issue in a separate branch which is ready to merge to develop
codeReadyForMerge
The issue was implemented and the branch is ready to be reviewed and merged into develop
and removed
docsNeeded
The documenttion needs to be checked if there are changes needed and if so, adaptions should be made
codeImplementationNeeded
This issue requires a change in the code of Neodymium
labels
Sep 10, 2024
Merged
kqmpetenz
pushed a commit
that referenced
this issue
Sep 11, 2024
kqmpetenz
pushed a commit
that referenced
this issue
Nov 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
codeReadyForMerge
The issue was implemented and the branch is ready to be reviewed and merged into develop
docsReadyForMerge
Documentation was created for this issue in a separate branch which is ready to merge to develop
Quick Description
In several projects we check for JSON data (REST, Google Analytics, etc.) These checks often result in a big unreadable text blob as an error message.
We can do better. We should add a helper class to assert JSON Strings. If an assertion fails however we need a good message and overview on the JSON data inside our allure report.
User Story
As a test report reader,
I want to see directly what is wrong with the JSON data, compared to the expected test data
so that I don't waste time fiddling around with the data.
Upfront research
Functional Requirements
JSONAssert.assertMatch(data,jsonPath,regExp)(Updated 2024-08-21)Note: for the methods with jsonPath be reminded that those can have simple fields as well as complex json data as a result.
Documentation Requirements
Test Requirements
The text was updated successfully, but these errors were encountered: