Skip to content

Commit

Permalink
docs(img): fix img url (#141)
Browse files Browse the repository at this point in the history
* docs(img): fix img url
  • Loading branch information
paradite authored and xudafeng committed Jun 1, 2019
1 parent 244390c commit d170a64
Show file tree
Hide file tree
Showing 77 changed files with 150 additions and 64 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Macaca DataHub is a continuous data provider for development, testing, staging a
DataHub is born to solving the lifecycle needs of mock/testing data of software development, from development, testing, staging to final production. Software engineers and test engineers use DataHub to manage their mock/testing data.

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556087483456-13b5cae9-1d6c-4cd5-a331-12c729c45a67.png" width="50%" />
<img src="https://macacajs.github.io/macaca-datahub/assets/1556087483456-13b5cae9-1d6c-4cd5-a331-12c729c45a67.png" width="50%" />
</div>

### Decentralization
Expand All @@ -73,23 +73,23 @@ You can use a local instance of Datahub on your local machine to manage your loc
In addition, the local mock/testing data can be pushed and synchronized to a remote Datahub server to meet the needs of data sharing and collaboration.

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556087494964-b9c2be28-4a7d-41ad-8e26-06fda41e1623.png" width="50%" />
<img src="https://macacajs.github.io/macaca-datahub/assets/1556087494964-b9c2be28-4a7d-41ad-8e26-06fda41e1623.png" width="50%" />
</div>

### Data Flow Management

DataHub adopts the principle of unidirectional data flow to make sure you will always get the latest data.

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556087504806-35d3b20c-8aef-450d-a069-9581ba117321.png" width="50%" />
<img src="https://macacajs.github.io/macaca-datahub/assets/1556087504806-35d3b20c-8aef-450d-a069-9581ba117321.png" width="50%" />
</div>

### Consistency Between API Document and Mock Data

Datahub can also automatically generate an API document from your mock/testing data, to help keep your API document up to date and consistent with your mock data.

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556087321021-f5514eb2-62f6-484b-ad58-24433c7f8906.png" width="75%" />
<img src="https://macacajs.github.io/macaca-datahub/assets/1556087321021-f5514eb2-62f6-484b-ad58-24433c7f8906.png" width="75%" />
</div>

### Dashboard
Expand All @@ -110,31 +110,31 @@ API name example:
| api3/:id | api3/baz |

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556087382255-adf7e3a6-60d8-42f9-b6b1-6b27917fa038.png" width="75%" />
<img src="https://macacajs.github.io/macaca-datahub/assets/1556087382255-adf7e3a6-60d8-42f9-b6b1-6b27917fa038.png" width="75%" />
</div>

### Save Snapshot

DataHub can save the response of each request by taking snapshot. You can use the archieved snapshot to find out what happened.

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556087335320-a477734e-e661-4045-b702-58904a5dfd0c.png" width="75%" />
<img src="https://macacajs.github.io/macaca-datahub/assets/1556087335320-a477734e-e661-4045-b702-58904a5dfd0c.png" width="75%" />
</div>

### Automation Testing

Through the seamless integration of the [switchScene(scenario) API](https://macacajs.github.io/macaca-wd/#switchScene) in test cases, higher test coverage can be achieved.

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556087346280-f26a2534-8898-4538-bf9c-928c73b2ed62.png" width="75%" />
<img src="https://macacajs.github.io/macaca-datahub/assets/1556087346280-f26a2534-8898-4538-bf9c-928c73b2ed62.png" width="75%" />
</div>

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556087359122-6abfe674-771a-45dd-a008-0271df7b05e8.png" width="75%" />
<img src="https://macacajs.github.io/macaca-datahub/assets/1556087359122-6abfe674-771a-45dd-a008-0271df7b05e8.png" width="75%" />
</div>

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556087370670-c4d89f7f-2c06-4e10-915f-99562f80fac9.png" width="75%" />
<img src="https://macacajs.github.io/macaca-datahub/assets/1556087370670-c4d89f7f-2c06-4e10-915f-99562f80fac9.png" width="75%" />
</div>

## License
Expand Down
18 changes: 9 additions & 9 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
DataHub 支持从本地开发阶段,到集成测试阶段,以及上线前验证阶段的一系列数据环境需求,研发与测试工程师只需面向 DataHub 管理数据即可。

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556087517572-e20ae953-a33b-414d-99b4-eead40287fc9.png" width="50%" />
<img src="https://macacajs.github.io/macaca-datahub/assets/1556087517572-e20ae953-a33b-414d-99b4-eead40287fc9.png" width="50%" />
</div>

### 去中心化
Expand All @@ -23,23 +23,23 @@ DataHub 采用去中心化设计,本地研发阶段每项实例都拥有一份
另外,每份数据都可向远端服务推送并同步,满足中心化协同的需要。

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556087528896-efb81a7c-8f28-4c68-9738-5a0b1131c61d.png" width="50%" />
<img src="https://macacajs.github.io/macaca-datahub/assets/1556087528896-efb81a7c-8f28-4c68-9738-5a0b1131c61d.png" width="50%" />
</div>

### 数据流动管理

DataHub 采用单向数据流动的原则,使当前项目下的数据状态及时变更。

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556087394548-1119e4c3-eb64-4e42-8cb8-b4b2a950478d.png" width="50%" />
<img src="https://macacajs.github.io/macaca-datahub/assets/1556087394548-1119e4c3-eb64-4e42-8cb8-b4b2a950478d.png" width="50%" />
</div>

### 文档一致性

DataHub 将 Mock 数据与字段描述整合处理,自动生成接口文档。使得文档能够与交互字段随时保持一致。

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556087404156-e5c9fdc0-9211-4b2f-8e1e-055b9592bcb6.png" width="75%" />
<img src="https://macacajs.github.io/macaca-datahub/assets/1556087404156-e5c9fdc0-9211-4b2f-8e1e-055b9592bcb6.png" width="75%" />
</div>

### 场景管理
Expand All @@ -56,31 +56,31 @@ Datahub 可以定义动态路径,底层使用的是 [path-to-regexp](https://g
| api3/:id | api3/baz |

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556087414287-dd7ee841-564c-434a-8516-df9b1474246c.png" width="75%" />
<img src="https://macacajs.github.io/macaca-datahub/assets/1556087414287-dd7ee841-564c-434a-8516-df9b1474246c.png" width="75%" />
</div>

### 快照录入

DataHub 兼备代理功能,会将最近请求的实时响应保存下来,便于归档。也就是说你可以通过已归档的快照随时复现当时的场景。

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556087541969-d45b0057-0611-4445-8faa-c78f8e9b4f43.png" width="75%" />
<img src="https://macacajs.github.io/macaca-datahub/assets/1556087541969-d45b0057-0611-4445-8faa-c78f8e9b4f43.png" width="75%" />
</div>

### 自动化测试

通过[场景转换 API](https://macacajs.github.io/macaca-wd/#switchScene) 与测试用例的配合使用,可以做到较高的测试覆盖率。

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556087551195-fad4b4e9-64ed-49ad-b05f-bdf2475a38d4.png" width="75%" />
<img src="https://macacajs.github.io/macaca-datahub/assets/1556087551195-fad4b4e9-64ed-49ad-b05f-bdf2475a38d4.png" width="75%" />
</div>

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556087563001-4116b28e-1c7f-4fb6-88dd-0a1bbe4cbe90.png" width="75%" />
<img src="https://macacajs.github.io/macaca-datahub/assets/1556087563001-4116b28e-1c7f-4fb6-88dd-0a1bbe4cbe90.png" width="75%" />
</div>

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556087580825-d073ffc3-c2ef-4e47-a165-6a4c5f8f87b4.png" width="75%" />
<img src="https://macacajs.github.io/macaca-datahub/assets/1556087580825-d073ffc3-c2ef-4e47-a165-6a4c5f8f87b4.png" width="75%" />
</div>

## License
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ Support UI dashboard that will greatly enhance your R&D experience.

---

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086852628-742b589d-d9b9-4953-b823-a05e1e29eb28.png)
![](/macaca-datahub/assets/1556086852628-742b589d-d9b9-4953-b823-a05e1e29eb28.png)
18 changes: 9 additions & 9 deletions docs/guide/design-concept.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

DataHub is born to solving the lifecycle needs of mock/testing data of software development, from development, testing, staging to final production. Software engineers and test engineers use DataHub to manage their mock/testing data.

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086490725-acfac2d7-cf35-487a-969c-808c1f8ade72.png)
![](/macaca-datahub/assets/1556086490725-acfac2d7-cf35-487a-969c-808c1f8ade72.png)

## Decentralization

Expand All @@ -14,19 +14,19 @@ You can use a local instance of Datahub on your local machine to manage your loc

In addition, the local mock/testing data can be pushed and synchronized to a remote Datahub server to meet the needs of data sharing and collaboration.

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086532480-37b7b14f-49c7-49dd-9073-6a8fbd6d4798.png)
![](/macaca-datahub/assets/1556086532480-37b7b14f-49c7-49dd-9073-6a8fbd6d4798.png)

## Data Flow Management

DataHub adopts the principle of unidirectional data flow to make sure you will always get the latest data.

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086545198-c616ab3f-c817-4e0c-a178-4774c800f0b3.png)
![](/macaca-datahub/assets/1556086545198-c616ab3f-c817-4e0c-a178-4774c800f0b3.png)

## Consistency Between API Document and Mock Data

Datahub can also automatically generate an API document from your mock/testing data, to help keep your API document up to date and consistent with your mock data.

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086563101-f3e67f48-fc7a-44ba-89af-006e5806d12f.png)
![](/macaca-datahub/assets/1556086563101-f3e67f48-fc7a-44ba-89af-006e5806d12f.png)

## DataHub Dashboard

Expand All @@ -45,20 +45,20 @@ API name example:
| api3/:id | api3/fred |
| api3/:id | api3/baz |

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086579826-71b38922-b6f4-40e9-be7f-a530a30ad8ce.png)
![](/macaca-datahub/assets/1556086579826-71b38922-b6f4-40e9-be7f-a530a30ad8ce.png)

## Save Snapshot

DataHub can save the response of each request by taking snapshot. You can use the archieved snapshot to find out what happened.

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086592035-2367cbca-2521-4b10-bfd7-c8fc70577ce1.png)
![](/macaca-datahub/assets/1556086592035-2367cbca-2521-4b10-bfd7-c8fc70577ce1.png)

## Automation Testing

Through the seamless integration of the [switchScene(scenario) API](https://macacajs.github.io/macaca-wd/#switchScene) in test cases, higher test coverage can be achieved.

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086605998-4e6c3073-21eb-4100-87e2-e1f15dd4115a.png)
![](/macaca-datahub/assets/1556086605998-4e6c3073-21eb-4100-87e2-e1f15dd4115a.png)

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086618676-859c45b0-bd38-40e0-8886-3d06607ac19d.png)
![](/macaca-datahub/assets/1556086618676-859c45b0-bd38-40e0-8886-3d06607ac19d.png)

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086630693-5b7d1828-087f-4c15-85a4-1959f3c4fb3a.png)
![](/macaca-datahub/assets/1556086630693-5b7d1828-087f-4c15-85a4-1959f3c4fb3a.png)
6 changes: 3 additions & 3 deletions docs/guide/experiment.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

## Use Upload and Download

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086650491-f5126b12-7da6-4cef-9674-cff5f8fee43a.png)
![](/macaca-datahub/assets/1556086650491-f5126b12-7da6-4cef-9674-cff5f8fee43a.png)

## Upload and Download Project Data

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086662394-c6301e41-61c9-474f-8eab-929550558e68.png)
![](/macaca-datahub/assets/1556086662394-c6301e41-61c9-474f-8eab-929550558e68.png)

## Upload and Download Interface Data

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086685982-66cefd2e-b5da-4835-88d0-d095313883f2.png)
![](/macaca-datahub/assets/1556086685982-66cefd2e-b5da-4835-88d0-d095313883f2.png)
18 changes: 9 additions & 9 deletions docs/guide/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
Create a new item named sample.

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556086707452-14442728-b9b7-4ce5-aefa-ed3d047935f0.png" width="75%" />
<img src="/macaca-datahub/assets/1556086707452-14442728-b9b7-4ce5-aefa-ed3d047935f0.png" width="75%" />
</div>

## Add An Interface

Add the interface named `test1`, request the interface `http://localhost:8080/api/test1` and get the corresponding mock data.

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556086720681-5ee0992d-60e8-4b8c-9979-a315b281daf1.png" width="75%" />
<img src="/macaca-datahub/assets/1556086720681-5ee0992d-60e8-4b8c-9979-a315b281daf1.png" width="75%" />
</div>


Expand All @@ -22,33 +22,33 @@ Add the interface named `test1`, request the interface `http://localhost:8080/ap
The scene management, add scenario content corresponding to Response, and the development environment adds multiple scenarios which is conducive to rapid switching. You cna set the interface response information, and return status code `200` if not set.

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556086736616-3fd09d60-4c20-4cea-b228-93dba96ab8a2.png" width="75%" />
<img src="/macaca-datahub/assets/1556086736616-3fd09d60-4c20-4cea-b228-93dba96ab8a2.png" width="75%" />
</div>

The proxy pattern, it can be configured if required.

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556086751482-91206dc4-3a37-4eea-b0ea-f4a8fb5417f1.png" width="75%" />
<img src="/macaca-datahub/assets/1556086751482-91206dc4-3a37-4eea-b0ea-f4a8fb5417f1.png" width="75%" />
</div>

Request field description, you can use scheme JSON for validation and choose whether to open validation or not.

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556086764565-8121c57d-ce87-447f-af04-fff78c1ecffe.png" width="75%" />
<img src="/macaca-datahub/assets/1556086764565-8121c57d-ce87-447f-af04-fff78c1ecffe.png" width="75%" />
</div>

Response field description, you can use scheme JSON for validation and choose whether to open validation or not. Response descriptions are automatically generated based on scenario information configuration.

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556086780328-a8a4e342-bfd2-4fc0-83c8-9ed67de49a4f.png" width="75%" />
<img src="/macaca-datahub/assets/1556086780328-a8a4e342-bfd2-4fc0-83c8-9ed67de49a4f.png" width="75%" />
</div>

## Generating Document

Automatically generate documents based on interfaces.

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556086792418-1274ffe0-4e3d-4941-9fc9-0a045adcbb51.png" width="75%" />
<img src="/macaca-datahub/assets/1556086792418-1274ffe0-4e3d-4941-9fc9-0a045adcbb51.png" width="75%" />
</div>

## Try Now
Expand All @@ -74,7 +74,7 @@ request.send();
The mock data is displayed in the page after requesting the `http://localhost:8080/api/test1` interface.

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556086807886-63322b53-8f39-4dba-bdc8-2d509d9e7c33.png" width="75%" />
<img src="/macaca-datahub/assets/1556086807886-63322b53-8f39-4dba-bdc8-2d509d9e7c33.png" width="75%" />
</div>


Expand All @@ -83,6 +83,6 @@ The mock data is displayed in the page after requesting the `http://localhost:80
This page displays historical request details.

<div align="center">
<img src="https://cdn.nlark.com/yuque/0/2019/png/95383/1556086820352-321ae85d-b7b5-4762-9437-c8b5a9edf7d7.png" width="75%" />
<img src="/macaca-datahub/assets/1556086820352-321ae85d-b7b5-4762-9437-c8b5a9edf7d7.png" width="75%" />
</div>

2 changes: 1 addition & 1 deletion docs/guide/swagger.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ DataHub supports data import in the standard [Swagger](http://editor.swagger.io/

Open the import and export feature in the DataHub Lab:

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086834827-1695b25a-a09c-48c7-9f42-2c3513ba3c6c.png)
![](/macaca-datahub/assets/1556086834827-1695b25a-a09c-48c7-9f42-2c3513ba3c6c.png)

## Upload Swagger data

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ footer: MIT Licensed | Copyright © 2015-present Macaca
DataHub 提供 UI 操作板,将大大提升你的研发体验。
:::

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556087304638-428cd324-c3b4-4368-a22e-93b6eb87d413.png)
![](/macaca-datahub/assets/1556087304638-428cd324-c3b4-4368-a22e-93b6eb87d413.png)
18 changes: 9 additions & 9 deletions docs/zh/guide/design-concept.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@

支持从本地开发阶段,到集成测试阶段,以及上线前验证阶段的一系列数据环境需求,研发与测试工程师只需面向 DataHub 管理数据即可。

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556087441429-3bfe13af-c823-45a4-b24c-eb534a0e4728.png)
![](/macaca-datahub/assets/1556087441429-3bfe13af-c823-45a4-b24c-eb534a0e4728.png)

## 去中心化

采用去中心化设计,本地研发阶段每项实例都拥有一份独立的数据,数据为明文,可随当前项目版本管理工具进行版本化归档,使得项目数据能做到随开随用,支持离线开发。

另外,每份数据都可向远端服务推送并同步,满足中心化协同的需要。

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556087451934-6ca4caf4-ff6b-4c2f-9879-c4839e79f2cb.png)
![](/macaca-datahub/assets/1556087451934-6ca4caf4-ff6b-4c2f-9879-c4839e79f2cb.png)

## 数据流动管理

采用单向数据流动的原则,使当前项目下的数据状态及时变更。

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086912538-d27df977-e3c6-4b66-968b-bb3163150dcc.png)
![](/macaca-datahub/assets/1556086912538-d27df977-e3c6-4b66-968b-bb3163150dcc.png)

## 文档一致性

DataHub 将 Mock 数据与字段描述整合处理,自动生成接口文档。使得文档能够与交互字段随时保持一致。

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086928867-6735d9f0-49bc-452f-b477-f0dd28a6228a.png)
![](/macaca-datahub/assets/1556086928867-6735d9f0-49bc-452f-b477-f0dd28a6228a.png)

## 场景管理

Expand All @@ -39,20 +39,20 @@ Datahub 可以定义动态路径,底层使用的是 [path-to-regexp](https://g
| api3/:id | api3/fred |
| api3/:id | api3/baz |

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086944659-3f800847-8cf2-41b4-a252-cc1388821a36.png)
![](/macaca-datahub/assets/1556086944659-3f800847-8cf2-41b4-a252-cc1388821a36.png)

## 快照录入

DataHub 兼备代理功能,会将最近请求的实时响应保存下来,便于归档。也就是说你可以通过已归档的快照随时复现当时的场景。

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086955580-f1829ac9-f0be-4ff4-b8b6-899e1012274c.png)
![](/macaca-datahub/assets/1556086955580-f1829ac9-f0be-4ff4-b8b6-899e1012274c.png)

### 自动化测试

通过[场景转换 API](https://macacajs.github.io/macaca-wd/#switchScene) 与测试用例的配合使用,可以做到较高的测试覆盖率。

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086969521-a354d792-5399-4b48-ac4b-715a389e1b2b.png)
![](/macaca-datahub/assets/1556086969521-a354d792-5399-4b48-ac4b-715a389e1b2b.png)

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556086985552-fb44ad67-2697-415a-a1ac-955d1186edef.png)
![](/macaca-datahub/assets/1556086985552-fb44ad67-2697-415a-a1ac-955d1186edef.png)

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556087001104-3da55088-824b-4ed4-a2be-97774f429561.png)
![](/macaca-datahub/assets/1556087001104-3da55088-824b-4ed4-a2be-97774f429561.png)
6 changes: 3 additions & 3 deletions docs/zh/guide/experiment.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

## 打开导入导出功能

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556087017130-d28c06f4-fc93-496a-8eec-ec5e6f1ce83d.png)
![](/macaca-datahub/assets/1556087017130-d28c06f4-fc93-496a-8eec-ec5e6f1ce83d.png)

## 导入导出项目数据

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556087034370-c015c30c-3ffd-4c9a-8539-a3669ac31674.png)
![](/macaca-datahub/assets/1556087034370-c015c30c-3ffd-4c9a-8539-a3669ac31674.png)

## 导入导出接口数据

![](https://cdn.nlark.com/yuque/0/2019/png/95383/1556087047193-7f16c85f-f8e6-4adc-8665-fc62e74a55ea.png)
![](/macaca-datahub/assets/1556087047193-7f16c85f-f8e6-4adc-8665-fc62e74a55ea.png)
Loading

0 comments on commit d170a64

Please sign in to comment.