|
1 | 1 | ---
|
2 | 2 | title: 'Converters'
|
3 |
| -redirect: 'https://k6.io/docs/integrations#converters' |
4 |
| ---- |
5 |
| -<!--- |
6 |
| ---- |
7 |
| -title: 'Converters' |
8 | 3 | excerpt: 'Use the k6 converters to turn your existing Postman collection, swagger file, or jmx files into the foundation of your next test'
|
9 | 4 | ---
|
10 | 5 |
|
11 |
| -## Background |
12 |
| -
|
13 |
| -As a company, k6 maintains a variety of tools to convert what you already have into a working test script. |
14 |
| -
|
15 |
| -## HAR to k6 |
16 |
| -
|
17 |
| -The har-to-k6 converter allows you to take an existing HAR file and convert it to a working script. |
18 |
| -For more information and instructions, please visit our [har-to-k6 repository](https://github.com/loadimpact/har-to-k6) |
19 |
| -
|
20 |
| -## Postman to k6 |
21 |
| -
|
22 |
| -The postman-to-k6 converter allows you to convert an existing Postman collection to a k6 script with some exceptions. |
23 |
| -Currently supported features include: |
24 |
| -
|
25 |
| -- Prerequest scripts |
26 |
| -- Test scripts |
27 |
| -- Variables (at all scopes + dynamic) |
28 |
| -- Data files |
29 |
| -- Authentication methods (except Hawk) |
30 |
| -- File uploads |
31 |
| -- and more |
32 |
| -
|
33 |
| -For more information and instructions, please visit our [postman-to-k6 repository](https://github.com/loadimpact/postman-to-k6) |
34 |
| -
|
35 |
| -## Jmeter/JMX to k6 |
36 |
| -
|
37 |
| -The jmeter-to-k6 converter allows you to convert `.jmx` files into a k6 script. Note that not all `.jmx` files are supported. Most major components that have equivalents in k6 are supported. _Some_ examples include: |
38 |
| -
|
39 |
| -- Stepping Group Thread and Thread Group: convert into `options.stages` |
40 |
| -- setUp thread Group: converts into an `export function setup()` |
41 |
| -- tearDown Thread Group: converts to an `export function teardown()` |
42 |
| -- CSV Data Set: converts into an `open()` statement |
43 |
| -- ForEach Controller: converts to a JS for-loop in k6 |
44 |
| -- Random Controller: converts to a JS switch statement selecting a case at random |
45 |
| -- Constant Timer: converts into a sleep(timeInSecs) statement |
46 |
| -- and more |
47 |
| -
|
48 |
| -For more information, please visit our [jmeter-to-k6 repository](https://github.com/loadimpact/jmeter-to-k6) |
49 |
| -
|
50 |
| -## Swagger file to k6 |
| 6 | +The k6 converters can help you to generate a k6 script quickly. Use the k6 converters to turn your existing Postman collection, swagger file, or jmx files into the foundation of your k6 test. |
51 | 7 |
|
52 |
| -Coming soon. |
53 |
| ---> |
| 8 | +| Converter | Description | |
| 9 | +| ---------- | ---------------------------------------------------- | |
| 10 | +| [JMeter-to-k6](https://github.com/loadimpact/jmeter-to-k6) | Convert a JMeter .jmx file to k6 script. | |
| 11 | +| [Postman-to-k6](https://github.com/loadimpact/postman-to-k6) | Convert a Postman collection to k6 script.. | |
| 12 | +| [OpenAPI generator](https://k6.io/blog/load-testing-your-api-with-swagger-openapi-and-k6) | Convert Swagger/OpenAPI specification to k6 script. | |
| 13 | +| [HAR-to-k6](https://github.com/loadimpact/har-to-k6) | Convert a HAR file to k6 script. | |
0 commit comments