Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
testingbot-api
Advanced tools
Readme
Wrapper around the TestingBot REST API for Node.js.
npm install testingbot-api
You can use environment variables TESTINGBOT_KEY
and TESTINGBOT_SECRET
to pass your TestingBot key and secret to the API client.
The key and secret can be obtained from TestingBot
var TestingBot = require('testingbot-api');
var tb = new TestingBot({
api_key: "your-tb-key",
api_secret: "your-tb-secret"
});
Gets a list of browsers you can test on
api.getBrowsers(function(error, browsers) {});
Gets a list of physical mobile devices you can test on
api.getDevices(function(error, devices) {});
Gets a list of available physical mobile devices for your account
api.getAvailableDevices(function(error, availableDevices) {});
Gets details for a specific physical device
api.getDevice(deviceId, function(error, deviceDetails) {});
Gets your user information
api.getUserInfo(function(error, userInfo) {});
Gets list of your latest tests
api.getTests(function(error, tests) {}, offset, limit);
Gets details for a single test, pass the WebDriver's SessionID
api.getTestDetails(sessionId, function(error, testDetails) {});
Updates a single test. For example, update the passed
state of a test (whether it was successful or not).
var testData = { "test[success]" : "1", "test[status_message]" : "test" };
api.updateTest(testData, sessionId, function(error, testDetails) {});
Deletes a single test, pass the WebDriver's SessionID
api.deleteTest(sessionId, function(error, success) {});
Stops a single test, pass the WebDriver's SessionID
api.stopTest(sessionId, function(error, success) {});
Gets list of active tunnels
api.getTunnelList(function(error, tunnelList) {});
Deletes a single Tunnel
api.deleteTunnel(tunnelId, function(error, success) {});
Retrieves the latest builds
api.getBuilds(function(error, builds) {}, offset, limit);
Retrieves the tests for a single build
api.getTestsForBuild(buildId, function(error, tests) {});
Deletes a single build
api.deleteBuild(buildId, function(error, success) {});
Uploads a local file to TestingBot Storage
api.uploadFile(localFilePath, function(error, appUrl) {});
Uploads a remote file to TestingBot Storage
api.uploadFile(remoteFileUrl, function(error, appUrl) {});
Retrieve data from a previously uploaded file
api.getStorageFile(remoteFileUrl, function(error, fileDetails) {});
Retrieve list of previously uploaded files
api.getStorageFiles(function(error, fileDetails) {}, offset, limit);
Delete a previously uploaded file
api.deleteStorageFile(appId, function(error, success) {});
Calculates the authentication hash for sharing, pass the WebDriver's SessionID. This is used to share a test's detail page on TestingBot
api.getAuthenticationHashForSharing(sessionId);
Takes screenshots for the specific browsers
api.getUserInfo(function(error, screenshots) {}, url, browsers, waitTime, resolution, fullPage, callbackURL);
Retrieves screenshots for a specific takeScreenshot
call
api.getUserInfo(screenshotId, function(error, screenshots) {});
Retrieves all screenshots previously generate with your account
api.getScreenshotList(function(error, screenshots) {}, offset, limit);
Retrieves team information
api.getTeam(function(error, data) {});
Get all users in your team
api.getUsersInTeam(function(error, users) {});
Retrieves information about a specific user in your team
api.getUserFromTeam(userId, function(error, user) {});
Add a user to your team. You need ADMIN rights for this.
api.createUserInTeam(user, function(error, result) {});
Update a user in your team. You need ADMIN rights for this.
api.updateUserInTeam(userId, userData, function(error, result) {});
Resets credentials for a specific user in your team. You need ADMIN rights for this.
api.resetCredentials(userId, function(error, result) {});
npm test
Check out the TestingBot REST API for more information.
FAQs
A wrapper around TestingBot's REST API
The npm package testingbot-api receives a total of 174 weekly downloads. As such, testingbot-api popularity was classified as not popular.
We found that testingbot-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.