Tosca Interactive Testing Server は、 Tosca Server (see chapter "セットアップダイアログを通じてTosca Serverをインストール") の一部です。
Interactive Testing Server の設定
インストール後、 Interactive Testing Server のポートの設定が必要です。これを行うには、以下の手順に従ってください。
-
C:\Program Files(x86)\Tricentis\Tosca Server\InteractiveTestingStandalone にある appsettings.json ファイルを開きます。
-
Httpサーバーセクションで、デフォルトのポート 5009 をご自分のポートに変更します。
-
ファイルを保存して閉じます。
-
C:\Program Files(x86)\Tricentis\Tosca Server\Gateway にある ocelot.json ファイルを開きます。
-
"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
}
-
ファイルを保存して閉じます。
-
C:\Program Files(x86)\Tricentis\Tosca Server\Gateway\Consul\config にある InteractiveTesting.json ファイルを開きます。
-
ポートの値をお使いのポートに変更してください。
-
ファイルを保存して閉じます。
|
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"
}
}
サーバーの設定