Virtual USB CLI: Connect to Existing Session

The connect command uses your user credentials and sessionId to connect to an existing live session, which will then connect the device to your local machine. This is one of two ways to start a Virtual USB test; the other is to start a new test session from the command line.

Required#

--sessionId#

Description: your test session ID, which you can find using the sessions command.

--username#

Description: your Sauce Labs username.

--accessKey#

Description: your Sauce Labs access key for authentication.

Basic Example (required flags only)
java -jar virtual-usb-client.jar connect --sessionId d03a1b81-158d-4bb4-bcc9-074e43dd8465 --username john.smith --accessKey ab015c1e-xxxx-xxxx-xxxx-xxxxxxxxxxx
Response Example
07:51:46.814 [main] INFO com.saucelabs.vusb.client.Runner - Runner Version 2.0.0
localhost:7000 online

Optional#

These flags provide additional configuration options.

--serverHost#

Description: specifies a Virtual USB server host. Default: http://127.0.0.1.

--serverPort#

Description: specifies a Virtual USB server port. Default: 33657.

Full Example (with optional flags)
java -jar virtual-usb-client.jar connect \
--sessionId d03a1b81-158d-4bb4-bcc9-074e43dd8465 \
--username john.smith \
--accessKey ab015c1e-xxxx-xxxx-xxxx-xxxxxxxxxxx \
--serverHost http://127.0.0.1 \
--serverPort 8080 \
Last updated on by Kim