Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. In the VM, download Selenium Server (formerly the Selenium RC Server)
    • http://docs.seleniumhq.org/download/
    • should be  something like selenium-server-standalone-2.42.2.jar
    • and then run it, e.g. java -jar selenium-server-standalone-2.42.2.jar
      • For Selenium 3+, you'll need to get Geckodriver first and provide it's location to Selenium through the webdriver.gecko.driver (Java) system property.
        To do so, either
        • run it as java -jar -Dwebdriver.gecko.driver=/path/to/geckodriver selenium-server-standalone-3.3.1.jar
        • or once set it globally in /etc/environment, e.g. through echo
        webdriver
        • "_JAVA_OPTIONS='-Dwebdriver.gecko.driver=/path/to/geckodriver" | sudo tee -a /etc/environment
        .
        • , then log out and back in for the changes to take effect
  2. On your host run the UI Tests with the variables seleniumServerHostName which is the address of your newly created VM and containerHostName which is the address used of your VM to access your host system (this is probably not equal to your machines address in the magnolia network)

    Code Block
    languagebash
    $ mvn -U clean install -Pjetty9-standalone,ui-tests -DseleniumServerHostName=192.168.56.101 -DcontainerHostName=192.168.56.1

    If necessary replace the IP addresses.

  3. In your run configuration in IntelliJ you have to add these two variables seleniumServerHostName and containerHostName as well.


...

...