From 43be5fe57dc6a5de537062afe5035df63b676448 Mon Sep 17 00:00:00 2001 From: Mike Phares Date: Thu, 25 Jan 2024 12:07:30 -0700 Subject: [PATCH] Added 9 Columns PopulateCalculated Removed Open Insight API IFX Directory yml ec fix v2_52_0-Tests editorconfig net8.0 mesfs.infineon.com Infineon.EAF.Runtime 2.49.3 pool name Kanban --- .gitignore | 3 + .vscode/mklink.md | 11 ++ .vscode/settings.json | 55 ++++++ Adaptation/.editorconfig | 31 +++ Adaptation/.kanbn/board.css | 7 - Adaptation/.kanbn/index.md | 21 -- Adaptation/FileHandlers/Archive/FileRead.cs | 2 +- Adaptation/FileHandlers/Dummy/FileRead.cs | 2 +- .../MoveMatchingFiles/FileRead.cs | 5 +- .../FileHandlers/OpenInsight/FileRead.cs | 26 ++- .../FileHandlers/OpenInsight/FromIQS.cs | 138 +++++++++++-- .../OpenInsightMetrologyViewer/FileRead.cs | 4 +- .../OpenInsightMetrologyViewer/WSRequest.cs | 2 +- .../FileRead.cs | 6 +- Adaptation/FileHandlers/pcl/Description.cs | 68 ++++++- Adaptation/FileHandlers/pcl/FileRead.cs | 3 +- Adaptation/FileHandlers/pcl/ProcessData.cs | 187 ++++++++++++++---- Adaptation/Infineon/Monitoring/MonA/MonIn.cs | 17 +- Adaptation/MET08RESIHGCV-Development.yml | 19 +- Adaptation/MET08RESIHGCV.Tests.csproj | 47 +++-- Adaptation/MET08RESIHGCV.yml | 19 +- Adaptation/Shared/Duplicator/Description.cs | 2 +- Adaptation/Shared/FileRead.cs | 31 +-- Adaptation/Shared/Logistics.cs | 2 +- .../Shared/ProcessDataStandardFormat.cs | 13 +- .../Staging/v2.43.4/HGCV1.cs | 2 +- .../Staging/v2.43.4/HGCV2.cs | 2 +- .../Staging/v2.43.4/HGCV3.cs | 2 +- .../Staging/v2.43.4/MET08RESIHGCV.cs | 2 +- .../Staging/v2.47.1/HGCV1.cs | 2 +- .../Staging/v2.47.1/HGCV2.cs | 2 +- .../Staging/v2.47.1/HGCV3.cs | 2 +- .../Staging/v2.47.1/MET08RESIHGCV.cs | 2 +- .../Staging/v2.47.5/HGCV1.cs | 2 +- .../Staging/v2.47.5/HGCV2.cs | 2 +- .../Staging/v2.47.5/HGCV3.cs | 2 +- .../Staging/v2.47.5/MET08RESIHGCV.cs | 2 +- .../Staging/v2.49.0/HGCV1.cs | 2 +- .../Staging/v2.49.0/HGCV2.cs | 2 +- .../Staging/v2.49.0/HGCV3.cs | 2 +- .../Staging/v2.49.0/MET08RESIHGCV.cs | 2 +- .../Staging/v2.49.2/HGCV1.cs | 4 +- .../Staging/v2.49.2/HGCV2.cs | 4 +- .../Staging/v2.49.2/HGCV3.cs | 4 +- .../Staging/v2.49.2/MET08RESIHGCV.cs | 22 +-- .../Staging/v2.49.3/HGCV1.cs | 61 ++++++ .../Staging/v2.49.3/HGCV2.cs | 61 ++++++ .../Staging/v2.49.3/HGCV3.cs | 61 ++++++ .../Staging/v2.49.3/MET08RESIHGCV.cs | 160 +++++++++++++++ .../Staging/v2.52.0/HGCV1.cs | 63 ++++++ .../Staging/v2.52.0/HGCV2.cs | 63 ++++++ .../Staging/v2.52.0/HGCV3.cs | 63 ++++++ .../Staging/v2.52.0/MET08RESIHGCV.cs | 180 +++++++++++++++++ .../_Tests/Extract/Staging/v2.49.2/HGCV1.cs | 4 - .../_Tests/Extract/Staging/v2.49.2/HGCV2.cs | 4 - .../_Tests/Extract/Staging/v2.49.2/HGCV3.cs | 8 - .../Extract/Staging/v2.49.2/MET08RESIHGCV.cs | 28 --- .../_Tests/Extract/Staging/v2.49.3/HGCV1.cs | 43 ++++ .../_Tests/Extract/Staging/v2.49.3/HGCV2.cs | 43 ++++ .../_Tests/Extract/Staging/v2.49.3/HGCV3.cs | 72 +++++++ .../Extract/Staging/v2.49.3/MET08RESIHGCV.cs | 119 +++++++++++ .../_Tests/Extract/Staging/v2.52.0/HGCV1.cs | 47 +++++ .../_Tests/Extract/Staging/v2.52.0/HGCV2.cs | 47 +++++ .../_Tests/Extract/Staging/v2.52.0/HGCV3.cs | 96 +++++++++ .../Extract/Staging/v2.52.0/MET08RESIHGCV.cs | 147 ++++++++++++++ Adaptation/_Tests/Shared/AdaptationTesting.cs | 82 ++++---- Adaptation/_Tests/Shared/UnitTesting.cs | 3 +- Adaptation/_Tests/Static/MET08RESIHGCV.cs | 4 +- Adaptation/_Tests/Static/pcl.cs | 8 +- Adaptation/appsettings.Development.json | 6 +- Adaptation/appsettings.json | 6 +- MET08RESIHGCV.csproj | 2 +- Properties/AssemblyInfo.cs | 4 +- 73 files changed, 1943 insertions(+), 329 deletions(-) create mode 100644 .vscode/mklink.md create mode 100644 .vscode/settings.json delete mode 100644 Adaptation/.kanbn/board.css delete mode 100644 Adaptation/.kanbn/index.md create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/HGCV1.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/HGCV2.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/HGCV3.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/MET08RESIHGCV.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.52.0/HGCV1.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.52.0/HGCV2.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.52.0/HGCV3.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.52.0/MET08RESIHGCV.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.49.3/HGCV1.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.49.3/HGCV2.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.49.3/HGCV3.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.49.3/MET08RESIHGCV.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.52.0/HGCV1.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.52.0/HGCV2.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.52.0/HGCV3.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.52.0/MET08RESIHGCV.cs diff --git a/.gitignore b/.gitignore index e85055c..5bede07 100644 --- a/.gitignore +++ b/.gitignore @@ -337,5 +337,8 @@ ASALocalRun/ !**/.vscode/launch.json !**/.vscode/settings.json !**/.vscode/tasks.json +!**/.vscode/mklink.md *.lnk + +.kanbn/**/* diff --git a/.vscode/mklink.md b/.vscode/mklink.md new file mode 100644 index 0000000..0c9b264 --- /dev/null +++ b/.vscode/mklink.md @@ -0,0 +1,11 @@ +--- +type: "note" +created: "2023-10-20T03:52:57.401Z" +updated: "2023-10-20T03:53:49.161Z" +--- + +# mklink + +```bash +mklink /J "L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08RESIHGCV\06_SourceCode\MET08RESIHGCV\.kanbn" "D:\Documents\Kanban\MET08RESIHGCV" +``` diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..71cf24f --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,55 @@ +{ + "files.eol": "\n", + "[markdown]": { + "editor.wordWrap": "off" + }, + "cSpell.words": [ + "PDSF", + "Syncthing" + ], + "files.exclude": { + "**/node_modules": true + }, + "files.watcherExclude": { + "**/node_modules": true + }, + "foam.files.ignore": [ + ".foam/**/*", + ".stfolder/**/*", + "**/_layouts/**/*", + "**/_site/**/*", + "**/.vscode/**/*", + "**/node_modules/**/*" + ], + "kanbn.showBurndownButton": false, + "kanbn.showSprintButton": false, + "foam.links.hover.enable": false, + "foam.placeholders.exclude": [ + ".kanbn/Archive/**/*" + ], + "foam.orphans.exclude": [ + ".journal/**/*" + ], + "foam.graph.style": { + "background": "#202020", + "node": { + "wired": "green", + "wireless": "orange", + "person": "white", + "topic": "#bc2a3c", + "kanbn": "#ff7b00", + "basic-note": "#773b93", + "daily-note": "#ff9d00", + "note": "#f2cb1d", + "placeholder": "#ff9d00", + "tag": "#0494c1", + "bug": "#bc2a3c", + "epic": "#ff7b00", + "feature": "#773b93", + "issue": "#ff9d00", + "task": "#f2cb1d", + "test-case": "#ff9d00", + "user-story": "#0494c1" + } + } +} \ No newline at end of file diff --git a/Adaptation/.editorconfig b/Adaptation/.editorconfig index b45701e..96d9a58 100644 --- a/Adaptation/.editorconfig +++ b/Adaptation/.editorconfig @@ -1,3 +1,19 @@ +[*.md] +end_of_line = crlf +file_header_template = unset +indent_size = 2 +indent_style = space +insert_final_newline = false +root = true +tab_width = 2 +[*.csproj] +end_of_line = crlf +file_header_template = unset +indent_size = 2 +indent_style = space +insert_final_newline = false +root = true +tab_width = 2 [*.cs] csharp_indent_block_contents = true csharp_indent_braces = false @@ -82,13 +98,28 @@ dotnet_diagnostic.CA1829.severity = warning # CA1829: Use Length/Count property dotnet_diagnostic.CA1834.severity = warning # CA1834: Consider using 'StringBuilder.Append(char)' when applicable dotnet_diagnostic.CA1846.severity = none # CA1846: Prefer AsSpan over Substring dotnet_diagnostic.CA1847.severity = none # CA1847: Use string.Contains(char) instead of string.Contains(string) with single characters +dotnet_diagnostic.CA1854.severity = warning # CA1854: Prefer a 'TryGetValue' call over a Dictionary indexer access guarded by a 'ContainsKey' check to avoid double lookup +dotnet_diagnostic.CA1860.severity = error # CA1860: Prefer comparing 'Count' to 0 rather than using 'Any()', both for clarity and for performance +dotnet_diagnostic.CA1864.severity = none # CA1864: To avoid double lookup, call 'TryAdd' instead of calling 'Add' with a 'ContainsKey' guard +dotnet_diagnostic.CA1866.severity = none # CA1866: Use 'string.EndsWith(char)' instead of 'string.EndsWith(string)' when you have a string with a single char +dotnet_diagnostic.CA1869.severity = none # CA1869: Avoid creating a new 'JsonSerializerOptions' instance for every serialization operation. Cache and reuse instances instead. +dotnet_diagnostic.CA2254.severity = none # CA2254: The logging message template should not vary between calls to 'LoggerExtensions.LogInformation(ILogger, string?, params object?[])' dotnet_diagnostic.IDE0001.severity = warning # IDE0001: Simplify name dotnet_diagnostic.IDE0002.severity = warning # Simplify (member access) - System.Version.Equals("1", "2"); Version.Equals("1", "2"); dotnet_diagnostic.IDE0004.severity = warning # IDE0004: Cast is redundant. dotnet_diagnostic.IDE0005.severity = warning # Using directive is unnecessary +dotnet_diagnostic.IDE0028.severity = none # IDE0028: Collection initialization can be simplified +dotnet_diagnostic.IDE0031.severity = warning # Use null propagation (IDE0031) dotnet_diagnostic.IDE0047.severity = warning # IDE0047: Parentheses can be removed dotnet_diagnostic.IDE0049.severity = warning # Use language keywords instead of framework type names for type references (IDE0049) dotnet_diagnostic.IDE0060.severity = warning # IDE0060: Remove unused parameter +dotnet_diagnostic.IDE0200.severity = warning # IDE0200: Lambda expression can be removed +dotnet_diagnostic.IDE0270.severity = none # IDE0270: Null check can be simplified +dotnet_diagnostic.IDE0290.severity = none # Use primary constructor [Distance]csharp(IDE0290) +dotnet_diagnostic.IDE0300.severity = none # IDE0300: Collection initialization can be simplified +dotnet_diagnostic.IDE0301.severity = none #IDE0301: Collection initialization can be simplified +dotnet_diagnostic.IDE0305.severity = none # IDE0305: Collection initialization can be simplified +dotnet_diagnostic.SYSLIB1045.severity = none # SYSLIB1045: diagnostics for regex source generation dotnet_naming_rule.abstract_method_should_be_pascal_case.severity = warning dotnet_naming_rule.abstract_method_should_be_pascal_case.style = pascal_case dotnet_naming_rule.abstract_method_should_be_pascal_case.symbols = abstract_method diff --git a/Adaptation/.kanbn/board.css b/Adaptation/.kanbn/board.css deleted file mode 100644 index 8bc14b6..0000000 --- a/Adaptation/.kanbn/board.css +++ /dev/null @@ -1,7 +0,0 @@ -.kanbn-task-data-workload { - display: none; -} -.kanbn-task-data-relation { - display: block; - color: #198038; -} diff --git a/Adaptation/.kanbn/index.md b/Adaptation/.kanbn/index.md deleted file mode 100644 index 3385d3a..0000000 --- a/Adaptation/.kanbn/index.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -type: "kanbn" -created: 2023-07-07T15:37:56.040Z -updated: 2023-07-18T19:52:59.668Z -startedColumns: - - 'In Progress' -completedColumns: - - Done -dateFormat: mm/dd -taskTemplate: '^+^_${overdue ? ''^R'' : ''''}${name}^: ${relations ? (''\n^-^/^g'' + relations.reduce((accumulator, currentValue) => accumulator.task + currentValue.task + '' '', '''')) : ''''}' ---- - -# MET08RESIHGCV - -## Backlog - -## Todo - -## In Progress - -## Done diff --git a/Adaptation/FileHandlers/Archive/FileRead.cs b/Adaptation/FileHandlers/Archive/FileRead.cs index 3cc4d71..0e79541 100644 --- a/Adaptation/FileHandlers/Archive/FileRead.cs +++ b/Adaptation/FileHandlers/Archive/FileRead.cs @@ -128,7 +128,7 @@ public class FileRead : Shared.FileRead, IFileRead string jobIdDirectory = Path.Combine(_JobIdParentDirectory, _Logistics.JobID); if (!Directory.Exists(jobIdDirectory)) _ = Directory.CreateDirectory(jobIdDirectory); - if (!Directory.GetDirectories(jobIdDirectory).Any()) + if (Directory.GetDirectories(jobIdDirectory).Length == 0) File.Copy(reportFullPath, Path.Combine(destinationArchiveDirectory, Path.GetFileName(reportFullPath))); else { diff --git a/Adaptation/FileHandlers/Dummy/FileRead.cs b/Adaptation/FileHandlers/Dummy/FileRead.cs index 79eda27..916f5d7 100644 --- a/Adaptation/FileHandlers/Dummy/FileRead.cs +++ b/Adaptation/FileHandlers/Dummy/FileRead.cs @@ -157,7 +157,7 @@ public class FileRead : Shared.FileRead, IFileRead if (!Directory.Exists(inProcessDirectory)) _ = Directory.CreateDirectory(inProcessDirectory); files = Directory.GetFiles(inProcessDirectory, "*", SearchOption.AllDirectories); - if (files.Any()) + if (files.Length != 0) { if (files.Length > 250) throw new Exception("Safety net!"); diff --git a/Adaptation/FileHandlers/MoveMatchingFiles/FileRead.cs b/Adaptation/FileHandlers/MoveMatchingFiles/FileRead.cs index 39f8d62..2d8a495 100644 --- a/Adaptation/FileHandlers/MoveMatchingFiles/FileRead.cs +++ b/Adaptation/FileHandlers/MoveMatchingFiles/FileRead.cs @@ -6,7 +6,6 @@ using Adaptation.Shared.Methods; using System; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Text; using System.Text.Json; using System.Threading; @@ -129,7 +128,7 @@ public class FileRead : Shared.FileRead, IFileRead for (int i = 0; i < int.MaxValue; i++) { found = Directory.GetFiles(searchDirectory, fileName, SearchOption.AllDirectories); - if (found.Any()) + if (found.Length != 0) { results.AddRange(found); break; @@ -205,7 +204,7 @@ public class FileRead : Shared.FileRead, IFileRead Thread.Sleep(500); } } - if (postCollection.Any()) + if (postCollection.Count != 0) { Thread.Sleep(500); StringBuilder stringBuilder = new(); diff --git a/Adaptation/FileHandlers/OpenInsight/FileRead.cs b/Adaptation/FileHandlers/OpenInsight/FileRead.cs index 9b0929b..36d46d9 100644 --- a/Adaptation/FileHandlers/OpenInsight/FileRead.cs +++ b/Adaptation/FileHandlers/OpenInsight/FileRead.cs @@ -6,6 +6,7 @@ using Adaptation.Shared.Methods; using Adaptation.Shared.Metrology; using System; using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Globalization; using System.IO; using System.Linq; @@ -17,10 +18,11 @@ namespace Adaptation.FileHandlers.OpenInsight; public class FileRead : Shared.FileRead, IFileRead { + private int _LastIndex; private readonly string _IqsConnectionString; private readonly string _OpenInsightFilePattern; private readonly string _OpenInsightApiECDirectory; - private readonly string _OpenInsightApiIFXDirectory; + private readonly ReadOnlyCollection _IQSCopyCollection; 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) @@ -34,10 +36,10 @@ public class FileRead : Shared.FileRead, IFileRead throw new Exception(cellInstanceConnectionName); if (!_IsDuplicator) throw new Exception(cellInstanceConnectionName); - _OpenInsightApiIFXDirectory = @"\\messdv002.na.infineon.com\Candela\Archive\API"; - _OpenInsightApiECDirectory = @"\\messv02ecc1.ec.local\EC_Metrology_Si\Archive\API"; + _IQSCopyCollection = new(GetProperties(cellInstanceConnectionName, modelObjectParameters, "IQS.Copy.")); _IqsConnectionString = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "IQS.ConnectionString"); _OpenInsightFilePattern = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "OpenInsight.FilePattern"); + _OpenInsightApiECDirectory = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "OpenInsight.Api.EC.Directory"); } void IFileRead.Move(Tuple> extractResults, Exception exception) @@ -203,13 +205,17 @@ public class FileRead : Shared.FileRead, IFileRead _ = Directory.CreateDirectory(duplicateDirectory); } string duplicateFile = Path.Combine(duplicateDirectory, Path.GetFileName(reportFullPath)); - if (descriptions.Any() && tests.Any()) + if (descriptions.Count != 0 && tests.Length != 0) { string lines = GetLines(_Logistics, descriptions); if (!string.IsNullOrEmpty(lines)) { long? subGroupId; + _LastIndex += 1; + if (_LastIndex >= _IQSCopyCollection.Count) + _LastIndex = 0; long breakAfter = dateTime.AddSeconds(_BreakAfterSeconds).Ticks; + ModelObjectParameterDefinition modelObjectParameterDefinition = _IQSCopyCollection[_LastIndex]; long preWait = _FileConnectorConfiguration?.FileHandleWaitTime is null ? dateTime.AddMilliseconds(1234).Ticks : dateTime.AddMilliseconds(_FileConnectorConfiguration.FileHandleWaitTime.Value).Ticks; if (string.IsNullOrEmpty(descriptions[0].Reactor) || string.IsNullOrEmpty(descriptions[0].PSN)) subGroupId = null; @@ -220,7 +226,17 @@ public class FileRead : Shared.FileRead, IFileRead else collection.Add(new(new ScopeInfo(tests[0], $"{subGroupId.Value} {_OpenInsightFilePattern}"), lines)); string weekOfYear = _Calendar.GetWeekOfYear(_Logistics.DateTimeFromSequence, CalendarWeekRule.FirstDay, DayOfWeek.Sunday).ToString("00"); - FromIQS.Save(_OpenInsightApiECDirectory, _OpenInsightApiIFXDirectory, _Logistics, reportFullPath, logistics, descriptions.First(), lines, subGroupId, weekOfYear); + FromIQS.Save(_OpenInsightApiECDirectory, _Logistics, reportFullPath, logistics, descriptions.First(), lines, subGroupId, weekOfYear); + try + { FromIQS.SaveCopy(_FileConnectorConfiguration.SourceFileLocation, _IqsConnectionString, modelObjectParameterDefinition.Name, modelObjectParameterDefinition.Value.Split('|')); } + 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) { } + } } } if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0) diff --git a/Adaptation/FileHandlers/OpenInsight/FromIQS.cs b/Adaptation/FileHandlers/OpenInsight/FromIQS.cs index 95370cd..9360076 100644 --- a/Adaptation/FileHandlers/OpenInsight/FromIQS.cs +++ b/Adaptation/FileHandlers/OpenInsight/FromIQS.cs @@ -1,5 +1,6 @@ using Adaptation.Shared; using System; +using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Globalization; @@ -17,7 +18,7 @@ public class FromIQS #nullable enable private static string GetCommandText(Logistics logistics, pcl.Description description, string dateTime, long? subGroupId) - { + { // cSpell:disable StringBuilder result = new(); _ = result .AppendLine(" select iq.ev_count, iq.cl_count, iq.sl_count, iq.se_sgrp, iq.se_sgtm, iq.se_tsno, iq.td_test, iq.pr_name, iq.jd_name, iq.pl_name, iq.pd_name, iq.td_name, iq.se_val ") @@ -58,7 +59,7 @@ public class FromIQS .AppendLine(" on se.f_lot = pl.f_lot ") .AppendLine(" join [spcepiworld].[dbo].[part_dat] pd ") .AppendLine(" on se.f_part = pd.f_part ") - .AppendLine(" join [spcepiworld].[dbo].[test_dat] td ") + .AppendLine(" join [spcepiworld].[dbo].[test_dat] td ") .AppendLine(" on se.f_test = td.f_test ") .AppendLine(" where se.f_flag = 0 "); if (subGroupId is not null) @@ -75,7 +76,7 @@ public class FromIQS .AppendLine(" order by iq.ev_count desc, iq.cl_count desc, iq.sl_count desc, iq.se_sgrp, iq.se_tsno, iq.td_test ") .AppendLine(" for json path "); return result.ToString(); - } + } // cSpell:restore private static StringBuilder GetForJsonPath(string connectionString, string commandText) { @@ -135,17 +136,17 @@ public class FromIQS else { JsonElement[]? jsonElements = JsonSerializer.Deserialize(stringBuilder.ToString()); - if (jsonElements is null || !jsonElements.Any() || jsonElements[0].ValueKind != JsonValueKind.Object) + if (jsonElements is null || jsonElements.Length == 0 || jsonElements[0].ValueKind != JsonValueKind.Object) commandText = stringBuilder.ToString(); else { JsonProperty[] jsonProperties = jsonElements[0].EnumerateObject().ToArray(); - if (!jsonProperties.Any() || jsonProperties[3].Name != "se_sgrp" || !long.TryParse(jsonProperties[3].Value.ToString(), out long subGroupId)) + if (jsonProperties.Length == 0 || jsonProperties[3].Name != "se_sgrp" || !long.TryParse(jsonProperties[3].Value.ToString(), out long subGroupId)) commandText = stringBuilder.ToString(); else { result = subGroupId; - if (jsonProperties.Any() && jsonProperties[0].Name == "ev_count" && int.TryParse(jsonProperties[0].Value.ToString(), out int evCount)) + if (jsonProperties.Length != 0 && jsonProperties[0].Name == "ev_count" && int.TryParse(jsonProperties[0].Value.ToString(), out int evCount)) count = evCount; } } @@ -204,40 +205,135 @@ public class FromIQS return result; } - internal static void Save(string openInsightApiECDirectory, string openInsightApiIFXDirectory, Logistics logistics, string reportFullPath, string logisticLines, pcl.Description description, string lines, long? subGroupId, string weekOfYear) + internal static void Save(string openInsightApiECDirectory, Logistics logistics, string reportFullPath, string logisticLines, pcl.Description description, string lines, long? subGroupId, string weekOfYear) { string checkFile; string fileName = Path.GetFileName(reportFullPath); string json = GetJson(logistics, logisticLines, description); string? ecPathRoot = Path.GetPathRoot(openInsightApiECDirectory); - string? ifxPathRoot = Path.GetPathRoot(openInsightApiIFXDirectory); bool ecExists = ecPathRoot is not null && Directory.Exists(ecPathRoot); - bool ifxExists = ifxPathRoot is not null && Directory.Exists(ifxPathRoot); string weekYear = $"{logistics.DateTimeFromSequence:yyyy}_Week_{weekOfYear}"; string ecDirectory = Path.Combine(openInsightApiECDirectory, weekYear, $"-{description.PSN}", $"-{description.Reactor}", $"-{description.RDS}", $"-{subGroupId}"); - string ifxDirectory = Path.Combine(openInsightApiIFXDirectory, weekYear, $"-{description.PSN}", $"-{description.Reactor}", $"-{description.RDS}", $"-{subGroupId}"); if (ecExists && !Directory.Exists(ecDirectory)) _ = Directory.CreateDirectory(ecDirectory); - if (ifxExists && !Directory.Exists(ifxDirectory)) - _ = Directory.CreateDirectory(ifxDirectory); checkFile = Path.Combine(ecDirectory, fileName); if (ecExists && !File.Exists(checkFile)) File.Copy(reportFullPath, checkFile); - checkFile = Path.Combine(ifxDirectory, fileName); - if (ifxExists && !File.Exists(checkFile)) - File.Copy(reportFullPath, checkFile); checkFile = Path.Combine(ecDirectory, $"{logistics.DateTimeFromSequence.Ticks}.txt"); if (ecExists && !File.Exists(checkFile)) File.WriteAllText(checkFile, lines); - checkFile = Path.Combine(ifxDirectory, $"{logistics.DateTimeFromSequence.Ticks}.txt"); - if (ifxExists && !File.Exists(checkFile)) - File.WriteAllText(checkFile, lines); checkFile = Path.Combine(ecDirectory, $"{logistics.DateTimeFromSequence.Ticks}.json"); if (ecExists && !File.Exists(checkFile)) File.WriteAllText(checkFile, json); - checkFile = Path.Combine(ifxDirectory, $"{logistics.DateTimeFromSequence.Ticks}.json"); - if (ifxExists && !File.Exists(checkFile)) - File.WriteAllText(checkFile, json); + } + + private static string GetCommandText(string[] iqsCopyValues) + { // cSpell:disable + StringBuilder result = new(); + if (iqsCopyValues.Length != 4) + throw new NotSupportedException(); + string find = iqsCopyValues[1]; + string replace = iqsCopyValues[3]; + _ = result + .AppendLine(" select pd.f_name [Part Name], ") + .AppendLine(" null [Part Revision], ") + .Append(" '").Append(replace).AppendLine("' [Test Name], ") + .AppendLine(" null [Description], ") + .AppendLine(" null [Lot Number], ") + .AppendLine(" null [Job Name], ") + .AppendLine(" null [Process Name], ") + .AppendLine(" case when sl.f_url = 0 then null else sl.f_url end [Reasonable Limit (Upper)], ") + .AppendLine(" case when sl.f_url = 0 then 0 else 1 end [Alarm Reasonable Limit (Upper)], ") + .AppendLine(" case when sl.f_usl = 0 then null else sl.f_usl end [Specification Limit (Upper)], ") + .AppendLine(" case when sl.f_usl = 0 then 0 else 1 end [Alarm Specification Limit (Upper)], ") + .AppendLine(" case when sl.f_ugb = 0 then null else sl.f_ugb end [Warning Limit (Upper)], ") + .AppendLine(" case when sl.f_ugb = 0 then 0 else 1 end [Alarm Warning Limit (Upper)], ") + .AppendLine(" case when sl.f_tar = 0 then null else sl.f_tar end [Specification Limit (Target)], ") + .AppendLine(" case when sl.f_lgb = 0 then null else sl.f_lgb end [Warning Limit (Lower)], ") + .AppendLine(" case when sl.f_lgb = 0 then 0 else 1 end [Alarm Warning Limit (Lower)], ") + .AppendLine(" case when sl.f_lsl = 0 then null else sl.f_lsl end [Specification Limit (Lower)], ") + .AppendLine(" case when sl.f_lsl = 0 then 0 else 1 end [Alarm Specification Limit (Lower)], ") + .AppendLine(" case when sl.f_lrl = 0 then null else sl.f_lrl end [Reasonable Limit (Lower)], ") + .AppendLine(" case when sl.f_lrl = 0 then 0 else 1 end [Alarm Reasonable Limit (Lower)], ") + .AppendLine(" td.f_name [Original Test Name], ") + .AppendLine(" td.f_test [Test Id], ") + .AppendLine(" ( ") + .AppendLine(" select count(sl_b.f_spec) ") + .AppendLine(" from [spcepiworld].[dbo].[spec_lim] sl_b ") + .AppendLine(" join [spcepiworld].[dbo].[part_dat] pd_b ") + .AppendLine(" on sl_b.f_part = pd_b.f_part ") + .AppendLine(" join [spcepiworld].[dbo].[test_dat] td_b ") + .AppendLine(" on sl_b.f_test = td_b.f_test ") + .AppendLine(" where sl_b.f_prcs = 0 ") + .Append(" and td_b.f_name = '").Append(replace).AppendLine("' ") + .AppendLine(" and pd_b.f_name = pd.f_name ") + .AppendLine(" and sl_b.f_url = sl.f_url ") + .AppendLine(" and sl_b.f_usl = sl.f_usl ") + .AppendLine(" and sl_b.f_ugb = sl.f_ugb ") + .AppendLine(" and sl_b.f_tar = sl.f_tar ") + .AppendLine(" and sl_b.f_lgb = sl.f_lgb ") + .AppendLine(" and sl_b.f_lsl = sl.f_lsl ") + .AppendLine(" and sl_b.f_lrl = sl.f_lrl ") + .AppendLine(" group by sl_b.f_spec ") + .AppendLine(" ) count ") + .AppendLine(" from [spcepiworld].[dbo].[spec_lim] sl ") + .AppendLine(" join [spcepiworld].[dbo].[part_dat] pd ") + .AppendLine(" on sl.f_part = pd.f_part ") + .AppendLine(" join [spcepiworld].[dbo].[test_dat] td ") + .AppendLine(" on sl.f_test = td.f_test ") + .AppendLine(" where sl.f_prcs = 0 ") + .AppendLine(" and td.f_name = '").Append(find).AppendLine("' ") + .AppendLine(" and isnull(( ") + .AppendLine(" select count(sl_b.f_spec) ") + .AppendLine(" from [spcepiworld].[dbo].[spec_lim] sl_b ") + .AppendLine(" join [spcepiworld].[dbo].[part_dat] pd_b ") + .AppendLine(" on sl_b.f_part = pd_b.f_part ") + .AppendLine(" join [spcepiworld].[dbo].[test_dat] td_b ") + .AppendLine(" on sl_b.f_test = td_b.f_test ") + .AppendLine(" where sl_b.f_prcs = 0 ") + .Append(" and td_b.f_name = '").Append(replace).AppendLine("' ") + .AppendLine(" and pd_b.f_name = pd.f_name ") + .AppendLine(" and sl_b.f_url = sl.f_url ") + .AppendLine(" and sl_b.f_usl = sl.f_usl ") + .AppendLine(" and sl_b.f_ugb = sl.f_ugb ") + .AppendLine(" and sl_b.f_tar = sl.f_tar ") + .AppendLine(" and sl_b.f_lgb = sl.f_lgb ") + .AppendLine(" and sl_b.f_lsl = sl.f_lsl ") + .AppendLine(" and sl_b.f_lrl = sl.f_lrl ") + .AppendLine(" group by sl_b.f_spec ") + .AppendLine(" ), 0) = 0 ") + .AppendLine(" for json path "); + return result.ToString(); + } // cSpell:restore + + internal static void SaveCopy(string fileConnectorConfigurationSourceFileLocation, string connectionString, string name, string[] iqsCopyValues) + { + string checkFile = Path.Combine(fileConnectorConfigurationSourceFileLocation, $"{name}.tsv"); + if (!File.Exists(checkFile)) + { + string commandText = GetCommandText(iqsCopyValues); + StringBuilder stringBuilder = GetForJsonPath(connectionString, commandText); + if (stringBuilder.Length > 0) + { + JsonElement[]? jsonElements = JsonSerializer.Deserialize(stringBuilder.ToString()); + if (jsonElements is not null && jsonElements.Length != 0 && jsonElements[0].ValueKind == JsonValueKind.Object) + { + _ = stringBuilder.Clear(); + List lines = new(); + JsonProperty[] jsonProperties = jsonElements[0].EnumerateObject().ToArray(); + foreach (JsonProperty jsonProperty in jsonProperties) + _ = stringBuilder.Append(jsonProperty.Name).Append('\t'); + lines.Add(stringBuilder.ToString()); + for (int i = 0; i < jsonElements.Length; i++) + { + foreach (JsonProperty jsonProperty in jsonProperties) + _ = stringBuilder.Append(jsonProperty.Value).Append('\t'); + lines.Add(stringBuilder.ToString()); + } + File.WriteAllLines(checkFile, lines); + } + } + } } #nullable disable diff --git a/Adaptation/FileHandlers/OpenInsightMetrologyViewer/FileRead.cs b/Adaptation/FileHandlers/OpenInsightMetrologyViewer/FileRead.cs index e1ef985..e41b2c6 100644 --- a/Adaptation/FileHandlers/OpenInsightMetrologyViewer/FileRead.cs +++ b/Adaptation/FileHandlers/OpenInsightMetrologyViewer/FileRead.cs @@ -31,7 +31,7 @@ public class FileRead : Shared.FileRead, IFileRead throw new Exception(cellInstanceConnectionName); if (!_IsDuplicator) throw new Exception(cellInstanceConnectionName); - _OpenInsightMetrologyViewerFileShare = @"\\messv02ecc1.ec.local\EC_Metrology_Si\MetrologyAttachments\MercuryProbeRunHeader_"; + _OpenInsightMetrologyViewerFileShare = @"\\mesfs.infineon.com\EC_Metrology_Si\MetrologyAttachments\MercuryProbeRunHeader_"; _OpenInsightMetrologyViewerAPI = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "OpenInsight.MetrologyViewerAPI"); } @@ -117,6 +117,8 @@ public class FileRead : Shared.FileRead, IFileRead if (!Directory.Exists(directory)) _ = Directory.CreateDirectory(directory); string fullPath = Path.Combine(directory, Path.GetFileName(reportFullPath)); + if (File.Exists(fullPath)) + File.Delete(fullPath); File.Copy(reportFullPath, fullPath); WSRequest wsRequest = new(this, _Logistics, descriptions, fullPath); (string json, WS.Results wsResults) = WS.SendData(_OpenInsightMetrologyViewerAPI, wsRequest); diff --git a/Adaptation/FileHandlers/OpenInsightMetrologyViewer/WSRequest.cs b/Adaptation/FileHandlers/OpenInsightMetrologyViewer/WSRequest.cs index 940c586..55954c5 100644 --- a/Adaptation/FileHandlers/OpenInsightMetrologyViewer/WSRequest.cs +++ b/Adaptation/FileHandlers/OpenInsightMetrologyViewer/WSRequest.cs @@ -156,7 +156,7 @@ public class WSRequest Details.Add(detail); } Date ??= logistics.DateTimeFromSequence.ToString(); - if (UniqueId is null && Details.Any()) + if (UniqueId is null && Details.Count != 0) UniqueId = Details[0].HeaderUniqueId; } diff --git a/Adaptation/FileHandlers/OpenInsightMetrologyViewerAttachments/FileRead.cs b/Adaptation/FileHandlers/OpenInsightMetrologyViewerAttachments/FileRead.cs index 05e2b9c..a3efee9 100644 --- a/Adaptation/FileHandlers/OpenInsightMetrologyViewerAttachments/FileRead.cs +++ b/Adaptation/FileHandlers/OpenInsightMetrologyViewerAttachments/FileRead.cs @@ -121,13 +121,13 @@ public class FileRead : Shared.FileRead, IFileRead _ = Directory.CreateDirectory(jobIdDirectory); string json; string[] matchDirectories = GetInProcessDirectory(jobIdDirectory); - if (!_StaticRuns.ContainsKey(_Logistics.Sequence)) + if (!_StaticRuns.TryGetValue(_Logistics.Sequence, out List collection)) json = string.Empty; else { - if (_StaticRuns[_Logistics.Sequence].Count != 1) + if (collection.Count != 1) throw new Exception($"{nameof(_StaticRuns)} has too many values for {_Logistics.Sequence}!"); - json = _StaticRuns[_Logistics.Sequence][0]; + json = collection[0]; lock (_StaticRuns) _ = _StaticRuns.Remove(_Logistics.Sequence); } diff --git a/Adaptation/FileHandlers/pcl/Description.cs b/Adaptation/FileHandlers/pcl/Description.cs index d72a5ce..9849c64 100644 --- a/Adaptation/FileHandlers/pcl/Description.cs +++ b/Adaptation/FileHandlers/pcl/Description.cs @@ -90,6 +90,25 @@ public class Description : IDescription, Shared.Properties.IDescription // public string Variation { get; set; } public string AreaDeltaFromLastRun { get; set; } + // + public string Nine10mmEdgeMean { get; set; } + public string Nine4mmEdgeMean { get; set; } + public string NineCriticalPointsAverage { get; set; } + public string NineCriticalPointsPhaseAngleAverage { get; set; } + public string NineCriticalPointsStdDev { get; set; } + public string NineEdgeMeanDelta { get; set; } + public string NineMean { get; set; } + public string NineResRangePercent { get; set; } + // + public string RhoAvg01 { get; set; } + public string RhoAvg02 { get; set; } + public string RhoAvg03 { get; set; } + public string RhoAvg04 { get; set; } + public string RhoAvg05 { get; set; } + public string RhoAvg06 { get; set; } + public string RhoAvg07 { get; set; } + public string RhoAvg08 { get; set; } + public string RhoAvg09 { get; set; } string IDescription.GetEventDescription() => "File Has been read and parsed"; @@ -196,6 +215,15 @@ public class Description : IDescription, Shared.Properties.IDescription nameof(VdStdDev), nameof(Variation), nameof(AreaDeltaFromLastRun), + // + nameof(Nine10mmEdgeMean), + nameof(Nine4mmEdgeMean), + nameof(NineCriticalPointsAverage), + nameof(NineCriticalPointsPhaseAngleAverage), + nameof(NineCriticalPointsStdDev), + nameof(NineEdgeMeanDelta), + nameof(NineMean), + nameof(NineResRangePercent), }; return results; } @@ -247,7 +275,7 @@ public class Description : IDescription, Shared.Properties.IDescription List IDescription.GetDescriptions(IFileRead fileRead, Logistics logistics, List tests, IProcessData iProcessData) { List results = new(); - if (iProcessData is null || !iProcessData.Details.Any() || iProcessData is not ProcessData processData) + if (iProcessData is null || iProcessData.Details.Count == 0 || iProcessData is not ProcessData processData) results.Add(GetDefault(fileRead, logistics)); else { @@ -343,6 +371,25 @@ public class Description : IDescription, Shared.Properties.IDescription VdStdDev = processData.VdStdDev, Variation = string.Empty, AreaDeltaFromLastRun = string.Empty, + // + Nine10mmEdgeMean = processData.Nine10mmEdgeMean, + Nine4mmEdgeMean = processData.Nine4mmEdgeMean, + NineCriticalPointsAverage = processData.NineCriticalPointsAverage, + NineCriticalPointsPhaseAngleAverage = processData.NineCriticalPointsPhaseAngleAverage, + NineCriticalPointsStdDev = processData.NineCriticalPointsStdDev, + NineEdgeMeanDelta = processData.NineEdgeMeanDelta, + NineMean = processData.NineMean, + NineResRangePercent = processData.NineResRangePercent, + // + RhoAvg01 = iProcessData.Details.Count < 1 || iProcessData.Details[0] is not Detail rhoAvg01 ? string.Empty : rhoAvg01.RhoAvg, + RhoAvg02 = iProcessData.Details.Count < 2 || iProcessData.Details[1] is not Detail rhoAvg02 ? string.Empty : rhoAvg02.RhoAvg, + RhoAvg03 = iProcessData.Details.Count < 3 || iProcessData.Details[2] is not Detail rhoAvg03 ? string.Empty : rhoAvg03.RhoAvg, + RhoAvg04 = iProcessData.Details.Count < 4 || iProcessData.Details[3] is not Detail rhoAvg04 ? string.Empty : rhoAvg04.RhoAvg, + RhoAvg05 = iProcessData.Details.Count < 5 || iProcessData.Details[4] is not Detail rhoAvg05 ? string.Empty : rhoAvg05.RhoAvg, + RhoAvg06 = iProcessData.Details.Count < 6 || iProcessData.Details[5] is not Detail rhoAvg06 ? string.Empty : rhoAvg06.RhoAvg, + RhoAvg07 = iProcessData.Details.Count < 7 || iProcessData.Details[6] is not Detail rhoAvg07 ? string.Empty : rhoAvg07.RhoAvg, + RhoAvg08 = iProcessData.Details.Count < 8 || iProcessData.Details[7] is not Detail rhoAvg08 ? string.Empty : rhoAvg08.RhoAvg, + RhoAvg09 = iProcessData.Details.Count < 9 || iProcessData.Details[8] is not Detail rhoAvg09 ? string.Empty : rhoAvg09.RhoAvg, }; results.Add(description); } @@ -439,6 +486,25 @@ public class Description : IDescription, Shared.Properties.IDescription VdStdDev = nameof(VdStdDev), Variation = nameof(Variation), AreaDeltaFromLastRun = nameof(AreaDeltaFromLastRun), + // + Nine10mmEdgeMean = nameof(Nine10mmEdgeMean), + Nine4mmEdgeMean = nameof(Nine4mmEdgeMean), + NineCriticalPointsAverage = nameof(NineCriticalPointsAverage), + NineCriticalPointsPhaseAngleAverage = nameof(NineCriticalPointsPhaseAngleAverage), + NineCriticalPointsStdDev = nameof(NineCriticalPointsStdDev), + NineEdgeMeanDelta = nameof(NineEdgeMeanDelta), + NineMean = nameof(NineMean), + NineResRangePercent = nameof(NineResRangePercent), + // + RhoAvg01 = nameof(RhoAvg01), + RhoAvg02 = nameof(RhoAvg02), + RhoAvg03 = nameof(RhoAvg03), + RhoAvg04 = nameof(RhoAvg04), + RhoAvg05 = nameof(RhoAvg05), + RhoAvg06 = nameof(RhoAvg06), + RhoAvg07 = nameof(RhoAvg07), + RhoAvg08 = nameof(RhoAvg08), + RhoAvg09 = nameof(RhoAvg09), }; return result; } diff --git a/Adaptation/FileHandlers/pcl/FileRead.cs b/Adaptation/FileHandlers/pcl/FileRead.cs index 03a5ae0..bc3c14f 100644 --- a/Adaptation/FileHandlers/pcl/FileRead.cs +++ b/Adaptation/FileHandlers/pcl/FileRead.cs @@ -5,7 +5,6 @@ using Adaptation.Shared.Methods; using System; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Text.Json; using System.Text.RegularExpressions; @@ -128,7 +127,7 @@ public class FileRead : Shared.FileRead, IFileRead } SetFileParameterLotID(mid); _Logistics.Update(mid, processData.Reactor); - if (!iProcessData.Details.Any()) + if (iProcessData.Details.Count == 0) throw new Exception(string.Concat("B) No Data - ", dateTime.Ticks)); results = iProcessData.GetResults(this, _Logistics, results.Item4); } diff --git a/Adaptation/FileHandlers/pcl/ProcessData.cs b/Adaptation/FileHandlers/pcl/ProcessData.cs index 683314d..c0fbf34 100644 --- a/Adaptation/FileHandlers/pcl/ProcessData.cs +++ b/Adaptation/FileHandlers/pcl/ProcessData.cs @@ -75,6 +75,15 @@ public class ProcessData : IProcessData public string Wafer { get; set; } public string WaferSize { get; set; } public string Zone { get; set; } + // + public string Nine10mmEdgeMean { get; set; } + public string Nine4mmEdgeMean { get; set; } + public string NineCriticalPointsAverage { get; set; } + public string NineCriticalPointsPhaseAngleAverage { get; set; } + public string NineCriticalPointsStdDev { get; set; } + public string NineEdgeMeanDelta { get; set; } + public string NineMean { get; set; } + public string NineResRangePercent { get; set; } List Shared.Properties.IProcessData.Details => _Details; @@ -386,6 +395,141 @@ public class ProcessData : IProcessData UniqueId = string.Format("{0}_{1}_{2}", logistics.JobID, lot, Path.GetFileNameWithoutExtension(logistics.ReportFullPath)); } + private List GetDetails() + { + List results = new(); + Detail detail; + string token = GetToken(); + while (!string.IsNullOrEmpty(token)) + { + detail = new() + { NAvg = token }; + _ = GetToEOL(); + detail.Nsl = GetToken(); + _ = GetToEOL(); + detail.Vd = GetToken(); + _ = GetToEOL(); + detail.FlatZ = GetToken(); + _ = GetToEOL(); + detail.RhoAvg = GetToken(); + _ = GetToEOL(); + detail.Rhosl = GetToken(); + _ = GetToEOL(); + detail.Phase = GetToken(); + _ = GetToEOL(); + detail.Grade = GetToken(); + detail.UniqueId = string.Concat("_Point-", results.Count + 1); + results.Add(detail); + _ = GetToken(); + _ = GetToken(); + _ = GetToken(); + _ = GetToken(); + token = GetToken(); + //if (token.Contains("LincPDF") || token.Contains("MULTIPLE")) + if (token.Contains("MULTIPLE")) + { + //ScanPast("Flat Z: Grade : % Flat Z: Grade : % Flat Z: Grade : %"); + //ScanPast("Flat Z: Grade : % Flat Z: Grade : % Flat Z: Grade : %"); + ScanPast("Flat Z: Grade : % Flat Z: Grade : % Flat Z: Grade : %"); + ScanPast("Flat Z: Grade : % Flat Z: Grade : % Flat Z: Grade : %"); + token = GetToken(); + } + } + return results; + } + + private static double Variance(List samples) + { + if (samples.Count <= 1) + return double.NaN; + double variance = 0; + double t = samples[0]; + for (int i = 1; i < samples.Count; i++) + { + t += samples[i]; + double diff = ((i + 1) * samples[i]) - t; + variance += diff * diff / ((i + 1.0) * i); + } + return variance / (samples.Count - 1); + } + + private static double StandardDeviation(List samples) => + Math.Sqrt(Variance(samples)); + + private void PopulateCalculated(List details) + { + if (details.Count != 9) + { + NineMean = string.Empty; + Nine4mmEdgeMean = string.Empty; + Nine10mmEdgeMean = string.Empty; + NineEdgeMeanDelta = string.Empty; + NineResRangePercent = string.Empty; + NineCriticalPointsStdDev = string.Empty; + NineCriticalPointsAverage = string.Empty; + NineCriticalPointsPhaseAngleAverage = string.Empty; + } + else + { + int j; + double phase; + double rhoAvg; + double phaseValue; + double rhoAvgValue; + List allRhoPoints = new(); + List edge4mmRhoPoints = new(); + List edge10mmRhoPoints = new(); + List criticalRhoPoints = new(); + List criticalPhasePoints = new(); + for (int i = 0; i < details.Count; i++) + { + j = i + 1; + if (!double.TryParse(details[i].RhoAvg, out rhoAvg)) + rhoAvgValue = 0; + else + rhoAvgValue = rhoAvg; + if (!double.TryParse(details[i].Phase, out phase)) + phaseValue = 0; + else + phaseValue = phase; + allRhoPoints.Add(rhoAvgValue); + if (j is 3 or 4 or 7 or 8) + edge4mmRhoPoints.Add(rhoAvgValue); + else if (j == 1) + { + criticalRhoPoints.Add(rhoAvgValue); + criticalPhasePoints.Add(phaseValue); + } + else if (j is 2 or 5 or 6 or 9) + { + criticalRhoPoints.Add(rhoAvgValue); + edge10mmRhoPoints.Add(rhoAvgValue); + criticalPhasePoints.Add(phaseValue); + } + else + throw new NotSupportedException(); + } + double nineMean = allRhoPoints.Average(); + double nine4mmEdgeSum = edge4mmRhoPoints.Sum(); + double nine10mmEdgeSum = edge10mmRhoPoints.Sum(); + double nine4mmEdgeMean = edge4mmRhoPoints.Average(); + double nine10mmEdgeMean = edge10mmRhoPoints.Average(); + double nineCriticalPointsAverage = criticalRhoPoints.Average(); + double nineCriticalPointsStdDev = StandardDeviation(criticalRhoPoints); + double nineCriticalPointsPhaseAngleAverage = criticalPhasePoints.Average(); + double nineEdgeMeanDelta = (nine4mmEdgeSum - nine10mmEdgeSum) / nine10mmEdgeSum * 100; + double nineResRangePercent = (criticalRhoPoints.Max() - criticalRhoPoints.Min()) / nineCriticalPointsAverage * 100; + NineMean = nineMean.ToString("0.0000000"); + Nine4mmEdgeMean = nine4mmEdgeMean.ToString("0.0000000"); + Nine10mmEdgeMean = nine10mmEdgeMean.ToString("0.0000000"); + NineEdgeMeanDelta = nineEdgeMeanDelta.ToString("0.0000000"); + NineResRangePercent = nineResRangePercent.ToString("0.0000000"); + NineCriticalPointsStdDev = nineCriticalPointsStdDev.ToString("0.0000000"); + NineCriticalPointsAverage = nineCriticalPointsAverage.ToString("0.0000000"); + NineCriticalPointsPhaseAngleAverage = nineCriticalPointsPhaseAngleAverage.ToString("0.0000000"); + } + } + #pragma warning disable IDE0060 private void Parse(IFileRead fileRead, Logistics logistics, List fileInfoCollection, string ghostPCLFileName, string pdfTextStripperFileName) #pragma warning restore IDE0060 @@ -438,7 +582,7 @@ public class ProcessData : IProcessData headerText = headerText.Replace("line", ""); headerText = headerText.Replace("middle", ""); headerText = headerText.Replace("side", ""); - headerText = headerText.Replace("top", ""); // This will change "Stop Voltage" to "S Voltage" + headerText = headerText.Replace("top", ""); headerText = headerText.Replace("corner", ""); headerText = headerText.Replace("bottom", ""); headerText = headerText.Replace("ruleunder", "_"); @@ -451,7 +595,7 @@ public class ProcessData : IProcessData _ = GetBefore("Start Voltage:"); StartVoltage = GetBefore("V"); ScanPast("Wafer :"); - Wafer = GetBefore("S Voltage :"); // This is actually "Stop Voltage" + Wafer = GetBefore("S Voltage :"); StopVoltage = GetBefore("V"); Set(logistics, headerText); RampRate = GetBefore("mV/sec"); @@ -519,42 +663,9 @@ public class ProcessData : IProcessData RsRadialGradient = GetToken(); //ScanPast("Flat Z: Grade : % Flat Z: Grade : % Flat Z: Grade : %"); ScanPast("Flat Z: Grade : % Flat Z: Grade : % Flat Z: Grade : %"); - string token = GetToken(); - while (!string.IsNullOrEmpty(token)) - { - Detail hgProbeDetail = new() - { NAvg = token }; - _ = GetToEOL(); - hgProbeDetail.Nsl = GetToken(); - _ = GetToEOL(); - hgProbeDetail.Vd = GetToken(); - _ = GetToEOL(); - hgProbeDetail.FlatZ = GetToken(); - _ = GetToEOL(); - hgProbeDetail.RhoAvg = GetToken(); - _ = GetToEOL(); - hgProbeDetail.Rhosl = GetToken(); - _ = GetToEOL(); - hgProbeDetail.Phase = GetToken(); - _ = GetToEOL(); - hgProbeDetail.Grade = GetToken(); - hgProbeDetail.UniqueId = string.Concat("_Point-", _Details.Count + 1); - _Details.Add(hgProbeDetail); - _ = GetToken(); - _ = GetToken(); - _ = GetToken(); - _ = GetToken(); - token = GetToken(); - //if (token.Contains("LincPDF") || token.Contains("MULTIPLE")) - if (token.Contains("MULTIPLE")) - { - //ScanPast("Flat Z: Grade : % Flat Z: Grade : % Flat Z: Grade : %"); - //ScanPast("Flat Z: Grade : % Flat Z: Grade : % Flat Z: Grade : %"); - ScanPast("Flat Z: Grade : % Flat Z: Grade : % Flat Z: Grade : %"); - ScanPast("Flat Z: Grade : % Flat Z: Grade : % Flat Z: Grade : %"); - token = GetToken(); - } - } + List details = GetDetails(); + PopulateCalculated(details); + _Details.AddRange(details); } foreach (Detail detail in _Details.Cast()) { diff --git a/Adaptation/Infineon/Monitoring/MonA/MonIn.cs b/Adaptation/Infineon/Monitoring/MonA/MonIn.cs index e9ffce8..7a8a711 100644 --- a/Adaptation/Infineon/Monitoring/MonA/MonIn.cs +++ b/Adaptation/Infineon/Monitoring/MonA/MonIn.cs @@ -18,21 +18,12 @@ public class MonIn : IMonIn, IDisposable public static MonIn GetInstance(string url = "http://moninhttp.{0}.infineon.com/input/text") { MonIn instance; - if (_Instances.ContainsKey(url)) + lock (_Instances) { - instance = _Instances[url]; - } - else - { - lock (_Instances) + if (_Instances.TryGetValue(url, out instance)) { - if (!_Instances.ContainsKey(url)) - { - instance = new MonIn(url); - _Instances.Add(url, instance); - } - else - instance = _Instances[url]; + instance = new MonIn(url); + _Instances.Add(url, instance); } } return instance; diff --git a/Adaptation/MET08RESIHGCV-Development.yml b/Adaptation/MET08RESIHGCV-Development.yml index dac855b..02d6b19 100644 --- a/Adaptation/MET08RESIHGCV-Development.yml +++ b/Adaptation/MET08RESIHGCV-Development.yml @@ -7,7 +7,7 @@ trigger: - "Adaptation/*" pool: - name: Mesa-Windows-Service + name: eaf demands: MET08RESIHGCV-Development steps: @@ -68,7 +68,8 @@ steps: - task: CopyFiles@2 displayName: "Copy Files to: - GhostPCL" inputs: - SourceFolder: '\\messv02ecc1.ec.local\EC_EAFRepository\Staging\DeploymentStorage\GhostPCL\gpcl6win64' + Contents: '*' + SourceFolder: '\\mesfs.infineon.com\EC_EAFRepository\Staging\DeploymentStorage\GhostPCL\gpcl6win64' TargetFolder: 'Adaptation\bin\$(Configuration)\net6.0\win-x64' OverWrite: true enabled: false @@ -76,7 +77,8 @@ steps: - task: CopyFiles@2 displayName: "Copy Files to: - LincPDFC" inputs: - SourceFolder: '\\messv02ecc1.ec.local\EC_EAFRepository\Staging\DeploymentStorage\LincPDFC\v2.6.6.21' + Contents: '*' + SourceFolder: '\\mesfs.infineon.com\EC_EAFRepository\Staging\DeploymentStorage\LincPDFC\v2.6.6.21' TargetFolder: 'Adaptation\bin\$(Configuration)\net6.0\win-x64' OverWrite: true enabled: false @@ -84,7 +86,8 @@ steps: - task: CopyFiles@2 displayName: "Copy Files to: - PDF-Text-Stripper" inputs: - SourceFolder: '\\messv02ecc1.ec.local\EC_EAFRepository\Staging\DeploymentStorage\PDF-Text-Stripper\v4.8.0.1' + Contents: '*' + SourceFolder: '\\mesfs.infineon.com\EC_EAFRepository\Staging\DeploymentStorage\PDF-Text-Stripper\v4.8.0.1' TargetFolder: 'Adaptation\bin\$(Configuration)\net6.0\win-x64' OverWrite: true enabled: false @@ -157,18 +160,18 @@ steps: - task: CopyFiles@2 displayName: 'Copy Files to: D:\Framework4.8' inputs: - SourceFolder: 'bin\$(Configuration)' Contents: "*$(Build.Repository.Name)*" + SourceFolder: 'bin\$(Configuration)' TargetFolder: 'D:\Framework4.8\$(GitCommitSeven)-$(Build.BuildId)-$(Build.Repository.Name)-$(Configuration)' OverWrite: true enabled: false - task: CopyFiles@2 - displayName: 'Copy Files to: \\messv02ecc1.ec.local\EC_EAFRepository' + displayName: 'Copy Files to: \\mesfs.infineon.com\EC_EAFRepository' inputs: - SourceFolder: 'bin\$(Configuration)' Contents: "*$(Build.Repository.Name)*" - TargetFolder: '\\messv02ecc1.ec.local\EC_EAFRepository\Staging\DeploymentStorage\Adaptation_$(Build.Repository.Name)' + SourceFolder: 'bin\$(Configuration)' + TargetFolder: '\\mesfs.infineon.com\EC_EAFRepository\Staging\DeploymentStorage\Adaptation_$(Build.Repository.Name)' OverWrite: true enabled: false diff --git a/Adaptation/MET08RESIHGCV.Tests.csproj b/Adaptation/MET08RESIHGCV.Tests.csproj index 2d4afa0..ec1403c 100644 --- a/Adaptation/MET08RESIHGCV.Tests.csproj +++ b/Adaptation/MET08RESIHGCV.Tests.csproj @@ -8,10 +8,9 @@ disable false - 10.0 disable win-x64 - net7.0 + net8.0 trx @@ -43,27 +42,27 @@ NU1701 NU1701 - - - - - - - - - - - - - - + + + + + + + + + + + + + + NU1701 - - - + + + - - + + @@ -96,13 +95,13 @@ PreserveNewest - + PreserveNewest - + PreserveNewest - + PreserveNewest diff --git a/Adaptation/MET08RESIHGCV.yml b/Adaptation/MET08RESIHGCV.yml index 9931fc8..39f47b1 100644 --- a/Adaptation/MET08RESIHGCV.yml +++ b/Adaptation/MET08RESIHGCV.yml @@ -7,7 +7,7 @@ trigger: - "Adaptation/*" pool: - name: Mesa-Windows-Service + name: eaf demands: MET08RESIHGCV steps: @@ -68,21 +68,24 @@ steps: - task: CopyFiles@2 displayName: "Copy Files to: - GhostPCL" inputs: - SourceFolder: '\\messv02ecc1.ec.local\EC_EAFRepository\Staging\DeploymentStorage\GhostPCL\gpcl6win64' + Contents: '*' + SourceFolder: '\\mesfs.infineon.com\EC_EAFRepository\Staging\DeploymentStorage\GhostPCL\gpcl6win64' TargetFolder: 'Adaptation\bin\$(Configuration)\net6.0\win-x64' OverWrite: true - task: CopyFiles@2 displayName: "Copy Files to: - LincPDFC" inputs: - SourceFolder: '\\messv02ecc1.ec.local\EC_EAFRepository\Staging\DeploymentStorage\LincPDFC\v2.6.6.21' + Contents: '*' + SourceFolder: '\\mesfs.infineon.com\EC_EAFRepository\Staging\DeploymentStorage\LincPDFC\v2.6.6.21' TargetFolder: 'Adaptation\bin\$(Configuration)\net6.0\win-x64' OverWrite: true - task: CopyFiles@2 displayName: "Copy Files to: - PDF-Text-Stripper" inputs: - SourceFolder: '\\messv02ecc1.ec.local\EC_EAFRepository\Staging\DeploymentStorage\PDF-Text-Stripper\v4.8.0.1' + Contents: '*' + SourceFolder: '\\mesfs.infineon.com\EC_EAFRepository\Staging\DeploymentStorage\PDF-Text-Stripper\v4.8.0.1' TargetFolder: 'Adaptation\bin\$(Configuration)\net6.0\win-x64' OverWrite: true @@ -154,17 +157,17 @@ steps: - task: CopyFiles@2 displayName: 'Copy Files to: D:\Framework4.8' inputs: - SourceFolder: 'bin\$(Configuration)' Contents: "*$(Build.Repository.Name)*" + SourceFolder: 'bin\$(Configuration)' TargetFolder: 'D:\Framework4.8\$(GitCommitSeven)-$(Build.BuildId)-$(Build.Repository.Name)-$(Configuration)' OverWrite: true - task: CopyFiles@2 - displayName: 'Copy Files to: \\messv02ecc1.ec.local\EC_EAFRepository' + displayName: 'Copy Files to: \\mesfs.infineon.com\EC_EAFRepository' inputs: - SourceFolder: 'bin\$(Configuration)' Contents: "*$(Build.Repository.Name)*" - TargetFolder: '\\messv02ecc1.ec.local\EC_EAFRepository\Staging\DeploymentStorage\Adaptation_$(Build.Repository.Name)' + SourceFolder: 'bin\$(Configuration)' + TargetFolder: '\\mesfs.infineon.com\EC_EAFRepository\Staging\DeploymentStorage\Adaptation_$(Build.Repository.Name)' OverWrite: true - script: | diff --git a/Adaptation/Shared/Duplicator/Description.cs b/Adaptation/Shared/Duplicator/Description.cs index ee6eb49..964612e 100644 --- a/Adaptation/Shared/Duplicator/Description.cs +++ b/Adaptation/Shared/Duplicator/Description.cs @@ -110,7 +110,7 @@ public class Description : IDescription, Properties.IDescription List IDescription.GetDescriptions(IFileRead fileRead, Logistics logistics, List tests, IProcessData iProcessData) { List results = new(); - if (iProcessData is null || !iProcessData.Details.Any()) + if (iProcessData is null || iProcessData.Details.Count == 0) results.Add(GetDefault(fileRead, logistics)); else { diff --git a/Adaptation/Shared/FileRead.cs b/Adaptation/Shared/FileRead.cs index f66b29b..890e418 100644 --- a/Adaptation/Shared/FileRead.cs +++ b/Adaptation/Shared/FileRead.cs @@ -163,7 +163,7 @@ public class FileRead : Properties.IFileRead protected static ModelObjectParameterDefinition[] GetProperties(string cellInstanceConnectionName, IList modelObjectParameters, string propertyNamePrefix) { ModelObjectParameterDefinition[] results = (from l in modelObjectParameters where l.Name.StartsWith(propertyNamePrefix) select l).ToArray(); - if (!results.Any()) + if (results.Length == 0) throw new Exception(cellInstanceConnectionName); return results; } @@ -171,7 +171,7 @@ public class FileRead : Properties.IFileRead protected static ModelObjectParameterDefinition[] GetProperties(string cellInstanceConnectionName, IList modelObjectParameters, string propertyNamePrefix, string propertyNameSuffix) { ModelObjectParameterDefinition[] results = (from l in modelObjectParameters where l.Name.StartsWith(propertyNamePrefix) && l.Name.EndsWith(propertyNameSuffix) select l).ToArray(); - if (!results.Any()) + if (results.Length == 0) throw new Exception(cellInstanceConnectionName); return results; } @@ -203,7 +203,7 @@ public class FileRead : Properties.IFileRead } lock (threadExceptions) { - if (threadExceptions.Any()) + if (threadExceptions.Count != 0) { foreach (Exception item in threadExceptions) _Log.Error(string.Concat(item.Message, Environment.NewLine, Environment.NewLine, item.StackTrace)); @@ -241,7 +241,7 @@ public class FileRead : Properties.IFileRead if (!_IsDuplicator) WriteAllLines(to, results); } - if (extractResults is not null && extractResults.Item4 is not null && extractResults.Item4.Any()) + if (extractResults is not null && extractResults.Item4 is not null && extractResults.Item4.Count != 0) { string itemFile; List directories = new(); @@ -268,7 +268,7 @@ public class FileRead : Properties.IFileRead string dateValue; string rdsPlaceholder = "%RDS%"; string mesEntityPlaceholder = "%MesEntity%"; - if (!descriptions.Any() || string.IsNullOrEmpty(descriptions[0].RDS)) + if (descriptions.Count == 0 || string.IsNullOrEmpty(descriptions[0].RDS)) rds = logistics.MID; else rds = descriptions[0].RDS; @@ -312,7 +312,7 @@ public class FileRead : Properties.IFileRead preWait = dateTime.AddMilliseconds(1234).Ticks; else preWait = dateTime.AddMilliseconds(_FileConnectorConfiguration.FileHandleWaitTime.Value).Ticks; - if (!collection.Any()) + if (collection.Count == 0) duplicateFiles.Add(duplicateFile); string fileName = Path.GetFileNameWithoutExtension(logistics.ReportFullPath); string successFile = string.Concat(successDirectory, @"\", Path.GetFileName(logistics.ReportFullPath)); @@ -460,6 +460,7 @@ public class FileRead : Properties.IFileRead protected void TriggerEvents(Tuple> extractResults, List headerNames, Dictionary keyValuePairs) { object value; + string segments; string description; List list; for (int i = 0; i < extractResults.Item3.Length; i++) @@ -467,10 +468,10 @@ public class FileRead : Properties.IFileRead _Log.Debug(string.Concat("TriggerEvent - {", _Logistics.ReportFullPath, "} ", i, " of ", extractResults.Item3.Length)); foreach (JsonProperty jsonProperty in extractResults.Item3[i].EnumerateObject()) { - if (jsonProperty.Value.ValueKind != JsonValueKind.String || !keyValuePairs.ContainsKey(jsonProperty.Name)) + if (jsonProperty.Value.ValueKind != JsonValueKind.String || !keyValuePairs.TryGetValue(jsonProperty.Name, out segments)) description = string.Empty; else - description = keyValuePairs[jsonProperty.Name].Split('|')[0]; + description = segments.Split('|')[0]; if (!_UseCyclicalForDescription || headerNames.Contains(jsonProperty.Name)) value = jsonProperty.Value.ToString(); else @@ -502,10 +503,10 @@ public class FileRead : Properties.IFileRead matches = Directory.GetFiles(_FileConnectorConfiguration.SourceFileLocation, segments.Last(), SearchOption.AllDirectories); else matches = Directory.GetFiles(_FileConnectorConfiguration.SourceFileLocation, segments.Last(), SearchOption.TopDirectoryOnly); - if (matches.Any()) + if (matches.Length != 0) break; } - if (matches is null || !matches.Any()) + if (matches is null || matches.Length == 0) results = null; else { @@ -588,13 +589,13 @@ public class FileRead : Properties.IFileRead { if (!checkDirectory.Contains('_')) continue; - if (Directory.GetDirectories(checkDirectory, "*", SearchOption.TopDirectoryOnly).Any()) + if (Directory.GetDirectories(checkDirectory, "*", SearchOption.TopDirectoryOnly).Length != 0) continue; - if (Directory.GetFiles(checkDirectory, "*", SearchOption.TopDirectoryOnly).Any()) + if (Directory.GetFiles(checkDirectory, "*", SearchOption.TopDirectoryOnly).Length != 0) continue; - if (Directory.GetDirectories(checkDirectory, "*", SearchOption.AllDirectories).Any()) + if (Directory.GetDirectories(checkDirectory, "*", SearchOption.AllDirectories).Length != 0) continue; - if (Directory.GetFiles(checkDirectory, "*", SearchOption.AllDirectories).Any()) + if (Directory.GetFiles(checkDirectory, "*", SearchOption.AllDirectories).Length != 0) continue; if (new DirectoryInfo(checkDirectory).CreationTime > dateTime) continue; @@ -611,7 +612,7 @@ public class FileRead : Properties.IFileRead { foreach (string directory in (from l in directories orderby l.Split('\\').Length descending select l).Distinct()) { - if (Directory.Exists(directory) && !Directory.GetFiles(directory).Any()) + if (Directory.Exists(directory) && Directory.GetFiles(directory).Length == 0) Directory.Delete(directory); } } diff --git a/Adaptation/Shared/Logistics.cs b/Adaptation/Shared/Logistics.cs index a6ca882..cb1f805 100644 --- a/Adaptation/Shared/Logistics.cs +++ b/Adaptation/Shared/Logistics.cs @@ -91,7 +91,7 @@ public class Logistics : ILogistics string[] segments; _FileInfo = new(reportFullPath); _Logistics1 = logistics.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries).ToList(); - if (!Logistics1.Any() || !Logistics1[0].StartsWith("LOGISTICS_1")) + if (Logistics1.Count == 0 || !Logistics1[0].StartsWith("LOGISTICS_1")) { _NullData = null; _JobID = "null"; diff --git a/Adaptation/Shared/ProcessDataStandardFormat.cs b/Adaptation/Shared/ProcessDataStandardFormat.cs index b256f0f..136ccae 100644 --- a/Adaptation/Shared/ProcessDataStandardFormat.cs +++ b/Adaptation/Shared/ProcessDataStandardFormat.cs @@ -23,7 +23,7 @@ public class ProcessDataStandardFormat public static string GetPDSFText(IFileRead fileRead, Logistics logistics, JsonElement[] jsonElements, string logisticsText) { string result; - if (!jsonElements.Any()) + if (jsonElements.Length == 0) result = string.Empty; else { @@ -146,7 +146,7 @@ public class ProcessDataStandardFormat string logistics = pdsf.Item1; string[] columns = pdsf.Item2; string[] bodyLines = pdsf.Item3; - if (!bodyLines.Any() || !bodyLines[0].Contains('\t')) + if (bodyLines.Length == 0 || !bodyLines[0].Contains('\t')) results = JsonSerializer.Deserialize("[]"); else { @@ -211,9 +211,10 @@ public class ProcessDataStandardFormat public static Tuple>>> GetTestDictionary(Tuple pdsf) { Dictionary>> results = new(); + List collection; string testColumn = nameof(Test); Dictionary> keyValuePairs = GetDictionary(pdsf); - if (!keyValuePairs.ContainsKey(testColumn)) + if (!keyValuePairs.TryGetValue(testColumn, out collection)) throw new Exception(); int min; int max; @@ -221,9 +222,9 @@ public class ProcessDataStandardFormat List vs; string columnKey; Dictionary> tests = new(); - for (int i = 0; i < keyValuePairs[testColumn].Count; i++) + for (int i = 0; i < collection.Count; i++) { - if (Enum.TryParse(keyValuePairs[testColumn][i], out Test test)) + if (Enum.TryParse(collection[i], out Test test)) { if (!results.ContainsKey(test)) { @@ -325,7 +326,7 @@ public class ProcessDataStandardFormat _ = line.Append(';'); } } - if (!pairedParameterNames.Any()) + if (pairedParameterNames.Count == 0) { _ = line.Remove(line.Length - 1, 1); _ = result.AppendLine(line.ToString()); diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.43.4/HGCV1.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.43.4/HGCV1.cs index 0577ca7..bddc50f 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.43.4/HGCV1.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.43.4/HGCV1.cs @@ -18,7 +18,7 @@ public class HGCV1 : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static HGCV1 EAFLoggingUnitTesting { get; private set; } - static HGCV1() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static HGCV1() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public HGCV1() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.43.4/HGCV2.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.43.4/HGCV2.cs index 7d70f02..9cd6d93 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.43.4/HGCV2.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.43.4/HGCV2.cs @@ -18,7 +18,7 @@ public class HGCV2 : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static HGCV2 EAFLoggingUnitTesting { get; private set; } - static HGCV2() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static HGCV2() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public HGCV2() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.43.4/HGCV3.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.43.4/HGCV3.cs index f93a365..6ec5695 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.43.4/HGCV3.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.43.4/HGCV3.cs @@ -18,7 +18,7 @@ public class HGCV3 : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static HGCV3 EAFLoggingUnitTesting { get; private set; } - static HGCV3() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static HGCV3() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public HGCV3() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.43.4/MET08RESIHGCV.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.43.4/MET08RESIHGCV.cs index e18041b..32c0fad 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.43.4/MET08RESIHGCV.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.43.4/MET08RESIHGCV.cs @@ -18,7 +18,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static MET08RESIHGCV EAFLoggingUnitTesting { get; private set; } - static MET08RESIHGCV() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static MET08RESIHGCV() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public MET08RESIHGCV() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/HGCV1.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/HGCV1.cs index d048a95..0576be9 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/HGCV1.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/HGCV1.cs @@ -18,7 +18,7 @@ public class HGCV1 : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static HGCV1 EAFLoggingUnitTesting { get; private set; } - static HGCV1() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static HGCV1() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public HGCV1() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/HGCV2.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/HGCV2.cs index 7c255a6..fdd1485 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/HGCV2.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/HGCV2.cs @@ -18,7 +18,7 @@ public class HGCV2 : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static HGCV2 EAFLoggingUnitTesting { get; private set; } - static HGCV2() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static HGCV2() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public HGCV2() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/HGCV3.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/HGCV3.cs index 207c066..b7ba33e 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/HGCV3.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/HGCV3.cs @@ -18,7 +18,7 @@ public class HGCV3 : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static HGCV3 EAFLoggingUnitTesting { get; private set; } - static HGCV3() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static HGCV3() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public HGCV3() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/MET08RESIHGCV.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/MET08RESIHGCV.cs index 55c8883..481465f 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/MET08RESIHGCV.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/MET08RESIHGCV.cs @@ -18,7 +18,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static MET08RESIHGCV EAFLoggingUnitTesting { get; private set; } - static MET08RESIHGCV() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static MET08RESIHGCV() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public MET08RESIHGCV() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/HGCV1.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/HGCV1.cs index 6981e7d..cf4416c 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/HGCV1.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/HGCV1.cs @@ -18,7 +18,7 @@ public class HGCV1 : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static HGCV1 EAFLoggingUnitTesting { get; private set; } - static HGCV1() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static HGCV1() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public HGCV1() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/HGCV2.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/HGCV2.cs index 5659064..e64d941 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/HGCV2.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/HGCV2.cs @@ -18,7 +18,7 @@ public class HGCV2 : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static HGCV2 EAFLoggingUnitTesting { get; private set; } - static HGCV2() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static HGCV2() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public HGCV2() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/HGCV3.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/HGCV3.cs index 414b103..4ca26c0 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/HGCV3.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/HGCV3.cs @@ -18,7 +18,7 @@ public class HGCV3 : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static HGCV3 EAFLoggingUnitTesting { get; private set; } - static HGCV3() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static HGCV3() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public HGCV3() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/MET08RESIHGCV.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/MET08RESIHGCV.cs index 8e6f475..9f1fca5 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/MET08RESIHGCV.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/MET08RESIHGCV.cs @@ -18,7 +18,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static MET08RESIHGCV EAFLoggingUnitTesting { get; private set; } - static MET08RESIHGCV() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static MET08RESIHGCV() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public MET08RESIHGCV() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV1.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV1.cs index 7d93d3f..d61a3f8 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV1.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV1.cs @@ -18,7 +18,7 @@ public class HGCV1 : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static HGCV1 EAFLoggingUnitTesting { get; private set; } - static HGCV1() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static HGCV1() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public HGCV1() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV2.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV2.cs index c4488e1..4e4335a 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV2.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV2.cs @@ -18,7 +18,7 @@ public class HGCV2 : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static HGCV2 EAFLoggingUnitTesting { get; private set; } - static HGCV2() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static HGCV2() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public HGCV2() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV3.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV3.cs index 21cab69..c713510 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV3.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV3.cs @@ -18,7 +18,7 @@ public class HGCV3 : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static HGCV3 EAFLoggingUnitTesting { get; private set; } - static HGCV3() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static HGCV3() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public HGCV3() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/MET08RESIHGCV.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/MET08RESIHGCV.cs index 32cf2d0..1bac250 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/MET08RESIHGCV.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/MET08RESIHGCV.cs @@ -18,7 +18,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static MET08RESIHGCV EAFLoggingUnitTesting { get; private set; } - static MET08RESIHGCV() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static MET08RESIHGCV() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public MET08RESIHGCV() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV1.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV1.cs index 3644c9f..7dfa15a 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV1.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV1.cs @@ -18,7 +18,7 @@ public class HGCV1 : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static HGCV1 EAFLoggingUnitTesting { get; private set; } - static HGCV1() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static HGCV1() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public HGCV1() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { @@ -47,9 +47,7 @@ public class HGCV1 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__HGCV1__pcl() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV2.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV2.cs index 3ecef91..a8fc63e 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV2.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV2.cs @@ -18,7 +18,7 @@ public class HGCV2 : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static HGCV2 EAFLoggingUnitTesting { get; private set; } - static HGCV2() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static HGCV2() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public HGCV2() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { @@ -47,9 +47,7 @@ public class HGCV2 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__HGCV2__pcl() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV3.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV3.cs index 8c2cb5e..8e8e68a 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV3.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV3.cs @@ -18,7 +18,7 @@ public class HGCV3 : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static HGCV3 EAFLoggingUnitTesting { get; private set; } - static HGCV3() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static HGCV3() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public HGCV3() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { @@ -47,9 +47,7 @@ public class HGCV3 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__HGCV3__pcl() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/MET08RESIHGCV.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/MET08RESIHGCV.cs index 078f6d8..3930875 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/MET08RESIHGCV.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/MET08RESIHGCV.cs @@ -18,7 +18,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static MET08RESIHGCV EAFLoggingUnitTesting { get; private set; } - static MET08RESIHGCV() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static MET08RESIHGCV() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; public MET08RESIHGCV() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { @@ -47,9 +47,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__MoveMatchingFiles() { @@ -60,9 +58,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__OpenInsightMetrologyViewer() { @@ -73,9 +69,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__IQSSi() { @@ -86,9 +80,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__OpenInsight() { @@ -99,9 +91,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__OpenInsightMetrologyViewerAttachments() { @@ -112,9 +102,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__APC() { @@ -125,9 +113,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__SPaCe() { @@ -138,9 +124,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__Processed() { @@ -151,9 +135,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__Archive() { @@ -164,9 +146,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__Dummy() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/HGCV1.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/HGCV1.cs new file mode 100644 index 0000000..1e9514c --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/HGCV1.cs @@ -0,0 +1,61 @@ +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_49_3; + +[TestClass] +public class HGCV1 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static HGCV1 EAFLoggingUnitTesting { get; private set; } + + static HGCV1() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; + + public HGCV1() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public HGCV1(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new HGCV1(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(); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__HGCV1__pcl() + { + string check = "*.pcl"; + 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")); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/HGCV2.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/HGCV2.cs new file mode 100644 index 0000000..ae3afd5 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/HGCV2.cs @@ -0,0 +1,61 @@ +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_49_3; + +[TestClass] +public class HGCV2 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static HGCV2 EAFLoggingUnitTesting { get; private set; } + + static HGCV2() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; + + public HGCV2() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public HGCV2(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new HGCV2(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(); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__HGCV2__pcl() + { + string check = "*.pcl"; + 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")); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/HGCV3.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/HGCV3.cs new file mode 100644 index 0000000..d475886 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/HGCV3.cs @@ -0,0 +1,61 @@ +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_49_3; + +[TestClass] +public class HGCV3 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static HGCV3 EAFLoggingUnitTesting { get; private set; } + + static HGCV3() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; + + public HGCV3() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public HGCV3(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new HGCV3(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(); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__HGCV3__pcl() + { + string check = "*.pcl"; + 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")); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/MET08RESIHGCV.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/MET08RESIHGCV.cs new file mode 100644 index 0000000..388ff64 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/MET08RESIHGCV.cs @@ -0,0 +1,160 @@ +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_49_3; + +[TestClass] +public class MET08RESIHGCV : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static MET08RESIHGCV EAFLoggingUnitTesting { get; private set; } + + static MET08RESIHGCV() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; + + public MET08RESIHGCV() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public MET08RESIHGCV(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new MET08RESIHGCV(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(); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__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")); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__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")); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__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")); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__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")); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__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")); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__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")); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__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")); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__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")); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__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")); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__Dummy() + { + string check = "637400768625170000.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")); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.52.0/HGCV1.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.52.0/HGCV1.cs new file mode 100644 index 0000000..95d510d --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.52.0/HGCV1.cs @@ -0,0 +1,63 @@ +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_52_0; + +[TestClass] +public class HGCV1 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static HGCV1 EAFLoggingUnitTesting { get; private set; } + + static HGCV1() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; + + public HGCV1() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public HGCV1(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new HGCV1(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_52_0__HGCV1__pcl() + { + string check = "*.pcl"; + 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")); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.52.0/HGCV2.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.52.0/HGCV2.cs new file mode 100644 index 0000000..fc2edda --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.52.0/HGCV2.cs @@ -0,0 +1,63 @@ +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_52_0; + +[TestClass] +public class HGCV2 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static HGCV2 EAFLoggingUnitTesting { get; private set; } + + static HGCV2() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; + + public HGCV2() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public HGCV2(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new HGCV2(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_52_0__HGCV2__pcl() + { + string check = "*.pcl"; + 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")); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.52.0/HGCV3.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.52.0/HGCV3.cs new file mode 100644 index 0000000..a6ce1a3 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.52.0/HGCV3.cs @@ -0,0 +1,63 @@ +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_52_0; + +[TestClass] +public class HGCV3 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static HGCV3 EAFLoggingUnitTesting { get; private set; } + + static HGCV3() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; + + public HGCV3() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public HGCV3(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new HGCV3(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_52_0__HGCV3__pcl() + { + string check = "*.pcl"; + 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")); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.52.0/MET08RESIHGCV.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.52.0/MET08RESIHGCV.cs new file mode 100644 index 0000000..3fc76d1 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.52.0/MET08RESIHGCV.cs @@ -0,0 +1,180 @@ +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_52_0; + +[TestClass] +public class MET08RESIHGCV : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static MET08RESIHGCV EAFLoggingUnitTesting { get; private set; } + + static MET08RESIHGCV() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; + + public MET08RESIHGCV() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public MET08RESIHGCV(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new MET08RESIHGCV(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_52_0__MET08RESIHGCV__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_52_0__MET08RESIHGCV__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_52_0__MET08RESIHGCV__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_52_0__MET08RESIHGCV__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_52_0__MET08RESIHGCV__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_52_0__MET08RESIHGCV__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_52_0__MET08RESIHGCV__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_52_0__MET08RESIHGCV__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_52_0__MET08RESIHGCV__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_52_0__MET08RESIHGCV__Dummy() + { + string check = "637400768625170000.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")); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV1.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV1.cs index 0b9ad16..52a93a8 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV1.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV1.cs @@ -22,15 +22,11 @@ public class HGCV1 _HGCV1 = CreateSelfDescription.Staging.v2_49_2.HGCV1.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__HGCV1__pcl() => _HGCV1.Staging__v2_49_2__HGCV1__pcl(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__HGCV1__pcl637955429602879992__Normal() { diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV2.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV2.cs index 4d9c27d..83562a5 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV2.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV2.cs @@ -22,15 +22,11 @@ public class HGCV2 _HGCV2 = CreateSelfDescription.Staging.v2_49_2.HGCV2.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__HGCV2__pcl() => _HGCV2.Staging__v2_49_2__HGCV2__pcl(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__HGCV2__pcl637955471606299897__Normal() { diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV3.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV3.cs index 1821bfa..f479183 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV3.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV3.cs @@ -22,15 +22,11 @@ public class HGCV3 _HGCV3 = CreateSelfDescription.Staging.v2_49_2.HGCV3.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__HGCV3__pcl() => _HGCV3.Staging__v2_49_2__HGCV3__pcl(); -#if DEBUG [Ignore] -#endif [TestMethod] [ExpectedException(typeof(AssertFailedException))] public void Staging__v2_49_2__HGCV3__pcl637812984345592512__MinFileLength() @@ -45,9 +41,7 @@ public class HGCV3 _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__HGCV3__pcl637816384579205568__Normal() { @@ -61,9 +55,7 @@ public class HGCV3 _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__HGCV3__pcl637955459372840332__Normal() { diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.2/MET08RESIHGCV.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/MET08RESIHGCV.cs index f4bc79a..31833b3 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.2/MET08RESIHGCV.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/MET08RESIHGCV.cs @@ -22,15 +22,11 @@ public class MET08RESIHGCV _MET08RESIHGCV = CreateSelfDescription.Staging.v2_49_2.MET08RESIHGCV.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__MoveMatchingFiles() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__MoveMatchingFiles(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__MoveMatchingFiles637955459372840332__Normal() { @@ -44,15 +40,11 @@ public class MET08RESIHGCV _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__OpenInsightMetrologyViewer() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__OpenInsightMetrologyViewer(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__OpenInsightMetrologyViewer637961644453719245__Normal() { @@ -66,21 +58,15 @@ public class MET08RESIHGCV _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__IQSSi() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__IQSSi(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__OpenInsight() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__OpenInsight(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__OpenInsight638054470203066399__IqsSql() { @@ -93,9 +79,7 @@ public class MET08RESIHGCV _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__OpenInsight638116020180910181__IqsSql() { @@ -108,39 +92,27 @@ public class MET08RESIHGCV _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__OpenInsightMetrologyViewerAttachments() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__OpenInsightMetrologyViewerAttachments(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__APC() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__APC(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__SPaCe() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__SPaCe(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__Processed() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__Processed(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__Archive() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__Archive(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08RESIHGCV__Dummy() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__Dummy(); diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.3/HGCV1.cs b/Adaptation/_Tests/Extract/Staging/v2.49.3/HGCV1.cs new file mode 100644 index 0000000..83c6148 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.3/HGCV1.cs @@ -0,0 +1,43 @@ +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System.Diagnostics; +using System.Reflection; + +namespace Adaptation._Tests.Extract.Staging.v2_49_3; + +[TestClass] +public class HGCV1 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_3.HGCV1 _HGCV1; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_3.HGCV1.ClassInitialize(testContext); + _HGCV1 = CreateSelfDescription.Staging.v2_49_3.HGCV1.EAFLoggingUnitTesting; + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__HGCV1__pcl() => _HGCV1.Staging__v2_49_3__HGCV1__pcl(); + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__HGCV1__pcl637955429602879992__Normal() + { + string check = "*.pcl"; + bool validatePDSF = false; + _HGCV1.Staging__v2_49_3__HGCV1__pcl(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _HGCV1.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _HGCV1.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.3/HGCV2.cs b/Adaptation/_Tests/Extract/Staging/v2.49.3/HGCV2.cs new file mode 100644 index 0000000..018f281 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.3/HGCV2.cs @@ -0,0 +1,43 @@ +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System.Diagnostics; +using System.Reflection; + +namespace Adaptation._Tests.Extract.Staging.v2_49_3; + +[TestClass] +public class HGCV2 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_3.HGCV2 _HGCV2; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_3.HGCV2.ClassInitialize(testContext); + _HGCV2 = CreateSelfDescription.Staging.v2_49_3.HGCV2.EAFLoggingUnitTesting; + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__HGCV2__pcl() => _HGCV2.Staging__v2_49_3__HGCV2__pcl(); + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__HGCV2__pcl637955471606299897__Normal() + { + string check = "*.pcl"; + bool validatePDSF = false; + _HGCV2.Staging__v2_49_3__HGCV2__pcl(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _HGCV2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _HGCV2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.3/HGCV3.cs b/Adaptation/_Tests/Extract/Staging/v2.49.3/HGCV3.cs new file mode 100644 index 0000000..994ca2a --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.3/HGCV3.cs @@ -0,0 +1,72 @@ +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System.Diagnostics; +using System.Reflection; + +namespace Adaptation._Tests.Extract.Staging.v2_49_3; + +[TestClass] +public class HGCV3 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_3.HGCV3 _HGCV3; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_3.HGCV3.ClassInitialize(testContext); + _HGCV3 = CreateSelfDescription.Staging.v2_49_3.HGCV3.EAFLoggingUnitTesting; + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__HGCV3__pcl() => _HGCV3.Staging__v2_49_3__HGCV3__pcl(); + + [Ignore] + [TestMethod] + [ExpectedException(typeof(AssertFailedException))] + public void Staging__v2_49_3__HGCV3__pcl637812984345592512__MinFileLength() + { + string check = "*.pcl"; + bool validatePDSF = false; + _HGCV3.Staging__v2_49_3__HGCV3__pcl(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _HGCV3.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _HGCV3.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__HGCV3__pcl637816384579205568__Normal() + { + string check = "*.pcl"; + bool validatePDSF = false; + _HGCV3.Staging__v2_49_3__HGCV3__pcl(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _HGCV3.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _HGCV3.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__HGCV3__pcl637955459372840332__Normal() + { + string check = "*.pcl"; + bool validatePDSF = false; + _HGCV3.Staging__v2_49_3__HGCV3__pcl(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _HGCV3.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _HGCV3.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.3/MET08RESIHGCV.cs b/Adaptation/_Tests/Extract/Staging/v2.49.3/MET08RESIHGCV.cs new file mode 100644 index 0000000..f695e6e --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.3/MET08RESIHGCV.cs @@ -0,0 +1,119 @@ +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System.Diagnostics; +using System.Reflection; + +namespace Adaptation._Tests.Extract.Staging.v2_49_3; + +[TestClass] +public class MET08RESIHGCV +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_3.MET08RESIHGCV _MET08RESIHGCV; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_3.MET08RESIHGCV.ClassInitialize(testContext); + _MET08RESIHGCV = CreateSelfDescription.Staging.v2_49_3.MET08RESIHGCV.EAFLoggingUnitTesting; + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__MoveMatchingFiles() => _MET08RESIHGCV.Staging__v2_49_3__MET08RESIHGCV__MoveMatchingFiles(); + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__MoveMatchingFiles637955459372840332__Normal() + { + string check = "*.pdsf"; + bool validatePDSF = false; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIHGCV.Staging__v2_49_3__MET08RESIHGCV__MoveMatchingFiles(); + string[] variables = _MET08RESIHGCV.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _MET08RESIHGCV.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__OpenInsightMetrologyViewer() => _MET08RESIHGCV.Staging__v2_49_3__MET08RESIHGCV__OpenInsightMetrologyViewer(); + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__OpenInsightMetrologyViewer637961644453719245__Normal() + { + string check = "*.pdsf"; + bool validatePDSF = false; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIHGCV.Staging__v2_49_3__MET08RESIHGCV__OpenInsightMetrologyViewer(); + string[] variables = _MET08RESIHGCV.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _MET08RESIHGCV.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__IQSSi() => _MET08RESIHGCV.Staging__v2_49_3__MET08RESIHGCV__IQSSi(); + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__OpenInsight() => _MET08RESIHGCV.Staging__v2_49_3__MET08RESIHGCV__OpenInsight(); + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__OpenInsight638054470203066399__IqsSql() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIHGCV.Staging__v2_49_3__MET08RESIHGCV__OpenInsight(); + string[] variables = _MET08RESIHGCV.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08RESIHGCV.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__OpenInsight638116020180910181__IqsSql() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIHGCV.Staging__v2_49_3__MET08RESIHGCV__OpenInsight(); + string[] variables = _MET08RESIHGCV.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08RESIHGCV.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__OpenInsightMetrologyViewerAttachments() => _MET08RESIHGCV.Staging__v2_49_3__MET08RESIHGCV__OpenInsightMetrologyViewerAttachments(); + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__APC() => _MET08RESIHGCV.Staging__v2_49_3__MET08RESIHGCV__APC(); + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__SPaCe() => _MET08RESIHGCV.Staging__v2_49_3__MET08RESIHGCV__SPaCe(); + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__Processed() => _MET08RESIHGCV.Staging__v2_49_3__MET08RESIHGCV__Processed(); + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__Archive() => _MET08RESIHGCV.Staging__v2_49_3__MET08RESIHGCV__Archive(); + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08RESIHGCV__Dummy() => _MET08RESIHGCV.Staging__v2_49_3__MET08RESIHGCV__Dummy(); + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.52.0/HGCV1.cs b/Adaptation/_Tests/Extract/Staging/v2.52.0/HGCV1.cs new file mode 100644 index 0000000..889decc --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.52.0/HGCV1.cs @@ -0,0 +1,47 @@ +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System.Diagnostics; +using System.Reflection; + +namespace Adaptation._Tests.Extract.Staging.v2_52_0; + +[TestClass] +public class HGCV1 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_52_0.HGCV1 _HGCV1; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_52_0.HGCV1.ClassInitialize(testContext); + _HGCV1 = CreateSelfDescription.Staging.v2_52_0.HGCV1.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__HGCV1__pcl() => _HGCV1.Staging__v2_52_0__HGCV1__pcl(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__HGCV1__pcl637955429602879992__Normal() + { + string check = "*.pcl"; + bool validatePDSF = false; + _HGCV1.Staging__v2_52_0__HGCV1__pcl(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _HGCV1.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _HGCV1.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.52.0/HGCV2.cs b/Adaptation/_Tests/Extract/Staging/v2.52.0/HGCV2.cs new file mode 100644 index 0000000..d714f48 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.52.0/HGCV2.cs @@ -0,0 +1,47 @@ +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System.Diagnostics; +using System.Reflection; + +namespace Adaptation._Tests.Extract.Staging.v2_52_0; + +[TestClass] +public class HGCV2 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_52_0.HGCV2 _HGCV2; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_52_0.HGCV2.ClassInitialize(testContext); + _HGCV2 = CreateSelfDescription.Staging.v2_52_0.HGCV2.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__HGCV2__pcl() => _HGCV2.Staging__v2_52_0__HGCV2__pcl(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__HGCV2__pcl637955471606299897__Normal() + { + string check = "*.pcl"; + bool validatePDSF = false; + _HGCV2.Staging__v2_52_0__HGCV2__pcl(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _HGCV2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _HGCV2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.52.0/HGCV3.cs b/Adaptation/_Tests/Extract/Staging/v2.52.0/HGCV3.cs new file mode 100644 index 0000000..c9bb24a --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.52.0/HGCV3.cs @@ -0,0 +1,96 @@ +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System.Diagnostics; +using System.Reflection; + +namespace Adaptation._Tests.Extract.Staging.v2_52_0; + +[TestClass] +public class HGCV3 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_52_0.HGCV3 _HGCV3; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_52_0.HGCV3.ClassInitialize(testContext); + _HGCV3 = CreateSelfDescription.Staging.v2_52_0.HGCV3.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__HGCV3__pcl() => _HGCV3.Staging__v2_52_0__HGCV3__pcl(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + [ExpectedException(typeof(AssertFailedException))] + public void Staging__v2_52_0__HGCV3__pcl637812984345592512__MinFileLength() + { + string check = "*.pcl"; + bool validatePDSF = false; + _HGCV3.Staging__v2_52_0__HGCV3__pcl(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _HGCV3.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _HGCV3.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__HGCV3__pcl637816384579205568__Normal() + { + string check = "*.pcl"; + bool validatePDSF = false; + _HGCV3.Staging__v2_52_0__HGCV3__pcl(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _HGCV3.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _HGCV3.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__HGCV3__pcl637955459372840332__Normal() + { + string check = "*.pcl"; + bool validatePDSF = false; + _HGCV3.Staging__v2_52_0__HGCV3__pcl(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _HGCV3.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _HGCV3.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__HGCV3__pcl638416903464189143__PopulateCalculated() + { + string check = "*.pcl"; + bool validatePDSF = false; + _HGCV3.Staging__v2_52_0__HGCV3__pcl(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _HGCV3.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _HGCV3.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.52.0/MET08RESIHGCV.cs b/Adaptation/_Tests/Extract/Staging/v2.52.0/MET08RESIHGCV.cs new file mode 100644 index 0000000..4aabd19 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.52.0/MET08RESIHGCV.cs @@ -0,0 +1,147 @@ +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System.Diagnostics; +using System.Reflection; + +namespace Adaptation._Tests.Extract.Staging.v2_52_0; + +[TestClass] +public class MET08RESIHGCV +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_52_0.MET08RESIHGCV _MET08RESIHGCV; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_52_0.MET08RESIHGCV.ClassInitialize(testContext); + _MET08RESIHGCV = CreateSelfDescription.Staging.v2_52_0.MET08RESIHGCV.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__MET08RESIHGCV__MoveMatchingFiles() => _MET08RESIHGCV.Staging__v2_52_0__MET08RESIHGCV__MoveMatchingFiles(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__MET08RESIHGCV__MoveMatchingFiles637955459372840332__Normal() + { + string check = "*.pdsf"; + bool validatePDSF = false; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIHGCV.Staging__v2_52_0__MET08RESIHGCV__MoveMatchingFiles(); + string[] variables = _MET08RESIHGCV.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _MET08RESIHGCV.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__MET08RESIHGCV__OpenInsightMetrologyViewer() => _MET08RESIHGCV.Staging__v2_52_0__MET08RESIHGCV__OpenInsightMetrologyViewer(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__MET08RESIHGCV__OpenInsightMetrologyViewer637961644453719245__Normal() + { + string check = "*.pdsf"; + bool validatePDSF = false; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIHGCV.Staging__v2_52_0__MET08RESIHGCV__OpenInsightMetrologyViewer(); + string[] variables = _MET08RESIHGCV.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _MET08RESIHGCV.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__MET08RESIHGCV__IQSSi() => _MET08RESIHGCV.Staging__v2_52_0__MET08RESIHGCV__IQSSi(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__MET08RESIHGCV__OpenInsight() => _MET08RESIHGCV.Staging__v2_52_0__MET08RESIHGCV__OpenInsight(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__MET08RESIHGCV__OpenInsight638054470203066399__IqsSql() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIHGCV.Staging__v2_52_0__MET08RESIHGCV__OpenInsight(); + string[] variables = _MET08RESIHGCV.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08RESIHGCV.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__MET08RESIHGCV__OpenInsight638116020180910181__IqsSql() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIHGCV.Staging__v2_52_0__MET08RESIHGCV__OpenInsight(); + string[] variables = _MET08RESIHGCV.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08RESIHGCV.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__MET08RESIHGCV__OpenInsightMetrologyViewerAttachments() => _MET08RESIHGCV.Staging__v2_52_0__MET08RESIHGCV__OpenInsightMetrologyViewerAttachments(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__MET08RESIHGCV__APC() => _MET08RESIHGCV.Staging__v2_52_0__MET08RESIHGCV__APC(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__MET08RESIHGCV__SPaCe() => _MET08RESIHGCV.Staging__v2_52_0__MET08RESIHGCV__SPaCe(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__MET08RESIHGCV__Processed() => _MET08RESIHGCV.Staging__v2_52_0__MET08RESIHGCV__Processed(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__MET08RESIHGCV__Archive() => _MET08RESIHGCV.Staging__v2_52_0__MET08RESIHGCV__Archive(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_52_0__MET08RESIHGCV__Dummy() => _MET08RESIHGCV.Staging__v2_52_0__MET08RESIHGCV__Dummy(); + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Shared/AdaptationTesting.cs b/Adaptation/_Tests/Shared/AdaptationTesting.cs index e55beee..178b9ea 100644 --- a/Adaptation/_Tests/Shared/AdaptationTesting.cs +++ b/Adaptation/_Tests/Shared/AdaptationTesting.cs @@ -305,7 +305,7 @@ public class AdaptationTesting : ISMTP else { results = Directory.GetFiles(mbn.TextFileDirectory, "*.txt", SearchOption.TopDirectoryOnly); - if (!string.IsNullOrEmpty(mbn.Ticks) && _HasWaitForProperty && !results.Any()) + if (!string.IsNullOrEmpty(mbn.Ticks) && _HasWaitForProperty && results.Length == 0) { _ = Process.Start("explorer.exe", mbn.TextFileDirectory); File.WriteAllText(Path.Combine(mbn.TextFileDirectory, "_ Why.why"), string.Empty); @@ -373,9 +373,7 @@ public class AdaptationTesting : ISMTP Tuple result; CellInstanceVersion cellInstanceVersion; string cellInstanceServiceV2 = string.Concat("http://", _HostNameAndPort, "/CellInstanceServiceV2/", cellInstanceName, "/", cellInstanceVersionName, "/configuration"); - if (_CellInstanceVersions.ContainsKey(cellInstanceServiceV2)) - cellInstanceVersion = _CellInstanceVersions[cellInstanceServiceV2]; - else + if (!_CellInstanceVersions.TryGetValue(cellInstanceServiceV2, out cellInstanceVersion)) { cellInstanceVersion = GetCellInstanceVersion(cellInstanceServiceV2); _CellInstanceVersions.Add(cellInstanceServiceV2, cellInstanceVersion); @@ -401,7 +399,7 @@ public class AdaptationTesting : ISMTP } } } - if (!results.Any() || (!string.IsNullOrEmpty(cellInstanceConnectionName) && !results.ContainsKey(cellInstanceConnectionName))) + if (results.Count == 0 || (!string.IsNullOrEmpty(cellInstanceConnectionName) && !results.ContainsKey(cellInstanceConnectionName))) throw new Exception("Match not found (check test method name matches Mango)!"); return results; } @@ -413,9 +411,8 @@ public class AdaptationTesting : ISMTP result = componentModelComponentsIndexes.ElementAt(0).Value; else { - if (componentModelComponentsIndexes is null || !componentModelComponentsIndexes.ContainsKey(cellInstanceConnectionName)) + if (componentModelComponentsIndexes is null || !componentModelComponentsIndexes.TryGetValue(cellInstanceConnectionName, out result)) throw new Exception(); - result = componentModelComponentsIndexes[cellInstanceConnectionName]; } return result; } @@ -487,7 +484,7 @@ public class AdaptationTesting : ISMTP else if (i == 1) _ = stringBuilder. AppendLine(). - Append("static ").Append(cellInstanceNameWithoutHyphen).AppendLine("() => DummyRoot = @\"\\\\messv02ecc1.ec.local\\EC_Characterization_Si\\Dummy\";"). + Append("static ").Append(cellInstanceNameWithoutHyphen).AppendLine("() => DummyRoot = @\"\\\\mesfs.infineon.com\\EC_Characterization_Si\\Dummy\";"). AppendLine(). Append("public ").Append(cellInstanceNameWithoutHyphen).AppendLine("() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)"). AppendLine("{"). @@ -596,7 +593,7 @@ public class AdaptationTesting : ISMTP throw new Exception(); _ = stringBuilder.Clear(); } - if (componentsCellComponentCellComponentEquipmentDictionaryNames.Any() && string.IsNullOrEmpty(cellInstanceVersion.FrozenBy)) + if (componentsCellComponentCellComponentEquipmentDictionaryNames.Count != 0 && string.IsNullOrEmpty(cellInstanceVersion.FrozenBy)) { if (!cellInstanceVersion.CellCommunicatingRule.EndsWith(".Communicating") || !(from l in componentsCellComponentCellComponentEquipmentNames where l == cellInstanceVersion.CellCommunicatingRule.Split('.')[0] select true).Any()) throw new Exception($"{methodName} - CellCommunicatingRule not correct in Mango!"); @@ -648,9 +645,7 @@ public class AdaptationTesting : ISMTP Tuple result; FileConnectorConfiguration fileConnectorConfiguration; string cellInstanceServiceV2With = string.Concat(cellInstanceVersionTuple.Item1, '/', cellInstanceConnectionName); - if (_FileConnectorConfigurations.ContainsKey(cellInstanceServiceV2With)) - fileConnectorConfiguration = _FileConnectorConfigurations[cellInstanceServiceV2With]; - else + if (!_FileConnectorConfigurations.TryGetValue(cellInstanceServiceV2With, out fileConnectorConfiguration)) { Dictionary componentModelComponentsIndexes = GetComponentModelComponentsIndexes(cellInstanceVersionTuple.Item2, cellInstanceConnectionName); int[] cellInstanceConnectionNameIndexes = GetCellInstanceConnectionNameIndexes(cellInstanceConnectionName, componentModelComponentsIndexes); @@ -696,9 +691,7 @@ public class AdaptationTesting : ISMTP int[] cellInstanceConnectionNameIndexes = GetCellInstanceConnectionNameIndexes(cellInstanceConnectionName, componentModelComponentsIndexes); ComponentsCellComponentCellComponent componentsCellComponentCellComponent = cellInstanceVersion.ComponentModel.Components[cellInstanceConnectionNameIndexes[0]].Children[cellInstanceConnectionNameIndexes[1]]; string equipmentTypeServiceV2 = string.Concat("http://", _HostNameAndPort, "/EquipmentTypeServiceV2/", componentsCellComponentCellComponent.Equipment.EquipmentType.Name, "/", componentsCellComponentCellComponent.Equipment.EquipmentType.Version, "/configuration"); - if (_EquipmentTypeVersions.ContainsKey(equipmentTypeServiceV2)) - equipmentTypeVersion = _EquipmentTypeVersions[equipmentTypeServiceV2]; - else + if (!_EquipmentTypeVersions.TryGetValue(equipmentTypeServiceV2, out equipmentTypeVersion)) { equipmentTypeVersion = GetEquipmentTypeVersion(equipmentTypeServiceV2); _EquipmentTypeVersions.Add(equipmentTypeServiceV2, equipmentTypeVersion); @@ -763,7 +756,7 @@ public class AdaptationTesting : ISMTP string[] results; string equipmentDictionaryName; string equipmentDictionaryVersionName; - if (_SkipEquipmentDictionary || equipmentTypeVersion?.EventActionSequences is null || !equipmentTypeVersion.EventActionSequences.Any() || !(from l in equipmentTypeVersion.EventActionSequences where l.HandledEvent.StartsWith("Equipment.FileRead") select 1).Any()) + if (_SkipEquipmentDictionary || equipmentTypeVersion?.EventActionSequences is null || equipmentTypeVersion.EventActionSequences.Length == 0 || !(from l in equipmentTypeVersion.EventActionSequences where l.HandledEvent.StartsWith("Equipment.FileRead") select 1).Any()) { equipmentDictionaryName = string.Empty; equipmentDictionaryVersionName = string.Empty; @@ -834,9 +827,7 @@ public class AdaptationTesting : ISMTP equipmentDictionaryVersion = null; else { - if (_EquipmentDictionaryVersions.ContainsKey(equipmentDictionaryServiceV2)) - equipmentDictionaryVersion = _EquipmentDictionaryVersions[equipmentDictionaryServiceV2]; - else + if (!_EquipmentDictionaryVersions.TryGetValue(equipmentDictionaryServiceV2, out equipmentDictionaryVersion)) { equipmentDictionaryVersion = GetEquipmentDictionaryVersion(equipmentDictionaryServiceV2); _EquipmentDictionaryVersions.Add(equipmentDictionaryServiceV2, equipmentDictionaryVersion); @@ -850,14 +841,15 @@ public class AdaptationTesting : ISMTP { Tuple>> result; List> results; + List> collection; if (_SkipEquipmentDictionary) results = new List>(); else if (string.IsNullOrEmpty(equipmentDictionaryVersionTuple.Item1)) throw new Exception(); else if (equipmentDictionaryVersionTuple?.Item4?.Events?.Event is null) results = new List>(); - else if (_EquipmentDictionaryEventDescriptions.ContainsKey(equipmentDictionaryVersionTuple.Item1)) - results = _EquipmentDictionaryEventDescriptions[equipmentDictionaryVersionTuple.Item1]; + else if (_EquipmentDictionaryEventDescriptions.TryGetValue(equipmentDictionaryVersionTuple.Item1, out collection)) + results = collection; else { results = new List>(); @@ -963,25 +955,33 @@ public class AdaptationTesting : ISMTP } if (_TestContext.FullyQualifiedTestClassName.Contains(nameof(Extract))) { - if (!string.IsNullOrEmpty(fileConnectorConfigurationTuple.Item2.ErrorTargetFileLocation)) + try { - if (!Directory.Exists(fileConnectorConfigurationTuple.Item2.ErrorTargetFileLocation)) - _ = Directory.CreateDirectory(fileConnectorConfigurationTuple.Item2.ErrorTargetFileLocation); + if (!string.IsNullOrEmpty(fileConnectorConfigurationTuple.Item2.ErrorTargetFileLocation)) + { + if (!Directory.Exists(fileConnectorConfigurationTuple.Item2.ErrorTargetFileLocation)) + _ = Directory.CreateDirectory(fileConnectorConfigurationTuple.Item2.ErrorTargetFileLocation); + } + if (!string.IsNullOrEmpty(fileConnectorConfigurationTuple.Item2.SourceFileLocation)) + { + if (!Directory.Exists(fileConnectorConfigurationTuple.Item2.SourceFileLocation)) + _ = Directory.CreateDirectory(fileConnectorConfigurationTuple.Item2.SourceFileLocation); + } + if (!string.IsNullOrEmpty(fileConnectorConfigurationTuple.Item2.TargetFileLocation)) + { + if (!Directory.Exists(fileConnectorConfigurationTuple.Item2.TargetFileLocation)) + _ = Directory.CreateDirectory(fileConnectorConfigurationTuple.Item2.TargetFileLocation); + } + if (!string.IsNullOrEmpty(fileConnectorConfigurationTuple.Item2.AlternateTargetFolder)) + { + if (!Directory.Exists(fileConnectorConfigurationTuple.Item2.AlternateTargetFolder)) + _ = Directory.CreateDirectory(fileConnectorConfigurationTuple.Item2.AlternateTargetFolder); + } } - if (!string.IsNullOrEmpty(fileConnectorConfigurationTuple.Item2.SourceFileLocation)) + catch (IOException ex) { - if (!Directory.Exists(fileConnectorConfigurationTuple.Item2.SourceFileLocation)) - _ = Directory.CreateDirectory(fileConnectorConfigurationTuple.Item2.SourceFileLocation); - } - if (!string.IsNullOrEmpty(fileConnectorConfigurationTuple.Item2.TargetFileLocation)) - { - if (!Directory.Exists(fileConnectorConfigurationTuple.Item2.TargetFileLocation)) - _ = Directory.CreateDirectory(fileConnectorConfigurationTuple.Item2.TargetFileLocation); - } - if (!string.IsNullOrEmpty(fileConnectorConfigurationTuple.Item2.AlternateTargetFolder)) - { - if (!Directory.Exists(fileConnectorConfigurationTuple.Item2.AlternateTargetFolder)) - _ = Directory.CreateDirectory(fileConnectorConfigurationTuple.Item2.AlternateTargetFolder); + if (!ex.Message.Contains("SMB1")) + throw; } } result = FileHandlers.CellInstanceConnectionName.Get(this, fileParameter, mbn.CellInstanceName, mbn.CellInstanceConnectionName, fileConnectorConfigurationTuple.Item2, equipmentTypeVersionTuple.Item2, parameterizedModelObjectDefinitionTypeTuple.Item2, modelObjectParametersTuple.Item2, equipmentDictionaryVersionTuple.Item2, dummyRuns, staticRuns, useCyclicalForDescription, connectionCount: cellInstanceVersionTuple.Item2.EquipmentConnections.Length); @@ -1001,7 +1001,7 @@ public class AdaptationTesting : ISMTP string sourceFileLocation = string.Empty; MethodBaseName mbn = GetMethodBaseName(methodBase); string[] textFiles = GetTextFiles(mbn); - if (!textFiles.Any()) + if (textFiles.Length == 0) { if (_HasWaitForProperty) throw new Exception("Set text file!"); @@ -1065,7 +1065,7 @@ public class AdaptationTesting : ISMTP else { string[] files = Directory.GetFiles(ipdsfDirectory, searchPattern, SearchOption.TopDirectoryOnly); - if (files.Any()) + if (files.Length != 0) ipdsfFile = files[0]; else ipdsfFile = searchPattern; @@ -1109,9 +1109,9 @@ public class AdaptationTesting : ISMTP { string[] pdsfFiles; pdsfFiles = Directory.GetFiles(searchDirectory, searchPattern, SearchOption.TopDirectoryOnly); - if (!pdsfFiles.Any()) + if (pdsfFiles.Length == 0) _ = Process.Start("explorer.exe", searchDirectory); - Assert.IsTrue(pdsfFiles.Any(), "GetFiles check"); + Assert.IsTrue(pdsfFiles.Length != 0, "GetFiles check"); results = GetLogisticsColumnsAndBody(pdsfFiles[0]); } Assert.IsFalse(string.IsNullOrEmpty(results.Item1)); diff --git a/Adaptation/_Tests/Shared/UnitTesting.cs b/Adaptation/_Tests/Shared/UnitTesting.cs index 1833834..e4ef794 100644 --- a/Adaptation/_Tests/Shared/UnitTesting.cs +++ b/Adaptation/_Tests/Shared/UnitTesting.cs @@ -2,7 +2,6 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Diagnostics; using System.IO; -using System.Linq; using System.Reflection; using System.Text; using System.Text.Json; @@ -74,7 +73,7 @@ public class UnitTesting if (string.IsNullOrEmpty(result)) break; checkFiles = Directory.GetFiles(result, "*.Tests.*proj", SearchOption.TopDirectoryOnly); - if (checkFiles.Any()) + if (checkFiles.Length != 0) break; result = Path.GetDirectoryName(result); } diff --git a/Adaptation/_Tests/Static/MET08RESIHGCV.cs b/Adaptation/_Tests/Static/MET08RESIHGCV.cs index 0fb0870..4e0b417 100644 --- a/Adaptation/_Tests/Static/MET08RESIHGCV.cs +++ b/Adaptation/_Tests/Static/MET08RESIHGCV.cs @@ -55,9 +55,9 @@ public class MET08RESIHGCV : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("MET08RESIHGCV", "v2.49.2"), + new("MET08RESIHGCV", "v2.52.0"), }; - string staging = "http://mestsa07ec.ec.local:9003/CellInstanceServiceV2"; + string staging = "http://mestsa07ec.infineon.com:9003/CellInstanceServiceV2"; Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion; LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); foreach ((string cellInstanceName, string cellInstanceVersionName) in collection) diff --git a/Adaptation/_Tests/Static/pcl.cs b/Adaptation/_Tests/Static/pcl.cs index 876fc66..cecb600 100644 --- a/Adaptation/_Tests/Static/pcl.cs +++ b/Adaptation/_Tests/Static/pcl.cs @@ -202,14 +202,14 @@ public class PCL : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("HGCV1", "v2.49.2"), - new("HGCV2", "v2.49.2"), - new("HGCV3", "v2.49.2"), + new("HGCV1", "v2.52.0"), + new("HGCV2", "v2.52.0"), + new("HGCV3", "v2.52.0"), new("HGCV1-EQPT", "v2.12.3"), new("HGCV2-EQPT", "v2.12.3"), new("HGCV3-EQPT", "v2.12.3"), }; - string staging = "http://mestsa07ec.ec.local:9003/CellInstanceServiceV2"; + string staging = "http://mestsa07ec.infineon.com:9003/CellInstanceServiceV2"; Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion; LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); foreach ((string cellInstanceName, string cellInstanceVersionName) in collection) diff --git a/Adaptation/appsettings.Development.json b/Adaptation/appsettings.Development.json index f7e0b36..8630239 100644 --- a/Adaptation/appsettings.Development.json +++ b/Adaptation/appsettings.Development.json @@ -45,7 +45,7 @@ "Password": "tVyC7uPHtScZR8NLInSaxQ==" }, { - "Use": true, + "Use": false, "Letter": "i", "Share": "\\\\messdv002.na.infineon.com\\Candela", "User": "INFINEON\\MESGaNEAF", @@ -115,14 +115,14 @@ "Password": "rzXkXdHKetDfsukhZKW0yA==" }, { - "Use": true, + "Use": false, "Letter": "s", "Share": "\\\\messv02ecc1.ec.local\\EC_EAFRepository", "User": "EC\\ECMESEAF", "Password": "CUGygiPwahy4U3j+6KqqoMZ08STyVDR1rKm6MwPpt00=" }, { - "Use": true, + "Use": false, "Letter": "t", "Share": "\\\\messv02ecc1.ec.local\\EC_EDA", "User": "EC\\ECEDASvc", diff --git a/Adaptation/appsettings.json b/Adaptation/appsettings.json index d15d437..842b156 100644 --- a/Adaptation/appsettings.json +++ b/Adaptation/appsettings.json @@ -45,7 +45,7 @@ "Password": "tVyC7uPHtScZR8NLInSaxQ==" }, { - "Use": true, + "Use": false, "Letter": "i", "Share": "\\\\messdv002.na.infineon.com\\Candela", "User": "INFINEON\\MESGaNEAF", @@ -115,14 +115,14 @@ "Password": "rzXkXdHKetDfsukhZKW0yA==" }, { - "Use": true, + "Use": false, "Letter": "s", "Share": "\\\\messv02ecc1.ec.local\\EC_EAFRepository", "User": "EC\\ECMESEAF", "Password": "CUGygiPwahy4U3j+6KqqoMZ08STyVDR1rKm6MwPpt00=" }, { - "Use": true, + "Use": false, "Letter": "t", "Share": "\\\\messv02ecc1.ec.local\\EC_EDA", "User": "EC\\ECEDASvc", diff --git a/MET08RESIHGCV.csproj b/MET08RESIHGCV.csproj index 073c5bb..934b35a 100644 --- a/MET08RESIHGCV.csproj +++ b/MET08RESIHGCV.csproj @@ -165,7 +165,7 @@ 7.2.4630.5 - 2.49.2 + 2.52.0 1.1.1 diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 1d8e4d4..95507e2 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.49.2.0")] -[assembly: AssemblyFileVersion("2.49.2.0")] +[assembly: AssemblyVersion("2.52.0.0")] +[assembly: AssemblyFileVersion("2.52.0.0")]