cancel
Showing results for 
Search instead for 
Did you mean: 

Compare Json Response from the data source with the actual response in event

SOLVED
Highlighted
Occasional Contributor

Re: Compare Json Response from the data source with the actual response in event

@richie  Sorry for being late, I had verified Ready API version is 3.3.1, which looks like most updated one. Also messageExchange object is still an issue for me I always run into issue with it, can you please provide some sample code for reference.

Also as @sonya_m suggested will raise ticket with customer care. 

Highlighted
Community Manager

Re: Compare Json Response from the data source with the actual response in event

Thank you for creating the case @vpnkumar ! However, I wasn't able to locate it in our database. Could you let me whether you managed to find the solution with the help of our Support Team?


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Occasional Contributor

Re: Compare Json Response from the data source with the actual response in event

@sonya_m , sorry there was a delay from my end, please find case #00448234

Community Manager

Re: Compare Json Response from the data source with the actual response in event

I see that the Support Team provided several suggestions on for this case, let me copy it here so that anyone experiencing the same thing could have this reply as a reference:

 

>>

1. You can use property expansions in events, for example:
def value = context.expand( '${DataSource#ExpectedResponse}' )
2. You can use a script assertion to compare JSON values instead of events: https://support.smartbear.com/readyapi/docs/testing/assertions/reference/script.html

Also, this article might be helpful for you: https://smartbear-cc.force.com/portal/KbArticleViewer?name=How-Do-I-Compare-Two-Dynamic-JSON-Respons...

<<


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

Highlighted
Occasional Contributor

Re: Compare Json Response from the data source with the actual response in event

Thanks this solved my problem

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors