を使用してテストケースのためのタグを指定するには、このようなSOAP UIのテストケース用のタグを指定することも可能です:はSOAPUI-プロのmaven-pluginの
私はSOAP UI Mavenプラグインを使用しています異なる環境で機能テストスイートを実行するためには、呼び出しでタグを指定することでテストケースのいくつかを除外できるようにすると便利です。
(異なるテストスイートを切断交差テストのサブセットのみを実行することができるように)タグを指定するMavenプラグインのための構成パラメータが存在しないように見えます:
https://www.soapui.org/test-automation/maven/maven-2-x.html
をしかしGUIまたはコマンドラインから実行するときに、タグを指定することも可能です。
http://readyapi.smartbear.com/features/automation/testrunner/cli
あなたはテストを指定することが可能であることを上記のリンクから見ることができます-Tスイッチを使用してタグ付けされています。
これはMavenプラグインの単なる制限ですか?
Groovyスタートアップスクリプトの実行中に環境変数を読み取り、指定したタグを持たないテストケースを無効にして、タグを指定してシミュレートすることはできますか?次のように
Mavenの呼び出しは次のとおりです。
mvn test -Dmyenv="dev" com.smartbear.soapui:soapui-pro-maven-plugin:5.2.1:test
のpom.xmlは、次のようになります。
<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>
<groupId>testing</groupId>
<artifactId>testing</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<prerequisites>
<maven>3.0.5</maven>
</prerequisites>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>
<pluginRepositories>
<pluginRepository>
<id>SmartBearPluginRepository</id>
<url>http://www.soapui.org/repository/maven2/</url>
</pluginRepository>
<pluginRepository>
<id>mvnPluginRepository</id>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven/mule/dependencies/maven2/</url>
</pluginRepository>
<pluginRepository>
<id>codehausPluginRepository</id>
<url>https://nexus.codehaus.org/content/groups/snapshots-group/org/codehaus/mojo/</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui-pro-maven-plugin</artifactId>
<version>5.2.1</version>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.6</version>
</dependency>
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.1-901-1.jdbc4</version>
</dependency>
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections-maven</artifactId>
<version>0.9.9-RC1</version>
</dependency>
</dependencies>
<configuration>
<projectFile>${basedir}/my-project</projectFile>
<outputFolder>${basedir}/surefire-reports</outputFolder>
<printReport>true</printReport>
<junitReport>true</junitReport>
<exportAll>true</exportAll>
<reportFormat>HTML</reportFormat>
<testFailIgnore>true</testFailIgnore>
<coverage>true</coverage>
<environment>${myenv}</environment>
</configuration>
<executions>
<execution>
<phase>test</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.10</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
あなたが何を後にしているかわかりません。このようなもの:https://siking.wordpress.com/2014/01/29/defining-test-categories-in-soapui/? – SiKing