How To Running Locally:
- When testing against the local application (i.e.
-Dremote.public.url=localhost:8080...
) the local application must be up and running.
From the command line, (remove it.test or -Dmaven.failsafe.includes to run them all) see below for more configuration settings:
- From IntelliJ use JVM args for server to run tests against and not closing at the end of the run.
- Enable JUnit test environment plugin (if not already enabled)
File -> Settings -> IDE Settings -> Plugins
Check the checkboxes JUnit - Create Run Configuration for test:
- -Dremote.public.url=localhost:8080/kr-dev -Dremote.driver.dontTearDown=y
- -Dremote.public.url=localhost:8080/krad-dev -Dremote.driver.dontTearDownOnFailure=y -Dremote.driver.highlight=true -Dremote.jgrowl.enabled=false -Dremote.public.wait.seconds=8 -Dremote.driver.step.screenshot=true
- -Dremote.public.url=env3.rice.kuali.org -Dremote.driver.dontTearDown=y
- Run or Debug the test from the Run Configuration
Running Locally with Chrome:
- Install the chromedriver http://chromedriver.storage.googleapis.com/index.html
How To Run a Selenium Test on Saucelabs.
- Signup for your free Saucelabs.com account.
- Recompile Smoke Tests:
Using your sauce credentials (username and key from My Account) and the first maven command line way above, append configuration values for:
How To Run a Selenium Test through a Selenium hub
Using command line from above, append configuration values for: