From 7e16306067d362da7d5f3833f162aa424d36bb49 Mon Sep 17 00:00:00 2001 From: Codrin-Victor Poienaru Date: Thu, 3 Mar 2022 16:50:31 +0100 Subject: [PATCH] Made telemetry data constants true constants (#3416) --- src/Microsoft.TestPlatform.Common/Friends.cs | 1 + .../PublicAPI/PublicAPI.Shipped.txt | 44 ------- .../PublicAPI/PublicAPI.Unshipped.txt | 6 - .../Telemetry/TelemetryDataConstants.cs | 107 +++++++++--------- 4 files changed, 54 insertions(+), 104 deletions(-) diff --git a/src/Microsoft.TestPlatform.Common/Friends.cs b/src/Microsoft.TestPlatform.Common/Friends.cs index a835977ad2..1278201b90 100644 --- a/src/Microsoft.TestPlatform.Common/Friends.cs +++ b/src/Microsoft.TestPlatform.Common/Friends.cs @@ -27,5 +27,6 @@ [assembly: InternalsVisibleTo("Microsoft.TestPlatform.TestUtilities, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("Microsoft.TestPlatform.AcceptanceTests, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] [assembly: InternalsVisibleTo("vstest.ProgrammerTests, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] +[assembly: InternalsVisibleTo("TranslationLayer.UnitTests, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")] #endregion diff --git a/src/Microsoft.TestPlatform.Common/PublicAPI/PublicAPI.Shipped.txt b/src/Microsoft.TestPlatform.Common/PublicAPI/PublicAPI.Shipped.txt index bbb15c327f..1fed04217c 100644 --- a/src/Microsoft.TestPlatform.Common/PublicAPI/PublicAPI.Shipped.txt +++ b/src/Microsoft.TestPlatform.Common/PublicAPI/PublicAPI.Shipped.txt @@ -129,7 +129,6 @@ Microsoft.VisualStudio.TestPlatform.Common.Telemetry.NoOpMetricsCollection Microsoft.VisualStudio.TestPlatform.Common.Telemetry.NoOpMetricsCollection.Add(string message, object value) -> void Microsoft.VisualStudio.TestPlatform.Common.Telemetry.NoOpMetricsCollection.Metrics.get -> System.Collections.Generic.IDictionary Microsoft.VisualStudio.TestPlatform.Common.Telemetry.NoOpMetricsCollection.NoOpMetricsCollection() -> void -Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants Microsoft.VisualStudio.TestPlatform.Common.TestPlatformConstants Microsoft.VisualStudio.TestPlatform.Common.TestPlatformDefaults Microsoft.VisualStudio.TestPlatform.Common.Utilities.AssemblyProperties @@ -238,49 +237,6 @@ static Microsoft.VisualStudio.TestPlatform.Common.Hosting.TestRuntimeProviderMan static Microsoft.VisualStudio.TestPlatform.Common.SettingsProvider.SettingsProviderExtensionManager.Create() -> Microsoft.VisualStudio.TestPlatform.Common.SettingsProvider.SettingsProviderExtensionManager static Microsoft.VisualStudio.TestPlatform.Common.SettingsProvider.SettingsProviderExtensionManager.Destroy() -> void static Microsoft.VisualStudio.TestPlatform.Common.SettingsProvider.SettingsProviderExtensionManager.LoadAndInitializeAllExtensions(bool shouldThrowOnError) -> void -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.AttachmentsProcessingState -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.CommandLineSwitches -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.DataCollectorsEnabled -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.DisableAppDomain -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.DiscoveryState -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.LegacySettingPrefix -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.LoggerUsed -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.MaxCPUcount -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.NumberOfAdapterDiscoveredDuringDiscovery -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.NumberOfAdapterDiscoveredDuringExecution -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.NumberOfAdapterUsedToDiscoverTests -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.NumberOfAdapterUsedToRunTests -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.NumberOfAttachmentsAfterProcessing -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.NumberOfAttachmentsSentForProcessing -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.NumberOfSourcesSentForDiscovery -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.NumberOfSourcesSentForRun -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.ParallelEnabledDuringDiscovery -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.ParallelEnabledDuringExecution -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.ParallelEnabledDuringStartTestSession -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.RunState -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.StartTestSessionCompleteEvent -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TargetDevice -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TargetFramework -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TargetOS -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TargetPlatform -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TestAttachmentsProcessingCompleteEvent -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TestDiscoveryCompleteEvent -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TestExecutionCompleteEvent -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TestPlatformVersion -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TestSettingsUsed -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TimeTakenByAllAdaptersInSec -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TimeTakenInSecByAllAdapters -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TimeTakenInSecForAttachmentsProcessing -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TimeTakenInSecForDiscovery -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TimeTakenInSecForRun -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TimeTakenToDiscoverTestsByAnAdapter -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TimeTakenToLoadAdaptersInSec -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TimeTakenToRunTestsByAnAdapter -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TotalTestsByAdapter -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TotalTestsDiscovered -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TotalTestsRanByAdapter -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TotalTestsRun -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TotalTestsRunByMSTestv1 -> string static Microsoft.VisualStudio.TestPlatform.Common.Utilities.CancellationTokenExtensions.ThrowTestPlatformExceptionIfCancellationRequested(this System.Threading.CancellationToken token) -> void static Microsoft.VisualStudio.TestPlatform.Common.Utilities.ExceptionUtilities.GetExceptionMessage(System.Exception exception) -> string static Microsoft.VisualStudio.TestPlatform.Common.Utilities.FakesUtilities.GenerateFakesSettingsForRunConfiguration(string[] sources, string runSettingsXml) -> string diff --git a/src/Microsoft.TestPlatform.Common/PublicAPI/PublicAPI.Unshipped.txt b/src/Microsoft.TestPlatform.Common/PublicAPI/PublicAPI.Unshipped.txt index 173c7c1cd4..2e74887227 100644 --- a/src/Microsoft.TestPlatform.Common/PublicAPI/PublicAPI.Unshipped.txt +++ b/src/Microsoft.TestPlatform.Common/PublicAPI/PublicAPI.Unshipped.txt @@ -1,9 +1,3 @@ -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TestSessionId -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TestSessionSpawnedTesthostCount -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TestSessionTesthostSpawnTimeInSec -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TestSessionState -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.TestSessionTotalSessionTimeInSec -> string -static Microsoft.VisualStudio.TestPlatform.Common.Telemetry.TelemetryDataConstants.StopTestSessionCompleteEvent -> string Microsoft.VisualStudio.TestPlatform.ObjectModel.Engine.IProxyTestSessionManager.StartSession(Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.ITestSessionEventsHandler eventsHandler, Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.IRequestData requestData) -> bool Microsoft.VisualStudio.TestPlatform.ObjectModel.Engine.IProxyTestSessionManager.StopSession(Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.IRequestData requestData) -> bool Microsoft.VisualStudio.TestPlatform.ObjectModel.Engine.IParallelProxyDiscoveryManager.IsAbortRequested.get -> bool diff --git a/src/Microsoft.TestPlatform.Common/Telemetry/TelemetryDataConstants.cs b/src/Microsoft.TestPlatform.Common/Telemetry/TelemetryDataConstants.cs index e0ba8b9f10..a9ec3c5b93 100644 --- a/src/Microsoft.TestPlatform.Common/Telemetry/TelemetryDataConstants.cs +++ b/src/Microsoft.TestPlatform.Common/Telemetry/TelemetryDataConstants.cs @@ -8,60 +8,59 @@ namespace Microsoft.VisualStudio.TestPlatform.Common.Telemetry; /// /// The Telemetry data constants. /// -[System.Diagnostics.CodeAnalysis.SuppressMessage("Usage", "CA2211:Non-constant fields should not be visible", Justification = "Part of the public API.")] -public static class TelemetryDataConstants +internal static class TelemetryDataConstants { // ******************** Execution *********************** - public static string ParallelEnabledDuringExecution = "VS.TestRun.ParallelEnabled"; + internal static readonly string ParallelEnabledDuringExecution = "VS.TestRun.ParallelEnabled"; // Total number of tests ran under one test request - public static string TotalTestsRun = "VS.TestRun.TotalTests"; + internal static readonly string TotalTestsRun = "VS.TestRun.TotalTests"; // Total time taken to complete one test run request - public static string TimeTakenInSecForRun = "VS.TestRun.TimeTakenInSec"; + internal static readonly string TimeTakenInSecForRun = "VS.TestRun.TimeTakenInSec"; - public static string TestSettingsUsed = "VS.TestRun.IsTestSettingsUsed"; + internal static readonly string TestSettingsUsed = "VS.TestRun.IsTestSettingsUsed"; - public static string DisableAppDomain = "VS.TestRun.DisableAppDomain"; + internal static readonly string DisableAppDomain = "VS.TestRun.DisableAppDomain"; // All data related to legacy settings nodes will be prefixed with this. - public static string LegacySettingPrefix = "VS.TestRun.LegacySettings"; + internal static readonly string LegacySettingPrefix = "VS.TestRun.LegacySettings"; - public static string DataCollectorsEnabled = "VS.TestRun.DataCollectorsEnabled"; + internal static readonly string DataCollectorsEnabled = "VS.TestRun.DataCollectorsEnabled"; - internal const string InvokedDataCollectors = "VS.TestRun.InvokedDataCollectors"; + internal static readonly string InvokedDataCollectors = "VS.TestRun.InvokedDataCollectors"; - internal const string DataCollectorsCorProfiler = "VS.TestPlatform.DataCollector.CorProfiler"; + internal static readonly string DataCollectorsCorProfiler = "VS.TestPlatform.DataCollector.CorProfiler"; - internal const string DataCollectorsCoreClrProfiler = "VS.TestPlatform.DataCollector.CoreClrProfiler"; + internal static readonly string DataCollectorsCoreClrProfiler = "VS.TestPlatform.DataCollector.CoreClrProfiler"; - public static string RunState = "VS.TestRun.RunState"; + internal static readonly string RunState = "VS.TestRun.RunState"; - public static string NumberOfSourcesSentForRun = "VS.TestRun.NumberOfSources"; + internal static readonly string NumberOfSourcesSentForRun = "VS.TestRun.NumberOfSources"; - public static string TargetDevice = "VS.TestRun.TargetDevice"; + internal static readonly string TargetDevice = "VS.TestRun.TargetDevice"; - public static string TargetFramework = "VS.TestRun.TargetFramework"; + internal static readonly string TargetFramework = "VS.TestRun.TargetFramework"; - public static string TargetPlatform = "VS.TestRun.TargetPlatform"; + internal static readonly string TargetPlatform = "VS.TestRun.TargetPlatform"; - public static string MaxCPUcount = "VS.TestRun.MaxCPUcount"; + internal static readonly string MaxCPUcount = "VS.TestRun.MaxCPUcount"; - public static string TestPlatformVersion = "VS.TestRun.TestPlatformVersion"; + internal static readonly string TestPlatformVersion = "VS.TestRun.TestPlatformVersion"; - public static string TargetOS = "VS.TestRun.TargetOS"; + internal static readonly string TargetOS = "VS.TestRun.TargetOS"; - public static string LoggerUsed = "VS.TestRun.LoggersUsed"; + internal static readonly string LoggerUsed = "VS.TestRun.LoggersUsed"; - public static string CommandLineSwitches = "VS.TestRun.CommandLineSwitches"; + internal static readonly string CommandLineSwitches = "VS.TestRun.CommandLineSwitches"; // Adapter name will get appended. eg:- VS.TestRun.TotalTestsRun.executor//cppunittestexecutor/v1 // In case of parallel it will be sum of all tests ran by an adapter in different execution process - public static string TotalTestsRanByAdapter = "VS.TestRun.TotalTestsRun"; + internal static readonly string TotalTestsRanByAdapter = "VS.TestRun.TotalTestsRun"; // Adapter name will get appended. eg:- VS.TestRun.TimeTakenToRun.executor//cppunittestexecutor/v1 // In case of parallel it will be sum of all time taken by an adapter to run tests in different execution process - public static string TimeTakenToRunTestsByAnAdapter = "VS.TestRun.TimeTakenToRun"; + internal static readonly string TimeTakenToRunTestsByAnAdapter = "VS.TestRun.TimeTakenToRun"; // Reports details for MSTestV1. Reports just the count when TPv1 is used. // Reports legacy when the legacy runner TMI / TPv0 is used. @@ -71,74 +70,74 @@ public static class TelemetryDataConstants // eg:- VS.TestRun.TotalTestsRunByMSTestv1.legacy.extension.codedui - a coded ui test using TPv0 and MSTestV1 // Counts in this metric are not subtracted from the TotalTestsRanByAdapter. This metrics just // provides more insight into what was actually executed. - public static string TotalTestsRunByMSTestv1 = "VS.TestRun.TotalTestsRunByMSTestv1"; + internal static readonly string TotalTestsRunByMSTestv1 = "VS.TestRun.TotalTestsRunByMSTestv1"; // Total number of adapter discovered on the machine. - public static string NumberOfAdapterDiscoveredDuringExecution = "VS.TestRun.AdaptersDiscoveredCount"; + internal static readonly string NumberOfAdapterDiscoveredDuringExecution = "VS.TestRun.AdaptersDiscoveredCount"; - public static string NumberOfAdapterUsedToRunTests = "VS.TestRun.AdaptersUsedCount"; + internal static readonly string NumberOfAdapterUsedToRunTests = "VS.TestRun.AdaptersUsedCount"; // It will be the sum of the times taken by all adapter to run tests. // In case of parallel it can be more than total time taken to complete run request. - public static string TimeTakenByAllAdaptersInSec = "VS.TestRun.TimeTakenByAllAdapters"; + internal static readonly string TimeTakenByAllAdaptersInSec = "VS.TestRun.TimeTakenByAllAdapters"; // *********************Discovery**************************** - public static string TotalTestsDiscovered = "VS.TestDiscovery.TotalTests"; + internal static readonly string TotalTestsDiscovered = "VS.TestDiscovery.TotalTests"; - public static string ParallelEnabledDuringDiscovery = "VS.TestDiscovery.ParallelEnabled"; + internal static readonly string ParallelEnabledDuringDiscovery = "VS.TestDiscovery.ParallelEnabled"; // All the times are in sec - public static string TimeTakenInSecForDiscovery = "VS.TestDiscovery.TotalTimeTakenInSec"; + internal static readonly string TimeTakenInSecForDiscovery = "VS.TestDiscovery.TotalTimeTakenInSec"; - public static string TimeTakenToLoadAdaptersInSec = "VS.TestDiscovery.TimeTakenToLoadAdaptersInSec"; + internal static readonly string TimeTakenToLoadAdaptersInSec = "VS.TestDiscovery.TimeTakenToLoadAdaptersInSec"; // It will be the sum of the times taken by all adapter to discover tests. - public static string TimeTakenInSecByAllAdapters = "VS.TestDiscovery.TimeTakenInSecByAllAdapters"; + internal static readonly string TimeTakenInSecByAllAdapters = "VS.TestDiscovery.TimeTakenInSecByAllAdapters"; // Adapter name will get appended. eg:- VS.TestDiscovery.TimeTakenAdapter.executor//cppunittestexecutor/v1 - public static string TimeTakenToDiscoverTestsByAnAdapter = "VS.TestDiscovery.TimeTakenAdapter"; + internal static readonly string TimeTakenToDiscoverTestsByAnAdapter = "VS.TestDiscovery.TimeTakenAdapter"; // Adapter name will get appended. eg:- VS.TestDiscovery.TotalTestsDiscovered.executor//cppunittestexecutor/v1 - public static string TotalTestsByAdapter = "VS.TestDiscovery.TotalTestsDiscovered"; + internal static readonly string TotalTestsByAdapter = "VS.TestDiscovery.TotalTestsDiscovered"; - public static string DiscoveryState = "VS.TestDiscovery.DiscoveryState"; + internal static readonly string DiscoveryState = "VS.TestDiscovery.DiscoveryState"; - public static string NumberOfSourcesSentForDiscovery = "VS.TestDiscovery.NumberOfSources"; + internal static readonly string NumberOfSourcesSentForDiscovery = "VS.TestDiscovery.NumberOfSources"; - public static string NumberOfAdapterDiscoveredDuringDiscovery = "VS.TestDiscovery.AdaptersDiscoveredCount"; + internal static readonly string NumberOfAdapterDiscoveredDuringDiscovery = "VS.TestDiscovery.AdaptersDiscoveredCount"; - public static string NumberOfAdapterUsedToDiscoverTests = "VS.TestDiscovery.AdaptersUsedCount"; + internal static readonly string NumberOfAdapterUsedToDiscoverTests = "VS.TestDiscovery.AdaptersUsedCount"; // *********************Attachments Processing**************************** - public static string NumberOfAttachmentsSentForProcessing = "VS.AttachmentsProcessing.InitialAttachmentsCount"; + internal static readonly string NumberOfAttachmentsSentForProcessing = "VS.AttachmentsProcessing.InitialAttachmentsCount"; - public static string NumberOfAttachmentsAfterProcessing = "VS.AttachmentsProcessing.FinalAttachmentsCount"; + internal static readonly string NumberOfAttachmentsAfterProcessing = "VS.AttachmentsProcessing.FinalAttachmentsCount"; - public static string TimeTakenInSecForAttachmentsProcessing = "VS.AttachmentsProcessing.TotalTimeTakenInSec"; + internal static readonly string TimeTakenInSecForAttachmentsProcessing = "VS.AttachmentsProcessing.TotalTimeTakenInSec"; - public static string AttachmentsProcessingState = "VS.AttachmentsProcessing.State"; + internal static readonly string AttachmentsProcessingState = "VS.AttachmentsProcessing.State"; // *********************Test Sessions**************************** - public static string ParallelEnabledDuringStartTestSession = "VS.TestSession.ParallelEnabled"; + internal static readonly string ParallelEnabledDuringStartTestSession = "VS.TestSession.ParallelEnabled"; - public static string TestSessionId = "VS.TestSession.Id"; + internal static readonly string TestSessionId = "VS.TestSession.Id"; - public static string TestSessionSpawnedTesthostCount = "VS.TestSession.SpawnedTesthostCount"; + internal static readonly string TestSessionSpawnedTesthostCount = "VS.TestSession.SpawnedTesthostCount"; - public static string TestSessionTesthostSpawnTimeInSec = "VS.TestSession.TesthostSpawnTimeInSec"; + internal static readonly string TestSessionTesthostSpawnTimeInSec = "VS.TestSession.TesthostSpawnTimeInSec"; - public static string TestSessionState = "VS.TestSession.State"; + internal static readonly string TestSessionState = "VS.TestSession.State"; - public static string TestSessionTotalSessionTimeInSec = "VS.TestSession.TotalSessionTimeInSec"; + internal static readonly string TestSessionTotalSessionTimeInSec = "VS.TestSession.TotalSessionTimeInSec"; // **************Events Name ********************************** - public static string TestDiscoveryCompleteEvent = "vs/testplatform/testdiscoverysession"; + internal static readonly string TestDiscoveryCompleteEvent = "vs/testplatform/testdiscoverysession"; - public static string TestExecutionCompleteEvent = "vs/testplatform/testrunsession"; + internal static readonly string TestExecutionCompleteEvent = "vs/testplatform/testrunsession"; - public static string TestAttachmentsProcessingCompleteEvent = "vs/testplatform/testattachmentsprocessingsession"; + internal static readonly string TestAttachmentsProcessingCompleteEvent = "vs/testplatform/testattachmentsprocessingsession"; - public static string StartTestSessionCompleteEvent = "vs/testplatform/starttestsession"; + internal static readonly string StartTestSessionCompleteEvent = "vs/testplatform/starttestsession"; - public static string StopTestSessionCompleteEvent = "vs/testplatform/stoptestsession"; + internal static readonly string StopTestSessionCompleteEvent = "vs/testplatform/stoptestsession"; }