![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@belym.a.2105/sauce-tunnel
Advanced tools
A Node.js wrapper around the Saucelabs tunnel jar.
This code is extracted from grunt-saucelabs by axemclion, with the grunt-specific parts removed.
It was extracted into its own module to avoid duplication between grunt-saucelabs, grunt-mocha-webdriver, and any future Node module that may need it.
Before starting the tunnel, initialize it first
var tunnel = new SauceTunnel(SAUCE_USERNAME, SAUCE_ACCESS_KEY, tunnelIdentifier, tunneled, extraFlags);
SAUCE_USERNAME
and SAUCE_ACCESS_KEY
are the username and the accesskey for saucelabs. They are usually set as environment variables (specially in continuous integration tools like travis )tunnelIdentifier
is a unique identifier for the tunnel. It is optional and is automatically generated when not specified. Note that the tunnel identifier may have to be passed in with the browsers object as a desired capability to enable traffic to use the tunnel. More details heretunneled
attribute is a boolean value to indicate if the tunnel is to be created or not. This value can be set to false
to mock a tunnel creation if the site tested is publicly accessible. This value is optional and defaults to true
.extraFlags
attribute is an array of options flags (see here). Example: ['--debug', '--direct-domains', 'www.google.com']
. It is optional.Once the tunnel is initialized, start it with the following command.
tunnel.start(function(status){
// status === true indicates that the tunnel was successfully created.
});
The actual webdriver code to run the test cases can be added inside the callback function. Once the webdriver completes its task, you can shut down the tunnel using
tunnel.stop(function(){
// Tunnel was stopped
});
To get started easily, here is the code you can copy paste
var SauceTunnel = require('sauce-tunnel');
var tunnel = new SauceTunnel(process.env.SAUCE_USERNAME, process.env.SAUCE_ACCESS_KEY, 'tunnel', true/* ['--verbose'] */);
tunnel.start(function(status){
if (status === false){
throw new Error('Something went wrong with the tunnel');
}
/** var wd = ... Work with the web driver**/
// Once all webdriver work is done
tunnel.stop(function(){
// Tunnel destroyed
});
});
chalk
instead of duck punching String.FAQs
A wrapper around the Sauce Labs tunnel jar
The npm package @belym.a.2105/sauce-tunnel receives a total of 49 weekly downloads. As such, @belym.a.2105/sauce-tunnel popularity was classified as not popular.
We found that @belym.a.2105/sauce-tunnel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.