public class LocalThreadWebDriverMapImpl extends java.lang.Object implements ThreadWebDriverMap
| Constructor and Description |
|---|
LocalThreadWebDriverMapImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearWebDriverForThread(java.lang.String name,
boolean quitDriver)
Clears the web driver assigned to a thread.
|
FeatureState |
getDesiredCapabilitiesForThread(java.lang.String name) |
int |
getNumberCapabilities() |
java.util.List<java.io.File> |
getTempFolders() |
org.openqa.selenium.WebDriver |
getWebDriverForThread(java.lang.String name,
boolean createIfMissing) |
void |
initialise(java.util.List<org.openqa.selenium.remote.DesiredCapabilities> desiredCapabilities,
java.util.List<UrlMapping> applicationUrls,
java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.lang.String>> datasets,
java.lang.String myReportDirectory,
java.util.List<java.io.File> myTempFolders,
java.util.List<ProxyDetails<?>> myProxies)
Initialise any internal structures with the list of loaded capabilities
|
void |
shutdown()
Cleans up the web drivers
|
void |
shutdown(java.lang.String name)
Cleans up the web drivers for an individual thread
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearWebDriverForThread, getDesiredCapabilitiesForThread, getWebDriverForThread, getWebDriverForThreadpublic void initialise(@NotNull
java.util.List<org.openqa.selenium.remote.DesiredCapabilities> desiredCapabilities,
@NotNull
java.util.List<UrlMapping> applicationUrls,
@NotNull
java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.lang.String>> datasets,
@NotNull
java.lang.String myReportDirectory,
@NotNull
java.util.List<java.io.File> myTempFolders,
@NotNull
java.util.List<ProxyDetails<?>> myProxies)
ThreadWebDriverMapinitialise in interface ThreadWebDriverMapdesiredCapabilities - the list of capabilities that were loadedapplicationUrls - the list of urls assocaited with the application we are testingdatasets - the datasets that can be used by a test scriptmyReportDirectory - The directory that holds reports and other test script outputsmyTempFolders - A list of directories that need to be deleted once the test is completemyProxies - A list of the proxies that have been configured@NotNull public FeatureState getDesiredCapabilitiesForThread(@NotNull java.lang.String name)
getDesiredCapabilitiesForThread in interface ThreadWebDriverMapname - The name of the currently executing thread@NotNull
public org.openqa.selenium.WebDriver getWebDriverForThread(@NotNull
java.lang.String name,
boolean createIfMissing)
getWebDriverForThread in interface ThreadWebDriverMapname - The name of the currently executing threadcreateIfMissing - set to true to create a web driver if one doesn't existpublic void clearWebDriverForThread(@NotNull
java.lang.String name,
boolean quitDriver)
ThreadWebDriverMapclearWebDriverForThread in interface ThreadWebDriverMapname - The name of the threadquitDriver - true if the driver should quit before it is clearedpublic int getNumberCapabilities()
getNumberCapabilities in interface ThreadWebDriverMappublic java.util.List<java.io.File> getTempFolders()
getTempFolders in interface ThreadWebDriverMappublic void shutdown()
ThreadWebDriverMapshutdown in interface ThreadWebDriverMappublic void shutdown(@NotNull
java.lang.String name)
ThreadWebDriverMapshutdown in interface ThreadWebDriverMapname - The name of the thread that should have its associated resources cleaned up