Selenium Integration test steps let you import test scripts for web-based user interfaces from Selenium Builder to DevTest Solutions. The recording of these test scripts requires Selenium Builder, which is only supported in Firefox. After you import the test to DevTest, you can run the test in Mozilla Firefox, Google Chrome, or Internet Explorer 8.0 or later. You can also run the test in either a local or remote browser.
You can run Selenium Integration tests like any other test cases in DevTest. However, running these tests in a browser other than Firefox requires additional prerequisite tasks. For general information about running a test case, see Running Test Cases and Suites.
This topic describes how to run a Selenium Integration test case on Google Chrome on your local computer.
Follow these steps:
Value: Chrome
Value: The full path to the Chrome driver you downloaded. For example: C:\lisa-se\chromedriver.exe.
Note: Add these properties to project.config before you add them to other project configuration files.
This topic describes how to run a Selenium Integration test case on Internet Explorer on your local computer.
Follow these steps:
Note: Because of a known issue with 64-bit driver performance, we recommend that you install the 32-bit version, even if you use a 64-bit system.
Value: IE
Value: The full path to the Internet Explorer driver you downloaded. For example: C:\lisa-se\IEDriverServer.exe.
Note: Add these properties to project.config before you add them to other project configuration files.
This topic describes how to run a Selenium Integration test case on a remote browser. The remote browser can be Mozilla Firefox, Google Chrome, or Internet Explorer 8.0 or later.
Follow these steps:
java -jar selenium-server-standalone-2.xx.0.jar -role hub
java -jar selenium-server-standalone-2.xx.0.jar -role node -hub http://localhost:4444/grid/register -Dwebdriver.chrome.driver=c:\lisa-se\chromedriver.exe -Dwebdriver.ie.driver=c:\lisa-se\IEDriverServer.exe
Values: IE, Firefox, or Chrome
Value: URL to the remote Selenium Server hub. For example, http://your_remote_hostname:4444/wd/hub.
If you plan to run Selenium Integration tests on multiple browsers, create a project configuration file for each browser type. You can then run the tests on multiple browsers by making different configuration files active for each test run. For more information about configuration files, see Configurations.
Note: You must add these properties to project.config before you add them to other project configuration files.
The test runs on the selected browser on the remote computer.
Note: For more information about using Selenium Server in a Grid configuration, see https://code.google.com/p/selenium/wiki/Grid2.
Copyright © 2014 CA Technologies.
All rights reserved.
|
|