This is the skeleton code to starting Selenium automation for a site. The skeleton uses oneexchange.com, but it can be easily updated to something else.
There are two projects in the solution:
- Healthcare.Framework - The framework used to build the automation tests.
- Healthcare.Tests - The xUnit tests for the automation tests.
- Update to the latest version of Java.
- Download the latest version of Selenium Standalone Server and save it to
C:\Selenium
on the host machine. - Run the
SeleniumGrid_HUB.bat
file included in this repo on the host machine.
On each of the nodes:
- Update to the latest version of Java.
- Update Chrome browser to the latest version via
Customize and Control Google Chrome > Settings > About
. - Download the latest version of Selenium Standalone Server and save it to
C:\Selenium
on each machine that will be one of the nodes. - Download the latest version of ChromeDriver and save it to
C:\Selenium
on each node machine. - Run the
SeleniumGrid_NODE.bat
file included in this repo on each node machine.
- Clone the directory
git clone https://github.com/fushinoryuu/AutomatedUiTests.git
. - Install the Paket dependencies
- First run
.paket\paket.bootstrapper.exe
- Then run
.paket\paket.exe install
- Change to the
AutomatedUiTests
directory and open up theHealthcareAutomatedTests.sln
file. - Update the
Healthcare.Framework\WebDriver.cs
file with the correct hub address.
- If you are running the test locally, don't update the address.
- Simply build the solution with
Ctrl + b
. - Then run the test cases through Test Explorer in Visual Studio.
Note: Builds with VS2015 and later.