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
Copy file name to clipboardExpand all lines: resources/reporters/data-format-reference.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,18 +4,18 @@ description: Currents Reporting API - Data Format Reference
4
4
5
5
# Data Format Reference
6
6
7
-
Currents can accept results from arbitrary testing frameworks. This document provides detailed instructions for creating test results data compatible with Currents. 
7
+
Currents can accept results from arbitrary testing frameworks. This document provides detailed instructions for creating test results data that is compatible with Currents.
8
8
9
-
* To upload the results use [currents-upload.md](currents-cmd/currents-upload.md"mention") command. 
10
-
* Refer to [currents-convert.md](currents-cmd/currents-convert.md"mention") to see how we convert the results from various popular testing framework to "Currents Format" that conforms to the specification presented below.
9
+
* To upload the results, use the [currents-upload.md](currents-cmd/currents-upload.md"mention") command.
10
+
* Refer to [currents-convert.md](currents-cmd/currents-convert.md"mention") to see how we convert results from various popular testing frameworks to "Currents Format" that conforms to the specification presented below.
11
11
12
12
## Results Directory
13
13
14
-
To upload the results to Currents create a "Results Directory" with all the necessary files. The directory will be used as the `--output-dir` parameter for [currents-upload.md](currents-cmd/currents-upload.md"mention") command, for example:
14
+
To upload the results to Currents, create a "Results Directory" with all the necessary files. The directory will be used as the `--output-dir` parameter for the[currents-upload.md](currents-cmd/currents-upload.md"mention") command, for example:
Within the Results Directory the following structure of files and directories is expected.
18
+
Within the Results Directory, the following structure of files and directories is expected.
19
19
20
20
```
21
21
results-dir/
@@ -27,17 +27,17 @@ results-dir/
27
27
└── fullTestSuite.json
28
28
```
29
29
30
-
The output consists of two main components: 
30
+
The output consists of three main components:
31
31
32
-
*`fullTestSuite.json` is the [#full-test-suite](data-format-reference.md#full-test-suite"mention") JSON document that contains the tests expected to be reported. It does not contains test results.
33
-
*`config.json`is a [#configuration-file](data-format-reference.md#configuration-file"mention") that contains the metadata like test framework name, version and more
34
-
*`instances` folder contains [#instance-files](data-format-reference.md#instance-files"mention") - JSON document that represents a spec file or a logical collection and the associated test results.
32
+
*`fullTestSuite.json` is the [#full-test-suite](data-format-reference.md#full-test-suite"mention") JSON document that contains the tests expected to be reported. It does not contain test results.
33
+
*`config.json` is a [#configuration-file](data-format-reference.md#configuration-file"mention") that contains metadata such as test framework name, version, and more.
34
+
*`instances` folder contains [#instance-files](data-format-reference.md#instance-files"mention") - JSON documents that represent a spec file or logical collection and the associated test results.
35
35
36
36
## Full Test Suite
37
37
38
-
The Full Test Suite is a JSON-formatted file that contains the list of all the tests expected to be reported to the Currents platform for the current build / run.
38
+
The Full Test Suite is a JSON-formatted file that contains a list of all tests expected to be reported to the Currents platform for the current build/run.
39
39
40
-
Each element in the array of `fullTestSuite.json` file represents a group of tests, organized by the `name` property which defines the group name. 
40
+
Each element in the `fullTestSuite.json` file array represents a group of tests, organized by the `name` property which defines the group name.
41
41
42
42
<figure><imgsrc="../../.gitbook/assets/image (13).png"alt=""><figcaption><p>Note that the property "name" is showed as the "group name" in the dashboard.</p></figcaption></figure>
43
43
@@ -50,7 +50,7 @@ Currents requires that all test results from the Full Test Suite be submitted be
50
50
The root of the `fullTestSuite.json` file is a list of elements of the type `Group`.
51
51
52
52
{% hint style="info" %}
53
-
The `SuiteTest`'s can be part of any `Group` and may even be included in multiple `Group`s.
53
+
The `SuiteTest` objects can be part of any `Group` and may even be included in multiple `Group`s.
54
54
{% endhint %}
55
55
56
56
<details>
@@ -128,16 +128,16 @@ The `config.json` file contains the metadata used by Currents to properly displa
| framework | string | Yes | Name of the framework used to execute the tests. The currently accepted values are postman, vitest and wdio (WebDriverIO) |
131
+
| framework | string | Yes | Name of the framework used to execute the tests. The currently accepted values are `postman`, `vitest` and `wdio` (WebDriverIO) |
132
132
| frameworkVersion | string | Yes | Testing framework version used to execute the tests |
133
133
| frameworkConfig | object | No | Contains information about the configuration of the framework. Currently the property format with value junit is allowed |
134
134
135
135
### Instance Files
136
136
137
-
Instance File is a JSON document that represents spec file and included tests execution results.
137
+
An Instance File is a JSON document that represents a spec file and its included test execution results.
138
138
139
139
{% hint style="info" %}
140
-
Some testing frameworks are not bound to filesystem (e.g. Postman), so Instance File can be a logical collection of tests. 
140
+
Some testing frameworks are not bound to filesystem (e.g., Postman), so an Instance File can be a logical collection of tests.
141
141
{% endhint %}
142
142
143
143
<details>
@@ -317,12 +317,12 @@ Object that describes an individual attempt of a test.
0 commit comments