------ Basic Usage :: Geronimo Selenium Plugin for Maven 2 ------ ------ $Rev$ $Date$ ~~ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ Basic Usage * Start Selenium Server (Integrated) For integration tests that need a Selenium server, use the <<>> phase to start it up in the to allow the <<>> phase to be executed with the server running. <> Currently there is no , the forked JVM will exit when Maven does. This will by default create files under <<<$\{pom.basedir\}/target/selenium>>>, including: * <<>> (if enabled) * <<>> (if enabled) +----------+ org.apache.geronimo.plugins selenium-maven-plugin start-selenium pre-integration-test start-server true +----------+ * Start Selenium Server (Standalone) To start Selenium on the command line, which is very useful while developing tests, simply execute the <<>> goal. This will start the server and block until the server has been stopped, either from the process being killed, or more normally, until CTRL-C is used to exit Maven. This is the preferred mechanism to start the server standalone, as it will setup <<>>. +----------+ mvn selenium:start-server +----------+ * Logging Output To capture the logs from Selenium to a file, enable <<>>. This will create a <<>> that captures all of the output. +----------+ org.apache.geronimo.plugins selenium-maven-plugin start-selenium pre-integration-test start-server true +----------+ * Debugging Sometimes it is useful to startup Selenium with its debug output enabled. +----------+ mvn selenium:start-server -Ddebug=true +----------+