![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
testarmada-magellan-testobject-executor
Advanced tools
Executor for Magellan to run nightwatchjs tests in TestObject environment.
PLEASE NOTE: Executor is only supported by magellan version 10.0.0 or higher.
Please follow the steps
npm install testarmada-magellan-testobject-executor --save
magellan.json
(if there isn't a magellan.json
please create one under your folder root)"executors": [
"testarmada-magellan-testobject-executor"
]
export TESTOBJECT_USERNAME=${USERNAME}
export TESTOBJECT_API_KEY=${ACCESS_KEY}
If you want to use this executor to launch sauce tunnel for you, set this env variable.
export TESTOBJECT_TUNNEL_API_KEY=${SAUCE_CONNECT_ACCESS_KEY}
Optional env variable. If set, all traffic to TestObject, including TestObject api and selenium calls, will be going through it.
export TESTOBJECT_OUTBOUND_PROXY=http://${your.proxy}:${your.port}
./node_modules/.bin/magellan --help
to see if you can see the following content printed out Executor-specific (testarmada-magellan-testobject-executor)
--to_device=devicename String represents one device which TestObject supports
--to_devices=d1,d2,.. String represents multiple devices which TestObject supports
--to_list_devices List the available devices TestObject supports.
--to_create_tunnel Create and use sauce tunnel for testing
--to_tunnel_id Existing tunnel identifier for testing
--to_app_id=1 APP id of the uploaded app to TestObject
--to_platform_name=iOS String represents the mobile platform
--to_platform_version=10.2 String represents the mobile platform version
Congratulations, you're all set.
TestObject recently launched the beta program to run real device test with sauce tunnel. Find more info here. You can tell this executor if you want it to manage sauce tunnel for you during test, or if you want to use an existing sauce tunnel.
Simply set TESTOBJECT_TUNNEL_API_KEY
env variable and add --to_create_tunnel
to your command line. This executor will create a tunnel for you per magellan run, and automatically close it eventually.
Add --to_tunnel_id ${TUNNEL_ID}
to your command line. This executor will add ${TUNNEL_ID}
to desiredCapabilities.
Please note: --to_create_tunnel
and --to_tunnel_id
cannot co-exist. Once executor founds them both from command line, --to_create_tunnel
will be in use.
TestObject takes both generic device desiredCapability with device and platform information and specific device id. A specific device id is a string that TestObject uses as an unique identifier to represent a particular device. There are two ways to get device id
--to_list_devices
However explicitly telling executor to run tests in a specific device isn't a good idea for your parallel tests. What TestObject recommends is to use generic device desiredCapability to declare what platform and device you prefer tests to run, and TestObject will run them in parallel as best as it can depending on your device's availability. To set generic device desiredCapabilities, follow these steps so that this executor can compose the proper desiredCapabilities.
--to_platform_name
, --to_platform_version
and/or --to_device
."Samsung Galaxy S7"
to --to_device
, instead of specific device id "Samsung_Galaxy_S7_wm1"
.Example to set generic device desiredCapabilities
--to_platform_name Android --to_platform_version 7 --to_device "Samsung Galaxy S8"
or
// in your magellan.json
{
"browser": "Samsung Galaxy S8",
"executor": "testobject",
"appium": {
"appiumVersion": "1.6.5",
"platformName": "Android",
"platformVersion": "7"
}
}
There is an issue in TestObject test result report API. If test result is reported right after the driver.end()
has been called, there is a chance that your result won't be saved. Therefore we have added a delay before result report API is invoked. By default the delay is 20 seconds but you can change it by setting this environment variable TESTOBJECT_API_DELAY
in milliseconds.
Documentation in this project is licensed under Creative Commons Attribution 4.0 International License. Full details available at https://creativecommons.org/licenses/by/4.0
FAQs
magellan executor for testobject
The npm package testarmada-magellan-testobject-executor receives a total of 3 weekly downloads. As such, testarmada-magellan-testobject-executor popularity was classified as not popular.
We found that testarmada-magellan-testobject-executor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.