日期
2019.07.25
说明
组内研究Mock Server,将Mock Server的调研结果整理如下,希望可以帮助到其他朋友,如有错误,欢迎留言。
数据
----- | 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 | ❌ | ✅ | ❌ | ❌ |
网友评论