2016-03-24 5 views
-1

SOAPUIレポートを実行し、TEST - *。xmlsを生成するANTスクリプトがありました。次のANTスクリプトコードは、HTMLレポートを生成し、JUNITレポートのANTコードの下に見つける:私は現在、ANTからのGradleで全体SOAPUIテストの実行を移動し、TEST取得することができていていますSOAPUIテストの実行後にJUnit index.htmlレポートを生成するためのグラードコードが必要

<junitreport todir="${basedir}/build/soapui-reports-html"> 
    <fileset dir="/opt/jenkins/workspace/soapui-reports"> 
    <include name="**\TEST-*.xml" /> 
    </fileset> 
<report format="frames" styledir="${basedir}/styledir"    
    todir="${basedir}/build/soapui-reports-html"> 
    <param name="current-date" expression="${TODAY}"/> 
    <param name="element-name" expression="${element.name}"/> 
    </report> 
</junitreport> 

- * xmlのために。各プロジェクトJUNITレポートを取得するためのコード、つまり同じgradleスクリプトを使用するindex.htmlがある場合は、大きな助けになります。

+2

[JUNIT index.htmlレポートをGradleで作成したい](http://stackoverflow.com/questions/36193589/want-to) -create-junit-index-html-report-in-gradle) – Rao

+0

もう一度同じ質問をしていますか?応答を確認してください。http://stackoverflow.com/a/35774134/1218618 – albciff

答えて

0

this gradleプラグインを使用して、soapUI gradle統合を設定できます。前述のようにjunitReportタスクプロパティをtrueに設定して、Junitタイプのレポートを取得します。