...
The Workflow Completed event is triggered whenever a workflow execution succeeds or fails. Note that this event will trigger for ALL workflow types.
The testSuiteExec array in the payload will return all test suite executions from the workflow. This is most common in TEST workflows but tests can be run from any workflow type (Build, Deploy, Utility, etc..).
Workflow Completed (DEPLOY) Event Payload
Code Block | ||
---|---|---|
| ||
{ "eventType":"Workflow Completed", "actor":"fdadmin", "object":"currentStatusPartial", "timestamp":"2020-23-14 14:23:39 -0500", "payload":{ "createdBy":"fdadmin", "createdOn":"2020-23-14 14:23:25 -0500", "updatedBy":"fdadmin", "updatedOn":"2020-23-14 14:23:39 -0500", "executionStatus":"SUCCESS", "workflowExecutionId":12408, "startTime":"2020-23-14 14:23:25 -0500", "endTime":"2020-23-14 14:23:39 -0500", "workflow":{ "workflowId":1130, "workflowName":"SimpleDeployPartial", "workflowType":"DEPLOY", "workflowVersionId":1131 }, "project":{ "projectId":10002, "projectName":"currentStatusPartial" }, "projectVersionId":13101, "projectVersionName":"1.0.37", "packageName": "TestPackage", "projectStreamId":10003, "projectStreamName":"master", "instance":{ "instanceId":1168, "instanceName":"Current Status", "instanceCode":"CURRENTSTATUS" }, "environment":{ "environmentId":1166, "environmentName":"Development", "environmentCode":"DEV" }, "release":{ "releaseId":null, "releaseName":null }, "snapshot":{ "snapshotId":null, "snapshotName":null, "snapshotStatus":null, "description":null, "releaseId":null }, "workflowRequest":{ "workflowRequestId":12505, "forceDeploy":true, "triggerType":"MANUAL", "flexFields":[ null, null, null, null, null, null, null, null, null, null ], "priority":1, "allFilesRequested":false }, "issueNumbers":[ ], "cmsTickets":[ ], "testRuntestSuiteExec":null[ ] } } |
Workflow Completed (TEST) Event Payload
Code Block | ||
---|---|---|
| ||
{ "eventType":"Workflow Completed", "actor":"fdadmin", "object":"TestProject", "timestamp":"2020-44-18 10:44:16 -0500", "payload":{ "createdBy":"fdadmin", "createdOn":"2020-43-18 10:43:57 -0500", "updatedBy":"fdadmin", "updatedOn":"2020-44-18 10:44:16 -0500", "executionStatus":"SUCCESS", "workflowExecutionId":10409, "startTime":"2020-43-18 10:43:58 -0500", "endTime":"2020-44-18 10:44:16 -0500", "workflow":{ "workflowId":1193, "workflowName":"TestWorkflow", "workflowType":"TEST", "workflowVersionId":1195 }, "project":{ "projectId":10002, "projectName":"TestProject" }, "projectVersionId":10010, "projectVersionName":"1.0.1", "projectStreamId":10003, "projectStreamName":"master", "instance":{ "instanceId":1323, "instanceName":"Local", "instanceCode":"LOCAL" }, "environment":{ "environmentId":1320, "environmentName":"Development", "environmentCode":"DEV" }, "release":null, "snapshot":null, "workflowRequest":{ "workflowRequestId":10411, "forceDeploy":false, "triggerType":"MANUAL", "flexFields":[ null, null, null, null, null, null, null, null, null, null ], "priority":null, "allFilesRequested":false }, "issueNumbers":[ ], "cmsTickets":[ ], "testRuntestSuiteExec":[ { "runIdtestSuiteExecutionId":101021262620, "runStatusstatus":"PASSEDFAILED", "startTime":"20202023-4306-1812 1011:4333:5837 -0500", "endTime":"20202023-4406-1812 1011:4434:1613 -0500", "testSetstestExecutions":[ { "name":"LocalPostmanTest1"Test, Set 1", "status":"PASSEDFAILED", "testTypeIdtoolName":10001"Postman", "testTypeName":"Unit Tests", "testResults":[ "testDefinitions":[ { { "nametestCaseName":"Test Def 1",http://numbergen.com:8000/JavaRandomNumGenApp/random-number", "status":"FAILED", "message":"Status code is 200 - AssertionFailure - null", "minResponseTime":null, "maxResponseTime":null, "avgResponseTime":null, "duration":0, "executionCount":1, "outputData":null } ] }, { "name":"LocalPostmanTest2", "status":"FAILED", "toolName":"Postman", "testResults":[ { "testCaseName":"http://numbergen.com:8000/JavaRandomNumGenApp/random-number", "status":"FAILED", "message":"Status code is 200 - AssertionFailure - null", "minResponseTime":null, "maxResponseTime":null, "avgResponseTime":null, "duration":0, "executionCount":1, "outputData":null }, { "name":"ParameterizedTest", "status":"PASSED", "toolName":"JUnit", "testResults":[ { "testCaseName":"my.company.tests.ParameterizedTest.testMultiplication[0]", "status":"PASSED", "testingTool":"Postman", "message":null, "minResponseTime":null, "maxResponseTime":null, "endpointId":10001, "resultsavgResponseTime":[null, { "duration":3, "testCaseName":"GetProjects- Status code is 200", "executionCount":1, "statusoutputData":"PASSED",null "message":null}, { "maxResponseTime":null, "duration":2999,testCaseName":"my.company.tests.ParameterizedTest.testMultiplication[1]", "status":"PASSED", "executionCount":1 "message":null, }, { "minResponseTime":null, "testCaseName":"GetProject- Status code is 200"maxResponseTime":null, "statusavgResponseTime":"PASSED"null, "messageduration":null0, "maxResponseTimeexecutionCount":null1, "durationoutputData":509,null } "executionCount":1 ] } } ] ] } } ] ] } } ] }] } } |
Work Item Created
The Work Item Created event is triggered whenever work item is created.
...