
com.onevizion.uitest.api.SeleniumSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ui-test-api Show documentation
Show all versions of ui-test-api Show documentation
An API for easily write tests for OneVizion platform
The newest version!
package com.onevizion.uitest.api;
import java.util.List;
import org.openqa.selenium.WebDriver;
import org.slf4j.profiler.Profiler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class SeleniumSettings {
private ThreadLocal webDriver = new ThreadLocal<>();
private ThreadLocal userProperties = new ThreadLocal<>();
private ThreadLocal> windows = new ThreadLocal<>();
private ThreadLocal testUser = new ThreadLocal<>();
private ThreadLocal testStatus = new ThreadLocal<>();
private ThreadLocal testName = new ThreadLocal<>();
private ThreadLocal testLog = new ThreadLocal<>();
private ThreadLocal testCallstack = new ThreadLocal<>();
private ThreadLocal testFailScreenshot = new ThreadLocal<>();
private ThreadLocal profiler = new ThreadLocal<>();
private ThreadLocal profilerTestMethods = new ThreadLocal<>();
@Autowired
private Long defaultTimeout;
@Autowired
private String uploadFilesPath;
@Autowired
private String remoteAddress;
@Autowired
private Boolean remoteWebDriver;
@Autowired
private Boolean headlessMode;
@Autowired
private Boolean codeCoverage;
@Autowired
private String screenshotsPath;
@Autowired
private String ciAddr;
@Autowired
private String testPassword;
@Autowired
private String browser;
@Autowired
private String restApiCredential;
@Autowired
private String restApiUrl;
@Autowired
private String restApiVersion;
@Autowired
private String serverUrl;
void clearWebDriver() {
webDriver.remove();
}
public WebDriver getWebDriver() {
return webDriver.get();
}
public void setWebDriver(WebDriver webDriver) {
this.webDriver.set(webDriver);
}
void clearUserProperties() {
userProperties.remove();
}
public UserProperties getUserProperties() {
return userProperties.get();
}
public void setUserProperties(UserProperties userProperties) {
this.userProperties.set(userProperties);
}
void clearWindows() {
windows.remove();
}
public List getWindows() {
return windows.get();
}
public void setWindows(List windows) {
this.windows.set(windows);
}
void clearTestUser() {
testUser.remove();
}
public String getTestUser() {
return testUser.get();
}
void setTestUser(String testUser) {
this.testUser.set(testUser);
}
void clearTestStatus() {
testStatus.remove();
}
public String getTestStatus() {
return testStatus.get();
}
void setTestStatus(String testStatus) {
this.testStatus.set(testStatus);
}
void clearTestName() {
testName.remove();
}
public String getTestName() {
return testName.get();
}
void setTestName(String testName) {
this.testName.set(testName);
}
void clearTestLog() {
testLog.remove();
}
public String getTestLog() {
return testLog.get();
}
void setTestLog(String testLog) {
this.testLog.set(testLog);
}
void clearTestCallstack() {
testCallstack.remove();
}
public String getTestCallstack() {
return testCallstack.get();
}
void setTestCallstack(String testCallstack) {
this.testCallstack.set(testCallstack);
}
void clearTestFailScreenshot() {
testFailScreenshot.remove();
}
public String getTestFailScreenshot() {
return testFailScreenshot.get();
}
void setTestFailScreenshot(String testFailScreenshot) {
this.testFailScreenshot.set(testFailScreenshot);
}
void clearProfiler() {
profiler.remove();
}
public Profiler getProfiler() {
return profiler.get();
}
void setProfiler(Profiler profiler) {
this.profiler.set(profiler);
}
void clearProfilerTestMethods() {
profilerTestMethods.remove();
}
public Profiler getProfilerTestMethods() {
return profilerTestMethods.get();
}
void setProfilerTestMethods(Profiler profilerTestMethods) {
this.profilerTestMethods.set(profilerTestMethods);
}
public Long getDefaultTimeout() {
return defaultTimeout;
}
public void setDefaultTimeout(Long defaultTimeout) {
this.defaultTimeout = defaultTimeout;
}
public String getUploadFilesPath() {
return uploadFilesPath;
}
public String getRemoteAddress() {
return remoteAddress;
}
public String getTestPassword() {
return testPassword;
}
public Boolean getRemoteWebDriver() {
return remoteWebDriver;
}
public Boolean getHeadlessMode() {
return headlessMode;
}
public void setHeadlessMode(Boolean headlessMode) {
this.headlessMode = headlessMode;
}
public Boolean getCodeCoverage() {
return codeCoverage;
}
public String getScreenshotsPath() {
return screenshotsPath;
}
public String getCiAddr() {
return ciAddr;
}
public String getBrowser() {
return browser;
}
public String getRestApiCredential() {
return restApiCredential;
}
public String getRestApiUrl() {
return restApiUrl;
}
public String getRestApiVersion() {
return restApiVersion;
}
public String getServerUrl() {
return serverUrl;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy