Ask a Question

Multiple assertions usage in single test case for different Json nodes

SOLVED
yerra16
New Contributor

Multiple assertions usage in single test case for different Json nodes

Our client request is to validate all the responses using assertions in single test case, first name is having one type and last is having another type of validation how can we do all assertions in single test case?
We are fetching the data from excel sheet having the bunch of test data with different combinations, When first name validation is fetched the test case is passed in the next iteration while validating the value for last name the assertions is failed, can anyone help?

 

1 ACCEPTED SOLUTION

Accepted Solutions
nmrao
Community Hero

Re: Multiple assertions usage in single test case for different Json nodes

One can have any number of assertions for a test step. That is how usually the use cases will be.
Otherwise, have a verified (master) response and compare with response using programming.


Regards,
Rao.

View solution in original post

2 REPLIES 2
nmrao
Community Hero

Re: Multiple assertions usage in single test case for different Json nodes

One can have any number of assertions for a test step. That is how usually the use cases will be.
Otherwise, have a verified (master) response and compare with response using programming.


Regards,
Rao.

View solution in original post

sonya_m
Community Manager

Re: Multiple assertions usage in single test case for different Json nodes

Thank you so much, Rao!

 

@yerra16 does this answer your question? Please let us know🙂


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: