2015-10-12 2 views
0

Как импортировать проект SoapUI и привязать его к моему текущему проекту Maven Eclipse и уметь видеть этот проект SoapUI, когда я нахожусь в представлении Java Perspective?Импорт тестов soapui на eclipse

У меня есть проект SoapUI, который я бы хотел импортировать в проект Eclipse Maven.
Я могу импортировать этот проект SoapUI для затмения, когда я перехожу к представлению перспективы SoapUI и делаю «Импорт проекта». Это отлично работает.
Я хочу, чтобы мой maven-плагин выполнял проекты/testCases/testSuites в моем текущем файле проекта soapUI. Это, вероятно, просто, я просто не вижу, как сделать эту окончательную связь между проектами soapUI и eclipse, чтобы запускать все проекты и получать отчеты.

ответ

0

enter link description here Вы, вероятно, ищет Maven-SoapUI-плагин - настроить его в pom.xml сборки - блок:

<plugin> 
    <groupId>eviware</groupId> 
    <artifactId>maven-soapui-plugin</artifactId> 
    <executions> 
     <execution> 
      <id>soap-integration-test</id> 
      <phase>integration-test</phase> 
      <goals> 
       <goal>test</goal> 
      </goals> 
      <configuration> 
       <projectFile>${basedir}/target/path/to/your/soapUIprojectFile.xml</projectFile> 
       <!-- move reports directly to surefire-reports--> 
       <outputFolder>${basedir}/target/surefire-reports</outputFolder> 
       <junitReport>true</junitReport> 
       <printReport>true</printReport> 
       <!--move soapui-logs into target dir--> 
       <soapuiProperties> 
        <property> 
         <name>soapui.logroot</name> 
         <value>${project.build.directory}/soapui/logs/${soapui.testsuite.version}/</value> 
        </property> 
       </soapuiProperties> 
      </configuration> 
     </execution> 
    </executions> 
    <dependencies> 
     <dependency> 
      <groupId>junit</groupId> 
      <artifactId>junit</artifactId> 
      <version>${junit.junit_version}</version> 
      <scope>runtime</scope> 
     </dependency> 
     ... 
    </dependencies> 
</plugin> 

Поищите подробнее here