Contributions
Re: server version: uploading test results to Zephyr Scale via the automation API
Support team answered me that there is no junit impor funcionality in server version, but only in cloud version. i implemented by myself parsing the xml and using server api to create-update test results.2.8KViews1like0CommentsRe: server version: uploading test results to Zephyr Scale via the automation API
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 { "version": 1, "executions":[ { "source":"CalculatorSumTest.sumTwoNumbersAndPass", "result":"Passed", "testCase": { "key": "QA-T1" } }, { "source":"CalculatorSumTest.sumTwoNumbersAndFail", "result":"Failed", "testCase": { "key": "QA-T2" } }, { "source":"CalculatorSumTest.notMappedToTestCaseAndPass", "result":"Passed" }, { "source":"CalculatorSumTest.mappedToTestCaseNameAndPass", "result":"Passed", "testCase": { "name": "Mapped to Test Case Name and Pass" } } ] } as described herehttps://bitbucket.org/smartbeartm4j/tm4j-junit-integration/src/master/ but herehttps://support.smartbear.com/zephyr-scale-cloud/docs/test-automation/pytest-integration.htmldocumentation talk about uploading a simple xml file, not a json file, but using this apihttps://support.smartbear.com/zephyr-scale-cloud/api-docs/#operation/createJUnitExecutionsthat doesn't exists for the server version. Can Zephyr Server version be updated to accept the createJUnitExecutions api?4.5KViews1like3CommentsRe: server version: uploading test results to Zephyr Scale via the automation API
i'm using the server documentation, maybe the problem can be with the endpoint? following documentationhttps://support.smartbear.com/zephyr-scale-server/api-docs/v1/it should to be something like http://your-jira-host:port/your-jira-context/rest/atm/1.0/ but taking a look at the network in chrome i found a call with this endpoint https://jira.namirial.com/rest/tests/1.0/testcase/search?archived=false&fields=id,key,projectId,name,averageTime,estimatedTime,labels,folderId,componentId,statusId,priorityId,lastTestResultStatus(name,i18nKey,color),majorVersion,createdOn,createdBy,updatedOn,updatedBy,customFieldValues,owner&maxResults=40&query=testCase.projectId+IN+(12804)&startAt=0 and the api works using /rest/tests/1.0/testcase/search but not using /rest/atm/1.0/ as described 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 tohttps://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 xml generated by pytest xml generated by jest xml downloaded online4.5KViews1like5Comments