wiremock 起飞手册
TRANSCRIPT
-
WireMock shengxuanwei
2016-11-09
1
-
API
API
API
2
-
WireMock is a library for stubbing and proxying web services.
http://wiremock.org/
3
-
4
-
5
-
6
-
7
-
8
-
1.
2.
3. HTTPS MITM
4.
5.
6. GET
7. POST / DELETE
8.
9.
10.
11.
12..
9
-
Reverse Proxy 1 Charles
Fiddler Map Remote API
Reverse Proxy 2 SERVER_HOST WireMock
10
-
Match Mock Match API Mock API
Priority proxyBaseUrl
Mock API
11
-
HTTPS
wiremock.jks keystore
wiremovk.p12
12
-
Mock Mock
13
-
URL
HTTP Method
Query parameters
Headers
Request body
14
-
URL
url
urlPath
urlPattern
urlPathPattern
15
-
HTTP
equalTo
contains
matches
notMatch
absent
16
queryParameters
headers/X-RAW-PARAMETERS
-
JSON jsonBody
GET JSON
POST / DELETE jsonBody
JSON
http://www.bejson.com/convert/unicode_chinese/
17
-
scenarioName
requiredScenarioState
newScenarioState
18
-
fixedDelayMilliseconds
delayDistribution : lognormal, uniform
19
-
Git
API
20
-
mapping_Method_urlPath_statusCode_queryParameters_scenarioState.json
body_Method_urlPath_statusCode_queryParameters_scenarioState.json
21
-
API
1.API proposal in wiki
2.Discussions
3.Agree
4.Mock it!
5.Profit
22
-
The End.
23