Last active
April 18, 2021 13:33
-
-
Save manvillej/1a4305d756cf16b8cdb43a1b5f4ab629 to your computer and use it in GitHub Desktop.
version 2.0 with Test results
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ATFGraphQLAPI = { | |
atfTestToJson: function(test){ | |
return { | |
"active": test.getDisplayValue("active"), | |
"sys_id": test.getValue("sys_id"), | |
"name": test.getValue("name"), | |
"description": test.getValue("description") | |
}; | |
}, | |
atfTestResultToJson: function(testResult){ | |
return { | |
"id": testResult.getUniqueValue(), | |
"pending": testResult.getValue("pending_time"), | |
"duration": testResult.getValue("run_time"), | |
"startTime": testResult.getValue("start_time"), | |
"endTime": testResult.getValue("end_time"), | |
"output": testResult.getValue("output"), | |
"status": testResult.getValue("status"), | |
"userAgents": testResult.getValue("user_agents") | |
}; | |
}, | |
type: 'ATFGraphQLAPI' | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment