Hi , Thank you very much for your response
Whole response I am getting as
{
"16711": [
{
"1844": {
"totalExecutions": 43,
"endDate": "31/Jan/18",
"description": "Test cycle for Functional test cases created for PCI testing on DPC",
"totalExecuted": 42,
"started": "true",
"versionName": "PCI Compliance for DPC",
"expand": "executionSummaries",
"projectKey": "PCFD",
"versionId": 16711,
"environment": "GRE01",
"totalCycleExecutions": 43,
"totalDefects": 2,
"build": "PCI 4.0",
"createdBy": "a682346",
"ended": "true",
"name": "Functional PCI testing on DPC",
"totalFolders": 0,
"modifiedBy": "a682346",
"projectId": 17701,
"createdByDisplay": "Bate, Pravin",
"startDate": "21/Dec/17",
"executionSummaries": {
"executionSummary": []
}
},
"1845": {
"totalExecutions": 19,
"endDate": "31/Jan/18",
"description": "",
"totalExecuted": 19,
"started": "true",
"versionName": "PCI Compliance for DPC",
"expand": "executionSummaries",
"projectKey": "PCFD",
"versionId": 16711,
"environment": "GRE01",
"totalCycleExecutions": 19,
"totalDefects": 8,
"build": "PCI 4.0",
"createdBy": "a665679",
"ended": "true",
"name": "Non- Functional Security Testing",
"totalFolders": 0,
"modifiedBy": "a682346",
"projectId": 17701,
"createdByDisplay": "Chowdhury, Barnavo",
"startDate": "5/Jan/18",
"executionSummaries": {
"executionSummary": []
}
},
"1852": {
"totalExecutions": 9,
"endDate": "31/Jan/18",
"description": "Regression Testing",
"totalExecuted": 9,
"started": "true",
"versionName": "PCI Compliance for DPC",
"expand": "executionSummaries",
"projectKey": "PCFD",
"versionId": 16711,
"environment": "GRE01",
"totalCycleExecutions": 9,
"totalDefects": 6,
"build": "PCI 4.0",
"createdBy": "a612856",
"ended": "true",
"name": "Regression_Testing",
"totalFolders": 0,
"modifiedBy": "a682346",
"projectId": 17701,
"createdByDisplay": "Dhiraj Shah",
"startDate": "22/Jan/18",
"executionSummaries": {
"executionSummary": []
}
},
"-1": {
"totalExecutions": 0,
"endDate": "",
"description": "",
"totalExecuted": 0,
"started": "",
"versionName": "PCI Compliance for DPC",
"expand": "executionSummaries",
"projectKey": "PCFD",
"versionId": 16711,
"environment": "",
"totalCycleExecutions": 0,
"build": "",
"ended": "",
"name": "Ad hoc",
"modifiedBy": "",
"projectId": 17701,
"startDate": "",
"executionSummaries": {
"executionSummary": []
}
},
"recordsCount": 4
}
],
"-1": [
{
"-1": {
"totalExecutions": 6,
"endDate": "",
"description": "",
"totalExecuted": 0,
"started": "",
"versionName": "Unscheduled",
"expand": "executionSummaries",
"projectKey": "PCFD",
"versionId": -1,
"environment": "",
"totalCycleExecutions": 6,
"build": "",
"ended": "",
"name": "Ad hoc",
"modifiedBy": "",
"projectId": 17701,
"startDate": "",
"executionSummaries": {
"executionSummary": []
}
},
"recordsCount": 1
}
]
}
I want to know How find length of Array(16771& -1 , now I m getting these 2 main array ) and Subarray( 1844,1845,1852,-1& -1 ) ?
They have given “recordsCount” parameter for subarrays we can use that to find length of subarray ?
I am passing project key as global variable from different api req and comaprining with given json response , In which array that global project key matches I want to get that array name and set it as global variable , that array name I will use in next api request .
How to do this ?
Preeti.