Rest API: validate dinamic attibute name
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2020
07:27 AM
05-27-2020
07:27 AM
Rest API: validate dinamic attibute name
Hi guys,
I'm approacing to soap ui.
I have call with post my API, I pass in the header a json.
Response is a JSON, and must have or not attribute in the response.
I would like to check assertions, with tose dinamic attributes.
in attachment my project.
Solved! Go to Solution.
8 REPLIES 8
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2020
08:44 AM
05-27-2020
08:44 AM
Are you missing to add something to your question?
Regards,
Rao.
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2020
10:25 AM
05-27-2020
10:25 AM
Hey @msalvador,
Just reiterating what Rao said.
You intend to use soapui...do you mean the open source version or the licensed ReadyAPI! tool?
In regards to your description, you say you have a REST API to test....it uses a POST method and the payload of the request is in .json type and the response has a .json payload too.
You want to assert against the content of the response's payload.
This all sounds typical stuff....does all my above description sound correct?
So what exactly is the question you want answering?
Also, you state you attached a file, but there wasnt any attachment in your post...?? Did i misunderstand?
Cheers,
Rich
Just reiterating what Rao said.
You intend to use soapui...do you mean the open source version or the licensed ReadyAPI! tool?
In regards to your description, you say you have a REST API to test....it uses a POST method and the payload of the request is in .json type and the response has a .json payload too.
You want to assert against the content of the response's payload.
This all sounds typical stuff....does all my above description sound correct?
So what exactly is the question you want answering?
Also, you state you attached a file, but there wasnt any attachment in your post...?? Did i misunderstand?
Cheers,
Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2020
12:44 AM
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2020
01:15 AM
05-28-2020
01:15 AM
Please use json path assertion.
Regards,
Rao.
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2020
06:37 AM
06-01-2020
06:37 AM
@msalvador , were you able to try what's suggested? Using the json assertion? Please share.
Sonya Mihaljova
Community and Education Specialist
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2020
07:07 AM
06-01-2020
07:07 AM
no I wasn'
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2020
01:32 AM
06-02-2020
01:32 AM
Please find the documentation for json path.
https://support.smartbear.com/readyapi/docs/testing/jsonpath-reference.html
Regards,
Rao.
https://support.smartbear.com/readyapi/docs/testing/jsonpath-reference.html
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2020
11:30 PM
06-09-2020
11:30 PM
Thanks Rao!
@msalvador The documentation Rao provided should help you achieve your goal. Please let us know if you need more help on this!
Sonya Mihaljova
Community and Education Specialist
