Jamiez
4 years agoNew Contributor
karate/cucumber json report uploaded but tests show unexcused
Hi Community,
our framework is base on Karate which is base on Cucumber and the execution report is in the same cucumber json format. I had tried upload the excution from Test Automation task and it worked for a while. but for attached json report, the only result is I got a new folder/cycle created with all related Zephyr Tests listed as unexpected.
I had gone through https://community.smartbear.com/t5/Zephyr-Squad/Uploading-cucumber-results-to-Zephyr-issues/m-p/217671#M322 and made sure my Scenario name doesn't include any unacceptable special chars.
I have attached my json report, Can any capable one pls check what is the reason for it? Thanks in advance
[
{
"line": 1,
"elements": [
{
"line": 6,
"name": "",
"description": "",
"type": "background",
"keyword": "Background",
"steps": [
{
"name": "def path = '/product-framework-api/reports/v1/'",
"result": {
"duration": 214800,
"status": "passed"
},
"match": {
"location": "karate",
"arguments": [
]
},
"keyword": "*",
"line": 8,
"doc_string": {
"content_type": "",
"value": "13:58:11.427 karate.env system property was: DEV \n13:58:13.145 this thread waited 1248 milliseconds for callSingle lock: classpath:com/authorizations/oAuthTwoRetrieveToken.feature",
"line": 8
}
},
{
"name": "url productFrameworkEndPointURI + '/anzcop-wiremock-service/__admin/mappings'",
"result": {
"duration": 4411200,
"status": "passed"
},
"match": {
"location": "karate",
"arguments": [
]
},
"keyword": "*",
"line": 10
},
{
"name": "method get",
"result": {
"duration": 821311800,
"status": "passed"
},
"match": {
"location": "karate",
"arguments": [
]
},
"keyword": "*",
"line": 11
},
{
"name": "configure headers = read('classpath:com/testFiles/jsonFiles/headers/headers.json').headers.getPDFHeader",
"result": {
"duration": 8097100,
"status": "passed"
},
"match": {
"location": "karate",
"arguments": [
]
},
"keyword": "*",
"line": 13
}
]
},
{
"line": 18,
"name": "ProductFramework_API_GetPDF_To verify that a pdf report data associated with valid report ID from Product History will be returned for valid reportId",
"description": "",
"id": "productframework-api-getpdf-to-verify-that-a-pdf-report-data-associated-with-valid-report-id-from-product-history-will-be-returned-for-valid-reportid",
"type": "scenario",
"keyword": "Scenario",
"steps": [
{
"name": "def reportId = '82ecdd61-ec23-4ab8-87aa-6c2a37516388'",
"result": {
"duration": 3254100,
"status": "passed"
},
"match": {
"location": "karate",
"arguments": [
]
},
"keyword": "*",
"line": 20
},
{
"name": "json mappingResults = $.mappings[?(@.id=='#(reportId)')].request.headers.Accept.equalTo",
"result": {
"duration": 30718500,
"status": "passed"
},
"match": {
"location": "karate",
"arguments": [
]
},
"keyword": "*",
"line": 21
},
{
"name": "if (mappingResults.length==0 || mappingResults.includes('application/pdf') <=-1) karate.call ('classpath:com/features/mocking/mapMockingServer.feature@GetProductHistoryPDF_200_OK')",
"result": {
"duration": 2129144200,
"status": "passed"
},
"match": {
"location": "karate",
"arguments": [
]
},
"keyword": "*",
"line": 22
},
{
"name": "com/features/mocking/mapMockingServer.feature",
"result": {
"duration": 0,
"status": "passed"
},
"match": {
"location": "karate",
"arguments": [
]
},
"keyword": "",
"line": 22
},
{
"name": "configure headers = read('classpath:com/testFiles/jsonFiles/headers/headers.json').headers.getProductHistoryByIdHeader",
"result": {
"duration": 41121700,
"status": "passed"
},
"match": {
"location": "karate",
"arguments": [
]
},
"keyword": "> *",
"line": 6
},
{
"name": "url productFrameworkEndPointURI + '/anzcop-wiremock-service/__admin/mappings'",
"result": {
"duration": 1118200,
"status": "passed"
},
"match": {
"location": "karate",
"arguments": [
]
},
"keyword": "> *",
"line": 76
},
{
"name": "request read('classpath:com/testFiles/jsonFiles/requests/MockingService/mapGetProductHistoryPDF.json').status_200_OK",
"result": {
"duration": 54235800,
"status": "passed"
},
"match": {
"location": "karate",
"arguments": [
]
},
"keyword": "> *",
"line": 77
},
{
"name": "method post",
"result": {
"duration": 1838287600,
"status": "passed"
},
"match": {
"location": "karate",
"arguments": [
]
},
"keyword": "> *",
"line": 78
},
{
"name": "url productFrameworkEndPointURI + path + reportId",
"result": {
"duration": 1785700,
"status": "passed"
},
"match": {
"location": "karate",
"arguments": [
]
},
"keyword": "Given",
"line": 24
},
{
"name": "method get",
"result": {
"duration": 985240500,
"status": "passed"
},
"match": {
"location": "karate",
"arguments": [
]
},
"keyword": "When",
"line": 25
},
{
"name": "status 200",
"result": {
"duration": 37900,
"status": "passed"
},
"match": {
"location": "karate",
"arguments": [
]
},
"keyword": "Then",
"line": 26
}
],
"tags": [
{
"name": "@API_Progression",
"line": 16
},
{
"name": "@API_Regression",
"line": 16
}
]
}
],
"name": "Get PDF",
"description": "Get PDF",
"id": "get-pdf",
"keyword": "Feature",
"uri": "com/features/microservices/ProductRequestFramework/Get_PDF.feature"
}
]
Cheers,
Jamie