を使用してsoapuiにプロパティファイルを動的に呼び出します。Apache ANTを使用してSoapUI APIオートメーションスイートを起動するためにjenkinsジョブをセットアップしました。 スイートを実行する前に、まず外部プロパティファイルを呼び出してプロパティをロードする必要があります。ANT
のbuild.xml:
<project name="soapUI Nightly Build" default="testreport" basedir=".">
<target name ="soapui">
<exec dir="." executable="C:/IntegerationAPI/APIPackage/SoftwareRequired/SoapUI/SoapUI-5.2.1/bin/testrunner.bat">
<arg line="-j -f 'C:/Program Files (x86)/Jenkins/workspace/IntegerationAPI-2' 'C:/IntegerationAPI/APIPackage/SOAP_Script/VisitorSearchAPI-soapui-project.xml'"/>
</exec>
</target>
<target name ="testreport" depends ="soapui">
<junitreport todir="C:/Program Files (x86)/Jenkins/workspace/IntegerationAPI-2">
<fileset dir="C:/Program Files (x86)/Jenkins/workspace/IntegerationAPI-2">
<include name="TEST-*.xml"/>
</fileset>
<report todir="C:/Program Files (x86)/Jenkins/workspace/IntegerationAPI-2/HTML"
styledir="C:/apache-ant-1.9.6-bin/apache-ant-1.9.6/etc"
format="noframes">
</report>
</junitreport>
</target>
</project>
プロパティファイルのパス:
C:\IntegerationAPI\APIPackage\Property_Files\VisitorSearchProperties.Properties
はどのようにこれを行うことができますか?
私は従いませんが、Ant [propertyfile task](http://ant.apache.org/manual/Tasks/propertyfile.html)は使用できませんか? –
どこにロードする必要がありますか? 'build.xml'には?またはsoapuiプロジェクト/スイート? – Rao
スクリプトの最初に ''タスクを使用するだけで問題はありますか?あなたはそれが動的に読み込まれるようにしたいと言っていますが、その部分がどのような方法で動的である必要があるかを示していません。スクリプト内の他のファイルパスはすべてハードコードされていますが、なぜ同様の問題ではないのですか? –
CAustin