r# EASEY - Test Automation
Automated test scripts for EASEY applications
These languages, programs, and applications are necessary for the installation and use of the EASEY-testing REPO
- Java 11
- Maven
- ChromeDriver (Placed in directory, see below)
- IntelliJ (IDE, good starting port)
Maven 3.8.5 - Ensure Chrome and ChromeDriver are the same version by using the latest release for both.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes
- Make sure maven gets added to the PATH system environment variable
- Note: This doesn't always happen during installation, check if
mvn -version
will run in command line
- Note: This doesn't always happen during installation, check if
- install the chromedriver to a folder named
driver
in the home directory- I.e. for Windows
C:/Users/%USERNAME%/driver/chromedriver.exe)
- I.e. for Windows
- Run
mvn install
to install the dependency packages
-
-Dname (required) - This is the name of tests to run. - It does not have to be the whole name, but can be a partial string, and will match to all of the tests that contains the provided name. - Multiple names can be included by separating the values with a comma - Start the value with a
!
or~
to exclude tests with that value -
-Dmode
- Default:
single
- Alternate Option:
multiple
- Runs tests specified in multiple.xml
- Default:
-
-Drunmode (optional)
- Default:
local
- Alternative Option:
browserStack
, which will run headless (aka no gui)
- Default:
-
-Ddebug (optional)
- Default:
false
- Alternative option:
true
- Turn on debug methods, i.e
pause
&debugPrint
- Default:
-
-Denv (optional)
- Default:
env
- Alternate Option:
beta
- Default:
-
-Dbrowser (optional)
- Default:
chrome
- Default:
mvn test -Dname=*
- When? Chrome will update automatically in most cases. You will experience an error message similar to "SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version #.#"
- How?
- Check chrome version: three dots in the top right of chrome, help, about
- Download a chromedriver that matches your new chrome version
- Unzip the file in your Downloads folder
- Copy the content and paste here, replacing the old version:
C:/Users/%USERNAME%/driver/)
- Remember to restart your IDE
This project is licensed under the MIT License. We encourage you to read this project’s License, Contributing Guidelines, and Code of Conduct.
The United States Environmental Protection Agency (EPA) GitHub project code is provided on an "as is" basis and the user assumes responsibility for its use. EPA has relinquished control of the information and no longer has responsibility to protect the integrity , confidentiality, or availability of the information. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by EPA. The EPA seal and logo shall not be used in any manner to imply endorsement of any commercial product or activity by EPA or the United States Government.