You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2021. It is now read-only.
Executor for [Magellan](https://github.com/TestArmada/magellan) to run [nightwatchjs](http://nightwatchjs.org/) tests in [TestObject](https://testobject.com/) environment.
8
9
@@ -11,6 +12,7 @@ Executor for [Magellan](https://github.com/TestArmada/magellan) to run [nightwat
11
12
## What does this executor do
12
13
1. It talks [Muffin]() so that the desiredCapabilities shrinks down to a string, which makes your browser selection an easy work
13
14
2. It runs nightwatch test by forking it as magellan child process
15
+
3. It launches sauce tunnel and manages its life cycle for you during test. Check this [page](https://wiki.saucelabs.com/display/DOCS/Sauce+Connect+Proxy+and+Real+Device+Testing) for more details.
14
16
15
17
## How To Use
16
18
Please follow the steps
@@ -23,30 +25,50 @@ Please follow the steps
23
25
]
24
26
```
25
27
3. set env variables
26
-
```
28
+
```bash
27
29
export TESTOBJECT_USERNAME=${USERNAME}
28
30
export TESTOBJECT_API_KEY=${ACCESS_KEY}
29
31
```
30
32
33
+
If you want to use this executor to launch sauce tunnel for you, set this env variable.
34
+
```bash
35
+
export TESTOBJECT_PASSWORD=${PASSWORD}
36
+
```
37
+
31
38
Optional env variable. If set, all traffic to TestObject, including TestObject api and selenium calls, will be going through it.
--to_device=devicename String represents one device which TestObject supports
41
47
--to_devices=d1,d2,.. String represents multiple devices which TestObject supports
42
48
--to_list_devices List the available devices TestObject supports.
49
+
--to_create_tunnel Create and use sauce tunnel for testing
50
+
--to_tunnel_id Existing tunnel identifier for testing
43
51
--to_app_id=1 APP id of the uploaded app to TestObject
44
52
--to_platform_name=iOS String represents the mobile platform
45
53
--to_platform_version=10.2 String represents the mobile platform version
46
54
```
47
55
48
56
Congratulations, you're all set.
49
57
58
+
## Run your test with sauce tunnel
59
+
TestObject recently launched the beta program to run real device test with sauce tunnel. Find more info [here](https://wiki.saucelabs.com/display/DOCS/Sauce+Connect+Proxy+and+Real+Device+Testing). 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.
60
+
61
+
1. launch sauce tunnel automatically
62
+
63
+
Simply set `TESTOBJECT_PASSWORD` 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.
64
+
65
+
2. use an existing sauce tunnel
66
+
67
+
Add `--to_tunnel_id ${TUNNEL_ID}` to your command line. This executor will add `${TUNNEL_ID}` to desiredCapabilities.
68
+
69
+
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.
70
+
71
+
50
72
## Run your test in parallel
51
73
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
0 commit comments