#maven #maven-3 #soapui #maven-surefire-plugin
Вопрос:
Я запускаю тесты пользовательского интерфейса SOAP с использованием Maven. Он хорошо работает, но не может видеть index.html файл, в котором мы можем видеть общий статус выполнения.
Я использую следующее POM.xml. Пожалуйста, подскажите, не упустил ли я чего-нибудь ?
Также может ли кто-нибудь, пожалуйста, подсказать, как мы можем создавать отчеты в формате .pdf с помощью maven ?
Моя установленная версия-3.6.0
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.XpressBees.app</groupId>
<artifactId>Cargo</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>Cargo Booking</name>
<properties>
<soapui.junitReport>true</soapui.junitReport>
<soapui.exportAll>true</soapui.exportAll>
<soapui.printReport>true</soapui.printReport>
<soapui.outputFolder>target/surefire-reports</soapui.outputFolder>
<soapui.reportFormat>PDF</soapui.reportFormat>
<soapui.reportName>maven_pdf_report</soapui.reportName>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<!-- Adding SoapUI Maven plugin -->
<pluginRepositories>
<pluginRepository>
<id>SmartBearPluginRepository</id>
<url>http://www.soapui.org/repository/maven2/</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<dependencies>
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>0.9.9-RC1</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.10-FINAL</version>
<exclusions>
<exclusion>
<groupId>org.apache.xmlbeans</groupId>
<artifactId>xmlbeans</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui-maven-plugin</artifactId>
<version>5.1.2</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<id>p1</id>
<configuration>
<projectFile>CargoBooking-soapui-project.xml</projectFile>
<projectProperties>
<value>testType=${testType}</value>
</projectProperties>
<!-- testSuite>TestSuite 1</testSuite> <testCase>TestCase 1</testCase>
<Make the jUnit results file -->
<testSuite>${a_property_name}</testSuite>
<junitReport>${soapui.junitReport}</junitReport>
<printReport>${soapui.printReport}</printReport>
<exportAll>${soapui.exportAll}</exportAll>
<reportFormat>${soapui.reportFormat}</reportFormat>
<reportName>${soapui.reportName}</reportName>
<outputFolder>${soapui.outputFolder}</outputFolder>
<soapuiProperties>
<property>
<name>soapui.home</name>
<value>/home/vishalpachputexb6117/SmartBear/SoapUI-5.6.0/bin</value>
</property>
</soapuiProperties>
<readyApiProperties>
<property>
<name>soapui.home</name>
<value>/home/vishalpachputexb6117/SmartBear/SoapUI-5.6.0/bin</value>
</property>
</readyApiProperties>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.0.0-M9</version>
</plugin>
</plugins>
</build>
</project>