public class ApplicationManager extends Object
| Constructor and Description |
|---|
ApplicationManager(com.smartbear.testleft._internal.DriverBase driver,
com.smartbear.testleft._internal.webclient.WebClientApi api) |
| Modifier and Type | Method and Description |
|---|---|
List<BrowserInfo> |
getBrowsers()
Returns information about all the supported browsers that are available on the current computer.
|
TestProcess |
run(String path)
Runs the specified application and returns its process object.
|
TestProcess |
run(String path,
String commandLine)
Runs the specified application and returns its process object.
|
TestProcess |
run(String path,
String commandLine,
String workingFolder)
Runs the specified application and returns its process object.
|
TestProcess |
runAs(String path,
String userName,
String password)
Runs an application under another user account and returns the application process object.
|
TestProcess |
runAs(String path,
String userName,
String password,
String commandLine)
Runs an application under another user account and returns the application process object.
|
TestProcess |
runAs(String path,
String userName,
String password,
String commandLine,
String workingFolder)
Runs an application under another user account and returns the application process object.
|
WebBrowser |
runBrowser(BrowserInfo info)
Launches a web browser and, if a URL is specified, navigates to the web page.
|
WebBrowser |
runBrowser(BrowserInfo info,
String url)
Launches a web browser and, if a URL is specified, navigates to the web page.
|
WebBrowser |
runBrowser(BrowserInfo info,
String url,
Integer waitTime)
Launches a web browser and, if a URL is specified, navigates to the web page.
|
WebBrowser |
runBrowser(BrowserInfo info,
String url,
Integer waitTime,
String additionalCommandLine)
Launches a web browser and, if a URL is specified, navigates to the web page.
|
WebBrowser |
runBrowser(BrowserInfo info,
String url,
String additionalCommandLine)
Launches a web browser and, if a URL is specified, navigates to the web page.
|
WebBrowser |
runBrowser(BrowserType family)
Launches a web browser and, if a URL is specified, navigates to the web page.
|
WebBrowser |
runBrowser(BrowserType family,
PlatformType platform)
Launches a web browser of a particular bitness (32-bit or 64-bit).
|
WebBrowser |
runBrowser(BrowserType family,
PlatformType platform,
String url)
Launches a web browser of a particular bitness (32-bit or 64-bit) and, if a URL is specified, navigates to the web page.
|
WebBrowser |
runBrowser(BrowserType family,
PlatformType platform,
String url,
Integer waitTime)
Launches a web browser of a particular bitness (32-bit or 64-bit) and, if a URL is specified, navigates to the web page.
|
WebBrowser |
runBrowser(BrowserType family,
PlatformType platform,
String url,
Integer waitTime,
String additionalCommandLine)
Launches a web browser of a particular bitness (32-bit or 64-bit) and, if a URL is specified, navigates to the web page.
|
WebBrowser |
runBrowser(BrowserType family,
PlatformType platform,
String url,
String additionalCommandLine)
Launches a web browser of a particular bitness (32-bit or 64-bit) and, if a URL is specified, navigates to the web page.
|
WebBrowser |
runBrowser(BrowserType family,
String url)
Launches a web browser and, if a URL is specified, navigates to the web page.
|
WebBrowser |
runBrowser(BrowserType family,
String url,
int waitTime)
Launches a web browser and, if a URL is specified, navigates to the web page.
|
WebBrowser |
runBrowser(BrowserType family,
String url,
int waitTime,
String additionalCommandLine)
Launches a web browser and, if a URL is specified, navigates to the web page.
|
WebBrowser |
runBrowser(BrowserType family,
String url,
String additionalCommandLine)
Launches a web browser and, if a URL is specified, navigates to the web page.
|
WinRTProcess |
runPackage(String packageName)
Runs a Windows Store application package and returns the application process object.
|
public ApplicationManager(com.smartbear.testleft._internal.DriverBase driver,
com.smartbear.testleft._internal.webclient.WebClientApi api)
public List<BrowserInfo> getBrowsers() throws ApiException, HttpException
ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public TestProcess run(String path) throws ApiException, HttpException
path - The path to the application. Can be specified as a fully-qualified path, as the application name (if the application is in PATH environment variables), or by using environment variables (%PROGRAMFILES%, %USERPFOFILE%).TestProcess object that corresponds to the launched application instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public TestProcess run(String path, String commandLine) throws ApiException, HttpException
path - The path to the application. Can be specified as a fully-qualified path, as the application name (if the application is in PATH environment variables), or by using environment variables (%PROGRAMFILES%, %USERPFOFILE%).commandLine - Command-line arguments for the application.TestProcess object that corresponds to the launched application instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public TestProcess run(String path, String commandLine, String workingFolder) throws ApiException, HttpException
path - The path to the application. Can be specified as a fully-qualified path, as the application name (if the application is in PATH environment variables), or by using environment variables (%PROGRAMFILES%, %USERPFOFILE%).commandLine - Command-line arguments for the application.workingFolder - The path to the working folder of the application.TestProcess object that corresponds to the launched application instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public TestProcess runAs(String path, String userName, String password) throws ApiException, HttpException
path - The path to the application. Can be specified as a fully-qualified path, as the application name (if the application is in PATH environment variables), or by using environment variables (%PROGRAMFILES%, %USERPFOFILE%).userName - The user name (in the format Domain\UserName) to be used to run the application.password - The user's password.TestProcess object that corresponds to the launched application instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public TestProcess runAs(String path, String userName, String password, String commandLine) throws ApiException, HttpException
path - The path to the application. Can be specified as a fully-qualified path, as the application name (if the application is in PATH environment variables), or by using environment variables (%PROGRAMFILES%, %USERPFOFILE%).userName - The user name (in the format Domain\UserName) to be used to run the application.password - The user's password.commandLine - Command-line arguments for the application.TestProcess object that corresponds to the launched application instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public TestProcess runAs(String path, String userName, String password, String commandLine, String workingFolder) throws ApiException, HttpException
path - The path to the application. Can be specified as a fully-qualified path, as the application name (if the application is in PATH environment variables), or by using environment variables (%PROGRAMFILES%, %USERPFOFILE%).userName - The user name (in the format Domain\UserName) to be used to run the application.password - The user's password.commandLine - Command-line arguments for the application.workingFolder - The path to the working folder of the application.TestProcess object that corresponds to the launched application instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public WinRTProcess runPackage(String packageName) throws ApiException, HttpException
packageName - The application package name as it is specified in the package manifest.WinRTProcess object that corresponds to the launched application instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public WebBrowser runBrowser(BrowserInfo info) throws ApiException, HttpException
info - The BrowserInfo object that specifies the browser to run. Use the testLeft.driver.getApplications().getBrowsers() property to get a list of BrowserInfo objects for all installed browsers. To learn more, see Run a Web Browser in TestLeft documentation.WebBrowser object that corresponds to the launched browser instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public WebBrowser runBrowser(BrowserInfo info, String url) throws ApiException, HttpException
info - The BrowserInfo object that specifies the browser to run. Use the testLeft.driver.getApplications().getBrowsers() property to get a list of BrowserInfo objects for all installed browsers. To learn more, see Run a Web Browser in TestLeft documentation.url - The URL of the web page to open in the browser.WebBrowser object that corresponds to the launched browser instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public WebBrowser runBrowser(BrowserInfo info, String url, Integer waitTime) throws ApiException, HttpException
info - The BrowserInfo object that specifies the browser to run. Use the testLeft.driver.getApplications().getBrowsers() property to get a list of BrowserInfo objects for all installed browsers. To learn more, see Run a Web Browser in TestLeft documentation.url - The URL of the web page to open in the browser.waitTime - The time (in milliseconds) to wait until the browser loads the page and becomes ready to accept user input.WebBrowser object that corresponds to the launched browser instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public WebBrowser runBrowser(BrowserInfo info, String url, Integer waitTime, String additionalCommandLine) throws ApiException, HttpException
info - The BrowserInfo object that specifies the browser to run. Use the testLeft.driver.getApplications().getBrowsers() property to get a list of BrowserInfo objects for all installed browsers. To learn more, see Run a Web Browser in TestLeft documentation.url - The URL of the web page to open in the browser.waitTime - The time (in milliseconds) to wait until the browser loads the page and becomes ready to accept user input.additionalCommandLine - Command-line arguments for the browser.WebBrowser object that corresponds to the launched browser instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public WebBrowser runBrowser(BrowserInfo info, String url, String additionalCommandLine) throws ApiException, HttpException
info - The BrowserInfo object that specifies the browser to run. Use the testLeft.driver.getApplications().getBrowsers() property to get a list of BrowserInfo objects for all installed browsers. To learn more, see Run a Web Browser in TestLeft documentation.url - The URL of the web page to open in the browser.additionalCommandLine - Command-line arguments for the browser.WebBrowser object that corresponds to the launched browser instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public WebBrowser runBrowser(BrowserType family, PlatformType platform) throws ApiException, HttpException
family - The browser's family name.platform - The browser bitness - 32-bit, 64-bit or any.WebBrowser object that corresponds to the launched browser instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public WebBrowser runBrowser(BrowserType family, PlatformType platform, String url) throws ApiException, HttpException
family - The browser's family name.platform - The browser bitness - 32-bit, 64-bit or any.url - The URL of the web page to open in the browser.WebBrowser object that corresponds to the launched browser instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public WebBrowser runBrowser(BrowserType family, PlatformType platform, String url, Integer waitTime) throws ApiException, HttpException
family - The browser's family name.platform - The browser bitness - 32-bit, 64-bit or any.url - The URL of the web page to open in the browser.waitTime - The time (in milliseconds) to wait until the browser loads the page and becomes ready to accept user input.WebBrowser object that corresponds to the launched browser instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public WebBrowser runBrowser(BrowserType family, PlatformType platform, String url, Integer waitTime, String additionalCommandLine) throws ApiException, HttpException
family - The browser's family name.platform - The browser bitness - 32-bit, 64-bit or any.url - The URL of the web page to open in the browser.waitTime - The time (in milliseconds) to wait until the browser loads the page and becomes ready to accept user input.additionalCommandLine - Command-line arguments for the browser.WebBrowser object that corresponds to the launched browser instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public WebBrowser runBrowser(BrowserType family, PlatformType platform, String url, String additionalCommandLine) throws ApiException, HttpException
family - The browser's family name.platform - The browser bitness - 32-bit, 64-bit or any.url - The URL of the web page to open in the browser.additionalCommandLine - Command-line arguments for the browser.WebBrowser object that corresponds to the launched browser instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public WebBrowser runBrowser(BrowserType family) throws ApiException, HttpException
family - The browser's family name.WebBrowser object that corresponds to the launched browser instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public WebBrowser runBrowser(BrowserType family, String url) throws ApiException, HttpException
family - The browser's family name.url - The URL of the web page to open in the browser.WebBrowser object that corresponds to the launched browser instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public WebBrowser runBrowser(BrowserType family, String url, int waitTime) throws ApiException, HttpException
family - The browser's family name.url - The URL of the web page to open in the browser.waitTime - The time (in milliseconds) to wait until the browser loads the page and becomes ready to accept user input.WebBrowser object that corresponds to the launched browser instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public WebBrowser runBrowser(BrowserType family, String url, int waitTime, String additionalCommandLine) throws ApiException, HttpException
family - The browser's family name.url - The URL of the web page to open in the browser.waitTime - The time (in milliseconds) to wait until the browser loads the page and becomes ready to accept user input.additionalCommandLine - Command-line arguments for the browser.WebBrowser object that corresponds to the launched browser instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.public WebBrowser runBrowser(BrowserType family, String url, String additionalCommandLine) throws ApiException, HttpException
family - The browser's family name.url - The URL of the web page to open in the browser.additionalCommandLine - Command-line arguments for the browser.WebBrowser object that corresponds to the launched browser instance.ApiException - Thrown if the application cannot be launched.HttpException - Thrown if there are network problems.Copyright © 2020 SmartBear Software. All Rights Reserved.