サーバーの設定

Tosca Interactive Testing Server は、 Tosca Server (see chapter "セットアップダイアログを通じてTosca Serverをインストール") の一部です。

Interactive Testing Server の設定

インストール後、 Interactive Testing Server のポートの設定が必要です。これを行うには、以下の手順に従ってください。

  1. C:\Program Files(x86)\Tricentis\Tosca Server\InteractiveTestingStandalone にある appsettings.json ファイルを開きます。

  2. Httpサーバーセクションで、デフォルトのポート 5009 をご自分のポートに変更します。

  3. ファイルを保存して閉じます。

  4. C:\Program Files(x86)\Tricentis\Tosca Server\Gateway にある ocelot.json ファイルを開きます。

  5. "ServiceId": "InteractiveTestingService" セクションで、デフォルトのポート 5009 をご自分のポートに変更します。以下の2箇所を変更してください:

    • "DownstreamPathTemplate":"/{everything}" の下

    • "DownstreamPathTemplate": "/ita-assets/{everything}" の下

"ServiceId": "InteractiveTestingService"
    },
    {
      "DelegatingHandlers": [
        "ServiceIdentifierApplierDelegationHandler"
      ],
      "DownstreamPathTemplate": "/{everything}",
      "DownstreamScheme": "http",
      "DownstreamHostAndPorts": [
        {
          "Host": "localhost",
          "Port": 5009
        }
      ],
      "UpstreamPathTemplate": "/interactive/{everything}",
      "UpstreamHttpMethod": [
        "POST",
        "GET",
        "DELETE",
        "HEAD"
      ],
      "ServiceId": "InteractiveTestingService"
    },
    {
      "DownstreamPathTemplate": "/ita-assets/{everything}",
      "DownstreamScheme": "http",
      "DownstreamHostAndPorts": [
        {
          "Host": "localhost",
          "Port": 5009
        }
  1. ファイルを保存して閉じます。

  2. C:\Program Files(x86)\Tricentis\Tosca Server\Gateway\Consul\config にある InteractiveTesting.json ファイルを開きます。

  3. ポートの値をお使いのポートに変更してください。

  4. ファイルを保存して閉じます。

appsettings.json ファイルを変更するたびに、Windowsのサービスアプリでサービスを再起動する必要があります。

データ用ディレクトリの定義

Interactive Testing Server はすべてのセッションデータをディレクトリに保存します。

appsettings.json ファイルの ConnectionString セクションに、必要なディレクトリへのパスを入力します。

以下のサンプル設定では、 C:\Program Files(x86)\TRICENTIS\ToscaServer\InteractiveTestingStandalone ディレクトリにデータが保存されます。:

{
 "Logging": {
   "IncludeScopes": false,
   "Debug": {
     "LogLevel": {
        "Default": "Warning"
 }
},
"Console": {
  "LogLevel": {
     "Default": "Warning"
  }
 }
},
"App": {
"ConnectionString": "C:\\ProgramData\\TRICENTIS\\ToscaServer\\InteractiveTesting\\server.db",
"SetupDirectory": "C:\\Program Files (x86)\\TRICENTIS\\Tosca Server\\InteractiveTestingStandalone\\download"
}
}