2017-11-27 1 views
0

은 매우 이상하고 좌절 한 상황에 처했습니다.Japkins 로그에서 SoapUI 요청 페이로드가 누락되었습니다.

현재 Ubuntu에서 SoapUI를 사용하여 REST 서비스를 테스트하고 있습니다. soapui.log뿐만 아니라 각 요청에 대해 생성 된 텍스트 파일에서도 각 요청 (헤더, url 및 payload 요청, 응답 헤더 및 메시지)에 대한 전체 정보를 볼 수 있습니다. 이는 testrunner UI뿐만 아니라 CLI에서도 가능합니다.

그러나 Jenkins를 통해 테스트를 실행하고 로그를 확인하면 JUST 요청 페이로드 (JSON)가 누락됩니다. 이것은 개발자가 알아야 할 첫 번째 정보입니다. 문제를 조사.

나는 젠킨스이 바로 이러한 작업을 수행하는 것. 나는 CLI를 통해의 TestRunner를 실행 젠킨스 사용자를 사용하고 있음을 알 수 있습니까 이상 약간의 제어 및 가시성을 가지고있다.

수있는 사람의 t을 요청 페이로드가 기록되지 않을 수있는 설정 또는 구성이 있습니까? 나는 젠킨스가 뭔가 다른 것을하고 있다고 가정하지만 나는 무엇을 말할 수 없다.

+0

? CLI를 통해 사용하는 것과 동일합니까? – Rao

+0

예, 일부 파일 경로를 제외하고는 거의 동일합니다. /opt/SoapUI-5.3.0/bin/testrunner.sh -r -j -f target/test-reports API-Tests.xml –

+0

soapui가 있습니까? -settings.xml이 컴퓨터마다 다른가요? 프로젝트의 절대 경로를 시도 했습니까? – Rao

답변

-1

또 다른 옵션은 상세 로그를 포함해야

<?xml version="1.0" encoding="UTF-8"?> 
<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>nz.geek.karit.app</groupId> 
    <artifactId>app</artifactId> 
    <packaging>jar</packaging> 
    <version>1.0-SNAPSHOT</version> 
    <name>app</name> 
    <url>http://maven.apache.org</url> 
    <!--Add the repository for where Maven can find the soapUI Plugin--> 
    <pluginRepositories> 
     <pluginRepository> 
     <id>smartbear-sweden-plugin-repository</id> 
     <url>http://smartbearsoftware.com/repository/maven2/</url> 
     </pluginRepository> 
    </pluginRepositories> 
    <build> 
     <plugins> 
     <plugin> 
      <groupId>com.smartbear.soapui</groupId> 
      <artifactId>soapui-maven-plugin</artifactId> 
      <!--This is the version of soapUI to grab from plugin repo--> 
      <!--At the time of writing the 3.0.1 plugin had not been created--> 
      <version>5.3.0</version> 
      <configuration> 
       <!--The location of your soapUI setting file--> 
       <projectFile>/home/test/test.xml</projectFile> 
       <!--Where to place the output of the run--> 
       <outputFolder>/home/test/output/</outputFolder> 
       <!--Make the jUnit results file--> 
       <junitReport>true</junitReport> 
      </configuration> 
      <executions> 
       <execution> 
        <id>soapUI</id> 
        <!--Run as part of the test phase in the Maven lifecycle--> 
        <phase>test</phase> 
        <goals> 
        <!--Run the test phase of eviware:maven-soapui-plugin--> 
        <goal>test</goal> 
        </goals> 
       </execution> 
      </executions> 
     </plugin> 
     </plugins> 
    </build> 
</project> 

출력 폴더 젠킨스

에 SoapUI 받는다는 플러그인을 사용하여을 testcases를 실행할 수 있습니다. 더 많은 정보를 들어

은 참조 : 당신이 테스트를 실행하기 위해 젠킨스에 사용합니까 어떤 명령 http://blog.karit.geek.nz/2009/08/using-soapui-to-do-testing-as-part-of.html

+1

이 Maven 구성은 심각하게 오래되었으며 응답에 JUnit에 대한 의존성과 같은 많은 관련성없는 정보가 포함되어 있습니다. – SiKing

+0

귀하의 의견에 @SiKing 감사합니다. –