Skip to content

Commit 3148a05

Browse files
committed
1 parent cb40fac commit 3148a05

File tree

4 files changed

+74
-7
lines changed

4 files changed

+74
-7
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

qase-javascript-commons/README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
# Qase JavaScript Commons
22

3-
This package contains common classes and functions for working with Qase TMS API.
3+
This module is an SDK for developing test reporters for Qase TMS.
4+
It's using `qaseio` as an API client, and all Qase reporters are, in turn,
5+
using this package.
6+
You should use it if you're developing your own test reporter for a special-purpose framework.
7+
8+
To report results from tests using a popular framework or test runner,
9+
don't install this module directly and
10+
use the corresponding reporter module instead:
11+
12+
* [CucumberJS](https://github.com/qase-tms/qase-javascript/tree/main/qase-cucumberjs#readme)
13+
* [Cypress](https://github.com/qase-tms/qase-javascript/tree/main/qase-cypress#readme)
14+
* [Jest](https://github.com/qase-tms/qase-javascript/tree/main/qase-jest#readme)
15+
* [Newman](https://github.com/qase-tms/qase-javascript/tree/main/qase-newman#readme)
16+
* [Playwright](https://github.com/qase-tms/qase-javascript/tree/main/qase-playwright#readme)
17+
* [TestCafe](https://github.com/qase-tms/qase-javascript/tree/main/qase-testcafe#readme)
418

519
## Installation
620

721
```bash
8-
npm install qase-javascript-commons@beta
22+
npm install qase-javascript-commons
923
```
1024

1125
## Configuration

qase-javascript-commons/changelog.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,56 @@
1+
2+
3+
## What's new
4+
5+
This is the first release version of the Qase JavaScript SDK.
6+
It is numbered `2.0.0` (and not `1.0.0`) to match the release series of
7+
test reporters for Playwright, Cypress, Jest and other frameworks.
8+
9+
### Annotating test with field data
10+
11+
Tests can now be annotated with data for system and custom fields in Qase.
12+
This feature is already implemented in the Playwright reporter:
13+
14+
```js
15+
test('Test with annotated fields', () => {
16+
qase.id(1);
17+
qase.fields({ 'severity': 'high', 'priority': 'medium' })
18+
// ...
19+
});
20+
```
21+
22+
### Parametrized tests
23+
24+
Qase JavaScript SDK enables annotating tests with parameters, and passing parameter values to Qase.
25+
Parameterized tests can report to a single test case, but each parameter variation is registered as
26+
a standalone result, with its own run history.
27+
28+
### Attachments from files and variables
29+
30+
Reporters can now upload attachments of various data types to Qase,
31+
both from files and from variables.
32+
It enables flexible and meticulous logging, such as collecting full HTTP request data,
33+
including URL, headers, and payload.
34+
35+
### Uploading results in flexible batches, asynchronously
36+
37+
Test reporters can now upload results in batches, while tests are still running.
38+
It helps bring test results faster and enables acting on them long before the test run is complete.
39+
40+
### Uniform configuration
41+
42+
Qase JavaScript SDK brings configuration with config files and environment variables
43+
to a common standard, used with Qase reporters in all languages and frameworks.
44+
45+
For details, see the Configuration section in the README.
46+
47+
### Latest API
48+
49+
Qase JavaScript SDK is using the latest Qase API client,
50+
employing the full power of the stable v1 API version,
51+
and enabling the use of experimental v2 API, tailored for uploading
52+
huge amounts of test results.
53+
154
255

356
## What's new

qase-javascript-commons/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "qase-javascript-commons",
3-
"version": "2.0.0-beta.12",
3+
"version": "2.0.0",
44
"description": "Qase JS Reporters",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
@@ -21,7 +21,7 @@
2121
"test": "jest --passWithNoTests",
2222
"clean": "rm -rf dist"
2323
},
24-
"author": "Dimitri Harding <[email protected]>",
24+
"author": "Qase Team <[email protected]>",
2525
"license": "Apache-2.0",
2626
"dependencies": {
2727
"ajv": "^8.12.0",
@@ -33,7 +33,7 @@
3333
"lodash.merge": "^4.6.2",
3434
"lodash.mergewith": "^4.6.2",
3535
"mime-types": "^2.1.33",
36-
"qaseio": "^2.1.0-beta.1",
36+
"qaseio": "^2.1.0",
3737
"strip-ansi": "^6.0.1",
3838
"uuid": "^9.0.0"
3939
},

0 commit comments

Comments
 (0)