All of the goodness lives in the basePage and baseTest classes.
Check out the project f=plan for the upcoming features that will be added to this framework.
Run these commands depending on your base OS.
Copy this bootstrap script and run it in a Terminal shell window:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/lazycoderio/FluentJava/master/mac-bootstrap.sh)"
It installs the following if it is not already installed:
- Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install Caskroom
brew tap caskroom/cask
- If you dont have the Java Development Kit (JDK) run this command
brew cask install java
- Install Maven
brew install maven
- Run
./mac_install_browsers.sh
The script also runs the test.
This is currently having a few issue
-
Download the zip file or clone this repository.
-
Navigate to the unzipped folder within the file browser.
-
Right-Click on
windows_install.bat
and selectRun as Administrator
-
Test the installation by running the following from a command window in the directory of this project
mvn test -Dsurefire.suiteXmlFiles=windows-only.xml
- The script should install Chocolatey the Windows package manager.
- Install latest versions of a. Firefox b. Chrome c. PhantomJS
- Selenium drivers for the above and the Edgedriver
mvn clean test -Dsurefire.suiteXmlFiles=all.xml site jetty:run
clean test -Dsurefire.suiteXmlFiles=all.xml
The surefire plugin is there to run specific suite files.
Teh suite files are used so that entire suites can easily be shared and executed.
site
jetty:run
Visit (http://localhost:8080)[http://localhost:8080] to view the HTML report
If this project is in IntelliJ Idea there is a shared runs so you can just use the built in Run
commands in IntelliJ to run tests, generate reports and start up a Jetty Server with the results, instead of typing up the commands yourself.