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

Asserting softly #163

Open
akshayamaldhure opened this issue May 24, 2022 · 0 comments
Open

Asserting softly #163

akshayamaldhure opened this issue May 24, 2022 · 0 comments

Comments

@akshayamaldhure
Copy link

Currently, if I use JSONAssert.assertEquals(...) and if there's an assertion error, AssertionError will be thrown and the code will exit. However, I want my TestNG @Test to do this in loop for several data sets and collect all the assertion errors and throw AssertionError is there are one or more assertion errors (similar to TestNG's SoftAssert). Do note that using a DataProvider is not feasible since I'm using it already for injecting a higher level of test data.

Is there a way I could use this JSONAssert library to assert softly?

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

No branches or pull requests

1 participant