Skip to content

Commit 83e5f6d

Browse files
committed
Merge branch 'main' into fix/standardize-data-format-tables-params
2 parents 26a4120 + c844fc0 commit 83e5f6d

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

resources/reporters/data-format-reference.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ description: Currents Reporting API - Data Format Reference
44

55
# Data Format Reference
66

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.
88

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.
1111

1212
## Results Directory
1313

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:
1515

1616
`npx currents convert --output-dir path-to-results-directory`
1717

18-
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.
1919

2020
```
2121
results-dir/
@@ -27,17 +27,17 @@ results-dir/
2727
└── fullTestSuite.json
2828
```
2929

30-
The output consists of two main components: 
30+
The output consists of three main components:
3131

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.
3535

3636
## Full Test Suite
3737

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.
3939

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.
4141

4242
<figure><img src="../../.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>
4343

@@ -50,7 +50,7 @@ Currents requires that all test results from the Full Test Suite be submitted be
5050
The root of the `fullTestSuite.json` file is a list of elements of the type `Group`.
5151

5252
{% 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.
5454
{% endhint %}
5555

5656
<details>
@@ -128,16 +128,16 @@ The `config.json` file contains the metadata used by Currents to properly displa
128128

129129
| Property | Type | Required | Description |
130130
| ----------------- | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------- |
131-
| 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) |
132132
| frameworkVersion | string | Yes | Testing framework version used to execute the tests |
133133
| frameworkConfig | object | No | Contains information about the configuration of the framework. Currently the property format with value junit is allowed |
134134

135135
### Instance Files
136136

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.
138138

139139
{% 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.&#x20;
140+
Some testing frameworks are not bound to filesystem (e.g., Postman), so an Instance File can be a logical collection of tests.
141141
{% endhint %}
142142

143143
<details>
@@ -317,12 +317,12 @@ Object that describes an individual attempt of a test.
317317

318318
| Property | Type | Required | Description |
319319
| --------- | -------- | -------- | ---------------------------------------------------------------- |
320-
| _s | string | Yes | Status of the test attempt |
321-
| attempt | number | Yes | Index of the attempt. Defines the order of attempt execution |
320+
| _s | string | Yes | Intermediate test attempt status (`passed`, `failed` | `pending` | `skipped`) |
321+
| attempt | number | Yes | Index of the . Defines the order of attempt execution |
322322
| startTime | string | Yes | Timestamp when the attempt started in ISO 8601 format |
323323
| steps | [Step](#step)[] | Yes | Array of steps executed during the attempt |
324324
| duration | number | Yes | Duration of the attempt in milliseconds |
325-
| status | string | Yes | Final status of the attempt |
325+
| status | string | Yes | Final test attempt status `passed`, `failed`, `timedOut`, `skipped`, `interrupted` |
326326
| stdout | string[] | Yes | Standard output logs for the attempt |
327327
| stderr | string[] | Yes | Standard error logs for the attempt |
328328
| errors | [Error](#error)[] | Yes | Array of error objects encountered during the attempt |
@@ -347,7 +347,7 @@ Object that describes an individual attempt of a test.
347347

348348
### Generating testId&#x20;
349349

350-
The testId is a hash composed by the title of the test and the spec file name. Use this function to generate it.
350+
The testId is a hash composed of the test title and the spec file name. Use this function to generate it.
351351

352352
```typescript
353353
export function generateTestId(testTitle: string, specFileName: string): string {

0 commit comments

Comments
 (0)