1

こんにちは、私は現在、Control-M によって手動で生成されたデータ (「ベースライン」と呼ばれる) と、ハドソン エージェントを介して Control-M によって生成されたデータ (「回帰」と呼ばれる) のデータ精度と整合性を比較するための検証ツールを実行しています。

以下は、verification-job-sort.xml のコードです。最初にベースライン データ テーブルと回帰データ テーブルの間でソートします。

以下はベースライン部分です。<constructor-arg value=""/> 列番号を入れる場所です。0,1,2/etc を試しましたが、テーブル内のデータを並べ替えていません。

    <bean id="baseline_file49_sortingTasklet" 
            class="com.hsbc.gbm.grt.bart.regression.verification.springbatch.FlatFileSortingTasklet"> 
            <property name="inputFilePath" value="D:\WR_BART\DRR\Baseline\CDM_DRR_MI_IP_MTM.${Baseline}.csv"/> 
            <property name="tmpDirPath" value="D:\WR_BART\DRR\Baseline\tmp"/> 
            <property name="outputDirPath" value="D:\WR_BART\DRR\Baseline\tmp"/> 
            <property name="linesToSkip" value="0"/> 
            <property name="overwriteIfOutputFileExists" value="true"/> 
            <property name="partitionSizeInMB" value="384"/> 

            <property name="comparator"> 
                    <bean class="com.hsbc.gbm.grt.bart.regression.verification.file.DelimitedLineComparator"> 
                            <constructor-arg value=""/> 
                            <constructor-arg value=","/> 
                    </bean> 
            </property> 
</bean>

次に、下のものは回帰部分です。上と同じです、試してみました。

    <bean id="regression_file49_sortingTasklet" 
            class="com.hsbc.gbm.grt.bart.regression.verification.springbatch.FlatFileSortingTasklet"> 
            <property name="inputFilePath" value="D:\WR_BART\DRR\Regression\CDM_DRR_MI_IP_MTM.${Regression}.csv"/> 
            <property name="tmpDirPath" value="D:\WR_BART\DRR\Regression\tmp"/> 
            <property name="outputDirPath" value="D:\WR_BART\DRR\Regression\tmp"/> 
            <property name="linesToSkip" value="0"/> 
            <property name="overwriteIfOutputFileExists" value="true"/> 
            <property name="partitionSizeInMB" value="384"/> 

           <property name="comparator"> 
                    <bean class="com.hsbc.gbm.grt.bart.regression.verification.file.DelimitedLineComparator"> 
                            <constructor-arg value=""/> 
                            <constructor-arg value=","/> 
                    </bean> 
            </property> 
</bean>

以下のコードは、ファイルverification-spec.xmlから取得したもので、ソートが完了した後にベースラインと回帰の間でデータを比較します。<property name="lineOrderingPolicy" value="0,1,"/>下に追加しようとしました<property name="fieldDelimiter" value="," /> が、まだうまくいきません。

    <bean id="file49_bean"
        class="com.hsbc.gbm.grt.bart.regression.verification.springbatch.item.file.DualCSVFileVerifier"
        parent="outputParentDualCSVFileVerifier">
        <property name="referenceResource" value="CDM_DRR_MI_IP_MTM.${Baseline}_sorted.csv"/>
        <property name="testResource" value="CDM_DRR_MI_IP_MTM.${Regression}_sorted.csv"/>

        <property name="linesToSkip" value="0" />            
        <property name="fieldDelimiter" value="," />

</bean>

Hudson を使用して検証ツールを実行しましたが、ファイル間にまだ違いがあります。データを手動で確認しましたが、正しくソートされていません。検証プロセスは正常に機能しますが、並べ替えは機能しません。

言い忘れたことや知っておくべきことがあれば教えてください。

4

0 に答える 0