Skip to content

查询自动化测试结果

接口地址:/v2/cep/enduserapi/automation/getTestAutomation

请求方式:GET

请求数据类型:application/x-www-form-urlencoded

响应数据类型:*/*

接口描述:

查询自动化测试结果

请求参数:

参数名称参数说明请求类型是否必须数据类型schema
testResultId测试结果IDquerytrueinteger(int64)
Authorizationheaderfalsestring

响应状态:

状态码说明schema
200OKApiResult«测试自动化结果»
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int32)integer(int32)
data测试自动化结果测试自动化结果
  failActionList失败详情arrayFailDetail
    failMsgstring
    iconstring
    namestring
    property物模型属性物模型属性
      code物模型标识符string
      compare比较符。>>=<
      dataType数据类型。支持:BOOL、ENUM、INT、FLOAT、DOUBLE,可用值:BOOL,DOUBLE,ENUM,FLOAT,INTstring
      id物模型功能IDinteger
      name物模型名称string
      subNamestring
      subTypestring
      type物模型类型string
      unit物模型单位string
      value物模型属性比较值object
  failCount失败数量AtomicIntegerAtomicInteger
    andDecrementinteger
    andIncrementinteger
  overallFailMsg失败原因string
  result0:成功,1:失败,2:部分成功integer(int32)
  successCount成功数量AtomicIntegerAtomicInteger
    andDecrementinteger
    andIncrementinteger
  timeoutStatus是否超时boolean
extMsgstring
msgstring

响应示例:

javascript
{
	"code": 0,
	"data": {
		"failActionList": [
			{
				"failMsg": "",
				"icon": "",
				"name": "",
				"property": {
					"code": "",
					"compare": "",
					"dataType": "",
					"id": 0,
					"name": "",
					"subName": "",
					"subType": "",
					"type": "",
					"unit": "",
					"value": {}
				}
			}
		],
		"failCount": {
			"andDecrement": 0,
			"andIncrement": 0
		},
		"overallFailMsg": "",
		"result": 0,
		"successCount": {
			"andDecrement": 0,
			"andIncrement": 0
		},
		"timeoutStatus": true
	},
	"extMsg": "",
	"msg": ""
}