We are pleased to announce the release of Virtual USB 2.0.4, which you can download from our Virtual USB docs page. This release includes the following changes:
Virtual USB sessions that are started with the "startSession" command are now added to the "Live > Test Results" page. By default, this will only contain metadata (i.e. device info, start/end timestamps, etc.) If you want, then you can also record your video and device logs. This can be done by using a new optional flag called "--artifactsEnabled". The recordings and logs are accessible via the Sauce Labs Dashboard.
Improved the stability of the connected device.
Access the Virtual USB session data
To create and access your Virtual USB session data, follow the steps below:
java -jar virtual-usb-client.jar server --datacenter EU
java -jar virtual-usb-client.jar startSession --username {your-username} --accessKey {your-accesskey} --deviceName {your-device-id} --artifactsEnabled
Login to your Sauce Labs Dashboard and open the URL you get from the logs in a browser and interact with it. NOTE: Opening the URL is not a mandatory step to get the video and device log recordings.
Go to "Live > Test Results", you will now see a "Virtual USB Session Result" that is running.
Once you are done, close the session through the command line with:
java -jar virtual-usb-client.jar deleteSession --username {your-username} --accessKey {your-accesskey} --sessionId {session-id}
When the session is done you can click on the link to see the video and check out the device logs from the "Logs" tab.