Forum Discussion

yerra16's avatar
yerra16
New Contributor
4 years ago
Solved

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?

 

  • 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.

2 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    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.
    • sonya_m's avatar
      sonya_m
      SmartBear Alumni (Retired)

      Thank you so much, Rao!

       

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