agileone项目接口文档V1.1

基准参数PHPSESSID

参数名

参数类型

是否必填

默认值

备注说明

PHPSESSID

string

必填

Session ID

第一次访问时,由系统分配,需要权限才能操作的接口,必须带该参数

该参数值可由调用登录接口时取得(响应头中)

登录接口

接口地址:http://localhost/agileone/index.php/common/login

请求方式:POST

前置条件:

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

username

string

必填

用户名

password

string

必填

密码

savelogin

bool

非必填

false

记住密码

传参格式:

username=admin&password=admin&savelogin=true

返回结果:

successful

判断标准:

如上提示内容

公告管理

查询公告

接口地址:http://localhost/agileone/index.php/notice/query

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

currentpage

string

非必填

默认为1

页码

noticeid

string

非必填

公告id

headline

string

非必填

公告标题

content

string

非必填

公告内容

creator

string

非必填

创建人

scope

string

非必填

公告范围

expireddate

string

非必填

默认值为有效期为3个月

过期时间,格式:2019-04-14

传参格式:

currentpage=1¬iceid=1&headline=公告标题&content=公告内容&creator=创建人&scope=公告范围&expireddate=2019-04-14

返回结果:

JSON

[{

"noticeid": "10",

"headline": "333333333333",

"content": "…….",

"creator": "admin",

"expireddate": "2019-04-14",

"scope": "1",

"createdtime": "2019-01-14 12:29:01",

"updatedtime": "2019-01-14 12:29:01"

}, {

"noticeid": "1",

"headline": "AgileJoy.com, 享受敏捷乐趣",

"content": "…..",

"creator": "denny",

"expireddate": "2012-07-14",

"scope": "0",

"createdtime": "2010-04-15 15:08:50",

"updatedtime": "2010-04-21 10:21:09"

}, {

"totalRecord": 2

}]

判断标准:

可查询出相应公告内容

新增公告

接口地址:http://localhost/agileone/index.php/notice/add

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

headline

string

必填

公告标题,长度为5-30字符

content

string

必填

公告内容,长度限制为1-1000字符

scope

string

必填

默认为当前项目

公告范围,0表示公告所有项目,指定项目ID则表示仅公告该项目

expireddate

string

必填

默认值为有效期为3个月

过期时间,格式:2019-04-14

传参格式:

headline=公告标题&content=公告内容&scope=1&expireddate=2019-05-14

返回结果:

2

判断标准:

为新增公告的id

编辑公告

接口地址:http://localhost/agileone/index.php/notice/edit

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

noticeid

string

必填

公告id

headline

string

非必填

公告标题,长度为5-30字符

content

string

非必填

公告内容,长度限制为1-1000字符

scope

string

非必填

默认为当前项目

公告范围,0表示公告所有项目,指定项目ID则表示仅公告该项目

expireddate

string

非必填

默认值为有效期为3个月

过期时间,格式:2019-04-14

传参格式:

noticeid=7&headline=热门公告&content=公告内容&scope=1&expireddate=2019-05-14

返回结果:

1

判断标准:

如上提示内容

删除公告

接口地址:http://localhost/agileone/index.php/notice/delete

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

noticeid

string

必填

公告id

传参格式:

noticeid=7

返回结果:

1

判断标准:

如上提示内容

// 随机生成一个3位数字的id


var dep_id = Math.floor(Math.random()*1000);


pm.environment.set("depid" , dep_id); //设置到环境变量中



// 随机生成学院名称dep_name


// 随机生成一个10位的字符串


var data = Math.random().toString(36).slice(-10) ;


var dep_name = data+"学院";


pm.environment.set("dep_name" , dep_name);//设置到环境变量中



// 随机生成院长的名字


var first_name = ["赵","钱","孙","李","刘"];


var last_name = ["子鼠","丑牛","寅虎","牟兔","辰龙","巳蛇"];


var master_name = first_name[Math.floor(Math.random() * (first_name.length))] +last_name[Math.floor(Math.random() * (last_name.length))];


pm.environment.set("master_name" , master_name);//设置到环境变量中



// 随机生成口号


var slogan_str = ["吃饭","睡觉","打豆豆"];


var slogan = slogan_str[Math.floor(Math.random() * (slogan_str.length))];


pm.environment.set("slogan" , slogan);//设置到环境变量中


会议记录

4.14

查询会议记录

接口地址:http://localhost/agileone/index.php/minutes/query

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

currentpage

string

非必填

默认为1

页码

minutesid

string

非必填

会议记录编号

holdtime

string

非必填

默认值为当前年月日+“09:00:00”

会议记录举行时间,格式:2019-10-25 09:00:00

organizer

string

非必填

主持人

venue

string

非必填

会议地点

topic

string

非必填

会议议题

attendee

string

非必填

与会人员

resolution

string

非必填

会议决议

传参格式:

currentpage=1&minutesid=1&topic=会议记录会议议题&holdtime=2019-10-25 09:00:00&organizer=会议记录主持人&venue=会议记录会议地点&attendee=会议记录与会人员&resolution=会议记录会议决议

返回结果:

JSON

[{

"minutesid":"1",

"projectid":"1",

"topic":"\u8fb9\u7f18\u4e16\u754c",

"holdtime":"2019-10-25 09:00:00",

"venue":"\u96ea\u8c79\u8c37",

"organizer":"\u96ea\u8c79",

"attendee":"\u884c\u661f",

"resolution":"12346752",

"createdtime":"2019-08-25 08:01:17",

"updatedtime":"2019-08-25 08:01:17"

},{

"totalRecord":1

}]

判断标准:

可查询出相应公告内容

新增会议记录

接口地址:http://localhost/agileone/index.php/minutes/add

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

topic

string

必填

会议议题,长度为5-40字符

holdtime

string

必填

默认值为当前年月日+“09:00:00”

会议记录举行时间,格式:2019-10-25 09:00:00

organizer

string

必填

主持人,长度为1-30字符

venue

string

必填

会议地点,长度为1-100字符

attendee

string

必填

与会人员,长度为1-200字符

resolution

string

必填

会议决议,长度为1-1000字符

传参格式:

topic=会议记录会议议题&holdtime=2019-08-25 09:00:00&organizer=会议记录主持人&venue=会议记录会议地点&attendee=会议记录与会人员&resolution=会议记录会议决议

返回结果:

4

判断标准:

为新增会议记录的编号

编辑会议记录

接口地址:http://localhost/agileone/index.php/minutes/edit

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

minutesid

string

必填

会议记录编号

topic

string

非必填

会议议题,长度为5-40字符

holdtime

string

非必填

默认值为当前年月日+“09:00:00”

会议记录举行时间,格式:2019-10-25 09:00:00

organizer

string

非必填

主持人,长度为1-30字符

venue

string

非必填

会议地点,长度为1-100字符

attendee

string

非必填

与会人员,长度为1-200字符

resolution

string

非必填

会议决议,长度为1-1000字符

传参格式:

minutesid=4&topic=会议记录会议议题&holdtime=2019-08-25 09:00:00&organizer=会议记录主持人&venue=会议记录会议地点&attendee=会议记录与会人员&resolution=会议记录会议决议

返回结果:

1

判断标准:

如上提示内容

删除会议记录

接口地址:http://localhost/agileone/index.php/minutes/delete

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

minutesid

string

必填

会议记录编号

传参格式:

minutesid=4

返回结果:

1

判断标准:

如上提示内容

知识仓库

查询知识仓库

接口地址:http://localhost/agileone/index.php/knowledge/query

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

currentpage

string

非必填

默认为1

页码

knowledgeid

string

非必填

知识id

projectid

string

非必填

项目id

creator

string

非必填

创建人

type

string

非必填

知识类型

headline

string

非必填

知识标题

content

string

非必填

知识内容

传参格式:

currentpage=1&knowledgeid=编号id&creator=admin&type=Technology&

projectid=1&headline=知识标题&content=知识内容

返回结果:

JSON

[{"knowledgeid":"10",

"projectid":"1",

"creator":"admin",

"type":"Technology",

"headline":"1",

"content":"1",

"createdtime":"2019-08-26 02:10:56",

"updatedtime":"2019-08-26 02:10:56",

"projname":"agileone"

},{

"knowledgeid":"9",

"projectid":"1",

"creator":"admin",

"type":"Technology",

"headline":"1",

"content":"1",

"createdtime":"2019-08-26 02:10:27",

"updatedtime":"2019-08-26 02:10:27",

"projname":"agileone"

},{

"totalRecord":1

}]

判断标准:

可查询出相应知识内容

新增知识仓库

接口地址:http://localhost/agileone/index.php/knowledge/add

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

creator

string

必填

创建人,长度为1-10字符

type

string

必填

默认为Technology

知识类型,分为Technology、Business、Management、CustomerEvent

projectid

string

必填

项目id

headline

string

必填

知识标题,长度为1-50字符

content

string

必填

知识内容,长度为1-5000字符

传参格式:

type=Technology&projectid=1&headline=知识标题&content=知识内容

返回结果:

15

判断标准:

为新增知识(knowledgeid)的id

编辑知识仓库

接口地址:http://localhost/agileone/index.php/knowledge/edit

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

knowledgeid

string

必填

知识id

type

string

非必填

知识类型,同上

projectid

string

非必填

项目id

headline

string

非必填

知识标题,长度为1-50字符

content

string

非必填

知识内容,长度为1-5000字符

传参格式:

knowledgeid=公告id&type=Technology&projectid=1&headline=知识标题&content=知识内容

返回结果:

1

判断标准:

如上提示内容

删除知识仓库

接口地址:http://localhost/agileone/index.php/knowledge/delete

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

knowledgeid

string

必填

知识id

传参格式:

knowledgeid=15

返回结果:

1

判断标准:

如上提示内容

需求提案

查询提案

接口地址:http://localhost/agileone/index.php/proposal/query

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

currentpage

string

非必填

默认为1

页码

proposalid

string

非必填

提案id

headline

string

非必填

提案标题

content

string

非必填

提案内容

creator

string

非必填

创建人

type

string

非必填

类型

importance

string

非必填

重要性

processresult

string

非必填

处理结果,0表示未处理,1表示已处理

传参格式:

currentpage=1&proposalid=&creator=admin&type=Requirement&importance=Medium&headline=&content=&processresult=

返回结果:

JSON

[{

"content": "222",

"createtime": "2019-08-26 02:45:17",

"creator": "admin",

"headline": "222",

"processed": "1",

"processresult": "222",

"projectid": "13",

"type": "Requirement"

"updatetime": "2019-08-26 02:45:17"

}, {

"totalRecord": 1

}]

判断标准:

可查询出相应提案内容

新增提案

接口地址:http://localhost/agileone/index.php/proposal/add

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

headline

string

必填

提案标题,长度为5-40字符

content

string

必填

提案内容,长度为1-2000字符

creator

string

必填

创建人,长度为1-10字符

type

string

必填

默认为Requirement

类型,分为Requirement、Enhancement、Suggestion、Complaint

importance

string

必填

默认为Medium

重要性,分为High、Medium、Low

processresult

string

必填

处理结果,为空或0表示未处理,1表示已处理

传参格式:type=Requirement&importance=Medium&headline=555&content=555&processresult=555

返回结果:

14

判断标准:

为新增需求的id

编辑提案

接口地址:http://localhost/agileone/index.php/proposal/edit

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

proposalid

string

必填

提案编号

headline

string

非必填

提案标题,长度为5-40字符

content

string

非必填

提案内容,长度为1-2000字符

creator

string

非必填

创建人,长度为1-10字符

type

string

非必填

类型,分为Requirement、Enhancement、Suggestion、Complaint

importance

string

非必填

重要性,分为High、Medium、Low

processresult

string

非必填

处理结果,为空或0表示未处理,1表示已处理

传参格式:

proposalid=14&type=Requirement&importance=Medium&headline=555&content=555555&processresult=555

返回结果:

1

判断标准:

如上提示内容

删除提案

接口地址:http://localhost/agileone/index.php/notice/delete

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

proposalid

string

必填

提案id

传参格式:

proposalid=14

返回结果:

1

判断标准:

如上提示内容

用户故事

查询故事

接口地址:http://localhost/agileone/index.php/userstory/query

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

currentpage

string

非必填

默认为1

页码

userstoryid

string

非必填

故事编号

creator

string

非必填

当前用户

创建者

proposalid

string

非必填

提案建议

priority

string

非必填

Must-Have

优先级

milestone

string

非必填

Milestone-Design

里程碑

module

string

非必填

System

模块

status

string

非必填

Proposed

状态

finishdate

string

非必填

当前日期(年-月-日)

完成日期

headline

string

非必填

标题

content

string

非必填

内容

传参格式:

currentpage=1&userstoryid=19&creator=denny&proposalid=&priority=Must-Have&milestone=Milestone-Core&module=Defect&status=Finished&finishdate=完成日期&headline=标题&content=内容

返回结果:

JSON

[{

"userstoryid":"19",

"projectid":"1",

"creator":"denny",

"proposalid":"0",

"priority":"Must-Have",

"milestone":"Milestone-Core",

"module":"Defect",

"status":"Finished",

"finishdate":"2010-02-01",

"headline":"\u4f5c\u4e3a\u9879\u76ee\u7ecf\u7406\uff0c\u5e0c\u671b\u8ddf\u8e2a\u6bcf\u4e2a\u7f3a\u9677\u7ecf\u8fc7\u7684\u6240\u6709\u72b6\u6001",

"content":"<p>\u7f3a\u9677\u62a5\u544a\u662f\u9879\u76ee\u4e2d\u7684\u91cd\u8981\u8d44\u4ea7\uff0c\u7cfb\u7edf\u5fc5\u987b\u80fd\u591f\u8ddf\u8e2a\u6bcf\u4e00\u4e2a\u7f3a\u9677\u7684\u6240\u7ecf\u5386\u7684\u6240\u6709\u72b6\u6001\uff0c\u5e76\u4e14\u8ddf\u8e2a\u4fee\u6539\u6b64\u72b6\u6001\u7684\u4eba\u5458\u3002<\/p>\n",

"createdtime":"2010-04-15 23:54:37",

"updatedtime":"2010-04-15 23:54:37"

},{

"totalRecord":1

}]

判断标准:

可查询出相应故事内容

新增故事

接口地址:http://localhost/agileone/index.php/userstory/add

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

creator

string

必填

默认为当前用户

创建人

proposalid

string

必填

提案建议,关联需求提案中的提案编号

priority

string

必填

默认为Must-Have

优先级,分为Must-Have、Should-Have、Could-Have

milestone

string

必填

里程碑,关联项目设置中里程碑名称(11.1可查)

module

string

必填

模块,关联项目设置中模块名称(11.2可查)

status

string

必填

默认为Proposed

状态,分为Proposed、Approved、Abandoned、Ongoing、Finished、Delayed

finishdate

string

必填

默认为当前日期后一个月

完成日期,格式如:2019-09-29

headline

string

必填

故事标题,长度为5-50字符

content

string

必填

故事内容,长度为1-1000字符

传参格式:

proposalid=&priority=Must-Have&milestone=Milestone-Design&module=System&status=Proposed&finishdate=当前日期&headline=标题&content=内容

返回结果:

20

判断标准:

为新增故事的id

编辑故事

接口地址:http://localhost/agileone/index.php/userstory/edit

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

userstoryid

string

必填

故事编号

proposalid

string

非必填

提案建议,关联需求提案中的提案编号

priority

string

非必填

优先级,分为Must-Have、Should-Have、Could-Have

milestone

string

非必填

里程碑,关联项目设置中里程碑名称(11.1可查)

module

string

非必填

模块,关联项目设置中模块名称(11.3可查)

status

string

非必填

状态,分为Proposed、Approved、Abandoned、Ongoing、Finished、Delayed

finishdate

string

非必填

完成日期,格式如:2019-09-29

assignee

string

非必填

负责人,关联项目设置中成员(11.2可查)

headline

string

非必填

故事标题,长度为5-50字符

content

string

非必填

故事内容,长度为1-1000字符

传参格式:

userstoryid=20&proposalid=&priority=Must-Have&milestone=Milestone-Admin&module=Defect&status=Finished&finishdate=当前日期&headline=标题&content=<p>内容</p>

返回结果:

1

判断标准:

如上提示内容

删除故事

接口地址:http://localhost/agileone/index.php/userstory/delete

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

userstoryid

string

必填

故事id

传参格式:

userstoryid=20

返回结果:

1

判断标准:

如上提示内容

规格说明

查询说明

接口地址:http://localhost/agileone/index.php/spec/query

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

userstoryid

string

非必填

用户故事id

type

string

非必填

类型,分为All-In-One、Requirement-Spec、Functional-Spec、Design-Sepc

content

string

非必填

规格说明内容

currentpage

string

非必填

页码

specid

string

非必填

类型

creator

string

非必填

创建者

传参格式:

currentpage=1&specid=11&userstoryid=用户故事id&creator=admin&type=All-In-One&content=

返回结果:

JSON

[{

"specid": "11",

"projectid": "1",

"userstoryid": "0",

"creator": "admin",

"type": "All-In-One",

"content": "123",

"createdtime": "2019-08-25 10:04:45",

"updatedtime": "2019-08-25 10:04:45"

}, {

"totalRecord": 1

}]

判断标准:

可查询出相应规格说明内容

新增说明

接口地址:http://localhost/agileone/index.php/spec/add

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

userstoryid

string

必填

用户故事id,关联用户故事的编号

content

string

必填

规格内容,长度为1-1000字符

type

string

必填

默认为All-In-One

类型,分为All-In-One、Requirement-Spec、Functional-Spec、Design-Sepc

传参格式:

userstoryid=用户故事id&type=All-In-One&content=111111111

返回结果:

13

判断标准:

为新增说明id

编辑说明

接口地址:http://localhost/agileone/index.php/spec/edit

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

specid

string

必填

规格说明编号

userstoryid

string

非必填

用户故事id,关联用户故事的编号

type

string

非必填

类型,分为All-In-One、Requirement-Spec、Functional-Spec、Design-Sepc

content

string

非必填

规格内容,长度为1-1000字符

传参格式:

specid=13&userstoryid=&type=All-In-One&content=456

返回结果:

1

判断标准:

如上提示内容

删除说明

接口地址:http://localhost/agileone/index.php/spec/delete

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

specid

string

必填

规格说明编号

传参格式:

specid=12

返回结果:

1

判断标准:

如上提示内容

测试用例

查询测试用例

接口地址:http://localhost/agileone/index.php/testcase/query

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

currentpage

string

非必填

页码

testcaseid

string

非必填

编号

userstoryid

string

非必填

用例编号

creator

string

非必填

创建人

type

string

非必填

类型,分为Unit-Test、Integration-Test、System-Test、Acceptance-Test、Automation-Test

priority

string

非必填

优先级,分为High、Medium、Low

status

string

非必填

状态,分为Proposed、Approved、Abandoned

headline

string

非必填

标题

content

string

非必填

内容

传参格式:

currentpage=1&testcaseid=12&userstoryid=1&creator=admin&type=System-Test&status=Proposed&priority=Medium&headline=123&content=23543发生的回复可见

返回结果:

JSON

[{

"testcaseid": "31",

"projectid": "1",

"userstoryid": "0",

"creator": "admin",

"type": "System-Test",

"status": "Proposed",

"priority": "Medium",

"headline": "22",

"content": "<p> <\/p>\n",

"createdtime": "2019-08-25 08:37:33",

"updatedtime": "2019-08-25 08:37:33"

}, {

"testcaseid": "30",

"projectid": "1",

"userstoryid": "0",

"creator": "admin",

"type": "System-Test",

"status": "Proposed",

"priority": "Medium",

"headline": "222",

"content": "<p> <\/p>\n",

"createdtime": "2019-08-25 08:30:53",

"updatedtime": "2019-08-25 08:30:53"

}, {

"totalRecord": 2

}]

判断标准:

可查询出相应用例内容

新增测试用例

接口地址:http://localhost/agileone/index.php/testcase/add

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

userstoryid

string

必填

用户故事,关联用户故事的编号

type

string

必填

默认为System-Test

类型,分为Unit-Test、Integration-Test、System-Test、Acceptance-Test、Automation-Test

priority

string

必填

Medium

优先级,分为High、Medium、Low

status

string

必填

Proposed

状态,分为Proposed、Approved、Abandoned

headline

string

必填

用例标题,长度为5-100字符

content

string

必填

用例内容,长度为1-500字符

传参格式:

userstoryid=1&type=System-Test&status=Proposed&priority=Medium&headline=12345&content=23543发生的回复可见

返回结果:

12

判断标准:

为新增用例的id

功会诚会乐心厚有超坚承和庆振壮松哲河河坚善庆善林先博江庆豪庆会彪诚豪坚磊心涛超坚先群涛超进博彪乐超震江振和有敬超哲善振壮磊厚坚承功功坚心友江昌林松昌邦诚邦邦心民河松振裕河

诚sy松厚4乐zyb6承d坚5072涛3庆9震先mp友会y江ll进壮n昌敬豪和昌91f振59koa坚民河s群涛功dwjoqztw涛庆豪壮松敬博哲功彪林豪超v承r昌f豪4博承dco进先绍3振zq博哲7友

function randomlyGeneratedChineseCharacters(num) {

let arr = []

for (let i = 0; i < num; i++) {

let str

//汉字对应的unicode编码为u4e00-u9fa5转为10进制为19968-40869,先取随机数,再转为16进制

str = '\\u' + (Math.floor(Math.random() * (40869 - 19968)) + 19968).toString(16)

//在用正则操作数据后进行解码。注意:unescape() 函数在 JavaScript 1.5 版中已弃用。请使用 decodeURI() 或 decodeURIComponent() 代替。

str = unescape(str.replace(/\\u/g, "%u"));

arr.push(str)

}

let chinese = arr.join("")

return chinese

}

console.log(randomlyGeneratedChineseCharacters(500))

编辑测试用例

接口地址:http://localhost/agileone/index.php/testcase/edit

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

testcaseid

string

必填

编号

userstoryid

string

非必填

用户故事,关联用户故事的编号

type

string

非必填

类型,分为Unit-Test、Integration-Test、System-Test、Acceptance-Test、Automation-Test

priority

string

非必填

优先级,分为High、Medium、Low

status

string

非必填

状态,分为Proposed、Approved、Abandoned

headline

string

非必填

用例标题,长度为5-100字符

content

string

非必填

用例内容,长度为1-500字符

传参格式:

testcaseid=12&userstoryid=1&type=System-Test&status=Proposed&priority=Medium&headline=12345&content=185第三方发挥好

返回结果:

1

判断标准:

如上提示内容

var url = {url:'http://' + pm.environment.get("ip") + '/agileone/index.php/testcase/edit',method:'POST',header:'Content-Type: application/x-www-form-urlencoded',body:{mode:'urlencoded',urlencoded:'testcaseid= 1'}

删除测试用例

接口地址:http://localhost/agileone/index.php/testcase/delete

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

testcaseid

string

必填

用例编号

传参格式:

testcaseid=12

返回结果:

1

判断标准:

如上提示内容

缺陷跟踪

查询缺陷

接口地址:http://localhost/Aqileone/index.php/defect/query

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

currentpage

string

非必填

默认为1

页码

defectid

string

非必填

缺陷ID

creator

string

非必填

创作者

source

string

非必填

缺陷来源

status

string

非必填

缺陷状态

severity

string

非必填

严重程度

priority

string

非必填

优先级

module

string

非必填

模块

platform

string

非必填

平台

version

string

非必填

版本

headline

string

非必填

标题

content

string

非必填

内容

传参格式:

currentpage=1&defectid=7&creator=admin&source=1&status=Fixed&severity=Major&priority=High&module=System&platform=Redhat 5.4 - LAMP&version=1.1.20100415&headline=1&content=1

返回结果:

JSON

build=

content=1

createdtime=2019-08-26 03:18:47

creator=admin

defectid=7

headline=1

module=System

platform=Redhat 5.4 - LAMP

priority=High

projectid=1

severity=Major

source=1

status=Fixed

updatedtime=2019-08-26 03:18:47

version=1.1.20100415

totalRecord=1

判断标准:

可查询出相应缺陷内容

新增缺陷

接口地址:http://localhost/agileone/index.php/defect/add

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

createdtime

string

必填

默认为当前时间

创建时间,格式为2019-09-09 10:32:22

source

string

必填

缺陷来源,长度为1-20字符

status

string

必填

默认值为New

缺陷状态,分为New、Open、Fixed、Reopen、Rejected、Postponed、Duplicated、Abandoned、Closed

severity

string

必填

默认值为Major

严重程度,分为Critical、Major、Minor

priority

string

必填

默认值为Medium

优先级,分为High、Medium、Low

module

string

必填

模块,关联项目设置中模块名称(11.2可查)

platform

string

必填

平台,关联项目设置中模块名称(11.4可查)

version

string

必填

版本,关联项目设置中模块名称(11.5可查)

headline

string

必填

缺陷标题,长度为5-100字符

content

string

必填

缺陷内容,长度为1-1000字符

传参格式:

source=1&status=Fixed&severity=Major&priority=High&module=System&platform=Redhat 5.4 - LAMP&version=1.1.20100415&headline=1&content=1

返回结果:

7

判断标准:

为新增缺陷的id

编辑缺陷

接口地址:http://localhost/agileone/index.php/defect/edit

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

defectid

string

必填

缺陷ID

source

string

非必填

缺陷来源,长度为1-20字符

status

string

非必填

缺陷状态,分为New、Open、Fixed、Reopen、Rejected、Postponed、Duplicated、Abandoned、Closed

severity

string

非必填

严重程度,分为Critical、Major、Minor

priority

string

非必填

优先级,分为High、Medium、Low

module

string

非必填

模块,关联项目设置中模块名称(11.2可查)

platform

string

非必填

平台,关联项目设置中模块名称(11.4可查)

version

string

非必填

版本,关联项目设置中模块名称(11.5可查)

headline

string

非必填

缺陷标题,长度为5-100字符

content

string

非必填

缺陷内容,长度为1-1000字符

传参格式:

defectid=7&source=1&status=Fixed&severity=Major&priority=High&module=System&platform=Redhat 5.4 - LAMP&version=1.1.20100415&headline=5&content=5

返回结果:

1

判断标准:

如上提示内容

删除缺陷

接口地址:http://localhost/agileone/index.php/defect/delete

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

defectid

string

必填

缺陷id

传参格式:

defectid=7

返回结果:

1

判断标准:

如上提示内容

项目设置(不能单独选)

查询里程碑

接口地址:http://localhost/agileone/index.php/milestone/query

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

projectid

string

必填

项目编号

传参格式:

projectid=1

返回结果:

Json

[{

"milestoneid": "1",

"projectid": "1",

"msname": "Milestone-Design",

"msusage": "AgileOne architecture and design.",

"createdtime": "2010-04-15 14:02:04",

"updatedtime": "2010-04-15 17:55:06"

}, {

"milestoneid": "2",

"projectid": "1",

"msname": "Milestone-GUI",

"msusage": "AgileOne GUI layout and design.",

"createdtime": "2010-04-15 14:02:04",

"updatedtime": "2010-04-15 17:55:11"

}, {

"milestoneid": "3",

"projectid": "1",

"msname": "Milestone-Admin",

"msusage": "AgileOne admin modules coding and testing.",

"createdtime": "2010-04-15 14:02:04",

"updatedtime": "2010-04-15 17:55:15"

}]

判断标准:

能查询出对应项目的里程碑内容

查询成员

接口地址:http://localhost/agileone/index.php/ member/query

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

projectid

string

必填

项目编号

传参格式:

projectid=1

返回结果:

Json

[{

"userid": "1",

"username": "admin",

"rolename": "Administrator"

}, {

"userid": "2",

"username": "denny",

"rolename": "ProjectManager"

}, {

"userid": "3",

"username": "martin",

"rolename": "Developer"

}, {

"userid": "4",

"username": "suki",

"rolename": "Tester"

}, {

"userid": "5",

"username": "guest",

"rolename": "Guest"

}]

判断标准:

能查询出对应项目的模块内容

查询模块

接口地址:http://localhost/agileone/index.php/module/query

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

projectid

string

必填

项目编号

传参格式:

projectid=1

返回结果:

Json

[{

"moduleid": "1",

"projectid": "1",

"modname": "System",

"modusage": "System admin and architecture"

}, {

"moduleid": "2",

"projectid": "1",

"modname": "Dashboard",

"modusage": "Realtime data report"

}, {

"moduleid": "3",

"projectid": "1",

"modname": "Notice",

"modusage": "Company\/Project notice to others"

}, {

"moduleid": "4",

"projectid": "1",

"modname": "Minutes",

"modusage": "Meeting minutes"

}, {

"moduleid": "5",

"projectid": "1",

"modname": "Knowledge",

"modusage": "Company\/Project knowledge base"

}]

判断标准:

能查询出对应项目的模块内容

查询平台

接口地址:http://localhost/agileone/index.php/ platform/query

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

projectid

string

必填

项目编号

传参格式:

projectid=1

返回结果:

Json

[{

"platformid": "1",

"projectid": "1",

"pfname": "Windows XP - XAMPP1.6.8",

"pfusage": "Apache 2.2.4 - MySQL 5.0.67 - PHP 5.2.6",

"createdtime": "2010-04-15 15:44:51"

}, {

"platformid": "2",

"projectid": "1",

"pfname": "Redhat 5.4 - LAMP",

"pfusage": "Apache 2.2.4 - MySQL 5.0.56 - PHP 5.2.1",

"createdtime": "2010-04-15 15:52:01"

}]

判断标准:

能查询出对应项目的平台内容

查询版本

接口地址:http://localhost/agileone/index.php/ version/query

请求方式:POST

前置条件:需PHPSESSID

请求参数:

参数名

参数类型

是否必填

默认值

备注说明

projectid

string

必填

项目编号

传参格式:

projectid=1

返回结果:

Json

[{

"versionid": "1",

"projectid": "1",

"version": "1.0",

"build": "20100201",

"changelog": "Initial version for preview.",

"createdtime": "2010-04-15 15:55:31"

}, {

"versionid": "2",

"projectid": "1",

"version": "1.1",

"build": "20100415",

"changelog": "Fixed some serious bugs for 1.0, and add installation wizard.",

"createdtime": "2010-04-15 15:57:15"

}]

判断标准:

能查询出对应项目的版本内容

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Zero・bug

还不错

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值