but if i point to
https://jira.namirial.com/rest/tests/1.0/automation/execution/CUSTOMPRJ
i obtain
<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>
<status>
<status-code>404</status-code>
<message>null for uri: https://jira.namirial.com/rest/tests/1.0/automation/execution/CUSTOMPRJ</message>
</status>
instead if i point to https://jira.namirial.com/rest/atm/1.0/automation/execution/CUSTOMPRJ
the endpoint is recognized but the api respond that there are a invalid custom format json file
i tried with
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"223","kudosSumWeight":1,"postTime":"2021-08-24T01:52:55.472-07:00","lastPublishTime":"2021-08-24T01:55:35.198-07:00","metrics":{"__typename":"MessageMetrics","views":4506},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:zephyr-scale-community/community:nwkab66374board:ZephyrScale/message:219993/message:221598","replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"MessageEdge","cursor":"MjUuM3wyLjF8b3wzfDE0OjAsMzk6MXwx","node":{"__ref":"ForumReplyMessage:message:221606"}}]},"customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}}},"ModerationData:moderation_data:221606":{"__typename":"ModerationData","id":"moderation_data:221606","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:221606":{"__typename":"ForumReplyMessage","uid":221606,"id":"message:221606","revisionNum":1,"author":{"__ref":"User:user:93415"},"readOnly":false,"repliesCount":4,"depth":3,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:ZephyrScale"},"parent":{"__ref":"ForumReplyMessage:message:221598"},"conversation":{"__ref":"Conversation:conversation:219993"},"subject":"Re: server version: uploading test results to Zephyr Scale via the automation API","moderationData":{"__ref":"ModerationData:moderation_data:221606"},"body":"
As a test, you could use another rest/atm endpoint to make sure it's working for you. This endpoint works for me:
\n\n
https://jira.[YOUR INSTANCE].com/rest/atm/1.0/testrun/[YOUR TEST CYCLE]/testresults
\n\n
If that's working for you, and the JSON file you're providing is in the correct format as mentioned in the documentation here (smartbeartm4j / tm4j-junit-integration — Bitbucket) then I'm sorry I can't help. I've only used the APIs for GET functions and not very often.
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"218","kudosSumWeight":1,"postTime":"2021-08-24T04:32:37.628-07:00","lastPublishTime":"2021-08-24T04:32:37.628-07:00","metrics":{"__typename":"MessageMetrics","views":4852},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:zephyr-scale-community/community:nwkab66374board:ZephyrScale/message:219993/message:221606","replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"MessageEdge","cursor":"MjUuM3wyLjF8b3wxfDE0OjAsMzk6MXwx","node":{"__ref":"ForumReplyMessage:message:221612"}}]},"customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}}},"ModerationData:moderation_data:221612":{"__typename":"ModerationData","id":"moderation_data:221612","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:221612":{"__typename":"ForumReplyMessage","author":{"__ref":"User:user:100689"},"id":"message:221612","revisionNum":1,"uid":221612,"depth":4,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:ZephyrScale"},"parent":{"__ref":"ForumReplyMessage:message:221606"},"conversation":{"__ref":"Conversation:conversation:219993"},"subject":"Re: server version: uploading test results to Zephyr Scale via the automation API","moderationData":{"__ref":"ModerationData:moderation_data:221612"},"body":"i make other tests and i understand that the api doesn't want a junit.xml file but a json file formatted as zephyr wants, as for example
{\n \"version\": 1,\n \"executions\":[\n {\n \"source\":\"CalculatorSumTest.sumTwoNumbersAndPass\",\n \"result\":\"Passed\",\n \"testCase\": {\n \"key\": \"QA-T1\"\n }\n },\n {\n \"source\":\"CalculatorSumTest.sumTwoNumbersAndFail\",\n \"result\":\"Failed\",\n \"testCase\": {\n \"key\": \"QA-T2\"\n }\n },\n {\n \"source\":\"CalculatorSumTest.notMappedToTestCaseAndPass\",\n \"result\":\"Passed\"\n },\n {\n \"source\":\"CalculatorSumTest.mappedToTestCaseNameAndPass\",\n \"result\":\"Passed\",\n \"testCase\": {\n \"name\": \"Mapped to Test Case Name and Pass\"\n }\n }\n ]\n}
as described here https://bitbucket.org/smartbeartm4j/tm4j-junit-integration/src/master/
but here https://support.smartbear.com/zephyr-scale-cloud/docs/test-automation/pytest-integration.html documentation talk about uploading a simple xml file, not a json file, but using this api https://support.smartbear.com/zephyr-scale-cloud/api-docs/#operation/createJUnitExecutions that doesn't exists for the server version.
Can Zephyr Server version be updated to accept the createJUnitExecutions api?
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"203","kudosSumWeight":1,"repliesCount":3,"postTime":"2021-08-24T05:53:06.343-07:00","lastPublishTime":"2021-08-24T05:53:06.343-07:00","metrics":{"__typename":"MessageMetrics","views":4483},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:zephyr-scale-community/community:nwkab66374board:ZephyrScale/message:219993/message:221612","customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}}},"ModerationData:moderation_data:221587":{"__typename":"ModerationData","id":"moderation_data:221587","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:221587":{"__typename":"ForumReplyMessage","uid":221587,"id":"message:221587","revisionNum":2,"author":{"__ref":"User:user:99759"},"readOnly":false,"repliesCount":1,"depth":2,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:ZephyrScale"},"parent":{"__ref":"ForumReplyMessage:message:221578"},"conversation":{"__ref":"Conversation:conversation:219993"},"subject":"Re: server version: uploading test results to Zephyr Scale via the automation API","moderationData":{"__ref":"ModerationData:moderation_data:221587"},"body":"
thanks for the answer! yes you're right, I checked the cloud documentation because it's written how to make the integration with pytest, and in the server documentation it isn't reported. Is it impossible? but I used the server version API that I found here https://support.smartbear.com/zephyr-scale-server/api-docs/v1/
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"203","kudosSumWeight":0,"postTime":"2021-08-24T01:25:12.943-07:00","lastPublishTime":"2021-08-24T01:25:46.155-07:00","metrics":{"__typename":"MessageMetrics","views":4737},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:zephyr-scale-community/community:nwkab66374board:ZephyrScale/message:219993/message:221587","replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"MessageEdge","cursor":"MjUuM3wyLjF8b3wzfDE0OjAsMzk6MXwx","node":{"__ref":"ForumReplyMessage:message:221594"}}]},"customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}}},"ModerationData:moderation_data:221594":{"__typename":"ModerationData","id":"moderation_data:221594","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:221594":{"__typename":"ForumReplyMessage","author":{"__ref":"User:user:93415"},"id":"message:221594","revisionNum":1,"uid":221594,"depth":3,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:ZephyrScale"},"parent":{"__ref":"ForumReplyMessage:message:221587"},"conversation":{"__ref":"Conversation:conversation:219993"},"subject":"Re: server version: uploading test results to Zephyr Scale via the automation API","moderationData":{"__ref":"ModerationData:moderation_data:221594"},"body":"Glad that's helped clear up part of the issue. I've not used the APIs that much, and not for what you're trying to do but it seems to me that the API for server is generic and as long as you follow the syntax it should work. Has it worked for you?
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"208","kudosSumWeight":1,"repliesCount":0,"postTime":"2021-08-24T01:39:34.304-07:00","lastPublishTime":"2021-08-24T01:39:34.304-07:00","metrics":{"__typename":"MessageMetrics","views":4728},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:zephyr-scale-community/community:nwkab66374board:ZephyrScale/message:219993/message:221594","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-shared/client/components/users/UserAvatar-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/users/UserAvatar-1741125846000","value":{"altText":"{login}'s avatar","altTextGeneric":"User's avatar"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/ranks/UserRankLabel-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/ranks/UserRankLabel-1741125846000","value":{"altTitle":"Icon for {rankName} rank"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/common/Pager/PagerLoadMore-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/common/Pager/PagerLoadMore-1741125846000","value":{"loadMore":"Show More"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageView/MessageViewInline-1741125846000":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageView/MessageViewInline-1741125846000","value":{"bylineAuthor":"{bylineAuthor}","bylineBoard":"{bylineBoard}","anonymous":"Anonymous","place":"Place {bylineBoard}","gotoParent":"Go to parent {name}"},"localOverride":false},"QueryVariables:ReplyList:message:144169:1":{"__typename":"QueryVariables","id":"ReplyList:message:144169:1","value":{"id":"message:144169","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":false,"useNodeHoverCard":false,"useModerationStatus":true,"usePreviewSubjectModal":false,"useMessageStatus":true}}}}},"page":"/forums/ForumMessagePage/ForumMessagePage","query":{"boardId":"soapui_os","messageSubject":"property-transfer-steps---reading-the-response-and-displays-transferred-values","messageId":"144143","replyId":"144169"},"buildId":"ISAhs0UxT148eG089lpQq","runtimeConfig":{"buildInformationVisible":false,"logLevelApp":"info","logLevelMetrics":"info","openTelemetryClientEnabled":false,"openTelemetryConfigName":"smartbear","openTelemetryServiceVersion":"25.3.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/MessageView/MessageViewStandard/MessageViewStandard.tsx","./components/messages/MessageListForNodeByRecentActivityWidget/MessageListForNodeByRecentActivityWidget.tsx","./components/messages/RelatedContentWidget/RelatedContentWidget.tsx","./components/customComponent/CustomComponent/CustomComponent.tsx","../shared/client/components/common/List/UnstyledList/UnstyledList.tsx","./components/messages/MessageView/MessageView.tsx","../shared/client/components/common/Pager/PagerLoadMore/PagerLoadMore.tsx","./components/messages/MessageView/MessageViewInline/MessageViewInline.tsx","./components/customComponent/CustomComponentContent/TemplateContent.tsx"],"appGip":true,"scriptLoader":[]}