2017-11-27 12 views
0

は非常に奇妙で不満な状況に陥っています。ジェンキンスのログにSoapUI要求のペイロードがありません

私は現在、UbuntuでSoapUIを使用してRESTサービスをテストしています。 soapui.logではなく、各リクエストについて生成されたテキストファイルでも、各リクエスト(ヘッダー、url、ペイロード、レスポンスヘッダー、およびメッセージをリクエストします)に関するすべての情報を見ることができます。これは、testrunner UIからもCLIからでも

しかし、Jenkins経由でテストを実行してログを確認すると、リクエストペイロード(JSON)が欠落しています。これは開発者が知る必要がある最初の情報です問題を調査。

私はジェンキンスはない正確に何をほとんど制御と可視性を持っている。私はCLI経由でテストランナーを実行するために、ジェンキンスのユーザーを使用していることを知っています。

缶誰トン要求のペイロードが記録されないような設定や構成のヒント?私はジェンキンスが何か異なることをやっている/設定していると仮定しますが、私は何を伝えることはできません。

+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のMavenプラグインを使用してテストケースを実行することであってもよいです。詳細は参照してください

http://blog.karit.geek.nz/2009/08/using-soapui-to-do-testing-as-part-of.html

+1

このMavenの設定は古くなっており、あなたの回答には無関係な情報(JUnitへの依存性など)がたくさん含まれています。 – SiKing

+0

あなたのコメントのために@SiKingに感謝し、私はpomを更新しました –

関連する問題