You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
definitions :
models.Response :
properties :
code :
type : integer
data : {}
msg :
type : string
type : object
info :
contact : {}
paths :
/api/monkey/v1/create_task :
post :
consumes :
- application/x-www-form-urlencoded
description : 新建Monkey任务, 创建成功后将会发送指令到monkey服务, 初始status为WAITTING-等待中
parameters :
- description : 项目名
in : formData
name : project
type : string
- description : 测试包下载链接
in : formData
name : package_url
type : string
- description : 应用包名
in : formData
name : package_name
required : true
type : string
- description : 启动activity页
in : formData
name : launch_activity
type : string
- description : 运行设备数, 默认1台
in : formData
name : device_amount
type : string
- description : 平台adr/ios
in : formData
name : platform
required : true
type : string
- description : 运行时间( s) , 默认两小时( 7200s)
in : formData
name : run_time
type : string
- description : 任务创建者
in : formData
name : creator
type : string
- description : 调用服务的方式, 0-cli模式/1-api模式, 默认cli
in : formData
name : mode
type : string
responses :
"200" :
description : 返回创建的任务id
schema :
$ref : '#/definitions/models.Response'
summary : 新建Monkey任务
tags :
- Monkey相关 /api/monkey/v1/
/api/monkey/v1/task/status :
post :
consumes :
- application/x-www-form-urlencoded
description : 更新Monkey任务状态, 进行中为RUNNING, 已完成为FINIASHED, 如有错误为ERROR
parameters :
- description : 项目名
in : formData
name : task_id
required : true
type : integer
- description : 要更新的任务状态
in : formData
name : status
type : string
responses :
"200" :
description : 返回更新后的任务信息
schema :
$ref : '#/definitions/models.Response'
summary : 更新Monkey任务状态
tags :
- Monkey相关 /api/monkey/v1/
/api/monkey/v1/tasks :
get :
consumes :
- application/x-www-form-urlencoded
description : 获取任务列表
parameters :
- description : 每页大小,默认为10
in : query
name : page_size
type : integer
- description : 第几页,默认为第一页
in : query
name : page_index
type : integer
responses :
"200" :
description : 返回更新后的任务信息
schema :
$ref : '#/definitions/models.Response'
summary : 获取任务列表
tags :
- Monkey相关 /api/monkey/v1/
swagger : "2.0"