com.saucelabs.sauce_ondemand.driver
Interface SauceOnDemandSelenium


public interface SauceOnDemandSelenium

Additional methods exposed by Selenium returned from the "sauce-ondemand:..." URL.

Author:
Kohsuke Kawaguchi

Method Summary
 com.saucelabs.rest.Credential getCredential()
          Gets the credential used to connect to Sauce OnDemand.
 java.net.URL getSeleniumServerLogFile()
          Obtains the URL for downloading the Selenium server log file.
 java.io.InputStream getSeleniumServerLogFileInputStream()
          Retrieves the contents of the Selenium server log file.
 java.lang.String getSessionIdValue()
          Obtains the session ID of this Selenium.
 java.net.URL getVideo()
          Obtains the URL for downloading the video recording video.flv.
 java.io.InputStream getVideoInputStream()
          Retrieves the contents of the video recording.
 void jobFailed()
           
 void jobPassed()
           
 void setBuildNumber(java.lang.String buildNumber)
           
 

Method Detail

getSessionIdValue

java.lang.String getSessionIdValue()
Obtains the session ID of this Selenium.

If the session has ended via Selenium.stop(), this method returns the session ID of the last session.

Returns:
null if the session hasn't started yet.

getCredential

com.saucelabs.rest.Credential getCredential()
Gets the credential used to connect to Sauce OnDemand. This information is useful when retrieving server log and video.


getSeleniumServerLogFile

java.net.URL getSeleniumServerLogFile()
                                      throws java.io.IOException
Obtains the URL for downloading the Selenium server log file.

Note that to acccess this URL you need to send in the credential through BASIC auth. Note that this file only becomes available some time after the test is stopped.

Throws:
java.io.IOException

getVideo

java.net.URL getVideo()
                      throws java.io.IOException
Obtains the URL for downloading the video recording video.flv.

Note that to acccess this URL you need to send in the credential through BASIC auth. Note that this file only becomes available some time after the test is stopped.

Throws:
java.io.IOException

getSeleniumServerLogFileInputStream

java.io.InputStream getSeleniumServerLogFileInputStream()
                                                        throws java.io.IOException
Retrieves the contents of the Selenium server log file.

Note that this file only becomes available some time after the test is stopped.

Throws:
java.io.IOException

getVideoInputStream

java.io.InputStream getVideoInputStream()
                                        throws java.io.IOException
Retrieves the contents of the video recording.

Note that this file only becomes available some time after the test is stopped.

Throws:
java.io.IOException

jobPassed

void jobPassed()
               throws java.io.IOException
Throws:
java.io.IOException

jobFailed

void jobFailed()
               throws java.io.IOException
Throws:
java.io.IOException

setBuildNumber

void setBuildNumber(java.lang.String buildNumber)
                    throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2012. All Rights Reserved.