/
【参考2】DTP Standard への解析結果パブリッシュ(Maven)

【参考2】DTP Standard への解析結果パブリッシュ(Maven)

DTP Standard へ Jtest の解析結果をパブリッシュすると、WEB ブラウザ上で解析結果を確認することができます。

前提

本章の内容を実施するに当たって、次の事項が実施されていることを前提としております。

  • DTP Standard がインストール済みで利用可能であること。

プロキシの設定

Jtest をインストールしたマシンからプロキシサーバーを経由して DTP Standard にアクセスする場合、 <JTEST_HOME>/etc/jtestcli.jvm ファイルに次のプロキシ設定を追記します。

java.arg=-Dhttps.proxyHost=${proxy.host}
java.arg=-Dhttps.proxyPort=${proxy.port}

DTP Standard の接続設定

  1. <JTEST_HOME>/jtestcli.propertiesファイルを開きます。
  2. 次の設定を変更します。

    変更前)
    "dtp.xxx" の行のコメントアウト(#)をはずし、Parasoft DTP への接続情報を入力します。

    # === DTP SERVER SETTINGS ===

    # Specifies host name of the DTP server.
    #dtp.url=https://localhost:8443

    # Specifies user name for DTP server authentication.
    #dtp.user=admin

    # Specifies password for DTP server authentication - use jtestcli -encodepass <PASSWORD> to encode the password, if needed.
    #dtp.password=admin

    # Specifies name of the DTP project - this settings is optional.
    #dtp.project=[DTP Project Name]

    変更後)

    # === DTP SERVER SETTINGS ===

    # Specifies host name of the DTP server.
    dtp.url=https://localhost:8443

    # Specifies user name for DTP server authentication.
    dtp.user=admin

    # Specifies password for DTP server authentication - use jtestcli -encodepass <PASSWORD> to encode the password, if needed.
    dtp.password=admin

    # Specifies name of the DTP project - this settings is optional.
    dtp.project=Sample (DTP Standard に作成済みのプロジェクト名)

  3. jtestcli.properties ファイルを保存します。

解析結果のパブリッシュ

解析結果を DTP Standard にパブリッシュするには解析コマンドに「-Djtest.publish=true」を追加します。

demo>mvn jtest:jtest -Djtest.config="builtin://Critical Rules" -Djtest.publish=true

コンソールに以下の情報が出力されていればパブリッシュが成功しています。

[Jtest] DTP localhost:8443 に Sample プロジェクトのレポートをパブリッシュしています ...
[Jtest] レポートは正常に DTP にパブリッシュされました

Related content

【参考2】DTP Standard への解析結果パブリッシュ(Ant)
【参考2】DTP Standard への解析結果パブリッシュ(Ant)
More like this
Maven プロジェクト 前提
Maven プロジェクト 前提
Read with this
【参考2】DTP Standard への解析結果パブリッシュ(Maven)
【参考2】DTP Standard への解析結果パブリッシュ(Maven)
More like this
Maven プロジェクト 静的解析
Maven プロジェクト 静的解析
Read with this
【参考2】DTP Standard への解析結果パブリッシュ(Maven)
【参考2】DTP Standard への解析結果パブリッシュ(Maven)
More like this
Mavenプロジェクト 準備
Mavenプロジェクト 準備
Read with this

Copyright © 2022 TechMatrix Corporation. All rights reserved