
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@saucelabs/testcomposer
Advanced tools
Sauce Labs SDK for the Test-Composer API.
const { TestComposer } = require('@saucelabs/testcomposer');
const client = new TestComposer({
region: 'us-west-1',
username: process.env.SAUCE_USERNAME,
accessKey: process.env.SAUCE_ACCESS_KEY,
headers: { 'User-Agent': `your-fancy-reporter/1.2.3` },
});
const job = await client.createReport({
name: 'My Fancy Job!',
passed: true,
startTime: new Date().toISOString(),
endTime: new Date().toISOString(),
browserName: 'Chrome',
browserVersion: '105',
framework: 'playwright',
frameworkVersion: '1.25.0',
platformName: 'Windows 11',
});
console.log(job.id); // the job ID
console.log(job.url); // the full URL of the job
You can upload assets to your job using the uploadAssets
method. By uploading assets, you can include relevant files or resources that are associated with your job, such as log files, screenshots, or other supporting documentation. These assets will be accessible and viewable in the Sauce Labs web UI.
const Readable = require('stream').Readable;
const s = new Readable();
s.push('hello!');
s.push(null);
const uploads = await client.uploadAssets(job.id, [
{ filename: 'console.log', data: s },
]);
Refer to the following examples for specific frameworks:
JavaScript Frameworks: Guide on generating reports for Cypress, Playwright, and TestCafe.
Selenium: Guide on generating Selenium reports.
Espresso: Guide on generating Espresso reports.
XCUITest: Guide on generating XCUITest reports.
FAQs
Sauce Labs SDK for the Test-Composer API
The npm package @saucelabs/testcomposer receives a total of 2,688 weekly downloads. As such, @saucelabs/testcomposer popularity was classified as popular.
We found that @saucelabs/testcomposer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.