Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AbookCheck_communication_API_TEST
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lee Daehyun
AbookCheck_communication_API_TEST
Commits
78493292
Commit
78493292
authored
Feb 26, 2021
by
Lee Daehyun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postman createNewRoom, getChatRoom, exitRoom API テスト
parent
2ad8b4ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1278 additions
and
158 deletions
+1278
-158
Communication_STORY_API_TEST.postman_collection.json
+1278
-158
No files found.
Communication_STORY_API_TEST.postman_collection.json
View file @
78493292
...
@@ -2370,7 +2370,7 @@
...
@@ -2370,7 +2370,7 @@
},
},
"response"
:
[
"response"
:
[
{
{
"name"
:
"groupIdを未入力の場合"
,
"name"
:
"groupId
s
を未入力の場合"
,
"originalRequest"
:
{
"originalRequest"
:
{
"method"
:
"GET"
,
"method"
:
"GET"
,
"header"
:
[],
"header"
:
[],
...
@@ -3114,204 +3114,1324 @@
...
@@ -3114,204 +3114,1324 @@
"name"
:
"getChatRooms API"
,
"name"
:
"getChatRooms API"
,
"item"
:
[
"item"
:
[
{
{
"name"
:
"
Login-
\"
API_test_a
\"
"
,
"name"
:
"
[User]がチャット一覧を確認できる
"
,
"
event
"
:
[
"
item
"
:
[
{
{
"listen"
:
"test"
,
"name"
:
"Login-
\"
API_test_a
\"
"
,
"script"
:
{
"event"
:
[
"exec"
:
[
{
"var sid = pm.response.json().sid;
\r
"
,
"listen"
:
"test"
,
"pm.globals.set(
\"
sid
\"
,sid);"
"script"
:
{
"exec"
:
[
"var sid = pm.response.json().sid;
\r
"
,
"pm.globals.set(
\"
sid
\"
,sid);"
],
"type"
:
"text/javascript"
}
},
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
"pm.globals.set(
\"
JOIN
\"
,
\"
1
\"
);
\r
"
,
"pm.globals.set(
\"
JOINROOM
\"
,
\"
2
\"
);
\r
"
,
"pm.globals.set(
\"
INVITEUSERS
\"
,
\"
3
\"
);
\r
"
,
"pm.globals.set(
\"
GETGROUPLIST
\"
,
\"
4
\"
);
\r
"
,
"pm.globals.set(
\"
GETUSERLISTINGROUP
\"
,
\"
5
\"
);
\r
"
,
"
\r
"
,
"pm.globals.set(
\"
getRoomList
\"
,
\"
1
\"
);
\r
"
,
"pm.globals.set(
\"
createNewRoom
\"
,
\"
2
\"
);
\r
"
,
"pm.globals.set(
\"
exitRoom
\"
,
\"
3
\"
);
\r
"
,
"pm.globals.set(
\"
disconnect
\"
,
\"
4
\"
);
\r
"
,
"
\r
"
,
"pm.globals.set(
\"
createMessage
\"
,
\"
1
\"
);
\r
"
,
"pm.globals.set(
\"
getMessages
\"
,
\"
2
\"
);
\r
"
,
"pm.globals.set(
\"
roomSearch
\"
,
\"
3
\"
);
\r
"
,
"
\r
"
,
"pm.globals.set(
\"
getPushMessage
\"
,
\"
1
\"
);
\r
"
,
""
],
"type"
:
"text/javascript"
}
}
],
"protocolProfileBehavior"
:
{
"disabledSystemHeaders"
:
{
"user-agent"
:
true
}
},
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"User-Agent"
,
"type"
:
"text"
,
"value"
:
"Android"
}
],
],
"type"
:
"text/javascript"
"url"
:
{
}
"raw"
:
"https://chatdev2.abook.bz/acms/nuabvapi/appStoreNewLogin?appId=3&appVersion=1.2.360&deviceToken=dxDH1UITl-E%3AAPA91bHwZrP6-fXgAXiiApiPdH7Ai1cQFrc1FiTwWz85w5spAK56O1VHk0aV7BrB0uCvAccd2pkWaVQU-HORHLVpRt54xvyWKdh9mJ3Pg06tDFqFw0X6xaVTQ20rA8zeUdX6ZS-BVtzc&deviceTypeId=3&language=en&loginId=API_test_a&ma&password=111111&uid=578529ca22cab829.androidid&urlPath=fermi"
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"abook"
,
"bz"
],
"path"
:
[
"acms"
,
"nuabvapi"
,
"appStoreNewLogin"
],
"query"
:
[
{
"key"
:
"appId"
,
"value"
:
"3"
},
{
"key"
:
"appVersion"
,
"value"
:
"1.2.360"
},
{
"key"
:
"deviceToken"
,
"value"
:
"dxDH1UITl-E%3AAPA91bHwZrP6-fXgAXiiApiPdH7Ai1cQFrc1FiTwWz85w5spAK56O1VHk0aV7BrB0uCvAccd2pkWaVQU-HORHLVpRt54xvyWKdh9mJ3Pg06tDFqFw0X6xaVTQ20rA8zeUdX6ZS-BVtzc"
},
{
"key"
:
"deviceTypeId"
,
"value"
:
"3"
},
{
"key"
:
"language"
,
"value"
:
"en"
},
{
"key"
:
"loginId"
,
"value"
:
"API_test_a"
},
{
"key"
:
"ma"
,
"value"
:
null
},
{
"key"
:
"password"
,
"value"
:
"111111"
},
{
"key"
:
"uid"
,
"value"
:
"578529ca22cab829.androidid"
},
{
"key"
:
"urlPath"
,
"value"
:
"fermi"
}
]
}
},
"response"
:
[]
},
},
{
{
"listen"
:
"prerequest"
,
"name"
:
"getChatRooms"
,
"script"
:
{
"event"
:
[
"exec"
:
[
{
"pm.globals.set(
\"
JOIN
\"
,
\"
1
\"
);
\r
"
,
"listen"
:
"test"
,
"pm.globals.set(
\"
JOINROOM
\"
,
\"
2
\"
);
\r
"
,
"script"
:
{
"pm.globals.set(
\"
INVITEUSERS
\"
,
\"
3
\"
);
\r
"
,
"exec"
:
[
"pm.globals.set(
\"
GETGROUPLIST
\"
,
\"
4
\"
);
\r
"
,
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
"pm.globals.set(
\"
GETUSERLISTINGROUP
\"
,
\"
5
\"
);
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"
\r
"
,
"});"
"pm.globals.set(
\"
getRoomList
\"
,
\"
1
\"
);
\r
"
,
],
"pm.globals.set(
\"
createNewRoom
\"
,
\"
2
\"
);
\r
"
,
"type"
:
"text/javascript"
"pm.globals.set(
\"
exitRoom
\"
,
\"
3
\"
);
\r
"
,
}
"pm.globals.set(
\"
disconnect
\"
,
\"
4
\"
);
\r
"
,
}
"
\r
"
,
],
"pm.globals.set(
\"
createMessage
\"
,
\"
1
\"
);
\r
"
,
"protocolProfileBehavior"
:
{
"pm.globals.set(
\"
getMessages
\"
,
\"
2
\"
);
\r
"
,
"disabledSystemHeaders"
:
{
"pm.globals.set(
\"
roomSearch
\"
,
\"
3
\"
);
\r
"
,
"user-agent"
:
true
"
\r
"
,
}
"pm.globals.set(
\"
getPushMessage
\"
,
\"
1
\"
);
\r
"
,
},
""
"request"
:
{
"method"
:
"GET"
,
"header"
:
[
{
"key"
:
"User-Agent"
,
"value"
:
"Android"
,
"type"
:
"text"
}
],
],
"type"
:
"text/javascript"
"url"
:
{
}
"raw"
:
"https://chatdev2.abook.bz/acms/fermi/chatapi/room?sid={{sid}}&cmd=5"
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"abook"
,
"bz"
],
"path"
:
[
"acms"
,
"fermi"
,
"chatapi"
,
"room"
],
"query"
:
[
{
"key"
:
"sid"
,
"value"
:
"{{sid}}"
},
{
"key"
:
"cmd"
,
"value"
:
"5"
}
]
}
},
"response"
:
[]
}
}
],
]
"protocolProfileBehavior"
:
{
}
"disabledSystemHeaders"
:
{
]
"user-agent"
:
true
},
{
"name"
:
"createNewRoom API"
,
"item"
:
[
{
"name"
:
"[User]がチャットルームを生成できる"
,
"item"
:
[
{
"name"
:
"Login-
\"
API_test_a
\"
"
,
"event"
:
[
{
"listen"
:
"test"
,
"script"
:
{
"exec"
:
[
"var sid = pm.response.json().sid;
\r
"
,
"pm.globals.set(
\"
sid
\"
,sid);"
],
"type"
:
"text/javascript"
}
},
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
"pm.globals.set(
\"
JOIN
\"
,
\"
1
\"
);
\r
"
,
"pm.globals.set(
\"
JOINROOM
\"
,
\"
2
\"
);
\r
"
,
"pm.globals.set(
\"
INVITEUSERS
\"
,
\"
3
\"
);
\r
"
,
"pm.globals.set(
\"
GETGROUPLIST
\"
,
\"
4
\"
);
\r
"
,
"pm.globals.set(
\"
GETUSERLISTINGROUP
\"
,
\"
5
\"
);
\r
"
,
"
\r
"
,
"pm.globals.set(
\"
getRoomList
\"
,
\"
1
\"
);
\r
"
,
"pm.globals.set(
\"
createNewRoom
\"
,
\"
2
\"
);
\r
"
,
"pm.globals.set(
\"
exitRoom
\"
,
\"
3
\"
);
\r
"
,
"pm.globals.set(
\"
disconnect
\"
,
\"
4
\"
);
\r
"
,
"
\r
"
,
"pm.globals.set(
\"
createMessage
\"
,
\"
1
\"
);
\r
"
,
"pm.globals.set(
\"
getMessages
\"
,
\"
2
\"
);
\r
"
,
"pm.globals.set(
\"
roomSearch
\"
,
\"
3
\"
);
\r
"
,
"
\r
"
,
"pm.globals.set(
\"
getPushMessage
\"
,
\"
1
\"
);
\r
"
,
""
],
"type"
:
"text/javascript"
}
}
],
"protocolProfileBehavior"
:
{
"disabledSystemHeaders"
:
{
"user-agent"
:
true
}
},
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"User-Agent"
,
"type"
:
"text"
,
"value"
:
"Android"
}
],
"url"
:
{
"raw"
:
"https://chatdev2.abook.bz/acms/nuabvapi/appStoreNewLogin?appId=3&appVersion=1.2.360&deviceToken=dxDH1UITl-E%3AAPA91bHwZrP6-fXgAXiiApiPdH7Ai1cQFrc1FiTwWz85w5spAK56O1VHk0aV7BrB0uCvAccd2pkWaVQU-HORHLVpRt54xvyWKdh9mJ3Pg06tDFqFw0X6xaVTQ20rA8zeUdX6ZS-BVtzc&deviceTypeId=3&language=en&loginId=API_test_a&ma&password=111111&uid=578529ca22cab829.androidid&urlPath=fermi"
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"abook"
,
"bz"
],
"path"
:
[
"acms"
,
"nuabvapi"
,
"appStoreNewLogin"
],
"query"
:
[
{
"key"
:
"appId"
,
"value"
:
"3"
},
{
"key"
:
"appVersion"
,
"value"
:
"1.2.360"
},
{
"key"
:
"deviceToken"
,
"value"
:
"dxDH1UITl-E%3AAPA91bHwZrP6-fXgAXiiApiPdH7Ai1cQFrc1FiTwWz85w5spAK56O1VHk0aV7BrB0uCvAccd2pkWaVQU-HORHLVpRt54xvyWKdh9mJ3Pg06tDFqFw0X6xaVTQ20rA8zeUdX6ZS-BVtzc"
},
{
"key"
:
"deviceTypeId"
,
"value"
:
"3"
},
{
"key"
:
"language"
,
"value"
:
"en"
},
{
"key"
:
"loginId"
,
"value"
:
"API_test_a"
},
{
"key"
:
"ma"
,
"value"
:
null
},
{
"key"
:
"password"
,
"value"
:
"111111"
},
{
"key"
:
"uid"
,
"value"
:
"578529ca22cab829.androidid"
},
{
"key"
:
"urlPath"
,
"value"
:
"fermi"
}
]
}
},
"response"
:
[]
},
{
"name"
:
"createNewRoom"
,
"event"
:
[
{
"listen"
:
"test"
,
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"
\r
"
,
"var createNewRoomJson = pm.response.json().body
\r
"
,
"pm.globals.set(
\"
createNewRoomJson
\"
,createNewRoomJson)"
],
"type"
:
"text/javascript"
}
},
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[],
"url"
:
{
"raw"
:
"https://chatdev2.abook.bz/acms/fermi/chatapi/room?sid={{sid}}&cmd=2&roomType=2&inviteMemberIds=946&newRoomName=createNewRoomTest"
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"abook"
,
"bz"
],
"path"
:
[
"acms"
,
"fermi"
,
"chatapi"
,
"room"
],
"query"
:
[
{
"key"
:
"sid"
,
"value"
:
"{{sid}}"
},
{
"key"
:
"cmd"
,
"value"
:
"2"
},
{
"key"
:
"roomType"
,
"value"
:
"2"
},
{
"key"
:
"inviteMemberIds"
,
"value"
:
"946"
},
{
"key"
:
"newRoomName"
,
"value"
:
"createNewRoomTest"
}
]
}
},
"response"
:
[
{
"name"
:
"createNewRoom"
,
"originalRequest"
:
{
"method"
:
"POST"
,
"header"
:
[],
"url"
:
{
"raw"
:
"https://chatdev2.abook.bz/acms/fermi/chatapi/room?sid={{sid}}&cmd=2&roomType=2&inviteMemberIds=946&newRoomName=createNewRoomTest"
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"abook"
,
"bz"
],
"path"
:
[
"acms"
,
"fermi"
,
"chatapi"
,
"room"
],
"query"
:
[
{
"key"
:
"sid"
,
"value"
:
"{{sid}}"
},
{
"key"
:
"cmd"
,
"value"
:
"2"
},
{
"key"
:
"roomType"
,
"value"
:
"2"
},
{
"key"
:
"inviteMemberIds"
,
"value"
:
"946"
},
{
"key"
:
"newRoomName"
,
"value"
:
"createNewRoomTest"
}
]
}
},
"status"
:
"OK"
,
"code"
:
200
,
"_postman_previewlanguage"
:
"plain"
,
"header"
:
[
{
"key"
:
"Server"
,
"value"
:
"nginx/1.12.2"
},
{
"key"
:
"Date"
,
"value"
:
"Fri, 26 Feb 2021 05:38:32 GMT"
},
{
"key"
:
"Content-Type"
,
"value"
:
"text/plain;charset=UTF-8"
},
{
"key"
:
"Content-Length"
,
"value"
:
"382"
},
{
"key"
:
"Connection"
,
"value"
:
"keep-alive"
},
{
"key"
:
"Cache-Control"
,
"value"
:
"no-store, no-cache"
},
{
"key"
:
"Pragma"
,
"value"
:
"no-cache"
},
{
"key"
:
"Expires"
,
"value"
:
"-1"
}
],
"cookie"
:
[],
"body"
:
"{
\"
httpStatus
\"
:200,
\"
presentTime
\"
:
\"
2021-02-26 14:38:31
\"
,
\"
presentTimeUTC
\"
:
\"
2021-02-26T05:38:31Z
\"
,
\"
body
\"
:{
\"
chatRoomInfo
\"
:{
\"
roomId
\"
:265,
\"
roomName
\"
:
\"
createNewRoomTest
\"
,
\"
roomType
\"
:2,
\"
attendUsers
\"
:[{
\"
memberName
\"
:
\"
API_test_a
\"
,
\"
shopMemberId
\"
:945,
\"
profileImagePath
\"
:
\"
/mnt/nas/ABK/S0059/USER/API_test_a/API_test_a.jpg
\"
,
\"
del_flg
\"
:0},{
\"
memberName
\"
:
\"
API_test_b
\"
,
\"
shopMemberId
\"
:946,
\"
del_flg
\"
:0}]}}}"
}
]
},
{
"name"
:
"getChatRooms"
,
"event"
:
[
{
"listen"
:
"test"
,
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function() {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"
\r
"
,
"var createNewRoomJson = pm.globals.get(
\"
createNewRoomJson
\"
)
\r
"
,
"var chatRoomInfoList = pm.response.json().body.chatRoomInfoList;
\r
"
,
"
\r
"
,
"pm.test(
\"
チャットルームを生成確認
\"
, function() {
\r
"
,
" for (var i = 0; i < chatRoomInfoList.length; i++) {
\r
"
,
" if (chatRoomInfoList[i].roomId == createNewRoomJson.roomId){
\r
"
,
" pm.expect(chatRoomInfoList[i].roomId).eq(createNewRoomJson.roomId)
\r
"
,
" pm.expect(chatRoomInfoList[i].roomType).eq(createNewRoomJson.roomType)
\r
"
,
" }
\r
"
,
" }
\r
"
,
"})"
],
"type"
:
"text/javascript"
}
}
],
"protocolProfileBehavior"
:
{
"disabledSystemHeaders"
:
{
"user-agent"
:
true
}
},
"request"
:
{
"method"
:
"GET"
,
"header"
:
[
{
"key"
:
"User-Agent"
,
"value"
:
"Android"
,
"type"
:
"text"
}
],
"url"
:
{
"raw"
:
"https://chatdev2.abook.bz/acms/fermi/chatapi/room?sid={{sid}}&cmd=5"
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"abook"
,
"bz"
],
"path"
:
[
"acms"
,
"fermi"
,
"chatapi"
,
"room"
],
"query"
:
[
{
"key"
:
"sid"
,
"value"
:
"{{sid}}"
},
{
"key"
:
"cmd"
,
"value"
:
"5"
}
]
}
},
"response"
:
[]
}
]
},
{
"name"
:
"[User]がチャットルーム生成時同じ参加者を含めているチャットルームがある場合"
,
"item"
:
[
{
"name"
:
"createNewRoom"
,
"event"
:
[
{
"listen"
:
"test"
,
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"
\r
"
,
"var createNewRoomJson = pm.response.json().body
\r
"
,
"pm.globals.set(
\"
createNewRoomJson
\"
,createNewRoomJson)"
],
"type"
:
"text/javascript"
}
},
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[],
"url"
:
{
"raw"
:
"https://chatdev2.abook.bz/acms/fermi/chatapi/room?sid={{sid}}&cmd=2&roomType=2&inviteMemberIds=946,947&newRoomName=createNewRoomTest"
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"abook"
,
"bz"
],
"path"
:
[
"acms"
,
"fermi"
,
"chatapi"
,
"room"
],
"query"
:
[
{
"key"
:
"sid"
,
"value"
:
"{{sid}}"
},
{
"key"
:
"cmd"
,
"value"
:
"2"
},
{
"key"
:
"roomType"
,
"value"
:
"2"
},
{
"key"
:
"inviteMemberIds"
,
"value"
:
"946,947"
},
{
"key"
:
"newRoomName"
,
"value"
:
"createNewRoomTest"
}
]
}
},
"response"
:
[
{
"name"
:
"createNewRoom"
,
"originalRequest"
:
{
"method"
:
"POST"
,
"header"
:
[],
"url"
:
{
"raw"
:
"https://chatdev2.abook.bz/acms/fermi/chatapi/room?sid={{sid}}&cmd=2&roomType=2&inviteMemberIds=946,947&newRoomName=createNewRoomTest"
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"abook"
,
"bz"
],
"path"
:
[
"acms"
,
"fermi"
,
"chatapi"
,
"room"
],
"query"
:
[
{
"key"
:
"sid"
,
"value"
:
"{{sid}}"
},
{
"key"
:
"cmd"
,
"value"
:
"2"
},
{
"key"
:
"roomType"
,
"value"
:
"2"
},
{
"key"
:
"inviteMemberIds"
,
"value"
:
"946,947"
},
{
"key"
:
"newRoomName"
,
"value"
:
"createNewRoomTest"
}
]
}
},
"status"
:
"OK"
,
"code"
:
200
,
"_postman_previewlanguage"
:
"plain"
,
"header"
:
[
{
"key"
:
"Server"
,
"value"
:
"nginx/1.12.2"
},
{
"key"
:
"Date"
,
"value"
:
"Fri, 26 Feb 2021 05:41:46 GMT"
},
{
"key"
:
"Content-Type"
,
"value"
:
"text/plain;charset=UTF-8"
},
{
"key"
:
"Content-Length"
,
"value"
:
"129"
},
{
"key"
:
"Connection"
,
"value"
:
"keep-alive"
},
{
"key"
:
"Cache-Control"
,
"value"
:
"no-store, no-cache"
},
{
"key"
:
"Pragma"
,
"value"
:
"no-cache"
},
{
"key"
:
"Expires"
,
"value"
:
"-1"
}
],
"cookie"
:
[],
"body"
:
"{
\"
httpStatus
\"
:200,
\"
presentTime
\"
:
\"
2021-02-26 14:41:46
\"
,
\"
presentTimeUTC
\"
:
\"
2021-02-26T05:41:46Z
\"
,
\"
body
\"
:{
\"
roomId
\"
:264,
\"
roomType
\"
:2}}"
}
]
}
]
},
{
"name"
:
"[エラー]roomType未入力の場合"
,
"item"
:
[
{
"name"
:
"roomType未入力の場合"
,
"event"
:
[
{
"listen"
:
"test"
,
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"
\r
"
,
"var createNewRoomJson = pm.response.json().body
\r
"
,
"pm.globals.set(
\"
createNewRoomJson
\"
,createNewRoomJson)"
],
"type"
:
"text/javascript"
}
},
{
"listen"
:
"prerequest"
,
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[],
"url"
:
{
"raw"
:
"https://chatdev2.abook.bz/acms/fermi/chatapi/room?sid={{sid}}&cmd=2&inviteMemberIds=946&newRoomName=createNewRoomTest"
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"abook"
,
"bz"
],
"path"
:
[
"acms"
,
"fermi"
,
"chatapi"
,
"room"
],
"query"
:
[
{
"key"
:
"sid"
,
"value"
:
"{{sid}}"
},
{
"key"
:
"cmd"
,
"value"
:
"2"
},
{
"key"
:
"roomType"
,
"value"
:
""
,
"disabled"
:
true
},
{
"key"
:
"inviteMemberIds"
,
"value"
:
"946"
},
{
"key"
:
"newRoomName"
,
"value"
:
"createNewRoomTest"
}
]
}
},
"response"
:
[]
}
}
},
]
"request"
:
{
},
"method"
:
"POST"
,
{
"header"
:
[
"name"
:
"[エラー]inviteMemberIds未入力の場合"
,
{
"item"
:
[
"key"
:
"User-Agent"
,
{
"type"
:
"text"
,
"name"
:
"inviteMemberIds未入力の場合"
,
"value"
:
"Android"
"event"
:
[
}
],
"url"
:
{
"raw"
:
"https://chatdev2.abook.bz/acms/nuabvapi/appStoreNewLogin?appId=3&appVersion=1.2.360&deviceToken=dxDH1UITl-E%3AAPA91bHwZrP6-fXgAXiiApiPdH7Ai1cQFrc1FiTwWz85w5spAK56O1VHk0aV7BrB0uCvAccd2pkWaVQU-HORHLVpRt54xvyWKdh9mJ3Pg06tDFqFw0X6xaVTQ20rA8zeUdX6ZS-BVtzc&deviceTypeId=3&language=en&loginId=API_test_a&ma&password=111111&uid=578529ca22cab829.androidid&urlPath=fermi"
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"abook"
,
"bz"
],
"path"
:
[
"acms"
,
"nuabvapi"
,
"appStoreNewLogin"
],
"query"
:
[
{
"key"
:
"appId"
,
"value"
:
"3"
},
{
"key"
:
"appVersion"
,
"value"
:
"1.2.360"
},
{
{
"key"
:
"deviceToken"
,
"listen"
:
"test"
,
"value"
:
"dxDH1UITl-E%3AAPA91bHwZrP6-fXgAXiiApiPdH7Ai1cQFrc1FiTwWz85w5spAK56O1VHk0aV7BrB0uCvAccd2pkWaVQU-HORHLVpRt54xvyWKdh9mJ3Pg06tDFqFw0X6xaVTQ20rA8zeUdX6ZS-BVtzc"
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"
\r
"
,
"var createNewRoomJson = pm.response.json().body
\r
"
,
"pm.globals.set(
\"
createNewRoomJson
\"
,createNewRoomJson)"
],
"type"
:
"text/javascript"
}
},
},
{
{
"key"
:
"deviceTypeId"
,
"listen"
:
"prerequest"
,
"value"
:
"3"
"script"
:
{
},
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[],
"url"
:
{
"raw"
:
"https://chatdev2.abook.bz/acms/fermi/chatapi/room?sid={{sid}}&cmd=2&roomType=2&newRoomName=createNewRoomTest"
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"abook"
,
"bz"
],
"path"
:
[
"acms"
,
"fermi"
,
"chatapi"
,
"room"
],
"query"
:
[
{
"key"
:
"sid"
,
"value"
:
"{{sid}}"
},
{
"key"
:
"cmd"
,
"value"
:
"2"
},
{
"key"
:
"roomType"
,
"value"
:
"2"
},
{
"key"
:
"inviteMemberIds"
,
"value"
:
""
,
"disabled"
:
true
},
{
"key"
:
"newRoomName"
,
"value"
:
"createNewRoomTest"
}
]
}
},
"response"
:
[]
}
]
},
{
"name"
:
"[エラー]newRoomName未入力の場合"
,
"item"
:
[
{
"name"
:
"newRoomName未入力の場合"
,
"event"
:
[
{
{
"key"
:
"language"
,
"listen"
:
"test"
,
"value"
:
"en"
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"
\r
"
,
"var createNewRoomJson = pm.response.json().body
\r
"
,
"pm.globals.set(
\"
createNewRoomJson
\"
,createNewRoomJson)"
],
"type"
:
"text/javascript"
}
},
},
{
{
"key"
:
"loginId"
,
"listen"
:
"prerequest"
,
"value"
:
"API_test_a"
"script"
:
{
},
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[],
"url"
:
{
"raw"
:
"https://chatdev2.abook.bz/acms/fermi/chatapi/room?sid={{sid}}&cmd=2&roomType=2&inviteMemberIds=946"
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"abook"
,
"bz"
],
"path"
:
[
"acms"
,
"fermi"
,
"chatapi"
,
"room"
],
"query"
:
[
{
"key"
:
"sid"
,
"value"
:
"{{sid}}"
},
{
"key"
:
"cmd"
,
"value"
:
"2"
},
{
"key"
:
"roomType"
,
"value"
:
"2"
},
{
"key"
:
"inviteMemberIds"
,
"value"
:
"946"
},
{
"key"
:
"newRoomName"
,
"value"
:
""
,
"disabled"
:
true
}
]
}
},
"response"
:
[]
}
]
},
{
"name"
:
"[エラー]roomType空欄の場合"
,
"item"
:
[
{
"name"
:
"roomType空欄場合"
,
"event"
:
[
{
{
"key"
:
"ma"
,
"listen"
:
"test"
,
"value"
:
null
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"
\r
"
,
"var createNewRoomJson = pm.response.json().body
\r
"
,
"pm.globals.set(
\"
createNewRoomJson
\"
,createNewRoomJson)"
],
"type"
:
"text/javascript"
}
},
},
{
{
"key"
:
"password"
,
"listen"
:
"prerequest"
,
"value"
:
"111111"
"script"
:
{
},
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[],
"url"
:
{
"raw"
:
"https://chatdev2.abook.bz/acms/fermi/chatapi/room?sid={{sid}}&cmd=2&roomType=&inviteMemberIds=946&newRoomName=createNewRoomTest"
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"abook"
,
"bz"
],
"path"
:
[
"acms"
,
"fermi"
,
"chatapi"
,
"room"
],
"query"
:
[
{
"key"
:
"sid"
,
"value"
:
"{{sid}}"
},
{
"key"
:
"cmd"
,
"value"
:
"2"
},
{
"key"
:
"roomType"
,
"value"
:
""
},
{
"key"
:
"inviteMemberIds"
,
"value"
:
"946"
},
{
"key"
:
"newRoomName"
,
"value"
:
"createNewRoomTest"
}
]
}
},
"response"
:
[]
}
]
},
{
"name"
:
"[エラー]inviteMemberIds空欄の場合 Copy"
,
"item"
:
[
{
"name"
:
"inviteMemberIds空欄の場合"
,
"event"
:
[
{
{
"key"
:
"uid"
,
"listen"
:
"test"
,
"value"
:
"578529ca22cab829.androidid"
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"
\r
"
,
"var createNewRoomJson = pm.response.json().body
\r
"
,
"pm.globals.set(
\"
createNewRoomJson
\"
,createNewRoomJson)"
],
"type"
:
"text/javascript"
}
},
},
{
{
"key"
:
"urlPath"
,
"listen"
:
"prerequest"
,
"value"
:
"fermi"
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
}
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[],
"url"
:
{
"raw"
:
"https://chatdev2.abook.bz/acms/fermi/chatapi/room?sid={{sid}}&cmd=2&roomType=2&inviteMemberIds=&newRoomName=createNewRoomTest"
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"abook"
,
"bz"
],
"path"
:
[
"acms"
,
"fermi"
,
"chatapi"
,
"room"
],
"query"
:
[
{
"key"
:
"sid"
,
"value"
:
"{{sid}}"
},
{
"key"
:
"cmd"
,
"value"
:
"2"
},
{
"key"
:
"roomType"
,
"value"
:
"2"
},
{
"key"
:
"inviteMemberIds"
,
"value"
:
""
},
{
"key"
:
"newRoomName"
,
"value"
:
"createNewRoomTest"
}
]
}
}
]
},
"response"
:
[]
}
}
},
]
"response"
:
[]
},
},
{
{
"name"
:
"getChatRooms"
,
"name"
:
"[エラー]newRoomName空欄の場合 Copy"
,
"protocolProfileBehavior"
:
{
"item"
:
[
"disabledSystemHeaders"
:
{
{
"user-agent"
:
true
"name"
:
"newRoomName空欄の場合"
,
}
"event"
:
[
},
"request"
:
{
"method"
:
"GET"
,
"header"
:
[
{
"key"
:
"User-Agent"
,
"value"
:
"Android"
,
"type"
:
"text"
}
],
"url"
:
{
"raw"
:
"https://chatdev2.agentec.jp/acms/fermi/chatapi/room?sid={{sid}}&cmd=5"
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"agentec"
,
"jp"
],
"path"
:
[
"acms"
,
"fermi"
,
"chatapi"
,
"room"
],
"query"
:
[
{
{
"key"
:
"sid"
,
"listen"
:
"test"
,
"value"
:
"{{sid}}"
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"
\r
"
,
"var createNewRoomJson = pm.response.json().body
\r
"
,
"pm.globals.set(
\"
createNewRoomJson
\"
,createNewRoomJson)"
],
"type"
:
"text/javascript"
}
},
},
{
{
"key"
:
"cmd"
,
"listen"
:
"prerequest"
,
"value"
:
"5"
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
}
}
]
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[],
"url"
:
{
"raw"
:
"https://chatdev2.abook.bz/acms/fermi/chatapi/room?sid={{sid}}&cmd=2&roomType=2&inviteMemberIds=946&newRoomName="
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"abook"
,
"bz"
],
"path"
:
[
"acms"
,
"fermi"
,
"chatapi"
,
"room"
],
"query"
:
[
{
"key"
:
"sid"
,
"value"
:
"{{sid}}"
},
{
"key"
:
"cmd"
,
"value"
:
"2"
},
{
"key"
:
"roomType"
,
"value"
:
"2"
},
{
"key"
:
"inviteMemberIds"
,
"value"
:
"946"
},
{
"key"
:
"newRoomName"
,
"value"
:
""
}
]
}
},
"response"
:
[]
}
}
},
]
"response"
:
[]
}
}
]
]
},
},
{
{
"name"
:
"
createNew
Room API"
,
"name"
:
"
exit
Room API"
,
"item"
:
[
"item"
:
[
{
{
"name"
:
"createNewRoom"
,
"name"
:
"[User]がチャットルームから脱出できる"
,
"request"
:
{
"item"
:
[
"method"
:
"POST"
,
{
"header"
:
[],
"name"
:
"新しいチャットルームを生成"
,
"url"
:
{
"event"
:
[
"raw"
:
"https://chatdev2.agentec.jp/acms/fermi/chatapi/room?sid={{sid}}&cmd=2"
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"agentec"
,
"jp"
],
"path"
:
[
"acms"
,
"fermi"
,
"chatapi"
,
"room"
],
"query"
:
[
{
{
"key"
:
"sid"
,
"listen"
:
"test"
,
"value"
:
"{{sid}}"
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"
\r
"
,
"var jsonData = pm.response.json().body.chatRoomInfo
\r
"
,
"pm.globals.set(
\"
roomId
\"
, jsonData.roomId)
\r
"
,
"pm.globals.set(
\"
roomType
\"
, jsonData.roomType)"
],
"type"
:
"text/javascript"
}
},
},
{
{
"key"
:
"cmd"
,
"listen"
:
"prerequest"
,
"value"
:
"2"
"script"
:
{
"exec"
:
[
""
],
"type"
:
"text/javascript"
}
}
}
]
],
"request"
:
{
"method"
:
"POST"
,
"header"
:
[],
"url"
:
{
"raw"
:
"https://chatdev2.abook.bz/acms/fermi/chatapi/room?sid={{sid}}&cmd=2&roomType=2&inviteMemberIds=948&newRoomName=exitRoomTest"
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"abook"
,
"bz"
],
"path"
:
[
"acms"
,
"fermi"
,
"chatapi"
,
"room"
],
"query"
:
[
{
"key"
:
"sid"
,
"value"
:
"{{sid}}"
},
{
"key"
:
"cmd"
,
"value"
:
"2"
},
{
"key"
:
"roomType"
,
"value"
:
"2"
},
{
"key"
:
"inviteMemberIds"
,
"value"
:
"948"
},
{
"key"
:
"newRoomName"
,
"value"
:
"exitRoomTest"
}
]
}
},
"response"
:
[]
},
{
"name"
:
"チャットルーム一覧確認"
,
"event"
:
[
{
"listen"
:
"test"
,
"script"
:
{
"exec"
:
[
"pm.test(
\"
Status code is 200
\"
, function () {
\r
"
,
" pm.response.to.have.status(200);
\r
"
,
"});
\r
"
,
"
\r
"
,
"var roomId = pm.globals.get(
\"
roomId
\"
);
\r
"
,
"var chatRoomInfoList = pm.response.json().body.chatRoomInfoList;
\r
"
,
"
\r
"
,
"pm.test(
\"
生成したチャットルーム確認
\"
, function() {
\r
"
,
" let map = new Map();
\r
"
,
" for (var i = 0; i < chatRoomInfoList.length; i++) {
\r
"
,
" map.set(chatRoomInfoList[i].roomId, chatRoomInfoList[i].roomId)
\r
"
,
" }
\r
"
,
" var searchRoomId = map.get(roomId);
\r
"
,
" pm.expect(searchRoomId).not.eq(undefined);
\r
"
,
"})"
],
"type"
:
"text/javascript"
}
}
],
"protocolProfileBehavior"
:
{
"disabledSystemHeaders"
:
{
"user-agent"
:
true
}
},
"request"
:
{
"method"
:
"GET"
,
"header"
:
[
{
"key"
:
"User-Agent"
,
"value"
:
"Android"
,
"type"
:
"text"
}
],
"url"
:
{
"raw"
:
"https://chatdev2.abook.bz/acms/fermi/chatapi/room?sid={{sid}}&cmd=5"
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"abook"
,
"bz"
],
"path"
:
[
"acms"
,
"fermi"
,
"chatapi"
,
"room"
],
"query"
:
[
{
"key"
:
"sid"
,
"value"
:
"{{sid}}"
},
{
"key"
:
"cmd"
,
"value"
:
"5"
}
]
}
},
"response"
:
[]
},
{
"name"
:
"exitRoom"
,
"request"
:
{
"method"
:
"PUT"
,
"header"
:
[],
"url"
:
{
"raw"
:
"https://chatdev2.abook.bz/acms/fermi/chatapi/room?sid={{sid}}&cmd=3&roomId=270"
,
"protocol"
:
"https"
,
"host"
:
[
"chatdev2"
,
"abook"
,
"bz"
],
"path"
:
[
"acms"
,
"fermi"
,
"chatapi"
,
"room"
],
"query"
:
[
{
"key"
:
"sid"
,
"value"
:
"{{sid}}"
},
{
"key"
:
"cmd"
,
"value"
:
"3"
},
{
"key"
:
"roomId"
,
"value"
:
"270"
}
]
}
},
"response"
:
[]
}
}
},
]
"response"
:
[]
}
}
]
]
},
{
"name"
:
"exitRoom API"
,
"item"
:
[]
}
}
]
]
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment