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

注意: 
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はLogiGear Corporationの登録商標であり、Action Based TestingおよびTestArchitectはLogiGear Corporationの商標です。ここに記載されているその他の商標は、各所有者の財産です。

LogiGear Corporation

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

Tel: +1 (650) 572-1400