In terms of my answer, things have changed since version 5.2.1 - there are now JSON Assertions!
\n\n
However, I think they will not show up as options unless the response content type is application/json or similar - see below:
\n\n
\n
Does this help answer your question?
\n\n
Regards,
\nRupert
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"208","kudosSumWeight":1,"repliesCount":0,"postTime":"2016-06-10T03:41:02.165-07:00","lastPublishTime":"2016-06-10T03:41:02.165-07:00","metrics":{"__typename":"MessageMetrics","views":5309},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:soapui-os-community/community:nwkab66374board:SoapUI_OS/message:101947/message:120911","replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"readOnly":false,"editFrozen":false,"body@stringLength":"880","rawBody":"Hi,
\n
In terms of my answer, things have changed since version 5.2.1 - there are now JSON Assertions!
\n
However, I think they will not show up as options unless the response content type is application/json or similar - see below:
\n\n
Does this help answer your question?
\n\n
Regards,
\nRupert
","images":{"__typename":"AssociatedImageConnection","edges":[{"__typename":"AssociatedImageEdge","cursor":"MjUuMnwyLjF8b3wyNXxfTlZffDE","node":{"__ref":"AssociatedImage:{\"url\":\"https://community.smartbear.com/t5/s/nwkab66374/images/bS0xMjA5MTEtMTgxNWkxMDVFNjcwNEIwQ0ZGNjA2?revision=1\"}"}}],"totalCount":1,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:120911_1"},"latestVersion":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}}},"ModerationData:moderation_data:120912":{"__typename":"ModerationData","id":"moderation_data:120912","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:120912":{"__typename":"ForumReplyMessage","uid":120912,"id":"message:120912","revisionNum":1,"author":{"__ref":"User:user:70952"},"readOnly":false,"repliesCount":1,"depth":2,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:SoapUI_OS"},"parent":{"__ref":"ForumReplyMessage:message:120908"},"conversation":{"__ref":"Conversation:conversation:101947"},"subject":"Re: How do I create assertions manually for a REST JSON API in SOAPUI standard version","moderationData":{"__ref":"ModerationData:moderation_data:120912"},"body":"Hi rupert,
You are right!.. The RESPONSE still doesn´t have content-type JSON.
Still training before the REST services has finished
btw, have you updated your book after Soap 5.2.1 is released?
Thanks !
anna
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"223","kudosSumWeight":0,"postTime":"2016-06-10T04:20:37.477-07:00","lastPublishTime":"2016-06-10T04:20:37.477-07:00","metrics":{"__typename":"MessageMetrics","views":5310},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:soapui-os-community/community:nwkab66374board:SoapUI_OS/message:101947/message:120912","replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"MessageEdge","cursor":"MjUuMnwyLjF8b3wzfDE0OjAsMzk6MXwx","node":{"__ref":"ForumReplyMessage:message:120915"}}]},"customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"editFrozen":false,"body@stringLength":"311","rawBody":"
Hi rupert,
You are right!.. The RESPONSE still doesn´t have content-type JSON.
Still training before the REST services has finished
btw, have you updated your book after Soap 5.2.1 is released?
Thanks !
anna
","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:120912_1"},"latestVersion":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}}},"ModerationData:moderation_data:120915":{"__typename":"ModerationData","id":"moderation_data:120915","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:120915":{"__typename":"ForumReplyMessage","author":{"__ref":"User:user:58715"},"id":"message:120915","revisionNum":1,"uid":120915,"depth":3,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:SoapUI_OS"},"parent":{"__ref":"ForumReplyMessage:message:120912"},"conversation":{"__ref":"Conversation:conversation:101947"},"subject":"Re: How do I create assertions manually for a REST JSON API in SOAPUI standard version","moderationData":{"__ref":"ModerationData:moderation_data:120915"},"body":"
Hi Anna,
\n\n
OK, so are you are happy with how to get access to the JSON Assertions? I just made a quick Mock to return an application/json response (as shown in the previous screenshot). If the response data isn't JSON then the JSON Assertions wont be enabled.
\n\n
Unfortunately there's no way to really update my book with version changes etc (apart from written a second edition), luckily most things remain the same in principle even when applied to Ready! API. To deal with missing parts of of my book, add new ideas and support readers, I have made an unofficial area of my blog http://rupertanderson.com/blog/soapui-bonus-recipes/ - if there are any ideas / questions relating to the book please feel free to add them here and I'll do my best to respond. The publisher would like me to write another book at some point, so any ideas you have could also end up there!
\n\n
Thanks,
\nRupert
\n\n
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"208","kudosSumWeight":1,"repliesCount":0,"postTime":"2016-06-10T05:05:37.066-07:00","lastPublishTime":"2016-06-10T05:05:37.066-07:00","metrics":{"__typename":"MessageMetrics","views":5307},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:soapui-os-community/community:nwkab66374board:SoapUI_OS/message:101947/message:120915","replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"readOnly":false,"editFrozen":false,"body@stringLength":"1103","rawBody":"
Hi Anna,
\n\n
OK, so are you are happy with how to get access to the JSON Assertions? I just made a quick Mock to return an application/json response (as shown in the previous screenshot). If the response data isn't JSON then the JSON Assertions wont be enabled.
\n\n
Unfortunately there's no way to really update my book with version changes etc (apart from written a second edition), luckily most things remain the same in principle even when applied to Ready! API. To deal with missing parts of of my book, add new ideas and support readers, I have made an unofficial area of my blog http://rupertanderson.com/blog/soapui-bonus-recipes/ - if there are any ideas / questions relating to the book please feel free to add them here and I'll do my best to respond. The publisher would like me to write another book at some point, so any ideas you have could also end up there!
\n\n
Thanks,
\nRupert
\n\n
","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:120915_1"},"latestVersion":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}}},"Revision:revision:120912_1":{"__typename":"Revision","id":"revision:120912_1","lastEditTime":"2016-06-10T04:20:37.477-07:00"},"Revision:revision:120915_1":{"__typename":"Revision","id":"revision:120915_1","lastEditTime":"2016-06-10T05:05:37.066-07:00"},"AssociatedImage:{\"url\":\"https://community.smartbear.com/t5/s/nwkab66374/images/bS0xMjA5MTEtMTgxNWkxMDVFNjcwNEIwQ0ZGNjA2?revision=1\"}":{"__typename":"AssociatedImage","url":"https://community.smartbear.com/t5/s/nwkab66374/images/bS0xMjA5MTEtMTgxNWkxMDVFNjcwNEIwQ0ZGNjA2?revision=1","title":"Screen Shot 2016-06-10 at 11.37.16.png","associationType":"BODY","width":2024,"height":1212,"altText":null},"Revision:revision:120911_1":{"__typename":"Revision","id":"revision:120911_1","lastEditTime":"2016-06-10T03:41:02.165-07:00"}}}},"page":"/forums/ForumMessagePage/ForumMessagePage","query":{"boardId":"soapui_os","messageSubject":"how-do-i-create-assertions-manually-for-a-rest-json-api-in-soapui-standard-versi","messageId":"101947","replyId":"120908"},"buildId":"q_bLpq2mflH0BeZigxpj6","runtimeConfig":{"buildInformationVisible":false,"logLevelApp":"info","logLevelMetrics":"info","openTelemetryClientEnabled":false,"openTelemetryConfigName":"smartbear","openTelemetryServiceVersion":"25.2.0","openTelemetryUniverse":"prod","openTelemetryCollector":"http://localhost:4318","openTelemetryRouteChangeAllowedTime":"5000","apolloDevToolsEnabled":false,"inboxMuteWipFeatureEnabled":false},"isFallback":false,"isExperimentalCompile":false,"dynamicIds":["./components/seo/QAPageSchema/QAPageSchema.tsx","./components/community/Navbar/NavbarWidget.tsx","./components/community/Breadcrumb/BreadcrumbWidget.tsx","./components/messages/TopicWithThreadedReplyListWidget/TopicWithThreadedReplyListWidget.tsx","./components/messages/MessageListForNodeByRecentActivityWidget/MessageListForNodeByRecentActivityWidget.tsx","./components/messages/RelatedContentWidget/RelatedContentWidget.tsx","./components/customComponent/CustomComponent/CustomComponent.tsx","./components/messages/MessageView/MessageViewStandard/MessageViewStandard.tsx","../shared/client/components/common/List/UnstyledList/UnstyledList.tsx","./components/messages/MessageView/MessageView.tsx","./components/messages/MessageView/MessageViewInline/MessageViewInline.tsx","../shared/client/components/common/Pager/PagerLoadMore/PagerLoadMore.tsx","./components/customComponent/CustomComponentContent/TemplateContent.tsx","../shared/client/components/common/List/UnwrappedList/UnwrappedList.tsx","./components/attachments/AttachmentView/AttachmentView.tsx","./components/attachments/AttachmentView/AttachmentViewChip/AttachmentViewChip.tsx"],"appGip":true,"scriptLoader":[]}