You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -34,7 +36,7 @@ Currently, it supports the following kinds of services:
34
36
35
37
[](https://zeabur.com?referralCode=LinuxSuRen&utm_source=LinuxSuRen&utm_campaign=oss)
The test suite file could be local, or in the HTTP server. Have a look at some examples:
66
70
67
71
*`atest run -p your-local-file.yaml`
@@ -107,6 +111,7 @@ items:
107
111
You can use all the functions that are available in the expr library.
108
112
109
113
## Convert to JMeter
114
+
110
115
[JMeter](https://jmeter.apache.org/) is a load test tool. You can run the following commands from the root directory of this repository:
111
116
112
117
```shell
@@ -118,6 +123,7 @@ jmeter -n -t bin/gitee.jmx
118
123
Please feel free to bring more test tool converters.
119
124
120
125
## Run in Jenkins
126
+
121
127
You can run the API testings in Jenkins, as demonstrated in the example below:
122
128
123
129
```Jenkinsfile
@@ -140,9 +146,11 @@ pipeline {
140
146
```
141
147
142
148
## Report
149
+
143
150
You can see the test results in [Grafana](prometheus.md).
144
151
145
152
## Monitoring
153
+
146
154
It can monitor the server and browser via the [Apache SkyWalking](https://skywalking.apache.org/).
147
155
Please add the following flag if you want to get the browser tracing data:
148
156
@@ -156,6 +164,7 @@ atest server --skywalking http://localhost:12800
156
164
```
157
165
158
166
## Storage
167
+
159
168
There are multiple storage backends supported. See the status from the list:
160
169
161
170
| Name | Status |
@@ -168,6 +177,7 @@ There are multiple storage backends supported. See the status from the list:
168
177
| MongoDB | Devloping |
169
178
170
179
### Local Storage
180
+
171
181
Local storage is the built-in solution. You can run it with the following command:
172
182
173
183
```shell
@@ -185,11 +195,13 @@ atest server --local-storage 'sample/*.yaml' --console-path console/atest-ui/dis
185
195
```
186
196
187
197
Use the host network mode if you want to connect to your local environment:
198
+
188
199
```shell
189
200
podman run --pull always --network host ghcr.io/linuxsuren/api-testing:master
190
201
```
191
202
192
203
### ORM Database Storage
204
+
193
205
Start a database with the following command if you don't have a database already. You can install [tiup](https://tiup.io/) via `hd i tiup`.
194
206
195
207
```shell
@@ -222,6 +234,7 @@ podman run -p 7071:7071 \
222
234
```
223
235
224
236
### S3 Storage
237
+
225
238
You can use a S3 compatible storage as the storage backend.
226
239
227
240
```shell
@@ -249,6 +262,7 @@ Have a look at the expected configuration below:
249
262
```
250
263
251
264
### Git Storage
265
+
252
266
You can use a git repository as the storage backend.
253
267
254
268
```shell
@@ -275,6 +289,7 @@ Have a look at the expected configuration below:
275
289
```
276
290
277
291
### MongoDB Storage
292
+
278
293
You can use a MongoDB as the storage backend.
279
294
280
295
Have a look at the expected configuration below:
@@ -292,6 +307,7 @@ Have a look at the expected configuration below:
292
307
```
293
308
294
309
## Secret Server
310
+
295
311
You can put sensitive information into a secret server. For example, [Vault](https://www.github.com/hashicorp/vault).
296
312
297
313
Connect to [a vault extension](https://github.com/LinuxSuRen/api-testing-secret-extension) via flag: `--secret-server`. Such as:
@@ -301,6 +317,7 @@ atest server --secret-server localhost:7073
301
317
```
302
318
303
319
## Application monitor
320
+
304
321
You can get the resource usage in the report through Docker:
305
322
306
323
```shell
@@ -311,19 +328,22 @@ atest run -p sample/testsuite-gitlab.yaml --monitor-docker test --report md
311
328
312
329
| Item | Description |
313
330
|---|---|
314
-
| `expect.bodyFieldsExpect` | See also the syntax from https://github.com/tidwall/gjson |
331
+
| `expect.bodyFieldsExpect` | See also the syntax from [gjson](https://github.com/tidwall/gjson) |
315
332
316
333
## OAuth
334
+
317
335
It support GitHub, [Dex](https://github.com/dexidp/dex) as OAuth provider. See also the following usage:
318
336
319
337
```shell
320
338
atest server --auth oauth --client-id your-id --client-secret your-secret
321
339
```
322
340
323
341
## Extensions
342
+
324
343
Developers can have storage, secret extensions. Implementing a gRPC server according to [loader.proto](../pkg/testing/remote/loader.proto) is required.
325
344
326
345
## Official Images
346
+
327
347
You can find the official images from both [Docker Hub](https://hub.docker.com/r/linuxsuren/api-testing) and others. See the image path:
328
348
329
349
* `ghcr.io/linuxsuren/api-testing:master`
@@ -335,11 +355,13 @@ You can find the official images from both [Docker Hub](https://hub.docker.com/r
335
355
The tag `latest` represents the latest release version. The tag `master` represents the image of the latest master branch. We highly recommend you to use a fixed version instead of those in a production environment.
0 commit comments