diff --git a/Adaptation/MET08RESIMAPCDE-Development.yml b/Adaptation/MET08RESIMAPCDE-Development.yml index 4149b5d..23bc15c 100644 --- a/Adaptation/MET08RESIMAPCDE-Development.yml +++ b/Adaptation/MET08RESIMAPCDE-Development.yml @@ -26,7 +26,7 @@ steps: displayName: Configuration - script: | - set nugetSource=https://eaf-dev-reporting.mes.infineon.com/v3/index.json + set nugetSource=https://artifactory.intra.infineon.com/artifactory/api/nuget/ngt-fi-package-main-vir/index.json;D:/vsts-agent-win-x64-2.210.1-eaf/nuget echo %nugetSource% echo ##vso[task.setvariable variable=NugetSource;]%nugetSource% echo $(NugetSource) @@ -148,7 +148,7 @@ steps: displayName: "Core Publish" enabled: false - - script: '"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Restore /detailedsummary /consoleloggerparameters:PerformanceSummary;ErrorsOnly; /property:Configuration=$(Configuration);TargetFrameworkVersion=v4.8 /p:RestoreSources=$(NugetSource)' + - script: '"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Restore /detailedsummary /consoleloggerparameters:PerformanceSummary;ErrorsOnly; /property:Configuration=$(Configuration);TargetFrameworkVersion=v4.8 /p:RestoreSources="$(NugetSource)"' displayName: "MSBuild Restore" - script: '"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Build /detailedsummary /consoleloggerparameters:PerformanceSummary;ErrorsOnly; /property:Configuration=$(Configuration);TargetFrameworkVersion=v4.8' @@ -167,11 +167,11 @@ steps: enabled: false - task: CopyFiles@2 - displayName: 'Copy Files to: \\mesfs.infineon.com\EC_EAFRepository' + displayName: 'Copy Files to: Local D EAF Deployment Storage' inputs: Contents: "*$(Build.Repository.Name)*" SourceFolder: 'bin\$(Configuration)' - TargetFolder: '\\mesfs.infineon.com\EC_EAFRepository\Staging\DeploymentStorage\Adaptation_$(Build.Repository.Name)' + TargetFolder: 'D:\EAF\EAF Deployment Storage\Adaptation_$(Build.Repository.Name)' OverWrite: true enabled: false diff --git a/Adaptation/MET08RESIMAPCDE.Tests.csproj b/Adaptation/MET08RESIMAPCDE.Tests.csproj index bb2b083..19e2dbf 100644 --- a/Adaptation/MET08RESIMAPCDE.Tests.csproj +++ b/Adaptation/MET08RESIMAPCDE.Tests.csproj @@ -57,8 +57,8 @@ - - + + NU1701 diff --git a/Adaptation/MET08RESIMAPCDE.yml b/Adaptation/MET08RESIMAPCDE.yml index d95da54..6b55720 100644 --- a/Adaptation/MET08RESIMAPCDE.yml +++ b/Adaptation/MET08RESIMAPCDE.yml @@ -26,7 +26,7 @@ steps: displayName: Configuration - script: | - set nugetSource=https://eaf-prod.mes.infineon.com/v3/index.json + set nugetSource=https://artifactory.intra.infineon.com/artifactory/api/nuget/ngt-fi-package-main-vir/index.json;D:/vsts-agent-win-x64-2.210.1-eaf/nuget echo %nugetSource% echo ##vso[task.setvariable variable=NugetSource;]%nugetSource% echo $(NugetSource) @@ -145,7 +145,7 @@ steps: displayName: "Core Publish" enabled: false - - script: '"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Restore /detailedsummary /consoleloggerparameters:PerformanceSummary;ErrorsOnly; /property:Configuration=$(Configuration);TargetFrameworkVersion=v4.8 /p:RestoreSources=$(NugetSource)' + - script: '"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Restore /detailedsummary /consoleloggerparameters:PerformanceSummary;ErrorsOnly; /property:Configuration=$(Configuration);TargetFrameworkVersion=v4.8 /p:RestoreSources="$(NugetSource)"' displayName: "MSBuild Restore" - script: '"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Build /detailedsummary /consoleloggerparameters:PerformanceSummary;ErrorsOnly; /property:Configuration=$(Configuration);TargetFrameworkVersion=v4.8' @@ -163,11 +163,11 @@ steps: OverWrite: true - task: CopyFiles@2 - displayName: 'Copy Files to: \\mesfs.infineon.com\EC_EAFRepository' + displayName: 'Copy Files to: Local D EAF Deployment Storage' inputs: Contents: "*$(Build.Repository.Name)*" SourceFolder: 'bin\$(Configuration)' - TargetFolder: '\\mesfs.infineon.com\EC_EAFRepository\Staging\DeploymentStorage\Adaptation_$(Build.Repository.Name)' + TargetFolder: 'D:\EAF\EAF Deployment Storage\Adaptation_$(Build.Repository.Name)' OverWrite: true - script: | diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE4.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE4.cs index bf7c017..0aab2a8 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE4.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE4.cs @@ -1,4 +1,4 @@ -#if true +#if v2_56_0 using Adaptation._Tests.Shared; using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -48,9 +48,7 @@ public class CDE4 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__CDE4__RsM() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE5-EQPT.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE5-EQPT.cs index 38c1f2c..e985dfb 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE5-EQPT.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE5-EQPT.cs @@ -1,4 +1,4 @@ -#if true +#if v2_56_0 using Adaptation._Tests.Shared; using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -48,9 +48,7 @@ public class CDE5_EQPT : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__CDE5_EQPT__DownloadRsMFile() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE5.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE5.cs index 272420e..744ddd4 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE5.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE5.cs @@ -1,4 +1,4 @@ -#if true +#if v2_56_0 using Adaptation._Tests.Shared; using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -48,9 +48,7 @@ public class CDE5 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__CDE5__RsM() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE6-EQPT.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE6-EQPT.cs index ec0c67c..78bb36d 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE6-EQPT.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE6-EQPT.cs @@ -1,4 +1,4 @@ -#if true +#if v2_56_0 using Adaptation._Tests.Shared; using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -48,9 +48,7 @@ public class CDE6_EQPT : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__CDE6_EQPT__DownloadRsMFile() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE6.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE6.cs index c5c3d17..2ebb127 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE6.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/CDE6.cs @@ -1,4 +1,4 @@ -#if true +#if v2_56_0 using Adaptation._Tests.Shared; using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -48,9 +48,7 @@ public class CDE6 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__CDE6__RsM() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/MET08RESIMAPCDE.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/MET08RESIMAPCDE.cs index 5aa9165..09d2bf7 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/MET08RESIMAPCDE.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/MET08RESIMAPCDE.cs @@ -1,4 +1,4 @@ -#if true +#if v2_56_0 using Adaptation._Tests.Shared; using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -48,9 +48,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__MoveMatchingFiles() { @@ -61,9 +59,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__OpenInsightMetrologyViewer() { @@ -74,9 +70,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__IQSSi() { @@ -87,9 +81,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__OpenInsight() { @@ -100,9 +92,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__OpenInsightMetrologyViewerAttachments() { @@ -113,9 +103,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__APC() { @@ -126,9 +114,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__SPaCe() { @@ -139,9 +125,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__Processed() { @@ -152,9 +136,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__Archive() { @@ -165,9 +147,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__Dummy() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/CDE4.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/CDE4.cs new file mode 100644 index 0000000..6d579ce --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/CDE4.cs @@ -0,0 +1,65 @@ +#if true +using Adaptation._Tests.Shared; +using Microsoft.Extensions.Logging; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.IO; +using System.Reflection; + +namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_57_0; + +[TestClass] +public class CDE4 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static CDE4 EAFLoggingUnitTesting { get; private set; } + + static CDE4() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; + + public CDE4() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public CDE4(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new CDE4(testContext); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize")); + string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName); + File.WriteAllText(fileNameAndText[0], fileNameAndText[1]); + File.WriteAllText(fileNameAndText[2], fileNameAndText[3]); + } + + [ClassCleanup()] + public static void ClassCleanup() + { + EAFLoggingUnitTesting?.Logger?.LogInformation("Cleanup"); + EAFLoggingUnitTesting?.Dispose(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__CDE4__RsM() + { + string check = "*.RsM"; + MethodBase methodBase = new StackFrame().GetMethod(); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); + _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); + } + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/CDE5-EQPT.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/CDE5-EQPT.cs new file mode 100644 index 0000000..cbe9685 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/CDE5-EQPT.cs @@ -0,0 +1,65 @@ +#if true +using Adaptation._Tests.Shared; +using Microsoft.Extensions.Logging; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.IO; +using System.Reflection; + +namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_57_0; + +[TestClass] +public class CDE5_EQPT : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static CDE5_EQPT EAFLoggingUnitTesting { get; private set; } + + static CDE5_EQPT() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; + + public CDE5_EQPT() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public CDE5_EQPT(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new CDE5_EQPT(testContext); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize")); + string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName); + File.WriteAllText(fileNameAndText[0], fileNameAndText[1]); + File.WriteAllText(fileNameAndText[2], fileNameAndText[3]); + } + + [ClassCleanup()] + public static void ClassCleanup() + { + EAFLoggingUnitTesting?.Logger?.LogInformation("Cleanup"); + EAFLoggingUnitTesting?.Dispose(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__CDE5_EQPT__DownloadRsMFile() + { + string check = "CDE_Logs|WaferMeasurementData.log|.RsM"; + MethodBase methodBase = new StackFrame().GetMethod(); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); + _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); + } + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/CDE5.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/CDE5.cs new file mode 100644 index 0000000..c276717 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/CDE5.cs @@ -0,0 +1,65 @@ +#if true +using Adaptation._Tests.Shared; +using Microsoft.Extensions.Logging; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.IO; +using System.Reflection; + +namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_57_0; + +[TestClass] +public class CDE5 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static CDE5 EAFLoggingUnitTesting { get; private set; } + + static CDE5() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; + + public CDE5() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public CDE5(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new CDE5(testContext); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize")); + string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName); + File.WriteAllText(fileNameAndText[0], fileNameAndText[1]); + File.WriteAllText(fileNameAndText[2], fileNameAndText[3]); + } + + [ClassCleanup()] + public static void ClassCleanup() + { + EAFLoggingUnitTesting?.Logger?.LogInformation("Cleanup"); + EAFLoggingUnitTesting?.Dispose(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__CDE5__RsM() + { + string check = "*.RsM"; + MethodBase methodBase = new StackFrame().GetMethod(); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); + _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); + } + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/CDE6-EQPT.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/CDE6-EQPT.cs new file mode 100644 index 0000000..9014024 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/CDE6-EQPT.cs @@ -0,0 +1,65 @@ +#if true +using Adaptation._Tests.Shared; +using Microsoft.Extensions.Logging; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.IO; +using System.Reflection; + +namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_57_0; + +[TestClass] +public class CDE6_EQPT : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static CDE6_EQPT EAFLoggingUnitTesting { get; private set; } + + static CDE6_EQPT() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; + + public CDE6_EQPT() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public CDE6_EQPT(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new CDE6_EQPT(testContext); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize")); + string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName); + File.WriteAllText(fileNameAndText[0], fileNameAndText[1]); + File.WriteAllText(fileNameAndText[2], fileNameAndText[3]); + } + + [ClassCleanup()] + public static void ClassCleanup() + { + EAFLoggingUnitTesting?.Logger?.LogInformation("Cleanup"); + EAFLoggingUnitTesting?.Dispose(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__CDE6_EQPT__DownloadRsMFile() + { + string check = "CDE_Logs|WaferMeasurementData.log|.RsM"; + MethodBase methodBase = new StackFrame().GetMethod(); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); + _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); + } + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/CDE6.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/CDE6.cs new file mode 100644 index 0000000..0cd0ccc --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/CDE6.cs @@ -0,0 +1,65 @@ +#if true +using Adaptation._Tests.Shared; +using Microsoft.Extensions.Logging; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.IO; +using System.Reflection; + +namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_57_0; + +[TestClass] +public class CDE6 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static CDE6 EAFLoggingUnitTesting { get; private set; } + + static CDE6() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; + + public CDE6() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public CDE6(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new CDE6(testContext); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize")); + string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName); + File.WriteAllText(fileNameAndText[0], fileNameAndText[1]); + File.WriteAllText(fileNameAndText[2], fileNameAndText[3]); + } + + [ClassCleanup()] + public static void ClassCleanup() + { + EAFLoggingUnitTesting?.Logger?.LogInformation("Cleanup"); + EAFLoggingUnitTesting?.Dispose(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__CDE6__RsM() + { + string check = "*.RsM"; + MethodBase methodBase = new StackFrame().GetMethod(); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); + _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); + } + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/MET08RESIMAPCDE.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/MET08RESIMAPCDE.cs new file mode 100644 index 0000000..9600ed6 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/MET08RESIMAPCDE.cs @@ -0,0 +1,182 @@ +#if true +using Adaptation._Tests.Shared; +using Microsoft.Extensions.Logging; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.IO; +using System.Reflection; + +namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_57_0; + +[TestClass] +public class MET08RESIMAPCDE : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static MET08RESIMAPCDE EAFLoggingUnitTesting { get; private set; } + + static MET08RESIMAPCDE() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; + + public MET08RESIMAPCDE() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public MET08RESIMAPCDE(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new MET08RESIMAPCDE(testContext); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize")); + string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName); + File.WriteAllText(fileNameAndText[0], fileNameAndText[1]); + File.WriteAllText(fileNameAndText[2], fileNameAndText[3]); + } + + [ClassCleanup()] + public static void ClassCleanup() + { + EAFLoggingUnitTesting?.Logger?.LogInformation("Cleanup"); + EAFLoggingUnitTesting?.Dispose(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__MoveMatchingFiles() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); + _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__OpenInsightMetrologyViewer() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); + _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__IQSSi() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); + _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__OpenInsight() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); + _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__OpenInsightMetrologyViewerAttachments() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); + _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__APC() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); + _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__SPaCe() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); + _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__Processed() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); + _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__Archive() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); + _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__Dummy() + { + string check = "637400762024374000.zip"; + MethodBase methodBase = new StackFrame().GetMethod(); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); + _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); + } + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE4.cs b/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE4.cs index fd15f9c..b9b046f 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE4.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE4.cs @@ -24,15 +24,11 @@ public class CDE4 _CDE4 = CreateSelfDescription.Staging.v2_56_0.CDE4.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__CDE4__RsM() => _CDE4.Staging__v2_56_0__CDE4__RsM(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__CDE4__RsM637919422210000000__Normal() { diff --git a/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE5-EQPT.cs b/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE5-EQPT.cs index 102b97b..a26ed74 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE5-EQPT.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE5-EQPT.cs @@ -19,9 +19,7 @@ public class CDE5_EQPT _CDE5_EQPT = CreateSelfDescription.Staging.v2_56_0.CDE5_EQPT.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__CDE5_EQPT__DownloadRsMFile() => _CDE5_EQPT.Staging__v2_56_0__CDE5_EQPT__DownloadRsMFile(); diff --git a/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE5.cs b/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE5.cs index a8f0aa1..e4af93f 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE5.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE5.cs @@ -31,15 +31,11 @@ public class CDE5 catch (Exception) { } } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__CDE5__RsM() => _CDE5.Staging__v2_56_0__CDE5__RsM(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__CDE5__RsM637952212190000000__Normal() { @@ -60,9 +56,7 @@ public class CDE5 NonThrowTryCatch(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__CDE5__RsM638181148290431160__WMO() { diff --git a/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE6-EQPT.cs b/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE6-EQPT.cs index 61e1140..51b50d0 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE6-EQPT.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE6-EQPT.cs @@ -22,9 +22,7 @@ public class CDE6_EQPT _CDE6_EQPT = CreateSelfDescription.Staging.v2_56_0.CDE6_EQPT.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__CDE6_EQPT__DownloadRsMFile() => _CDE6_EQPT.Staging__v2_56_0__CDE6_EQPT__DownloadRsMFile(); diff --git a/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE6.cs b/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE6.cs index eaa436f..f79771d 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE6.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.56.0/CDE6.cs @@ -24,15 +24,11 @@ public class CDE6 _CDE6 = CreateSelfDescription.Staging.v2_56_0.CDE6.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__CDE6__RsM() => _CDE6.Staging__v2_56_0__CDE6__RsM(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__CDE6__RsM638065099250000000__Normal() { diff --git a/Adaptation/_Tests/Extract/Staging/v2.56.0/MET08RESIMAPCDE.cs b/Adaptation/_Tests/Extract/Staging/v2.56.0/MET08RESIMAPCDE.cs index 5894985..3dc246a 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.56.0/MET08RESIMAPCDE.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.56.0/MET08RESIMAPCDE.cs @@ -1,4 +1,4 @@ -#if true +#if v2_56_0 using Adaptation._Tests.Shared; using Adaptation.Shared; using Adaptation.Shared.Methods; @@ -32,15 +32,11 @@ public class MET08RESIMAPCDE catch (Exception) { } } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__MoveMatchingFiles() => _MET08RESIMAPCDE.Staging__v2_56_0__MET08RESIMAPCDE__MoveMatchingFiles(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__MoveMatchingFiles637953064190000000__Normal() { @@ -60,15 +56,11 @@ public class MET08RESIMAPCDE Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__OpenInsightMetrologyViewer() => _MET08RESIMAPCDE.Staging__v2_56_0__MET08RESIMAPCDE__OpenInsightMetrologyViewer(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__OpenInsightMetrologyViewer638127615724700306__NewColumn() { @@ -81,21 +73,15 @@ public class MET08RESIMAPCDE _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__IQSSi() => _MET08RESIMAPCDE.Staging__v2_56_0__MET08RESIMAPCDE__IQSSi(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__OpenInsight() => _MET08RESIMAPCDE.Staging__v2_56_0__MET08RESIMAPCDE__OpenInsight(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__OpenInsight638054501710000000__IqsSql() { @@ -108,9 +94,7 @@ public class MET08RESIMAPCDE _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__OpenInsight638116271690000000__IqsSql() { @@ -123,9 +107,7 @@ public class MET08RESIMAPCDE _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__OpenInsight638159693274771954__IqsSqlButSplit() { @@ -139,39 +121,27 @@ public class MET08RESIMAPCDE NonThrowTryCatch(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__OpenInsightMetrologyViewerAttachments() => _MET08RESIMAPCDE.Staging__v2_56_0__MET08RESIMAPCDE__OpenInsightMetrologyViewerAttachments(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__APC() => _MET08RESIMAPCDE.Staging__v2_56_0__MET08RESIMAPCDE__APC(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__SPaCe() => _MET08RESIMAPCDE.Staging__v2_56_0__MET08RESIMAPCDE__SPaCe(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__Processed() => _MET08RESIMAPCDE.Staging__v2_56_0__MET08RESIMAPCDE__Processed(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__Archive() => _MET08RESIMAPCDE.Staging__v2_56_0__MET08RESIMAPCDE__Archive(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESIMAPCDE__Dummy() => _MET08RESIMAPCDE.Staging__v2_56_0__MET08RESIMAPCDE__Dummy(); diff --git a/Adaptation/_Tests/Extract/Staging/v2.57.0/CDE4.cs b/Adaptation/_Tests/Extract/Staging/v2.57.0/CDE4.cs new file mode 100644 index 0000000..cc2275a --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.57.0/CDE4.cs @@ -0,0 +1,55 @@ +#if v2_57_0 +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.Reflection; + +namespace Adaptation._Tests.Extract.Staging.v2_57_0; + +[TestClass] +public class CDE4 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_57_0.CDE4 _CDE4; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_57_0.CDE4.ClassInitialize(testContext); + _CDE4 = CreateSelfDescription.Staging.v2_57_0.CDE4.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__CDE4__RsM() => _CDE4.Staging__v2_57_0__CDE4__RsM(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__CDE4__RsM637919422210000000__Normal() + { + DateTime dateTime; + string check = "*.RsM"; + _CDE4.Staging__v2_57_0__CDE4__RsM(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _CDE4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _CDE4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF: false); + dateTime = FileHandlers.RsM.ProcessData.GetDateTime(logistics, string.Empty); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + dateTime = FileHandlers.RsM.ProcessData.GetDateTime(logistics, "00:13 09/27/38"); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + } + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.57.0/CDE5-EQPT.cs b/Adaptation/_Tests/Extract/Staging/v2.57.0/CDE5-EQPT.cs new file mode 100644 index 0000000..a4ccf84 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.57.0/CDE5-EQPT.cs @@ -0,0 +1,29 @@ +#if v2_57_0 +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace Adaptation._Tests.Extract.Staging.v2_57_0; + +[TestClass] +public class CDE5_EQPT +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_57_0.CDE5_EQPT _CDE5_EQPT; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_57_0.CDE5_EQPT.ClassInitialize(testContext); + _CDE5_EQPT = CreateSelfDescription.Staging.v2_57_0.CDE5_EQPT.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__CDE5_EQPT__DownloadRsMFile() => _CDE5_EQPT.Staging__v2_57_0__CDE5_EQPT__DownloadRsMFile(); + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.57.0/CDE5.cs b/Adaptation/_Tests/Extract/Staging/v2.57.0/CDE5.cs new file mode 100644 index 0000000..0ed823e --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.57.0/CDE5.cs @@ -0,0 +1,82 @@ +#if v2_57_0 +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.Reflection; + +namespace Adaptation._Tests.Extract.Staging.v2_57_0; + +[TestClass] +public class CDE5 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_57_0.CDE5 _CDE5; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_57_0.CDE5.ClassInitialize(testContext); + _CDE5 = CreateSelfDescription.Staging.v2_57_0.CDE5.EAFLoggingUnitTesting; + } + + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__CDE5__RsM() => _CDE5.Staging__v2_57_0__CDE5__RsM(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__CDE5__RsM637952212190000000__Normal() + { + DateTime dateTime; + string check = "*.RsM"; + bool validatePDSF = false; + _CDE5.Staging__v2_57_0__CDE5__RsM(); + MethodBase methodBase = new StackFrame().GetMethod(); + Assert.IsFalse(string.IsNullOrEmpty(_CDE5.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); + string[] variables = _CDE5.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _CDE5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + dateTime = FileHandlers.RsM.ProcessData.GetDateTime(logistics, string.Empty); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + dateTime = FileHandlers.RsM.ProcessData.GetDateTime(logistics, "00:13 09/27/38"); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + NonThrowTryCatch(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__CDE5__RsM638181148290431160__WMO() + { + string check = "*.RsM"; + bool validatePDSF = false; + _CDE5.Staging__v2_57_0__CDE5__RsM(); + MethodBase methodBase = new StackFrame().GetMethod(); + Assert.IsFalse(string.IsNullOrEmpty(_CDE5.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); + string[] variables = _CDE5.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _CDE5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + NonThrowTryCatch(); + } + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.57.0/CDE6-EQPT.cs b/Adaptation/_Tests/Extract/Staging/v2.57.0/CDE6-EQPT.cs new file mode 100644 index 0000000..a59809d --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.57.0/CDE6-EQPT.cs @@ -0,0 +1,45 @@ +#if v2_57_0 +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System.Diagnostics; +using System.Reflection; +using System.Threading; + +namespace Adaptation._Tests.Extract.Staging.v2_57_0; + +[TestClass] +public class CDE6_EQPT +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_57_0.CDE6_EQPT _CDE6_EQPT; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_57_0.CDE6_EQPT.ClassInitialize(testContext); + _CDE6_EQPT = CreateSelfDescription.Staging.v2_57_0.CDE6_EQPT.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__CDE6_EQPT__DownloadRsMFile() => _CDE6_EQPT.Staging__v2_57_0__CDE6_EQPT__DownloadRsMFile(); + + [Ignore] + [TestMethod] + public void Staging__v2_57_0__CDE6_EQPT__DownloadRsMFile638065099250000000__Normal() + { + bool validatePDSF = false; + string check = "CDE_Logs|WaferMeasurementData.log|.RsM"; + MethodBase methodBase = new StackFrame().GetMethod(); + _CDE6_EQPT.Staging__v2_57_0__CDE6_EQPT__DownloadRsMFile(); + _ = _CDE6_EQPT.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + for (int i = 0; i < int.MaxValue; i++) + Thread.Sleep(500); + } + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.57.0/CDE6.cs b/Adaptation/_Tests/Extract/Staging/v2.57.0/CDE6.cs new file mode 100644 index 0000000..dcf8a6f --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.57.0/CDE6.cs @@ -0,0 +1,56 @@ +#if v2_57_0 +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.Reflection; + +namespace Adaptation._Tests.Extract.Staging.v2_57_0; + +[TestClass] +public class CDE6 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_57_0.CDE6 _CDE6; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_57_0.CDE6.ClassInitialize(testContext); + _CDE6 = CreateSelfDescription.Staging.v2_57_0.CDE6.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__CDE6__RsM() => _CDE6.Staging__v2_57_0__CDE6__RsM(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__CDE6__RsM638065099250000000__Normal() + { + DateTime dateTime; + string check = "*.RsM"; + bool validatePDSF = false; + _CDE6.Staging__v2_57_0__CDE6__RsM(); + MethodBase methodBase = new StackFrame().GetMethod(); + Assert.IsFalse(string.IsNullOrEmpty(_CDE6.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); + string[] variables = _CDE6.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _CDE6.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + dateTime = FileHandlers.RsM.ProcessData.GetDateTime(logistics, string.Empty); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + dateTime = FileHandlers.RsM.ProcessData.GetDateTime(logistics, "00:13 09/27/38"); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + } + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.57.0/MET08RESIMAPCDE.cs b/Adaptation/_Tests/Extract/Staging/v2.57.0/MET08RESIMAPCDE.cs new file mode 100644 index 0000000..cda9be6 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.57.0/MET08RESIMAPCDE.cs @@ -0,0 +1,179 @@ +#if true +using Adaptation._Tests.Shared; +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.Reflection; + +namespace Adaptation._Tests.Extract.Staging.v2_57_0; + +[TestClass] +public class MET08RESIMAPCDE +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_57_0.MET08RESIMAPCDE _MET08RESIMAPCDE; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_57_0.MET08RESIMAPCDE.ClassInitialize(testContext); + _MET08RESIMAPCDE = CreateSelfDescription.Staging.v2_57_0.MET08RESIMAPCDE.EAFLoggingUnitTesting; + } + + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__MoveMatchingFiles() => _MET08RESIMAPCDE.Staging__v2_57_0__MET08RESIMAPCDE__MoveMatchingFiles(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__MoveMatchingFiles637953064190000000__Normal() + { + DateTime dateTime; + string check = "*"; + bool validatePDSF = false; + _MET08RESIMAPCDE.Staging__v2_57_0__MET08RESIMAPCDE__MoveMatchingFiles(); + MethodBase methodBase = new StackFrame().GetMethod(); + Assert.IsFalse(string.IsNullOrEmpty(_MET08RESIMAPCDE.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); + string[] variables = _MET08RESIMAPCDE.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _MET08RESIMAPCDE.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + dateTime = FileHandlers.RsM.ProcessData.GetDateTime(logistics, string.Empty); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + dateTime = FileHandlers.RsM.ProcessData.GetDateTime(logistics, "00:13 09/27/38"); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__OpenInsightMetrologyViewer() => _MET08RESIMAPCDE.Staging__v2_57_0__MET08RESIMAPCDE__OpenInsightMetrologyViewer(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__OpenInsightMetrologyViewer638127615724700306__NewColumn() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIMAPCDE.Staging__v2_57_0__MET08RESIMAPCDE__OpenInsightMetrologyViewer(); + string[] variables = _MET08RESIMAPCDE.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08RESIMAPCDE.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__IQSSi() => _MET08RESIMAPCDE.Staging__v2_57_0__MET08RESIMAPCDE__IQSSi(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__OpenInsight() => _MET08RESIMAPCDE.Staging__v2_57_0__MET08RESIMAPCDE__OpenInsight(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__OpenInsight638054501710000000__IqsSql() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIMAPCDE.Staging__v2_57_0__MET08RESIMAPCDE__OpenInsight(); + string[] variables = _MET08RESIMAPCDE.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08RESIMAPCDE.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__OpenInsight638116271690000000__IqsSql() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIMAPCDE.Staging__v2_57_0__MET08RESIMAPCDE__OpenInsight(); + string[] variables = _MET08RESIMAPCDE.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08RESIMAPCDE.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__OpenInsight638159693274771954__IqsSqlButSplit() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIMAPCDE.Staging__v2_57_0__MET08RESIMAPCDE__OpenInsight(); + string[] variables = _MET08RESIMAPCDE.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08RESIMAPCDE.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); + NonThrowTryCatch(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__OpenInsightMetrologyViewerAttachments() => _MET08RESIMAPCDE.Staging__v2_57_0__MET08RESIMAPCDE__OpenInsightMetrologyViewerAttachments(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__APC() => _MET08RESIMAPCDE.Staging__v2_57_0__MET08RESIMAPCDE__APC(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__SPaCe() => _MET08RESIMAPCDE.Staging__v2_57_0__MET08RESIMAPCDE__SPaCe(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__Processed() => _MET08RESIMAPCDE.Staging__v2_57_0__MET08RESIMAPCDE__Processed(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__Archive() => _MET08RESIMAPCDE.Staging__v2_57_0__MET08RESIMAPCDE__Archive(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESIMAPCDE__Dummy() => _MET08RESIMAPCDE.Staging__v2_57_0__MET08RESIMAPCDE__Dummy(); + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Static/MET08RESIMAPCDE.cs b/Adaptation/_Tests/Static/MET08RESIMAPCDE.cs index e15de09..03c5bc2 100644 --- a/Adaptation/_Tests/Static/MET08RESIMAPCDE.cs +++ b/Adaptation/_Tests/Static/MET08RESIMAPCDE.cs @@ -64,7 +64,7 @@ public class MET08RESIMAPCDE : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("MET08RESIMAPCDE", "v2.56.0"), + new("MET08RESIMAPCDE", "v2.57.0"), }; string staging = "http://mestsa07ec.infineon.com:9003/CellInstanceServiceV2"; Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion; diff --git a/Adaptation/_Tests/Static/RsM.cs b/Adaptation/_Tests/Static/RsM.cs index eb70e83..a88f657 100644 --- a/Adaptation/_Tests/Static/RsM.cs +++ b/Adaptation/_Tests/Static/RsM.cs @@ -183,14 +183,14 @@ public class RsM : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("CDE3", "v2.56.0"), - new("CDE4", "v2.56.0"), - new("CDE5", "v2.56.0"), - new("CDE6", "v2.56.0"), - new("CDE3-EQPT", "v2.56.0"), - new("CDE4-EQPT", "v2.56.0"), - new("CDE5-EQPT", "v2.56.0"), - new("CDE6-EQPT", "v2.56.0"), + new("CDE3", "v2.57.0"), + new("CDE4", "v2.57.0"), + new("CDE5", "v2.57.0"), + new("CDE6", "v2.57.0"), + new("CDE3-EQPT", "v2.57.0"), + new("CDE4-EQPT", "v2.57.0"), + new("CDE5-EQPT", "v2.57.0"), + new("CDE6-EQPT", "v2.57.0"), }; string staging = "http://mestsa07ec.infineon.com:9003/CellInstanceServiceV2"; Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion; diff --git a/Adaptation/_Tests/Static/txt.cs b/Adaptation/_Tests/Static/txt.cs index 34e2bc6..dda062b 100644 --- a/Adaptation/_Tests/Static/txt.cs +++ b/Adaptation/_Tests/Static/txt.cs @@ -204,7 +204,7 @@ public class TXT : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("CDE2", "v2.56.0"), + new("CDE2", "v2.57.0"), }; string staging = "http://mestsa07ec.infineon.com:9003/CellInstanceServiceV2"; Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion; diff --git a/MET08RESIMAPCDE.csproj b/MET08RESIMAPCDE.csproj index 855c5da..37a88b9 100644 --- a/MET08RESIMAPCDE.csproj +++ b/MET08RESIMAPCDE.csproj @@ -175,7 +175,7 @@ - 2.56.0 + 2.57.0 6.0.3 diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 7dc471e..66d5642 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.56.0.0")] -[assembly: AssemblyFileVersion("2.56.0.0")] +[assembly: AssemblyVersion("2.57.0.0")] +[assembly: AssemblyFileVersion("2.57.0.0")]