Forum Discussion

Bishal's avatar
Bishal
Contributor
8 years ago
Solved

READY API JASON COMPARSION Help

Hello , I am trying to implement a dynamic assertion on my test case but i am not able to. Below is the scenario.   1. I made a call to api "ABC" and it gave me a response "M,N,O,X,Y,Z,". 2. I ma...
  • TanyaYatskovska's avatar
    8 years ago

     

    Hi Bishal,

     

    You can do the following:

    - add an assertion to the second response

    - in this assertion, get the nodes containing "M,N,O,X,Y,Z," from the first response via Get Data. Please refer to this online article for details: http://readyapi.smartbear.com/features/get_data/start

    - compare the values you get from the first response with the ones you have in the second response.

    It looks like you will need to create one assertion per one value you want to compare. Does it work for you?