Releases: qase-tms/qase-javascript
[email protected]
What's new
Capture stdout and stderr logs as attachments.
To enable this feature, set environment variable QASE_CAPTURE_LOGS=1 or
add captureLogs: true to the reporter configuration:
[
'playwright-qase-reporter',
{
mode: 'testops',
+ captureLogs: true,
...
},
];[email protected]
What's new
- Updated the config of reporters, adding the
captureLogsfield. If it is set totrue, the reporter will capture logs from the test framework. - Added
getMimeTypefunction to the commons package. It returns the MIME type of the file by its extension.
[email protected]
What's new
- Added support for uploading attachments from strings and buffers.
[email protected]
What's new
Upload test attachments to Qase:
test('test', async ({ page }) => {
// upload files by path
qase.attach({ paths: '/path/to/file'});
// list multiple files at once
qase.attach({ paths: ['/path/to/file', '/path/to/another/file']});
// upload contents directly from your code
qase.attach({ name: 'attachment.txt', content: 'Hello, world!', contentType: 'text/plain' });
await page.goto('https://example.com');
});When passing custom data from the code, specify the contentType explicitly.
Most popular file extensions have their content type determined automatically.
[email protected]
What's new
- Added support for uploading attachments from strings and buffers in the testops reporter.
- Changed data type of
contentin the attachment data fromanytostring | Buffer.
[email protected]
What's new
Annotate parameterized tests to see the complete data in the Qase.io test report:
const people = ['Alice', 'Bob'];
for (const name of people) {
test(`testing with ${name}`, async () => {
qase.id(1)
qase.parameters({ 'name': name });
// ...
});
}[email protected]
What's new
- Changed data type of
fieldsandparametersin the test result data
fromMap<string, string>toRecord<string, string>.
[email protected]
Overview
This is a beta channel release, supporting the v2 series of the Qase JavaScript reporters.
What's new
- Supporting the latest version of the Qase API.
- Significant updates to the
v2/resultsendpoint. - New endpoints:
v1/system-fields/andv1/configurations/.
[email protected]
What's new
-
Change module exports for simpler importing.
New syntax:
import { qase } from 'playwright-qase-reporter';
instead of:
import { qase } from 'playwright-qase-reporter/playwright';
-
Update the readme with examples of new imports and annotations.
[email protected]
Overview
Qase reporter for the Playwright test framework.
This is a beta channel release.
To try the new features, install it with:
npm install playwright-qase-reporter@betaTo switch back to the stable releases, run:
npm install playwright-qase-reporter@latestWhat's new
New syntax for annotating tests
This release brings a major syntax change for specifying more test parameters.
Old syntax allowed only test ID and title, and wasn't improving code readability:
test(qase(42, 'Ultimate Question of Life, The Universe, and Everything'), async ({ page }) => {
...
})New syntax allows for adding information on separate lines, keeping the code readable:
test('Ultimate Question of Life, The Universe, and Everything', async ({ page }) => {
qase.id(42);
qase.fields({ severity: high, priority: medium });
qase.attach({ paths: '/path/to/file'});
...
})