cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple assertions usage in single test case for different Json nodes

SOLVED
Highlighted
Occasional Visitor

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
Highlighted
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
Highlighted
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

Highlighted
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

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Compete with community members in the TechCorner Challenge and get into the Leaderboard!

Rank Participant Points Earned
1 msiadak 12
2 nmrao 8
3 HimanshuTayal 3
Top Kudoed Authors