Constructing a video link to record all screenshots during automation in Sauce Labs

Notes: 
The URL on Sauce Labs which stores the video recording is as follows.

https://assets.saucelabs.com/jobs/<session-id>/video.flv
  1. Retrieve the session ID of the target device by using the connect device action.

    	                   url	                                                                              capabilities                                                                                                                                       name 
    assign device	http://joe.doe:1ec0bc84-0d18-424d-bbf2-8d5e51baae7b@ondemand.saucelabs.com:80/wd/hub    {"name":"TestArchitect - test gmail","browserName": "safari","deviceName": "iPhone 6 Simulator","platformName": "ios","platformVersion": "9.3"}    cloud_device
    
    	                   name	      session id
    connect device         cloud_device     >>session_id
    
  2. Create a user-defined field to build a video link which captures entire automated tests in Sauce Labs.

    For example, create a field Screenshot Recording. (Learn more.)

  3. Use the assign result field action to assign the video link’s value to the Screenshot Recording field.

    This link is built based on the target device’s session ID.

    	                session id		
    use device          #session_id		
    
    	                location	
    navigate	        https://www.google.com.vn/		
    
    	                field	             value	
    assign result field    Screenshot Recording     #"https://assets.saucelabs.com/jobs/" & session_id & "/video.flv"	
    

The test procedure should resemble the following.

In the test result, you will see a video link as follows.


Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400