diff --git a/Adaptation/.vscode/tasks.json b/Adaptation/.vscode/tasks.json index 5ab164e..792c43e 100644 --- a/Adaptation/.vscode/tasks.json +++ b/Adaptation/.vscode/tasks.json @@ -76,12 +76,6 @@ ], "problemMatcher": "$msCompile" }, - { - "label": "File-Folder-Helper AOT s M .Kanbn Tasks", - "type": "shell", - "command": "L:/DevOps/Mesa_FI/File-Folder-Helper/bin/Release/net8.0/win-x64/publish/File-Folder-Helper.exe s M T:/METCLIMATEC/06_SourceCode/METCLIMATEC/Adaptation -s T:/METCLIMATEC/06_SourceCode/METCLIMATEC/Adaptation/.kanbn/tasks", - "problemMatcher": [] - }, { "label": "Kanbn Console", "type": "npm", diff --git a/Adaptation/METCLIMATEC-Development.yml b/Adaptation/METCLIMATEC-Development.yml index 9576639..9db71c1 100644 --- a/Adaptation/METCLIMATEC-Development.yml +++ b/Adaptation/METCLIMATEC-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) @@ -121,7 +121,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' @@ -140,11 +140,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/METCLIMATEC.Tests.csproj b/Adaptation/METCLIMATEC.Tests.csproj index 99b4885..fb62160 100644 --- a/Adaptation/METCLIMATEC.Tests.csproj +++ b/Adaptation/METCLIMATEC.Tests.csproj @@ -45,10 +45,10 @@ NU1701 NU1701 - + - + @@ -57,15 +57,15 @@ - - + + NU1701 - - + + diff --git a/Adaptation/METCLIMATEC.yml b/Adaptation/METCLIMATEC.yml index ed01362..e3dd56d 100644 --- a/Adaptation/METCLIMATEC.yml +++ b/Adaptation/METCLIMATEC.yml @@ -26,8 +26,8 @@ steps: displayName: Configuration - script: | - REM set nugetSource=https://eaf-prod.mes.infineon.com/v3/index.json - set nugetSource=https://eaf-dev-reporting.mes.infineon.com/v3/index.json + REM set nugetSource=https://artifactory.intra.infineon.com/artifactory/api/nuget/ngt-fi-package-main-vir/ + 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) @@ -122,7 +122,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' @@ -140,7 +140,7 @@ 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)' diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/METCLIMATEC.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/METCLIMATEC.cs index a8175e7..801a1d4 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/METCLIMATEC.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/METCLIMATEC.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 METCLIMATEC : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__METCLIMATEC__MoveMatchingFiles() { @@ -61,9 +59,7 @@ public class METCLIMATEC : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__METCLIMATEC__IQSSi() { @@ -74,9 +70,7 @@ public class METCLIMATEC : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__METCLIMATEC__Processed() { @@ -87,9 +81,7 @@ public class METCLIMATEC : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__METCLIMATEC__Archive() { @@ -100,9 +92,7 @@ public class METCLIMATEC : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__METCLIMATEC__Dummy() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/TRENDLOG.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/TRENDLOG.cs index af956a6..650a63a 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/TRENDLOG.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/TRENDLOG.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 TRENDLOG : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__TRENDLOG__csv() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/METCLIMATEC.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/METCLIMATEC.cs new file mode 100644 index 0000000..fe47ae0 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/METCLIMATEC.cs @@ -0,0 +1,117 @@ +#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 METCLIMATEC : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static METCLIMATEC EAFLoggingUnitTesting { get; private set; } + + static METCLIMATEC() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; + + public METCLIMATEC() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public METCLIMATEC(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new METCLIMATEC(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__METCLIMATEC__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__METCLIMATEC__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__METCLIMATEC__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__METCLIMATEC__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__METCLIMATEC__Dummy() + { + string check = "637953064190000000.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/CreateSelfDescription/Staging/v2.57.0/TRENDLOG.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/TRENDLOG.cs new file mode 100644 index 0000000..d26f748 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/TRENDLOG.cs @@ -0,0 +1,66 @@ +#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 TRENDLOG : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static TRENDLOG EAFLoggingUnitTesting { get; private set; } + + static TRENDLOG() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; + + public TRENDLOG() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public TRENDLOG(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new TRENDLOG(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__TRENDLOG__csv() + { + string check = "*.csv.trg"; + MethodBase methodBase = new StackFrame().GetMethod(); + // string check = "Dev *, A*, present-value, *D*-*-*-*.csv.trg"; + 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/METCLIMATEC.cs b/Adaptation/_Tests/Extract/Staging/v2.56.0/METCLIMATEC.cs index 096f87a..e09cd20 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.56.0/METCLIMATEC.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.56.0/METCLIMATEC.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 METCLIMATEC catch (Exception) { } } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__METCLIMATEC__MoveMatchingFiles() => _METCLIMATEC.Staging__v2_56_0__METCLIMATEC__MoveMatchingFiles(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__METCLIMATEC__MoveMatchingFiles637953064190000000__Normal() { @@ -56,15 +52,11 @@ public class METCLIMATEC NonThrowTryCatch(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__METCLIMATEC__IQSSi() => _METCLIMATEC.Staging__v2_56_0__METCLIMATEC__IQSSi(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__METCLIMATEC__IQSSi638465291633220310__Normal() { @@ -78,21 +70,15 @@ public class METCLIMATEC NonThrowTryCatch(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__METCLIMATEC__Processed() => _METCLIMATEC.Staging__v2_56_0__METCLIMATEC__Processed(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__METCLIMATEC__Archive() => _METCLIMATEC.Staging__v2_56_0__METCLIMATEC__Archive(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__METCLIMATEC__Dummy() => _METCLIMATEC.Staging__v2_56_0__METCLIMATEC__Dummy(); diff --git a/Adaptation/_Tests/Extract/Staging/v2.56.0/TRENDLOG.cs b/Adaptation/_Tests/Extract/Staging/v2.56.0/TRENDLOG.cs index f82baa1..e7c5a46 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.56.0/TRENDLOG.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.56.0/TRENDLOG.cs @@ -1,4 +1,4 @@ -#if true +#if v2_56_0 using Adaptation.Shared; using Adaptation.Shared.Methods; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -34,15 +34,11 @@ public class TRENDLOG catch (Exception) { } } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__TRENDLOG__csv() => _TRENDLOG.Staging__v2_56_0__TRENDLOG__csv(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__TRENDLOG__csv638465291633220310__Normal() { @@ -61,9 +57,7 @@ public class TRENDLOG NonThrowTryCatch(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__TRENDLOG__csv638465291633220312__Normal() { diff --git a/Adaptation/_Tests/Extract/Staging/v2.57.0/METCLIMATEC.cs b/Adaptation/_Tests/Extract/Staging/v2.57.0/METCLIMATEC.cs new file mode 100644 index 0000000..7b19d2f --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.57.0/METCLIMATEC.cs @@ -0,0 +1,100 @@ +#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 METCLIMATEC +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_57_0.METCLIMATEC _METCLIMATEC; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_57_0.METCLIMATEC.ClassInitialize(testContext); + _METCLIMATEC = CreateSelfDescription.Staging.v2_57_0.METCLIMATEC.EAFLoggingUnitTesting; + } + + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__METCLIMATEC__MoveMatchingFiles() => _METCLIMATEC.Staging__v2_57_0__METCLIMATEC__MoveMatchingFiles(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__METCLIMATEC__MoveMatchingFiles637953064190000000__Normal() + { + string check = "*.pdsf"; + bool validatePDSF = false; + MethodBase methodBase = new StackFrame().GetMethod(); + _METCLIMATEC.Staging__v2_57_0__METCLIMATEC__MoveMatchingFiles(); + Assert.IsFalse(string.IsNullOrEmpty(_METCLIMATEC.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); + string[] variables = _METCLIMATEC.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _METCLIMATEC.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + NonThrowTryCatch(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__METCLIMATEC__IQSSi() => _METCLIMATEC.Staging__v2_57_0__METCLIMATEC__IQSSi(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__METCLIMATEC__IQSSi638465291633220310__Normal() + { + string check = "*.pdsf"; + _METCLIMATEC.Staging__v2_57_0__METCLIMATEC__IQSSi(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _METCLIMATEC.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _METCLIMATEC.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__METCLIMATEC__Processed() => _METCLIMATEC.Staging__v2_57_0__METCLIMATEC__Processed(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__METCLIMATEC__Archive() => _METCLIMATEC.Staging__v2_57_0__METCLIMATEC__Archive(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__METCLIMATEC__Dummy() => _METCLIMATEC.Staging__v2_57_0__METCLIMATEC__Dummy(); + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.57.0/TRENDLOG.cs b/Adaptation/_Tests/Extract/Staging/v2.57.0/TRENDLOG.cs new file mode 100644 index 0000000..36325a6 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.57.0/TRENDLOG.cs @@ -0,0 +1,86 @@ +#if true +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Reflection; +using System.Text.Json; + +namespace Adaptation._Tests.Extract.Staging.v2_57_0; + +[TestClass] +public class TRENDLOG +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_57_0.TRENDLOG _TRENDLOG; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_57_0.TRENDLOG.ClassInitialize(testContext); + _TRENDLOG = CreateSelfDescription.Staging.v2_57_0.TRENDLOG.EAFLoggingUnitTesting; + } + + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__TRENDLOG__csv() => _TRENDLOG.Staging__v2_57_0__TRENDLOG__csv(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__TRENDLOG__csv638465291633220310__Normal() + { + bool validatePDSF = false; + string check = "*.csv.trg"; + _TRENDLOG.Staging__v2_57_0__TRENDLOG__csv(); + MethodBase methodBase = new StackFrame().GetMethod(); + // string check = "Dev *, A*, present-value, *D*-*-*-*.csv.trg"; + Assert.IsFalse(string.IsNullOrEmpty(_TRENDLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); + string[] variables = _TRENDLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _TRENDLOG.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Tuple> extractResult = fileRead.ReExtract(); + Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1)); + Assert.IsNotNull(extractResult.Item3); + Assert.IsNotNull(extractResult.Item4); + NonThrowTryCatch(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__TRENDLOG__csv638465291633220312__Normal() + { + bool validatePDSF = false; + string check = "*.csv.trg"; + _TRENDLOG.Staging__v2_57_0__TRENDLOG__csv(); + MethodBase methodBase = new StackFrame().GetMethod(); + // string check = "Dev *, A*, present-value, *D*-*-*-*.csv.trg"; + Assert.IsFalse(string.IsNullOrEmpty(_TRENDLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); + string[] variables = _TRENDLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _TRENDLOG.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Tuple> extractResult = fileRead.ReExtract(); + Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1)); + Assert.IsNotNull(extractResult.Item3); + Assert.IsNotNull(extractResult.Item4); + NonThrowTryCatch(); + } + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Static/METCLIMATEC.cs b/Adaptation/_Tests/Static/METCLIMATEC.cs index 5b976d7..fd20b9a 100644 --- a/Adaptation/_Tests/Static/METCLIMATEC.cs +++ b/Adaptation/_Tests/Static/METCLIMATEC.cs @@ -64,7 +64,7 @@ public class METCLIMATEC : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("METCLIMATEC", "v2.56.0"), + new("METCLIMATEC", "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/csv.cs b/Adaptation/_Tests/Static/csv.cs index 5c28e87..ce586f0 100644 --- a/Adaptation/_Tests/Static/csv.cs +++ b/Adaptation/_Tests/Static/csv.cs @@ -64,7 +64,7 @@ public class CSV : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("TRENDLOG", "v2.56.0"), + new("TRENDLOG", "v2.57.0"), }; string staging = "http://mestsa07ec.infineon.com:9003/CellInstanceServiceV2"; Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion; diff --git a/METCLIMATEC.csproj b/METCLIMATEC.csproj index 912515a..d0d525a 100644 --- a/METCLIMATEC.csproj +++ b/METCLIMATEC.csproj @@ -168,7 +168,7 @@ - 2.56.0 + 2.57.0 6.0.3 diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 976fc2d..2b9d8ae 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")]