Hi there,
I have a test case that makes the use of conditional go to's. Unfortunately I cannot configure the <conditional go to> to end the test case. A work around would be to add a dummy test step at the end of the test case where I could jump but that's not really what I want. I also thought about using a groovy script but I can't find a way so that the groovy script ends the test case with whatever status is has based on the earlier assertion results.
Any suggestions would be highly appreciated!
","kudosSumWeight":0,"postTime":"2022-06-10T03:48:40.231-07:00","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"tags":{"__typename":"TagConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"TagEdge","cursor":"MjQuMTF8Mi4xfG98MTB8X05WX3wx","node":{"__typename":"Tag","id":"tag:Function Tests","text":"Function Tests","time":"2021-08-24T02:50:27.810-07:00","lastActivityTime":null,"messagesCount":null,"followersCount":null}},{"__typename":"TagEdge","cursor":"MjQuMTF8Mi4xfG98MTB8X05WX3wy","node":{"__typename":"Tag","id":"tag:REST","text":"REST","time":"2015-06-12T07:50:46.071-07:00","lastActivityTime":null,"messagesCount":null,"followersCount":null}},{"__typename":"TagEdge","cursor":"MjQuMTF8Mi4xfG98MTB8X05WX3wz","node":{"__typename":"Tag","id":"tag:Scripting","text":"Scripting","time":"2015-05-29T05:46:36.658-07:00","lastActivityTime":null,"messagesCount":null,"followersCount":null}}]},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:234923_1"},"latestVersion":null,"metrics":{"__typename":"MessageMetrics","views":1305},"visibilityScope":"PUBLIC","canonicalUrl":null,"seoTitle":null,"seoDescription":null,"isEscalated":null,"placeholder":false,"originalMessageForPlaceholder":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":[]}}},"archivalData":null,"customFields":[],"body":"Hi there,
I have a test case that makes the use of conditional go to's. Unfortunately I cannot configure the <conditional go to> to end the test case. A work around would be to add a dummy test step at the end of the test case where I could jump but that's not really what I want. I also thought about using a groovy script but I can't find a way so that the groovy script ends the test case with whatever status is has based on the earlier assertion results.
Any suggestions would be highly appreciated!
"},"Conversation:conversation:234923":{"__typename":"Conversation","id":"conversation:234923","solved":true,"topic":{"__ref":"ForumTopicMessage:message:234923"},"lastPostingActivityTime":"2022-06-29T05:58:06.648-07:00","lastPostTime":"2022-06-29T05:58:06.648-07:00","unreadReplyCount":9,"isSubscribed":false},"ModerationData:moderation_data:234923":{"__typename":"ModerationData","id":"moderation_data:234923","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"Revision:revision:234923_1":{"__typename":"Revision","id":"revision:234923_1","lastEditTime":"2022-06-10T03:48:40.231-07:00"},"ForumReplyMessage:message:235204":{"__typename":"ForumReplyMessage","id":"message:235204","conversation":{"__ref":"Conversation:conversation:234923"},"author":{"__ref":"User:user:82045"},"revisionNum":1,"uid":235204,"depth":1,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:readyapi-questions"},"subject":"Re: finish test case as is. Not canceled, not failed!","readOnly":false,"editFrozen":false,"moderationData":{"__ref":"ModerationData:moderation_data:235204"},"parent":{"__ref":"ForumTopicMessage:message:234923"},"body":"Hey LennSar. Would it be possible for you to share a screenshot of the test case so I can get a better idea of the flow? Thanks!
","body@stringLength":"328","rawBody":"Hey
Hi,
we are using in this case a Delay-Step with 1ms 🙂 Easy and it works (Better a dummy request)
","body@stripHtml({\"removeProcessingText\":true,\"removeSpoilerMarkup\":true,\"removeTocMarkup\":true,\"truncateLength\":200})@stringLength":"108","postTime":"2022-06-27T11:53:21.974-07:00","lastPublishTime":"2022-06-27T11:53:21.974-07:00","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"solution":true,"metrics":{"__typename":"MessageMetrics","views":1225},"placeholder":false,"originalMessageForPlaceholder":null,"videos":{"__typename":"VideoConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"isEscalated":null,"entityType":"FORUM_REPLY","eventPath":"category:ready_api_forums/community:nwkab66374board:readyapi-questions/message:234923/message:235528","customFields":[]},"Rank:rank:3":{"__typename":"Rank","id":"rank:3","position":3,"name":"Staff","color":"333333","icon":null,"rankStyle":"TEXT"},"User:user:82045":{"__typename":"User","id":"user:82045","uid":82045,"login":"joejoyce","deleted":false,"avatar":{"__typename":"UserAvatar","url":"https://community.smartbear.com/t5/s/nwkab66374/images/dS04MjA0NS05ODYyaTY2OTc5QTcwRDVEMjg0RDY"},"rank":{"__ref":"Rank:rank:3"},"email":"","messagesCount":79,"biography":null,"topicsCount":1,"kudosReceivedCount":46,"kudosGivenCount":13,"kudosWeight":1,"registrationData":{"__typename":"RegistrationData","status":null,"registrationTime":"2018-12-12T05:54:16.666-08:00","confirmEmailStatus":null},"followersCount":null,"solutionsCount":16},"ModerationData:moderation_data:235204":{"__typename":"ModerationData","id":"moderation_data:235204","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"Revision:revision:235204_1":{"__typename":"Revision","id":"revision:235204_1","lastEditTime":"2022-06-17T06:30:05.142-07:00"},"QueryVariables:ReplyList:message:235204:1":{"__typename":"QueryVariables","id":"ReplyList:message:235204:1","value":{"id":"message:235204","first":10,"sorts":{"kudosSumWeight":{"direction":"DESC","order":0},"postTime":{"direction":"ASC","order":1}},"repliesFirst":3,"repliesFirstDepthThree":1,"repliesSorts":{"kudosSumWeight":{"direction":"DESC","order":0},"postTime":{"direction":"ASC","order":1}},"useAvatar":true,"useAuthorLogin":true,"useAuthorRank":true,"useBody":true,"useKudosCount":true,"useTimeToRead":false,"useMedia":false,"useReadOnlyIcon":false,"useRepliesCount":true,"useSearchSnippet":false,"useAcceptedSolutionButton":true,"useSolvedBadge":false,"useAttachments":false,"attachmentsFirst":5,"useTags":false,"useNodeAncestors":false,"useUserHoverCard":true,"useNodeHoverCard":false,"useModerationStatus":true,"usePreviewSubjectModal":false,"useMessageStatus":true}},"CachedAsset:text:en_US-shared/client/components/users/UserAvatar-1720711077000":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/users/UserAvatar-1720711077000","value":{"altText":"{login}'s avatar","altTextGeneric":"User's avatar"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/ranks/UserRankLabel-1720711077000":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/ranks/UserRankLabel-1720711077000","value":{"altTitle":"Icon for {rankName} rank"},"localOverride":false},"CachedAsset:text:en_US-components/messages/AcceptedSolutionButton-1720711077000":{"__typename":"CachedAsset","id":"text:en_US-components/messages/AcceptedSolutionButton-1720711077000","value":{"accept":"Mark as Solution","accepted":"Marked as Solution","errorHeader":"Error!","errorAdd":"There was an error marking as solution.","errorRemove":"There was an error unmarking as solution.","solved":"Solved"},"localOverride":false},"CachedAsset:text:en_US-components/messages/ThreadedReplyList-1720711077000":{"__typename":"CachedAsset","id":"text:en_US-components/messages/ThreadedReplyList-1720711077000","value":{"title":"{count, plural, one{# Reply} other{# Replies}}","title@board:BLOG":"{count, plural, one{# Comment} other{# Comments}}","title@board:TKB":"{count, plural, one{# Comment} other{# Comments}}","title@board:IDEA":"{count, plural, one{# Comment} other{# Comments}}","title@board:OCCASION":"{count, plural, one{# Comment} other{# Comments}}","noRepliesTitle":"No Replies","noRepliesTitle@board:BLOG":"No Comments","noRepliesTitle@board:TKB":"No Comments","noRepliesTitle@board:IDEA":"No Comments","noRepliesTitle@board:OCCASION":"No Comments","noRepliesDescription":"Be the first to reply","noRepliesDescription@board:BLOG":"Be the first to comment","noRepliesDescription@board:TKB":"Be the first to comment","noRepliesDescription@board:IDEA":"Be the first to comment","noRepliesDescription@board:OCCASION":"Be the first to comment","messageReadOnlyAlert:BLOG":"Comments have been turned off for this post","messageReadOnlyAlert:TKB":"Comments have been turned off for this article","messageReadOnlyAlert:IDEA":"Comments have been turned off for this idea","messageReadOnlyAlert:FORUM":"Replies have been turned off for this discussion","messageReadOnlyAlert:OCCASION":"Comments have been turned off for this event"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/nodes/NodeIcon-1720711077000":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/nodes/NodeIcon-1720711077000","value":{"contentType":"Content Type {style, select, FORUM {Forum} BLOG {Blog} TKB {Knowledge Base} IDEA {Ideas} OCCASION {Events} other {}} icon"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageSolvedBadge-1720711077000":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageSolvedBadge-1720711077000","value":{"solved":"Solved"},"localOverride":false},"ModerationData:moderation_data:235229":{"__typename":"ModerationData","id":"moderation_data:235229","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:235229":{"__typename":"ForumReplyMessage","author":{"__ref":"User:user:106296"},"id":"message:235229","revisionNum":1,"uid":235229,"depth":2,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:readyapi-questions"},"parent":{"__ref":"ForumReplyMessage:message:235204"},"conversation":{"__ref":"Conversation:conversation:234923"},"subject":"Re: finish test case as is. Not canceled, not failed!","moderationData":{"__ref":"ModerationData:moderation_data:235229"},"body":"Hi joejoyce,
hope this helps:
At some point the test case reaches the top of the screenshot <finishTestCase>. At this test step I'd like to decide whether or not I need to do the final steps. <finishTestCase> now is a groovy script with a goTo statement. So basically it's the same as a conditional goTo test step. Both go to the <end test case dummy request> if I don't need to execute the final test steps. What I would like to have is a possibility that doesn't need the final <end test case dummy request> but simply ends the test case with whatever status it has (Pass or fail) once it reaches the test step <finishTestCase>
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"214","kudosSumWeight":0,"repliesCount":0,"postTime":"2022-06-19T22:33:46.350-07:00","lastPublishTime":"2022-06-19T22:33:46.350-07:00","metrics":{"__typename":"MessageMetrics","views":1234},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:ready_api_forums/community:nwkab66374board:readyapi-questions/message:234923/message:235229","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}}},"CachedAsset:text:en_US-components/tags/TagView/TagViewChip-1720711077000":{"__typename":"CachedAsset","id":"text:en_US-components/tags/TagView/TagViewChip-1720711077000","value":{"tagLabelName":"Tag name {tagName}"},"localOverride":false}}}},"page":"/forums/ForumMessagePage/ForumMessagePage","query":{"boardId":"readyapi-questions","messageSubject":"finish-test-case-as-is-not-canceled-not-failed","messageId":"234923","replyId":"235204"},"buildId":"_FASV5DDw52YaqfBDLqsB","runtimeConfig":{"buildInformationVisible":false,"logLevelApp":"info","logLevelMetrics":"info","openTelemetryClientEnabled":false,"openTelemetryConfigName":"smartbear","openTelemetryServiceVersion":"24.11.0","openTelemetryUniverse":"prod","openTelemetryCollector":"http://localhost:4318","openTelemetryRouteChangeAllowedTime":"5000","apolloDevToolsEnabled":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/RelatedContentWidget/RelatedContentWidget.tsx","./components/messages/MessageListForNodeByRecentActivityWidget/MessageListForNodeByRecentActivityWidget.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/List/ListGroup/ListGroup.tsx","../shared/client/components/common/Pager/PagerLoadMore/PagerLoadMore.tsx","../shared/client/components/common/List/UnwrappedList/UnwrappedList.tsx","./components/tags/TagView/TagView.tsx","./components/tags/TagView/TagViewChip/TagViewChip.tsx"],"appGip":true,"scriptLoader":[]}🎉 NEW API Hub and Insight Hub are here to simplify workflows and help you deliver quality faster. Learn More