| <?xml version="1.0" encoding="UTF-8"?><!-- | |
| * 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. | |
| --> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <groupId>org.apache.roller</groupId> | |
| <artifactId>roller-project</artifactId> | |
| <version>7.0.0-SNAPSHOT</version> | |
| <relativePath>../pom.xml</relativePath> | |
| </parent> | |
| <name>Roller Selenium tests</name> | |
| <artifactId>roller-selenium-tests</artifactId> | |
| <packaging>war</packaging> | |
| <!-- Process to run Selenium tests | |
| 1. Tests presently require Firefox browser, Chrome on the to-do list. | |
| 2. Run mvn clean install from the roller trunk or app folder, that will install Roller in your | |
| local Maven Repository. | |
| 3. Navigate to this directory and run mvn integration-test or clean install. Test results will | |
| be in target/failsafe-reports. | |
| 4. InitialLoginTestIT reads the generated setup token from logs/roller.log | |
| and submits it through the initial setup form. If using a custom logging | |
| configuration, pass -Droller.test.logFile=/absolute/path/to/roller.log. | |
| Start with a fresh test database; the setup token is single-use. | |
| To use another HTTP port, pass both -Djetty.http.port=18080 and | |
| -Droller.test.baseUrl=http://localhost:18080/roller/. | |
| --> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.seleniumhq.selenium</groupId> | |
| <artifactId>selenium-java</artifactId> | |
| <version>4.48.0</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.seleniumhq.selenium</groupId> | |
| <artifactId>selenium-firefox-driver</artifactId> | |
| <version>4.48.0</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>jakarta.servlet</groupId> | |
| <artifactId>jakarta.servlet-api</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>xerces</groupId> | |
| <artifactId>xercesImpl</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>xalan</groupId> | |
| <artifactId>xalan</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.xml.bind</groupId> | |
| <artifactId>jakarta.xml.bind-api</artifactId> | |
| <version>4.0.5</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <!-- Will bring in once we configure a Chrome option --> | |
| <!--dependency> | |
| <groupId>org.seleniumhq.selenium</groupId> | |
| <artifactId>selenium-chrome-driver</artifactId> | |
| <version>${selenium.version}</version> | |
| </dependency--> | |
| <dependency> | |
| <groupId>junit</groupId> | |
| <artifactId>junit</artifactId> | |
| <version>4.13.2</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <!-- | |
| Type "war" listed below makes this a WAR overlay (i.e., incorporating | |
| another WAR into this project in making a new WAR, with any additional | |
| WAR configuration provided (here, none) going into the new WAR. | |
| --> | |
| <dependency> | |
| <groupId>org.apache.roller</groupId> | |
| <artifactId>roller-webapp</artifactId> | |
| <version>${project.version}</version> | |
| <type>war</type> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <plugins> | |
| <!-- bump plugin version for JDK 16 compatibility (old guice version), | |
| can be removed once maven itself bumped the version --> | |
| <plugin> | |
| <artifactId>maven-war-plugin</artifactId> | |
| <version>3.5.1</version> | |
| </plugin> | |
| <!-- Activates integration tests (by default, classes under tests that end with "IT") --> | |
| <plugin> | |
| <artifactId>maven-failsafe-plugin</artifactId> | |
| <version>3.6.0</version> | |
| <executions> | |
| <execution> | |
| <goals> | |
| <goal>integration-test</goal> | |
| <goal>verify</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <!-- Activates the Roller application during the integration test phase --> | |
| <plugin> | |
| <groupId>org.eclipse.jetty.ee11</groupId> | |
| <artifactId>jetty-ee11-maven-plugin</artifactId> | |
| <configuration> | |
| <stopKey>selenium</stopKey> | |
| <stopPort>9999</stopPort> | |
| <webApp> | |
| <contextPath>/roller</contextPath> | |
| </webApp> | |
| <webAppSourceDirectory>target/roller-selenium-tests-${project.version}</webAppSourceDirectory> | |
| <jettyXmls> | |
| <jettyXml>${project.parent.basedir}/app/src/test/resources/jetty.xml</jettyXml> | |
| </jettyXmls> | |
| <systemProperties> | |
| <roller.custom.config> | |
| src/test/resources/roller-jettyrun.properties | |
| </roller.custom.config> | |
| </systemProperties> | |
| </configuration> | |
| <executions> | |
| <execution> | |
| <id>start-jetty</id> | |
| <phase>pre-integration-test</phase> | |
| <goals> | |
| <goal>start</goal> | |
| </goals> | |
| <configuration> | |
| <!-- great for debugging classpath issues --> | |
| <dumpOnStart>false</dumpOnStart> | |
| </configuration> | |
| </execution> | |
| <execution> | |
| <id>stop-jetty</id> | |
| <phase>post-integration-test</phase> | |
| <goals> | |
| <goal>stop</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.apache.roller</groupId> | |
| <artifactId>db-utils</artifactId> | |
| <version>7.0.0-SNAPSHOT</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.commons</groupId> | |
| <artifactId>commons-dbcp2</artifactId> | |
| <version>2.14.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.derby</groupId> | |
| <artifactId>derby</artifactId> | |
| <version>${derby.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.derby</groupId> | |
| <artifactId>derbyclient</artifactId> | |
| <version>${derby.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.mail</groupId> | |
| <artifactId>jakarta.mail-api</artifactId> | |
| <version>2.1.5</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse.angus</groupId> | |
| <artifactId>angus-mail</artifactId> | |
| <version>2.0.5</version> | |
| </dependency> | |
| </dependencies> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </project> |