From 1a9055b2cd5fb8d996bb8bf37de16f248a1a9183 Mon Sep 17 00:00:00 2001 From: Mike Phares Date: Mon, 19 Aug 2024 16:52:32 -0700 Subject: [PATCH] v2.57.0 --- Adaptation/.vscode/tasks.json | 6 - .../FileHandlers/DownloadSRPxFile/FileRead.cs | 273 ------------------ .../DownloadSRPxFile/NginxFileSystem.cs | 11 - Adaptation/MET08RESISRP2100-Development.yml | 8 +- Adaptation/MET08RESISRP2100.Tests.csproj | 12 +- Adaptation/MET08RESISRP2100.yml | 8 +- .../Staging/v2.56.0/MET08RESISRP2100.cs | 22 +- .../Staging/v2.56.0/SRP-EQPT.cs | 4 +- .../Staging/v2.56.0/SRP.cs | 4 +- .../Staging/v2.57.0/MET08RESISRP2100.cs | 182 ++++++++++++ .../Staging/v2.57.0/SRP-EQPT.cs | 65 +++++ .../Staging/v2.57.0/SRP.cs | 65 +++++ .../Staging/v2.56.0/MET08RESISRP2100.cs | 30 +- .../Extract/Staging/v2.56.0/SRP-EQPT.cs | 4 +- .../_Tests/Extract/Staging/v2.56.0/SRP.cs | 6 +- .../Staging/v2.57.0/MET08RESISRP2100.cs | 159 ++++++++++ .../Extract/Staging/v2.57.0/SRP-EQPT.cs | 56 ++++ .../_Tests/Extract/Staging/v2.57.0/SRP.cs | 58 ++++ Adaptation/_Tests/Static/MET08RESISRP2100.cs | 2 +- Adaptation/_Tests/Static/json.cs | 2 +- MET08RESISRP2100.csproj | 2 +- Properties/AssemblyInfo.cs | 4 +- 22 files changed, 610 insertions(+), 373 deletions(-) delete mode 100644 Adaptation/FileHandlers/DownloadSRPxFile/FileRead.cs delete mode 100644 Adaptation/FileHandlers/DownloadSRPxFile/NginxFileSystem.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/MET08RESISRP2100.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/SRP-EQPT.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/SRP.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.57.0/MET08RESISRP2100.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.57.0/SRP-EQPT.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.57.0/SRP.cs diff --git a/Adaptation/.vscode/tasks.json b/Adaptation/.vscode/tasks.json index f1bf912..6bd6ba6 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:/MET08RESISRP2100/06_SourceCode/MET08RESISRP2100/Adaptation -s T:/MET08RESISRP2100/06_SourceCode/MET08RESISRP2100/Adaptation/.kanbn/tasks", - "problemMatcher": [] - }, { "label": "Kanbn Console", "type": "npm", diff --git a/Adaptation/FileHandlers/DownloadSRPxFile/FileRead.cs b/Adaptation/FileHandlers/DownloadSRPxFile/FileRead.cs deleted file mode 100644 index afa9df9..0000000 --- a/Adaptation/FileHandlers/DownloadSRPxFile/FileRead.cs +++ /dev/null @@ -1,273 +0,0 @@ -using Adaptation.Eaf.Management.ConfigurationData.CellAutomation; -using Adaptation.Ifx.Eaf.EquipmentConnector.File.Configuration; -using Adaptation.Shared; -using Adaptation.Shared.Duplicator; -using Adaptation.Shared.Methods; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using System.IO; -using System.Linq; -using System.Net.Http; -using System.Text.Json; -using System.Threading; - -namespace Adaptation.FileHandlers.DownloadSRPxFile; - -public class FileRead : Shared.FileRead, IFileRead -{ - - private readonly Timer _Timer; - private readonly HttpClient _HttpClient; - private readonly string _StaticFileServer; - - public FileRead(ISMTP smtp, Dictionary fileParameter, string cellInstanceName, int? connectionCount, string cellInstanceConnectionName, FileConnectorConfiguration fileConnectorConfiguration, string equipmentTypeName, string parameterizedModelObjectDefinitionType, IList modelObjectParameters, string equipmentDictionaryName, Dictionary> dummyRuns, Dictionary> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) : - base(new Description(), false, smtp, fileParameter, cellInstanceName, connectionCount, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted: connectionCount is null) - { - _MinFileLength = 10; - _NullData = string.Empty; - _Logistics = new(this); - if (_FileParameter is null) - throw new Exception(cellInstanceConnectionName); - if (_ModelObjectParameterDefinitions is null) - throw new Exception(cellInstanceConnectionName); - if (_IsDuplicator) - throw new Exception(cellInstanceConnectionName); - _HttpClient = new(); - _StaticFileServer = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, string.Concat("CellInstance.", cellInstanceName, ".StaticFileServer")); - if (!Debugger.IsAttached && fileConnectorConfiguration.PreProcessingMode != FileConnectorConfiguration.PreProcessingModeEnum.Process) - _Timer = new Timer(Callback, null, (int)(fileConnectorConfiguration.FileScanningIntervalInSeconds * 1000), Timeout.Infinite); - else - { - _Timer = new Timer(Callback, null, Timeout.Infinite, Timeout.Infinite); - Callback(null); - } - } - - void IFileRead.Move(Tuple> extractResults, Exception exception) => Move(extractResults); - - void IFileRead.WaitForThread() => WaitForThread(thread: null, threadExceptions: null); - - string IFileRead.GetEventDescription() - { - string result = _Description.GetEventDescription(); - return result; - } - - List IFileRead.GetHeaderNames() - { - List results = _Description.GetHeaderNames(); - return results; - } - - string[] IFileRead.Move(Tuple> extractResults, string to, string from, string resolvedFileLocation, Exception exception) - { - string[] results = Move(extractResults, to, from, resolvedFileLocation, exception); - return results; - } - - JsonProperty[] IFileRead.GetDefault() - { - JsonProperty[] results = _Description.GetDefault(this, _Logistics); - return results; - } - - Dictionary IFileRead.GetDisplayNamesJsonElement() - { - Dictionary results = _Description.GetDisplayNamesJsonElement(this); - return results; - } - - List IFileRead.GetDescriptions(IFileRead fileRead, List tests, IProcessData processData) - { - List results = _Description.GetDescriptions(fileRead, _Logistics, tests, processData); - return results; - } - - Tuple> IFileRead.GetExtractResult(string reportFullPath, string eventName) - { - Tuple> results; - if (string.IsNullOrEmpty(eventName)) - throw new Exception(); - _ReportFullPath = reportFullPath; - DateTime dateTime = DateTime.Now; - results = GetExtractResult(reportFullPath, dateTime); - if (results.Item3 is null) - results = new Tuple>(results.Item1, Array.Empty(), JsonSerializer.Deserialize("[]"), results.Item4); - if (results.Item3.Length > 0 && _IsEAFHosted) - WritePDSF(this, results.Item3); - UpdateLastTicksDuration(DateTime.Now.Ticks - dateTime.Ticks); - return results; - } - - Tuple> IFileRead.ReExtract() - { - Tuple> results; - List headerNames = _Description.GetHeaderNames(); - Dictionary keyValuePairs = _Description.GetDisplayNamesJsonElement(this); - results = ReExtract(this, headerNames, keyValuePairs); - return results; - } - - private Tuple> GetExtractResult(string reportFullPath, DateTime dateTime) => throw new Exception(string.Concat("See ", nameof(Callback))); - - private void DownloadSRPxFileAsync() - { - if (_HttpClient is null) - throw new Exception(); - if (string.IsNullOrEmpty(_StaticFileServer)) - throw new Exception(); - string logUrl; - string logText; - string runJson; - string rootJson; - string targetJson; - string[] logLines; - string runFileName; - string[] logSegments; - string targetFileName; - string runFullFileName; - FileInfo targetFileInfo; - FileInfo alternateFileInfo; - List runFullFileNameSegments; - string dateTimeFormat = "yy/MM/dd HH:mm:ss"; - NginxFileSystem[] runNginxFileSystemCollection; - NginxFileSystem[] rootNginxFileSystemCollection; - NginxFileSystem[] innerNginxFileSystemCollection; - DateTime fileAgeThresholdDateTime = DateTime.Now; - string nginxFormat = "ddd, dd MMM yyyy HH:mm:ss zzz"; - List> possibleDownload = new(); - string[] segments = _FileConnectorConfiguration.FileAgeThreshold.Split(':'); - JsonSerializerOptions propertyNameCaseInsensitiveJsonSerializerOptions = new() { PropertyNameCaseInsensitive = true }; - for (int i = 0; i < segments.Length; i++) - { - fileAgeThresholdDateTime = i switch - { - 0 => fileAgeThresholdDateTime.AddDays(double.Parse(segments[i]) * -1), - 1 => fileAgeThresholdDateTime.AddHours(double.Parse(segments[i]) * -1), - 2 => fileAgeThresholdDateTime.AddMinutes(double.Parse(segments[i]) * -1), - 3 => fileAgeThresholdDateTime.AddSeconds(double.Parse(segments[i]) * -1), - _ => throw new Exception(), - }; - } - rootJson = _HttpClient.GetStringAsync(string.Concat("http://", _StaticFileServer)).Result; - rootNginxFileSystemCollection = JsonSerializer.Deserialize(rootJson, propertyNameCaseInsensitiveJsonSerializerOptions); - foreach (NginxFileSystem rootNginxFileSystem in rootNginxFileSystemCollection) - { - if (!(from l in _FileConnectorConfiguration.SourceFileFilters where rootNginxFileSystem.Name == l select false).Any()) - continue; - logUrl = string.Empty; - if (rootNginxFileSystem.Name.Contains(".")) - logUrl = string.Concat("http://", _StaticFileServer, '/', rootNginxFileSystem.Name); - else - { - rootJson = _HttpClient.GetStringAsync(string.Concat("http://", _StaticFileServer, '/', rootNginxFileSystem.Name)).Result; - innerNginxFileSystemCollection = JsonSerializer.Deserialize(rootJson, propertyNameCaseInsensitiveJsonSerializerOptions); - foreach (NginxFileSystem innerNginxFileSystem in innerNginxFileSystemCollection) - { - if (!(from l in _FileConnectorConfiguration.SourceFileFilters where innerNginxFileSystem.Name == l select false).Any()) - continue; - logUrl = string.Concat("http://", _StaticFileServer, '/', rootNginxFileSystem.Name, '/', innerNginxFileSystem.Name); - break; - } - } - if (string.IsNullOrEmpty(logUrl)) - continue; - logText = _HttpClient.GetStringAsync(logUrl).Result; - logLines = logText.Split(new string[] { Environment.NewLine }, StringSplitOptions.None); - foreach (string logLine in logLines) - { - if (string.IsNullOrEmpty(logLine)) - continue; - logSegments = logLine.Split('<'); - if (logSegments.Length < 1 || !DateTime.TryParseExact(logSegments[0].Trim(), dateTimeFormat, CultureInfo.InvariantCulture, DateTimeStyles.None, out DateTime tvsDateTime)) - continue; - if (tvsDateTime < fileAgeThresholdDateTime) - continue; - if (logSegments.Length < 2) - continue; - runFullFileName = logSegments[1].Split('>')[0]; - if (!(from l in _FileConnectorConfiguration.SourceFileFilters where runFullFileName.EndsWith(l) select false).Any()) - continue; - runFullFileNameSegments = runFullFileName.Split('\\').ToList(); - runFileName = runFullFileNameSegments[runFullFileNameSegments.Count - 1]; - runFullFileNameSegments.RemoveAt(runFullFileNameSegments.Count - 1); - runJson = _HttpClient.GetStringAsync(string.Concat("http://", _StaticFileServer, '/', string.Join("/", runFullFileNameSegments))).Result; - runFullFileNameSegments.Add(runFileName); - runNginxFileSystemCollection = JsonSerializer.Deserialize(runJson, propertyNameCaseInsensitiveJsonSerializerOptions); - foreach (NginxFileSystem matchNginxFileSystem in runNginxFileSystemCollection) - { - if (matchNginxFileSystem.Name != runFileName) - continue; - if (!(from l in _FileConnectorConfiguration.SourceFileFilters where matchNginxFileSystem.Name.EndsWith(l) select false).Any()) - continue; - if (!DateTime.TryParseExact(matchNginxFileSystem.MTime.Replace("GMT", "+00:00"), nginxFormat, CultureInfo.InvariantCulture, DateTimeStyles.None, out DateTime matchNginxFileSystemDateTime)) - continue; - if (matchNginxFileSystemDateTime < fileAgeThresholdDateTime) - continue; - targetFileInfo = new FileInfo(Path.Combine(_FileConnectorConfiguration.TargetFileLocation, runFullFileName)); - if (!Directory.Exists(targetFileInfo.Directory.FullName)) - _ = Directory.CreateDirectory(targetFileInfo.Directory.FullName); - if (targetFileInfo.Exists && targetFileInfo.LastWriteTime == matchNginxFileSystemDateTime) - continue; - alternateFileInfo = new(Path.Combine(_FileConnectorConfiguration.AlternateTargetFolder, matchNginxFileSystem.Name)); - targetFileName = string.Concat("http://", _StaticFileServer, '/', string.Join("/", runFullFileNameSegments)); - possibleDownload.Add(new(matchNginxFileSystemDateTime, targetFileInfo, alternateFileInfo, targetFileName)); - break; - } - if (possibleDownload.Count != 0) - break; - } - if (possibleDownload.Count != 0) - break; - } - if (possibleDownload.Count != 0) - { - possibleDownload = (from l in possibleDownload orderby l.Item1 select l).ToList(); - alternateFileInfo = possibleDownload[0].Item3; - targetFileName = possibleDownload[0].Item4; - targetFileInfo = possibleDownload[0].Item2; - DateTime matchNginxFileSystemDateTime = possibleDownload[0].Item1; - if (alternateFileInfo.Exists) - File.Delete(alternateFileInfo.FullName); - if (targetFileInfo.Exists) - File.Delete(targetFileInfo.FullName); - targetJson = _HttpClient.GetStringAsync(targetFileName).Result; - File.WriteAllText(targetFileInfo.FullName, targetJson); - targetFileInfo.LastWriteTime = matchNginxFileSystemDateTime; - File.Copy(targetFileInfo.FullName, alternateFileInfo.FullName); - } - } - - private void Callback(object state) - { - try - { - if (_IsEAFHosted) - DownloadSRPxFileAsync(); - } - catch (Exception exception) - { - string subject = string.Concat("Exception:", _CellInstanceConnectionName); - string body = string.Concat(exception.Message, Environment.NewLine, Environment.NewLine, exception.StackTrace); - try - { _SMTP.SendHighPriorityEmailMessage(subject, body); } - catch (Exception) { } - } - try - { - TimeSpan timeSpan = new(DateTime.Now.AddSeconds(_FileConnectorConfiguration.FileScanningIntervalInSeconds.Value).Ticks - DateTime.Now.Ticks); - _ = _Timer.Change((long)timeSpan.TotalMilliseconds, Timeout.Infinite); - } - catch (Exception exception) - { - string subject = string.Concat("Exception:", _CellInstanceConnectionName); - string body = string.Concat(exception.Message, Environment.NewLine, Environment.NewLine, exception.StackTrace); - try - { _SMTP.SendHighPriorityEmailMessage(subject, body); } - catch (Exception) { } - } - } - -} \ No newline at end of file diff --git a/Adaptation/FileHandlers/DownloadSRPxFile/NginxFileSystem.cs b/Adaptation/FileHandlers/DownloadSRPxFile/NginxFileSystem.cs deleted file mode 100644 index 9736707..0000000 --- a/Adaptation/FileHandlers/DownloadSRPxFile/NginxFileSystem.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace Adaptation.FileHandlers.DownloadSRPxFile; - -internal class NginxFileSystem -{ - - public string Name { get; set; } - public string Type { get; set; } - public string MTime { get; set; } - public float Size { get; set; } - -} \ No newline at end of file diff --git a/Adaptation/MET08RESISRP2100-Development.yml b/Adaptation/MET08RESISRP2100-Development.yml index 5e8f7bf..0d8f7c3 100644 --- a/Adaptation/MET08RESISRP2100-Development.yml +++ b/Adaptation/MET08RESISRP2100-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/MET08RESISRP2100.Tests.csproj b/Adaptation/MET08RESISRP2100.Tests.csproj index 70505fd..3b75a8a 100644 --- a/Adaptation/MET08RESISRP2100.Tests.csproj +++ b/Adaptation/MET08RESISRP2100.Tests.csproj @@ -45,10 +45,10 @@ NU1701 NU1701 - + - + @@ -57,15 +57,15 @@ - - + + NU1701 - - + + diff --git a/Adaptation/MET08RESISRP2100.yml b/Adaptation/MET08RESISRP2100.yml index bb36298..8e16254 100644 --- a/Adaptation/MET08RESISRP2100.yml +++ b/Adaptation/MET08RESISRP2100.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/MET08RESISRP2100.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/MET08RESISRP2100.cs index ef6e14e..04b8102 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/MET08RESISRP2100.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/MET08RESISRP2100.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 MET08RESISRP2100 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__MoveMatchingFiles() { @@ -61,9 +59,7 @@ public class MET08RESISRP2100 : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__OpenInsightMetrologyViewer() { @@ -74,9 +70,7 @@ public class MET08RESISRP2100 : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__IQSSi() { @@ -87,9 +81,7 @@ public class MET08RESISRP2100 : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__OpenInsight() { @@ -100,9 +92,7 @@ public class MET08RESISRP2100 : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__OpenInsightMetrologyViewerAttachments() { @@ -113,9 +103,7 @@ public class MET08RESISRP2100 : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__APC() { @@ -126,9 +114,7 @@ public class MET08RESISRP2100 : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__SPaCe() { @@ -139,9 +125,7 @@ public class MET08RESISRP2100 : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__Processed() { @@ -152,9 +136,7 @@ public class MET08RESISRP2100 : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__Archive() { @@ -165,9 +147,7 @@ public class MET08RESISRP2100 : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__Dummy() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/SRP-EQPT.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/SRP-EQPT.cs index 1a53b7a..c852fb1 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/SRP-EQPT.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/SRP-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 SRP_EQPT : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__SRP_EQPT__csv() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/SRP.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/SRP.cs index 5ca26c2..a29f899 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/SRP.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/SRP.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 SRP : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__SRP__json() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/MET08RESISRP2100.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/MET08RESISRP2100.cs new file mode 100644 index 0000000..c5aa813 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/MET08RESISRP2100.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 MET08RESISRP2100 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static MET08RESISRP2100 EAFLoggingUnitTesting { get; private set; } + + static MET08RESISRP2100() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; + + public MET08RESISRP2100() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public MET08RESISRP2100(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new MET08RESISRP2100(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__MET08RESISRP2100__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__MET08RESISRP2100__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__MET08RESISRP2100__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__MET08RESISRP2100__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__MET08RESISRP2100__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__MET08RESISRP2100__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__MET08RESISRP2100__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__MET08RESISRP2100__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__MET08RESISRP2100__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__MET08RESISRP2100__Dummy() + { + string check = "638191594841489860.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/SRP-EQPT.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/SRP-EQPT.cs new file mode 100644 index 0000000..77ed8b4 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/SRP-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 SRP_EQPT : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static SRP_EQPT EAFLoggingUnitTesting { get; private set; } + + static SRP_EQPT() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; + + public SRP_EQPT() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public SRP_EQPT(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new SRP_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__SRP_EQPT__csv() + { + string check = "*.csv"; + 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/SRP.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/SRP.cs new file mode 100644 index 0000000..5ea2505 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/SRP.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 SRP : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static SRP EAFLoggingUnitTesting { get; private set; } + + static SRP() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; + + public SRP() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public SRP(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new SRP(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__SRP__json() + { + string check = "*.json"; + 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/MET08RESISRP2100.cs b/Adaptation/_Tests/Extract/Staging/v2.56.0/MET08RESISRP2100.cs index 8ef305d..8fd411c 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.56.0/MET08RESISRP2100.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.56.0/MET08RESISRP2100.cs @@ -1,4 +1,4 @@ -#if true +#if v2_56_0 using Adaptation.Shared; using Adaptation.Shared.Methods; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -31,21 +31,15 @@ public class MET08RESISRP2100 catch (Exception) { } } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__MoveMatchingFiles() => _MET08RESISRP2100.Staging__v2_56_0__MET08RESISRP2100__MoveMatchingFiles(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__OpenInsightMetrologyViewer() => _MET08RESISRP2100.Staging__v2_56_0__MET08RESISRP2100__OpenInsightMetrologyViewer(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__OpenInsightMetrologyViewer638191594841489860__First() { @@ -59,15 +53,11 @@ public class MET08RESISRP2100 NonThrowTryCatch(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__IQSSi() => _MET08RESISRP2100.Staging__v2_56_0__MET08RESISRP2100__IQSSi(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__IQSSi638191594841489860__First() { @@ -81,15 +71,11 @@ public class MET08RESISRP2100 NonThrowTryCatch(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__OpenInsight() => _MET08RESISRP2100.Staging__v2_56_0__MET08RESISRP2100__OpenInsight(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__OpenInsight638191594841489860__First() { @@ -103,15 +89,11 @@ public class MET08RESISRP2100 NonThrowTryCatch(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__OpenInsightMetrologyViewerAttachments() => _MET08RESISRP2100.Staging__v2_56_0__MET08RESISRP2100__OpenInsightMetrologyViewerAttachments(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__OpenInsightMetrologyViewerAttachments638191594841489860__First() { @@ -125,33 +107,23 @@ public class MET08RESISRP2100 NonThrowTryCatch(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__APC() => _MET08RESISRP2100.Staging__v2_56_0__MET08RESISRP2100__APC(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__SPaCe() => _MET08RESISRP2100.Staging__v2_56_0__MET08RESISRP2100__SPaCe(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__Processed() => _MET08RESISRP2100.Staging__v2_56_0__MET08RESISRP2100__Processed(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__Archive() => _MET08RESISRP2100.Staging__v2_56_0__MET08RESISRP2100__Archive(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__MET08RESISRP2100__Dummy() => _MET08RESISRP2100.Staging__v2_56_0__MET08RESISRP2100__Dummy(); diff --git a/Adaptation/_Tests/Extract/Staging/v2.56.0/SRP-EQPT.cs b/Adaptation/_Tests/Extract/Staging/v2.56.0/SRP-EQPT.cs index 8fc8c86..3a12ba6 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.56.0/SRP-EQPT.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.56.0/SRP-EQPT.cs @@ -1,4 +1,4 @@ -#if true +#if v2_56_0 using Adaptation.Shared; using Adaptation.Shared.Methods; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -31,9 +31,7 @@ public class SRP_EQPT catch (Exception) { } } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__SRP_EQPT__csv() => _SRP_EQPT.Staging__v2_56_0__SRP_EQPT__csv(); diff --git a/Adaptation/_Tests/Extract/Staging/v2.56.0/SRP.cs b/Adaptation/_Tests/Extract/Staging/v2.56.0/SRP.cs index 027bf53..50a22ee 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.56.0/SRP.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.56.0/SRP.cs @@ -1,4 +1,4 @@ -#if true +#if v2_56_0 using Adaptation.Shared; using Adaptation.Shared.Methods; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -31,15 +31,11 @@ public class SRP catch (Exception) { } } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__SRP__json() => _SRP.Staging__v2_56_0__SRP__json(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__SRP__json638185594063339969__First() { diff --git a/Adaptation/_Tests/Extract/Staging/v2.57.0/MET08RESISRP2100.cs b/Adaptation/_Tests/Extract/Staging/v2.57.0/MET08RESISRP2100.cs new file mode 100644 index 0000000..9916efd --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.57.0/MET08RESISRP2100.cs @@ -0,0 +1,159 @@ +#if true +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 MET08RESISRP2100 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_57_0.MET08RESISRP2100 _MET08RESISRP2100; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_57_0.MET08RESISRP2100.ClassInitialize(testContext); + _MET08RESISRP2100 = CreateSelfDescription.Staging.v2_57_0.MET08RESISRP2100.EAFLoggingUnitTesting; + } + + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESISRP2100__MoveMatchingFiles() => _MET08RESISRP2100.Staging__v2_57_0__MET08RESISRP2100__MoveMatchingFiles(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESISRP2100__OpenInsightMetrologyViewer() => _MET08RESISRP2100.Staging__v2_57_0__MET08RESISRP2100__OpenInsightMetrologyViewer(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESISRP2100__OpenInsightMetrologyViewer638191594841489860__First() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESISRP2100.Staging__v2_57_0__MET08RESISRP2100__OpenInsightMetrologyViewer(); + string[] variables = _MET08RESISRP2100.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08RESISRP2100.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); + NonThrowTryCatch(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESISRP2100__IQSSi() => _MET08RESISRP2100.Staging__v2_57_0__MET08RESISRP2100__IQSSi(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESISRP2100__IQSSi638191594841489860__First() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESISRP2100.Staging__v2_57_0__MET08RESISRP2100__IQSSi(); + string[] variables = _MET08RESISRP2100.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08RESISRP2100.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); + NonThrowTryCatch(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESISRP2100__OpenInsight() => _MET08RESISRP2100.Staging__v2_57_0__MET08RESISRP2100__OpenInsight(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESISRP2100__OpenInsight638191594841489860__First() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESISRP2100.Staging__v2_57_0__MET08RESISRP2100__OpenInsight(); + string[] variables = _MET08RESISRP2100.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08RESISRP2100.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); + NonThrowTryCatch(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESISRP2100__OpenInsightMetrologyViewerAttachments() => _MET08RESISRP2100.Staging__v2_57_0__MET08RESISRP2100__OpenInsightMetrologyViewerAttachments(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESISRP2100__OpenInsightMetrologyViewerAttachments638191594841489860__First() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESISRP2100.Staging__v2_57_0__MET08RESISRP2100__OpenInsightMetrologyViewerAttachments(); + string[] variables = _MET08RESISRP2100.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08RESISRP2100.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); + NonThrowTryCatch(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESISRP2100__APC() => _MET08RESISRP2100.Staging__v2_57_0__MET08RESISRP2100__APC(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESISRP2100__SPaCe() => _MET08RESISRP2100.Staging__v2_57_0__MET08RESISRP2100__SPaCe(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESISRP2100__Processed() => _MET08RESISRP2100.Staging__v2_57_0__MET08RESISRP2100__Processed(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESISRP2100__Archive() => _MET08RESISRP2100.Staging__v2_57_0__MET08RESISRP2100__Archive(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__MET08RESISRP2100__Dummy() => _MET08RESISRP2100.Staging__v2_57_0__MET08RESISRP2100__Dummy(); + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.57.0/SRP-EQPT.cs b/Adaptation/_Tests/Extract/Staging/v2.57.0/SRP-EQPT.cs new file mode 100644 index 0000000..d3d754d --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.57.0/SRP-EQPT.cs @@ -0,0 +1,56 @@ +#if true +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 SRP_EQPT +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_57_0.SRP_EQPT _SRP_EQPT; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_57_0.SRP_EQPT.ClassInitialize(testContext); + _SRP_EQPT = CreateSelfDescription.Staging.v2_57_0.SRP_EQPT.EAFLoggingUnitTesting; + } + + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__SRP_EQPT__csv() => _SRP_EQPT.Staging__v2_57_0__SRP_EQPT__csv(); + + [Ignore] + [TestMethod] + public void Staging__v2_57_0__SRP_EQPT__csv638185594063339969__First() + { + string check = "*.csv"; + bool validatePDSF = false; + _SRP_EQPT.Staging__v2_57_0__SRP_EQPT__csv(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _SRP_EQPT.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _SRP_EQPT.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/SRP.cs b/Adaptation/_Tests/Extract/Staging/v2.57.0/SRP.cs new file mode 100644 index 0000000..65ae6f1 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.57.0/SRP.cs @@ -0,0 +1,58 @@ +#if true +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 SRP +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_57_0.SRP _SRP; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_57_0.SRP.ClassInitialize(testContext); + _SRP = CreateSelfDescription.Staging.v2_57_0.SRP.EAFLoggingUnitTesting; + } + + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__SRP__json() => _SRP.Staging__v2_57_0__SRP__json(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_57_0__SRP__json638185594063339969__First() + { + string check = "*.json"; + bool validatePDSF = false; + _SRP.Staging__v2_57_0__SRP__json(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _SRP.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _SRP.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/Static/MET08RESISRP2100.cs b/Adaptation/_Tests/Static/MET08RESISRP2100.cs index 95f45e6..5329b39 100644 --- a/Adaptation/_Tests/Static/MET08RESISRP2100.cs +++ b/Adaptation/_Tests/Static/MET08RESISRP2100.cs @@ -64,7 +64,7 @@ public class MET08RESISRP2100 : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("MET08RESISRP2100", "v2.56.0"), + new("MET08RESISRP2100", "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/json.cs b/Adaptation/_Tests/Static/json.cs index 8c5d00f..cb8059c 100644 --- a/Adaptation/_Tests/Static/json.cs +++ b/Adaptation/_Tests/Static/json.cs @@ -207,7 +207,7 @@ public class JSON : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("SRP", "v2.56.0"), + new("SRP", "v2.57.0"), }; string staging = "http://mestsa07ec.infineon.com:9003/CellInstanceServiceV2"; Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion; diff --git a/MET08RESISRP2100.csproj b/MET08RESISRP2100.csproj index f078c9c..2eac7e8 100644 --- a/MET08RESISRP2100.csproj +++ b/MET08RESISRP2100.csproj @@ -204,7 +204,7 @@ - 2.56.0 + 2.57.0 6.0.3 diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index f18aeed..f2bdaa7 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")]