日期
2019.07.25
說明
組內(nèi)研究Mock Server,將Mock Server的調(diào)研結(jié)果整理如下俘陷,希望可以幫助到其他朋友堕虹,如有錯誤祠汇,歡迎留言吕晌。
數(shù)據(jù)
----- | Easy mock | YApi | WireMock | MockServer |
---|---|---|---|---|
Homepage | https://easy-mock.com | http://yapi.demo.qunar.com/ | http://wiremock.org | http://www.mock-server.com/ |
First release | 2017 | 2017.10.08 | 2011 | 2017.04.25 |
Github Star | 6309 | 9417 | 3269 | 2126 |
Language | Node.js | Node.js | go | java |
Expectation | 1.request matcher 2.proxy 3.customized response(status,http code,http header, json data) | 1.request matcher 2.advanced expection(delay,http code,http header, json data) 3. customized javascript mock | 1.request matcher 2.proxy 3.record and playback 4.error 5.delay 6.Stateful Behaviour | 1.request matcher 2.action(response, forward, callback and error) 3.delay 4.timeToLive |
Mock Template | 1.Mock.js | 1.Mock.js 2.Json-schema | 1.Handlebars templates | 1.MockServer API |
Data persistence | mongoDB | mongoDB | Code/JsonFile | Code |
Import data type | Swagger Json | 1.Swagger Json 2.HAR 3.Postman | ? | ? |
Import Method | 1.Visual interaction 2.EasyMock-CLI(Node.js) | 1.Visual interaction 2. Yapi-CLI(json) 3.REST API | 1. Coding 2. Copy json file 3.REST API | 1.Coding 2.REST API |
IdentityManager | ? | ? | ? | ? |
Plugins | ? | ? | ? | ? |