/** * Downloads the log file for a Sauce Job to the filesystem. The file will be stored in * a directory specified by the <code>location</code> field. * * @param jobId the Sauce Job Id, typically equal to the Selenium/WebDriver sessionId * @param location represents the base directory where the video should be downloaded to */ public void downloadLog(String jobId, String location) { URL restEndpoint = this.buildURL("v1/" + username + "/jobs/" + jobId + "/assets/selenium-server.log"); saveFile(jobId, location, restEndpoint); }
/** * Downloads the video for a Sauce Job to the filesystem. The file will be stored in * a directory specified by the <code>location</code> field. * * @param jobId the Sauce Job Id, typically equal to the Selenium/WebDriver sessionId * @param location represents the base directory where the video should be downloaded to */ public void downloadVideo(String jobId, String location) { URL restEndpoint = this.buildURL("v1/" + username + "/jobs/" + jobId + "/assets/video.mp4"); saveFile(jobId, location, restEndpoint); }
/** * Downloads the video for a Sauce Job to the filesystem. The file will be stored in * a directory specified by the <code>location</code> field. * * @param jobId the Sauce Job Id, typically equal to the Selenium/WebDriver sessionId * @param location represents the base directory where the video should be downloaded to */ public void downloadVideo(String jobId, String location) { URL restEndpoint = this.buildURL("v1/" + username + "/jobs/" + jobId + "/assets/video.mp4"); saveFile(jobId, location, restEndpoint); }
/** * Downloads the log file for a Sauce Job to the filesystem. The file will be stored in * a directory specified by the <code>location</code> field. * * @param jobId the Sauce Job Id, typically equal to the Selenium/WebDriver sessionId * @param location represents the base directory where the video should be downloaded to */ public void downloadLog(String jobId, String location) { URL restEndpoint = this.buildURL("v1/" + username + "/jobs/" + jobId + "/assets/selenium-server.log"); saveFile(jobId, location, restEndpoint); }
/** * Downloads the HAR file for a Sauce Job to the filesystem. The file will be stored in * a directory specified by the <code>location</code> field. * * This will only work for jobs which support Extended Debugging, which were * started with the 'extendedDebugging' capability set to true. * * @param jobId the Sauce Job Id, typically equal to the Selenium/WebDriver sessionId * @param location represents the base directory where the HAR file should be downloaded to */ public void downloadHAR(String jobId, String location) { URL restEndpoint = this.buildEDSURL(jobId + "/network.har"); saveFile(jobId, location, restEndpoint); }
/** * Downloads the HAR file for a Sauce Job to the filesystem. The file will be stored in * a directory specified by the <code>location</code> field. * * This will only work for jobs which support Extended Debugging, which were * started with the 'extendedDebugging' capability set to true. * * @param jobId the Sauce Job Id, typically equal to the Selenium/WebDriver sessionId * @param location represents the base directory where the HAR file should be downloaded to */ public void downloadHAR(String jobId, String location) { URL restEndpoint = this.buildEDSURL(jobId + "/network.har"); saveFile(jobId, location, restEndpoint); }