SoapUIで作成したモックサービスを呼び出すPostmanコレクションとなります。
以下の記事で活用しています。
apiNameSample01
apiNameSample01.collection.json
apiNameSample01.collection.jsonapiNameSample01.environment.json
{
"id": "f7d35390-a4bf-44c7-aba8-e2674dc86eed",
"name": "apiNameSample01",
"values": [
{
"key": "city-code",
"value": "130010",
"enabled": true
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2020-07-08T21:38:38.442Z",
"_postman_exported_using": "Postman/7.27.1"
}
apiNameSample01.data.json
[
{
"TestCaseId": "apiNameSample01-bizCheck-001",
"city-code": "130010",
"city-name": "東京",
"expected-httpResCode": 200,
"expected-bizResCode": 0,
"expected-message": "",
"expected-telop": "晴れ"
},
{
"TestCaseId": "apiNameSample01-bizCheck-002",
"city-code": "270000",
"city-name": "大阪",
"expected-httpResCode": 200,
"expected-bizResCode": 0,
"expected-message": "",
"expected-telop": "曇り"
},
{
"TestCaseId": "apiNameSample01-bizCheck-003",
"city-code": "471010",
"city-name": "那覇",
"expected-httpResCode": 200,
"expected-bizResCode": 0,
"expected-message": "",
"expected-telop": "雨"
}
]
apiNameSample01.inputCheck.data.json
[
{
"TestCaseId": "apiNameSample01-inputCheck-001",
"city-code": "123456",
"city-name": "デフォルト",
"expected-httpResCode": 200,
"expected-bizResCode": 0,
"expected-message": "",
"expected-telop": "晴れ"
},
{
"TestCaseId": "apiNameSample01-inputCheck-002",
"city-code": "888404",
"city-name": "都市が存在しない",
"expected-httpResCode": 200,
"expected-bizResCode": 1,
"expected-message": "都市が存在しません",
"expected-telop": ""
},
{
"TestCaseId": "apiNameSample01-inputCheck-003",
"city-code": "999404",
"city-name": "不明",
"expected-httpResCode": 404,
"expected-bizResCode": "",
"expected-message": "",
"expected-telop": ""
}
]
apiNameSample02
apiNameSample02.collection.json
apiNameSample02.collection.jsonapiNameSample02.environment.json
{
"id": "f7d35390-a4bf-44c7-aba8-e2674dc86eed",
"name": "apiNameSample02",
"values": [
{
"key": "city-code",
"value": "130010",
"enabled": true
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2020-07-08T21:38:38.442Z",
"_postman_exported_using": "Postman/7.27.1"
}
apiNameSample02.data.json
[
{
"TestCaseId": "apiNameSample02-bizCheck-001",
"city-code": "130010",
"city-name": "東京",
"expected-httpResCode": 200,
"expected-bizResCode": 0,
"expected-message": "",
"expected-telop": "晴れ"
},
{
"TestCaseId": "apiNameSample02-bizCheck-002",
"city-code": "270000",
"city-name": "大阪",
"expected-httpResCode": 200,
"expected-bizResCode": 0,
"expected-message": "",
"expected-telop": "曇り"
},
{
"TestCaseId": "apiNameSample02-bizCheck-003",
"city-code": "471010",
"city-name": "那覇",
"expected-httpResCode": 200,
"expected-bizResCode": 0,
"expected-message": "",
"expected-telop": "晴れ"
}
]
apiNameSample02.inputCheck.data.json
[
{
"TestCaseId": "apiNameSample02-inputCheck-001",
"city-code": "123456",
"city-name": "デフォルト",
"expected-httpResCode": 200,
"expected-bizResCode": 0,
"expected-message": "",
"expected-telop": "晴れ"
},
{
"TestCaseId": "apiNameSample02-inputCheck-002",
"city-code": "888404",
"city-name": "デフォルト",
"expected-httpResCode": 200,
"expected-bizResCode": 1,
"expected-message": "都市が存在しません",
"expected-telop": ""
},
{
"TestCaseId": "apiNameSample02-inputCheck-003",
"city-code": "999404",
"city-name": "不明",
"expected-httpResCode": 404,
"expected-bizResCode": "",
"expected-message": "",
"expected-telop": ""
}
]
apiNameSample03
apiNameSample03.collection.json
apiNameSample03.collection.jsonapiNameSample03.environment.json
{
"id": "f7d35390-a4bf-44c7-aba8-e2674dc86eed",
"name": "apiNameSample03",
"values": [
{
"key": "city-code",
"value": "130010",
"enabled": true
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2020-07-08T21:38:38.442Z",
"_postman_exported_using": "Postman/7.27.1"
}
apiNameSample03.data.json
[
{
"TestCaseId": "apiNameSample03-bizCheck-001",
"city-code": "130010",
"city-name": "東京",
"expected-httpResCode": 200,
"expected-bizResCode": 0,
"expected-message": "",
"expected-telop": "晴れ"
},
{
"TestCaseId": "apiNameSample03-bizCheck-002",
"city-code": "270000",
"city-name": "大阪",
"expected-httpResCode": 200,
"expected-bizResCode": 0,
"expected-message": "",
"expected-telop": "曇り"
},
{
"TestCaseId": "apiNameSample03-bizCheck-003",
"city-code": "471010",
"city-name": "那覇",
"expected-httpResCode": 200,
"expected-bizResCode": 0,
"expected-message": "",
"expected-telop": "雨"
}
]
apiNameSample03.inputCheck.data.json
[
{
"TestCaseId": "apiNameSample03-inputCheck-001",
"city-code": "999404",
"city-name": "なし",
"expected-httpResCode": 404,
"expected-bizResCode": "",
"expected-message": "",
"expected-telop": ""
}
]