diff --git a/Adaptation/.kanbn/index.md b/Adaptation/.kanbn/index.md index 1cfecbd..9c29fec 100644 --- a/Adaptation/.kanbn/index.md +++ b/Adaptation/.kanbn/index.md @@ -1,5 +1,5 @@ --- -type: "kanbn" +type: kanbn created: 2023-07-07T15:37:56.040Z updated: 2023-07-18T19:52:59.668Z startedColumns: @@ -14,10 +14,10 @@ taskTemplate: '^+^_${overdue ? ''^R'' : ''''}${name}^: ${relations ? (''\n^-^/^g ## Backlog -- [signalr](tasks/signalr.md) - ## Todo +- [public-const-to-eaf](tasks/public-const-to-eaf.md) + ## In Progress ## Done diff --git a/Adaptation/.kanbn/tasks/public-const-to-eaf.md b/Adaptation/.kanbn/tasks/public-const-to-eaf.md new file mode 100644 index 0000000..23abe14 --- /dev/null +++ b/Adaptation/.kanbn/tasks/public-const-to-eaf.md @@ -0,0 +1,9 @@ +--- +created: 2023-08-02T14:35:58.342Z +updated: 2023-08-02T14:35:58.333Z +assigned: "" +progress: 0 +tags: [] +--- + +# public const to EAF diff --git a/Adaptation/.kanbn/tasks/signalr.md b/Adaptation/.kanbn/tasks/signalr.md deleted file mode 100644 index 493e6a9..0000000 --- a/Adaptation/.kanbn/tasks/signalr.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -type: "note" -created: 2023-06-09T00:12:37.326Z -updated: 2023-07-20T18:37:47.949Z ---- - -# signalr - -## SignalR - -- [HgCV](-1054372370.jpg) diff --git a/Adaptation/.vscode/launch.json b/Adaptation/.vscode/launch.json index 3dc01ec..97b0d27 100644 --- a/Adaptation/.vscode/launch.json +++ b/Adaptation/.vscode/launch.json @@ -4,7 +4,7 @@ "name": ".NET Core Attach", "type": "coreclr", "request": "attach", - "processId": 21276 + "processId": 23684 } ] } diff --git a/Adaptation/FileHandlers/MoveAllFiles/ApiController/BarcodeController.cs b/Adaptation/FileHandlers/MoveAllFiles/ApiController/BarcodeController.cs index 152fada..3c60582 100644 --- a/Adaptation/FileHandlers/MoveAllFiles/ApiController/BarcodeController.cs +++ b/Adaptation/FileHandlers/MoveAllFiles/ApiController/BarcodeController.cs @@ -1,5 +1,4 @@ #if NETFRAMEWORK && NET48 -using Adaptation.FileHandlers.TIBCO.Transport; using System.Web.Http; using System.Web.Http.Results; diff --git a/Adaptation/FileHandlers/MoveAllFiles/ApiController/BarcodeHelper.cs b/Adaptation/FileHandlers/MoveAllFiles/ApiController/BarcodeHelper.cs index a6a8230..b852bed 100644 --- a/Adaptation/FileHandlers/MoveAllFiles/ApiController/BarcodeHelper.cs +++ b/Adaptation/FileHandlers/MoveAllFiles/ApiController/BarcodeHelper.cs @@ -1,7 +1,10 @@ +using Adaptation.FileHandlers.MoveAllFiles.OpenInsight; using Adaptation.FileHandlers.TIBCO.Transport; using System; +using System.Collections.Generic; using System.Globalization; using System.IO; +using System.Net.Http; using System.Text.Json; using System.Threading.Tasks; @@ -12,7 +15,7 @@ public class BarcodeHelper #nullable enable - private static string? GetJson(System.Net.Http.HttpContent? httpContent) + private static string? GetJson(HttpContent? httpContent) { string? result; if (httpContent is null) @@ -46,7 +49,7 @@ public class BarcodeHelper return result; } - internal static PostReplay? Post(string id, System.Net.Http.HttpContent? httpContent) + internal static PostReplay? Post(string id, HttpContent? httpContent) { PostReplay? result; string? json = GetJson(httpContent); @@ -59,16 +62,46 @@ public class BarcodeHelper result = null; else { - const string hyphen = "-"; + Job? job; + string? mid; + List? collection; + Dictionary> qaMetTests = new(); Write(TIBCO.FileRead.BarcodeHostFileShare, id, notification.Value); - Job job = GetJob(TIBCO.FileRead.LSL2SQLConnectionString, TIBCO.FileRead.MetrologyFileShare, TIBCO.FileRead.BarcodeHostFileShare, id, notification.Value); - string mid = job.SpecName == hyphen || job.ProcessSpecName == hyphen ? $"{job.ProcessType}" : $"{job.ProcessType}.{job.SpecName}.{job.ProcessSpecName}"; try { - // https://oi-prod-ec-api.mes.infineon.com/api/oiWizard/materials/rds/ + const string hyphen = "-"; + HttpClient httpClient = new(); + job = GetJob(TIBCO.FileRead.LSL2SQLConnectionString, TIBCO.FileRead.MetrologyFileShare, TIBCO.FileRead.BarcodeHostFileShare, id, notification.Value); + mid = job.SpecName == hyphen || job.ProcessSpecName == hyphen ? $"{job.ProcessType}" : $"{job.ProcessType}.{job.SpecName}.{job.ProcessSpecName}"; + string httpClientResult = httpClient.GetStringAsync($"{FileRead.OpenInsightApplicationProgrammingInterface}/materials/rds/{job.LotName}").Result; + Root? root = JsonSerializer.Deserialize(httpClientResult); + httpClient.Dispose(); + if (root is not null) + { + foreach (PrsStage prsStage in root.Rds.ProdSpec.PrsStages) + { + if (prsStage.QaMetTests is null) + continue; + foreach (QaMetTest qaMetTest in prsStage.QaMetTests) + { + if (qaMetTest.ToolClass != notification.Value.ToolClass) + continue; + if (!qaMetTests.TryGetValue(prsStage.Stage, out collection)) + { + qaMetTests.Add(prsStage.Stage, new()); + if (!qaMetTests.TryGetValue(prsStage.Stage, out collection)) + throw new Exception(); + } + collection.Add(qaMetTest); + } + } + } } - catch (Exception) { } - result = new(job, mid, job.RecipeName); + catch (Exception) + { + mid = null; + } + result = new(mid, qaMetTests); // .ProdSpec.PrsStages[0].QaMetTests[0].Recipe); } } return result; diff --git a/Adaptation/FileHandlers/MoveAllFiles/ApiController/Notification.cs b/Adaptation/FileHandlers/MoveAllFiles/ApiController/Notification.cs index 7db86e6..79f8176 100644 --- a/Adaptation/FileHandlers/MoveAllFiles/ApiController/Notification.cs +++ b/Adaptation/FileHandlers/MoveAllFiles/ApiController/Notification.cs @@ -5,12 +5,16 @@ public readonly struct Notification public KeyPressEvent KeyPressEvent { get; } public string LastScanServiceResultValue { get; } + public string ToolClass { get; } + public string HttpContentBody { get; } [System.Text.Json.Serialization.JsonConstructor] - public Notification(KeyPressEvent keyPressEvent, string lastScanServiceResultValue) + public Notification(KeyPressEvent keyPressEvent, string lastScanServiceResultValue, string toolClass, string httpContentBody) { KeyPressEvent = keyPressEvent; LastScanServiceResultValue = lastScanServiceResultValue; + ToolClass = toolClass; + HttpContentBody = httpContentBody; } } \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/ApiController/PostReplay.cs b/Adaptation/FileHandlers/MoveAllFiles/ApiController/PostReplay.cs index bcb1f58..4048df0 100644 --- a/Adaptation/FileHandlers/MoveAllFiles/ApiController/PostReplay.cs +++ b/Adaptation/FileHandlers/MoveAllFiles/ApiController/PostReplay.cs @@ -1,20 +1,21 @@ -using Adaptation.FileHandlers.TIBCO.Transport; +using Adaptation.FileHandlers.MoveAllFiles.OpenInsight; +using System.Collections.Generic; namespace Adaptation.FileHandlers.MoveAllFiles.ApiController; public class PostReplay { - public Job Job { get; } - public string MId { get; } - public string Recipe { get; } +#nullable enable + + public string? MId { get; } + public Dictionary> QaMetTests { get; } [System.Text.Json.Serialization.JsonConstructor] - public PostReplay(Job job, string mid, string recipe) + public PostReplay(string? mid, Dictionary> qaMetTests) { - Job = job; MId = mid; - Recipe = recipe; + QaMetTests = qaMetTests; } } \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/FileRead.cs b/Adaptation/FileHandlers/MoveAllFiles/FileRead.cs index 0f24843..364ae54 100644 --- a/Adaptation/FileHandlers/MoveAllFiles/FileRead.cs +++ b/Adaptation/FileHandlers/MoveAllFiles/FileRead.cs @@ -19,6 +19,9 @@ public class FileRead : Shared.FileRead, IFileRead #nullable enable + public const string HttpSelfHostConfigurationBaseAddress = "http://localhost:8080/"; + public const string OpenInsightApplicationProgrammingInterface = "https://oi-prod-ec-api.mes.infineon.com/api/oiWizard"; + private long? _TickOffset; #if NETFRAMEWORK && NET48 private readonly HttpSelfHostServer? _HttpSelfHostServer; @@ -36,14 +39,26 @@ public class FileRead : Shared.FileRead, IFileRead throw new Exception(cellInstanceConnectionName); if (_IsDuplicator) throw new Exception(cellInstanceConnectionName); + string barcodeHostFileShare = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "Barcode.Host.FileShare"); + if (barcodeHostFileShare != TIBCO.FileRead.BarcodeHostFileShare) + throw new NotSupportedException($"Update configuration for [{nameof(TIBCO.FileRead.BarcodeHostFileShare)}]"); + string httpSelfHostConfigurationBaseAddress = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "Http.Self.Host.Configuration.Base.Address"); + if (httpSelfHostConfigurationBaseAddress != HttpSelfHostConfigurationBaseAddress) + throw new NotSupportedException($"Update configuration for [{nameof(HttpSelfHostConfigurationBaseAddress)}]"); + string lsl2SQLConnectionString = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "ConnectionString.LSL2SQL"); + if (lsl2SQLConnectionString != TIBCO.FileRead.LSL2SQLConnectionString) + throw new NotSupportedException($"Update configuration for [{nameof(TIBCO.FileRead.LSL2SQLConnectionString)}]"); + string metrologyFileShare = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "Metrology.FileShare"); + if (metrologyFileShare != TIBCO.FileRead.MetrologyFileShare) + throw new NotSupportedException($"Update configuration for [{nameof(TIBCO.FileRead.MetrologyFileShare)}]"); + string openInsightApplicationProgrammingInterface = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "OpenInsight.Application.Programming.Interface"); + if (openInsightApplicationProgrammingInterface != OpenInsightApplicationProgrammingInterface) + throw new NotSupportedException($"Update configuration for [{nameof(OpenInsightApplicationProgrammingInterface)}]"); #if NETFRAMEWORK && NET48 if (!_IsEAFHosted) _HttpSelfHostServer = null; else { - // string propertyName = string.Concat("CellInstance.", cellInstanceName, ".HttpSelfHostConfiguration.BaseAddress"); - // string httpSelfHostConfigurationBaseAddress = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, propertyName); - string httpSelfHostConfigurationBaseAddress = "http://localhost:8080/"; HttpSelfHostConfiguration config = new(httpSelfHostConfigurationBaseAddress); _ = config.Routes.MapHttpRoute("API Default", "api/{controller}/{id}", new { id = RouteParameter.Optional }); _HttpSelfHostServer = new(config); diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/BackSide.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/BackSide.cs new file mode 100644 index 0000000..3b24b36 --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/BackSide.cs @@ -0,0 +1,18 @@ +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class BackSide +{ + [JsonPropertyName("scratches")] + public int? Scratches { get; set; } + + [JsonPropertyName("scratchLen")] + public int? ScratchLen { get; set; } + + [JsonPropertyName("nodules")] + public object Nodules { get; set; } + + [JsonPropertyName("spikes")] + public object Spikes { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/CleanInsp.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/CleanInsp.cs new file mode 100644 index 0000000..1d9e754 --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/CleanInsp.cs @@ -0,0 +1,21 @@ +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class CleanInsp +{ + [JsonPropertyName("keyId")] + public int KeyId { get; set; } + + [JsonPropertyName("stage")] + public string Stage { get; set; } + + [JsonPropertyName("cleans")] + public Cleans Cleans { get; set; } + + [JsonPropertyName("inspection")] + public Inspection Inspection { get; set; } + + [JsonPropertyName("surfScan")] + public SurfScan SurfScan { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/Cleans.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/Cleans.cs new file mode 100644 index 0000000..26a98af --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/Cleans.cs @@ -0,0 +1,22 @@ +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class Cleans +{ + [JsonPropertyName("cleanRecipe")] + public object CleanRecipe { get; set; } + + [JsonPropertyName("cleanSigReq")] + public bool CleanSigReq { get; set; } + + [JsonPropertyName("cleanTools")] + public List CleanTools { get; set; } + + [JsonPropertyName("specs")] + public Spec Specs { get; set; } + + [JsonPropertyName("operations")] + public List Operations { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/CustEpiPart.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/CustEpiPart.cs new file mode 100644 index 0000000..9098c4f --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/CustEpiPart.cs @@ -0,0 +1,9 @@ +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class CustEpiPart +{ + [JsonPropertyName("keyId")] + public string KeyId { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/EpiPart.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/EpiPart.cs new file mode 100644 index 0000000..a856d82 --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/EpiPart.cs @@ -0,0 +1,12 @@ +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class EpiPart +{ + [JsonPropertyName("keyID")] + public int KeyID { get; set; } + + [JsonPropertyName("waferSize")] + public string WaferSize { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/FrontSide.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/FrontSide.cs new file mode 100644 index 0000000..64735fc --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/FrontSide.cs @@ -0,0 +1,33 @@ +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class FrontSide +{ + [JsonPropertyName("lpd")] + public int? Lpd { get; set; } + + [JsonPropertyName("scratches")] + public int? Scratches { get; set; } + + [JsonPropertyName("scratchLen")] + public string ScratchLen { get; set; } + + [JsonPropertyName("pits")] + public int? Pits { get; set; } + + [JsonPropertyName("mounds")] + public int? Mounds { get; set; } + + [JsonPropertyName("stackFaults")] + public int? StackFaults { get; set; } + + [JsonPropertyName("spikes")] + public int? Spikes { get; set; } + + [JsonPropertyName("spots")] + public int? Spots { get; set; } + + [JsonPropertyName("blDefects")] + public int? BlDefects { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/Inspection.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/Inspection.cs new file mode 100644 index 0000000..543ee54 --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/Inspection.cs @@ -0,0 +1,27 @@ +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class Inspection +{ + [JsonPropertyName("microscope")] + public bool Microscope { get; set; } + + [JsonPropertyName("brightlight")] + public bool Brightlight { get; set; } + + [JsonPropertyName("inspSigReq")] + public bool InspSigReq { get; set; } + + [JsonPropertyName("inspInterval")] + public int? InspInterval { get; set; } + + [JsonPropertyName("frontSide")] + public FrontSide FrontSide { get; set; } + + [JsonPropertyName("backSide")] + public BackSide BackSide { get; set; } + + [JsonPropertyName("specs")] + public Spec Specs { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/ProdSpec.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/ProdSpec.cs new file mode 100644 index 0000000..03a52bf --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/ProdSpec.cs @@ -0,0 +1,49 @@ +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class ProdSpec +{ + [JsonPropertyName("keyId")] + public int KeyId { get; set; } + + [JsonPropertyName("specType")] + public string SpecType { get; set; } + + [JsonPropertyName("status")] + public string Status { get; set; } + + [JsonPropertyName("minutesPerWafer")] + public double MinutesPerWafer { get; set; } + + [JsonPropertyName("proveInTime")] + public double ProveInTime { get; set; } + + [JsonPropertyName("layerType")] + public string LayerType { get; set; } + + [JsonPropertyName("reactorType")] + public string ReactorType { get; set; } + + [JsonPropertyName("susceptorType")] + public string SusceptorType { get; set; } + + [JsonPropertyName("tubePressureType")] + public string TubePressureType { get; set; } + + [JsonPropertyName("recipeLayers")] + public List RecipeLayers { get; set; } + + [JsonPropertyName("prodVers")] + public List ProdVers { get; set; } + + [JsonPropertyName("epiPart")] + public EpiPart EpiPart { get; set; } + + [JsonPropertyName("custEpiParts")] + public List CustEpiParts { get; set; } + + [JsonPropertyName("prsStages")] + public List PrsStages { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/ProdVer.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/ProdVer.cs new file mode 100644 index 0000000..fe80341 --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/ProdVer.cs @@ -0,0 +1,9 @@ +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class ProdVer +{ + [JsonPropertyName("keyId")] + public int KeyId { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/PrsStage.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/PrsStage.cs new file mode 100644 index 0000000..e0524c4 --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/PrsStage.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class PrsStage +{ + [JsonPropertyName("keyId")] + public string KeyId { get; set; } + + [JsonPropertyName("psn")] + public int Psn { get; set; } + + [JsonPropertyName("stage")] + public string Stage { get; set; } + + [JsonPropertyName("cleans")] + public Cleans Cleans { get; set; } + + [JsonPropertyName("inspection")] + public Inspection Inspection { get; set; } + + [JsonPropertyName("surfscan")] + public SurfScan Surfscan { get; set; } + + [JsonPropertyName("qaMetTests")] + public List QaMetTests { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/QaMetTest.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/QaMetTest.cs new file mode 100644 index 0000000..cb36ca1 --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/QaMetTest.cs @@ -0,0 +1,51 @@ +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class QaMetTest +{ + [JsonPropertyName("test")] + public string Test { get; set; } + + [JsonPropertyName("property")] + public string Property { get; set; } + + [JsonPropertyName("propertyDesc")] + public string PropertyDesc { get; set; } + + [JsonPropertyName("toolClass")] + public string ToolClass { get; set; } + + [JsonPropertyName("recipe")] + public string Recipe { get; set; } + + [JsonPropertyName("recipePattern")] + public string RecipePattern { get; set; } + + [JsonPropertyName("min")] + public double Min { get; set; } + + [JsonPropertyName("max")] + public double Max { get; set; } + + [JsonPropertyName("phaseMin")] + public double? PhaseMin { get; set; } + + [JsonPropertyName("slots")] + public object Slots { get; set; } + + [JsonPropertyName("wfrQty")] + public int WfrQty { get; set; } + + [JsonPropertyName("reactSched")] + public bool ReactSched { get; set; } + + [JsonPropertyName("interval")] + public int Interval { get; set; } + + [JsonPropertyName("start")] + public int Start { get; set; } + + [JsonPropertyName("sequence")] + public string Sequence { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/Rds.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/Rds.cs new file mode 100644 index 0000000..2445eaf --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/Rds.cs @@ -0,0 +1,97 @@ +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class Rds +{ + [JsonPropertyName("keyId")] + public int KeyId { get; set; } + + [JsonPropertyName("reactor")] + public int Reactor { get; set; } + + [JsonPropertyName("workOrder")] + public int WorkOrder { get; set; } + + [JsonPropertyName("cassNo")] + public int CassNo { get; set; } + + [JsonPropertyName("combStatus")] + public string CombStatus { get; set; } + + [JsonPropertyName("partNo")] + public int PartNo { get; set; } + + [JsonPropertyName("PSN")] + public int PSN { get; set; } + + [JsonPropertyName("entryId")] + public string EntryId { get; set; } + + [JsonPropertyName("entryDtm")] + public string EntryDtm { get; set; } + + [JsonPropertyName("preEpiSig")] + public string PreEpiSig { get; set; } + + [JsonPropertyName("preEpiSigDtm")] + public string PreEpiSigDtm { get; set; } + + [JsonPropertyName("operatorIn")] + public string OperatorIn { get; set; } + + [JsonPropertyName("dtmIn")] + public string DtmIn { get; set; } + + [JsonPropertyName("operatorOut")] + public string OperatorOut { get; set; } + + [JsonPropertyName("dtmOut")] + public string DtmOut { get; set; } + + [JsonPropertyName("postEpiSig")] + public string PostEpiSig { get; set; } + + [JsonPropertyName("postEpiSigDtm")] + public string PostEpiSigDtm { get; set; } + + [JsonPropertyName("supVerSig")] + public string SupVerSig { get; set; } + + [JsonPropertyName("supVerSigDtm")] + public string SupVerSigDtm { get; set; } + + [JsonPropertyName("shipDtm")] + public object ShipDtm { get; set; } + + [JsonPropertyName("subPartNo")] + public int SubPartNo { get; set; } + + [JsonPropertyName("shipNo")] + public object ShipNo { get; set; } + + [JsonPropertyName("cassWaferQty")] + public int CassWaferQty { get; set; } + + [JsonPropertyName("loadLockSide")] + public string LoadLockSide { get; set; } + + [JsonPropertyName("waferSize")] + public string WaferSize { get; set; } + + [JsonPropertyName("reactorType")] + public string ReactorType { get; set; } + + [JsonPropertyName("prodSpec")] + public ProdSpec ProdSpec { get; set; } + + [JsonPropertyName("cleanInsp")] + public List CleanInsp { get; set; } + + [JsonPropertyName("woMatQA")] + public WoMatQA WoMatQA { get; set; } + + [JsonPropertyName("rdsLayers")] + public List RdsLayers { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/RdsLayer.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/RdsLayer.cs new file mode 100644 index 0000000..ff28a0e --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/RdsLayer.cs @@ -0,0 +1,63 @@ +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class RdsLayer +{ + [JsonPropertyName("keyID")] + public string KeyID { get; set; } + + [JsonPropertyName("EpiTime")] + public double EpiTime { get; set; } + + [JsonPropertyName("DiluentAdjParam")] + public int DiluentAdjParam { get; set; } + + [JsonPropertyName("DopantFlow")] + public double DopantFlow { get; set; } + + [JsonPropertyName("HCLFlow")] + public object HCLFlow { get; set; } + + [JsonPropertyName("BakeTime")] + public string BakeTime { get; set; } + + [JsonPropertyName("EpiH2Flow")] + public int EpiH2Flow { get; set; } + + [JsonPropertyName("TCSFlow")] + public int TCSFlow { get; set; } + + [JsonPropertyName("DCSFlow")] + public object DCSFlow { get; set; } + + [JsonPropertyName("FOffset")] + public int FOffset { get; set; } + + [JsonPropertyName("SOffset")] + public int SOffset { get; set; } + + [JsonPropertyName("ROffset")] + public int ROffset { get; set; } + + [JsonPropertyName("Etch1")] + public string Etch1 { get; set; } + + [JsonPropertyName("Etch2")] + public string Etch2 { get; set; } + + [JsonPropertyName("Etch3")] + public string Etch3 { get; set; } + + [JsonPropertyName("AUX1")] + public object AUX1 { get; set; } + + [JsonPropertyName("AUX2")] + public object AUX2 { get; set; } + + [JsonPropertyName("ULTemp")] + public int ULTemp { get; set; } + + [JsonPropertyName("SuscEtch")] + public object SuscEtch { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/RecipeLayer.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/RecipeLayer.cs new file mode 100644 index 0000000..ddf5c23 --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/RecipeLayer.cs @@ -0,0 +1,69 @@ +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class RecipeLayer +{ + [JsonPropertyName("layerNo")] + public int LayerNo { get; set; } + + [JsonPropertyName("layerId")] + public string LayerId { get; set; } + + [JsonPropertyName("layerType")] + public string LayerType { get; set; } + + [JsonPropertyName("layerRecipe")] + public int LayerRecipe { get; set; } + + [JsonPropertyName("layerDopant")] + public string LayerDopant { get; set; } + + [JsonPropertyName("layerThickMin")] + public double LayerThickMin { get; set; } + + [JsonPropertyName("layerThickTarget")] + public double LayerThickTarget { get; set; } + + [JsonPropertyName("layerThickMax")] + public double LayerThickMax { get; set; } + + [JsonPropertyName("layerThickUnits")] + public string LayerThickUnits { get; set; } + + [JsonPropertyName("layerThickAMin")] + public object LayerThickAMin { get; set; } + + [JsonPropertyName("layerThickATarget")] + public object LayerThickATarget { get; set; } + + [JsonPropertyName("layerThickAMaxes")] + public object LayerThickAMaxes { get; set; } + + [JsonPropertyName("layerThickAUnits")] + public object LayerThickAUnits { get; set; } + + [JsonPropertyName("layerResMin")] + public double LayerResMin { get; set; } + + [JsonPropertyName("layerResTarget")] + public int LayerResTarget { get; set; } + + [JsonPropertyName("layerResMax")] + public double LayerResMax { get; set; } + + [JsonPropertyName("layerResUnits")] + public string LayerResUnits { get; set; } + + [JsonPropertyName("layerSResMin")] + public object LayerSResMin { get; set; } + + [JsonPropertyName("layerSResTarget")] + public object LayerSResTarget { get; set; } + + [JsonPropertyName("layerSResMax")] + public object LayerSResMax { get; set; } + + [JsonPropertyName("layerSResUnits")] + public object LayerSResUnits { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/Root.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/Root.cs new file mode 100644 index 0000000..20570ff --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/Root.cs @@ -0,0 +1,15 @@ +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class Root +{ + [JsonPropertyName("rds")] + public Rds Rds { get; set; } + + [JsonPropertyName("_links")] + public object Links { get; set; } + + [JsonPropertyName("_class")] + public string Class { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/Spec.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/Spec.cs new file mode 100644 index 0000000..8c80990 --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/Spec.cs @@ -0,0 +1,73 @@ +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class Spec +{ + [JsonPropertyName("recipe")] + public string Recipe { get; set; } + + [JsonPropertyName("defect")] + public int Defect { get; set; } + + [JsonPropertyName("haze")] + public int Haze { get; set; } + + [JsonPropertyName("sampleQty")] + public int SampleQty { get; set; } + + [JsonPropertyName("tools")] + public List Tools { get; set; } + + [JsonPropertyName("recipes")] + public List Recipes { get; set; } + + [JsonPropertyName("microscopeReq")] + public bool MicroscopeReq { get; set; } + + [JsonPropertyName("brightlightReq")] + public bool BrightlightReq { get; set; } + + [JsonPropertyName("lpd")] + public int Lpd { get; set; } + + [JsonPropertyName("scratches")] + public int Scratches { get; set; } + + [JsonPropertyName("scratchLen")] + public int ScratchLen { get; set; } + + [JsonPropertyName("pits")] + public int Pits { get; set; } + + [JsonPropertyName("mounds")] + public int Mounds { get; set; } + + [JsonPropertyName("stackFaults")] + public int StackFaults { get; set; } + + [JsonPropertyName("spikes")] + public int Spikes { get; set; } + + [JsonPropertyName("spots")] + public int Spots { get; set; } + + [JsonPropertyName("fov")] + public int Fov { get; set; } + + [JsonPropertyName("blDefects")] + public int BlDefects { get; set; } + + [JsonPropertyName("bsideScratches")] + public int BsideScratches { get; set; } + + [JsonPropertyName("bsideScratchLen")] + public int BsideScratchLen { get; set; } + + [JsonPropertyName("bsideNodules")] + public object BsideNodules { get; set; } + + [JsonPropertyName("bsideSpikes")] + public object BsideSpikes { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/SurfScan.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/SurfScan.cs new file mode 100644 index 0000000..bfa25d6 --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/SurfScan.cs @@ -0,0 +1,13 @@ +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class SurfScan +{ + [JsonPropertyName("surfscanSigReq")] + public bool SurfscanSigReq { get; set; } + + [JsonPropertyName("surfscanRecipes")] + public List SurfscanRecipes { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/SurfScan2.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/SurfScan2.cs new file mode 100644 index 0000000..194e7f2 --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/SurfScan2.cs @@ -0,0 +1,10 @@ +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class SurfScan2 +{ + [JsonPropertyName("specs")] + public List Specs { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/SurfscanRecipe.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/SurfscanRecipe.cs new file mode 100644 index 0000000..eee86d4 --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/SurfscanRecipe.cs @@ -0,0 +1,18 @@ +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class SurfscanRecipe +{ + [JsonPropertyName("recipe")] + public string Recipe { get; set; } + + [JsonPropertyName("defects")] + public int Defects { get; set; } + + [JsonPropertyName("haze")] + public int Haze { get; set; } + + [JsonPropertyName("sampleSize")] + public int SampleSize { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/Test.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/Test.cs new file mode 100644 index 0000000..4c55def --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/Test.cs @@ -0,0 +1,73 @@ +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class Test +{ + [JsonPropertyName("stage")] + public string Stage { get; set; } + + [JsonPropertyName("profile")] + public string Profile { get; set; } + + [JsonPropertyName("prop")] + public string Prop { get; set; } + + [JsonPropertyName("toolClass")] + public string ToolClass { get; set; } + + [JsonPropertyName("recipe")] + public string Recipe { get; set; } + + [JsonPropertyName("recipePattern")] + public string RecipePattern { get; set; } + + [JsonPropertyName("specMin")] + public double SpecMin { get; set; } + + [JsonPropertyName("specMax")] + public double SpecMax { get; set; } + + [JsonPropertyName("specSlot")] + public object SpecSlot { get; set; } + + [JsonPropertyName("testSlot")] + public object TestSlot { get; set; } + + [JsonPropertyName("testResult")] + public List TestResult { get; set; } + + [JsonPropertyName("testSig")] + public string TestSig { get; set; } + + [JsonPropertyName("testSigDtm")] + public string TestSigDtm { get; set; } + + [JsonPropertyName("specStdDev")] + public object SpecStdDev { get; set; } + + [JsonPropertyName("testStdDev")] + public object TestStdDev { get; set; } + + [JsonPropertyName("specWfrQty")] + public int SpecWfrQty { get; set; } + + [JsonPropertyName("dataPoints")] + public List> DataPoints { get; set; } + + [JsonPropertyName("testResultMin")] + public List TestResultMin { get; set; } + + [JsonPropertyName("testResultMax")] + public List TestResultMax { get; set; } + + [JsonPropertyName("testOutOfSpec")] + public bool TestOutOfSpec { get; set; } + + [JsonPropertyName("phaseMin")] + public object PhaseMin { get; set; } + + [JsonPropertyName("failReason")] + public object FailReason { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/WoMatQA.cs b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/WoMatQA.cs new file mode 100644 index 0000000..3a60119 --- /dev/null +++ b/Adaptation/FileHandlers/MoveAllFiles/OpenInsight/WoMatQA.cs @@ -0,0 +1,13 @@ +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.MoveAllFiles.OpenInsight; + +public class WoMatQA +{ + [JsonPropertyName("keyId")] + public string KeyId { get; set; } + + [JsonPropertyName("tests")] + public List Tests { get; set; } +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/TIBCO/FileRead.cs b/Adaptation/FileHandlers/TIBCO/FileRead.cs index a5ffc99..8a6307e 100644 --- a/Adaptation/FileHandlers/TIBCO/FileRead.cs +++ b/Adaptation/FileHandlers/TIBCO/FileRead.cs @@ -17,7 +17,7 @@ public class FileRead : Shared.FileRead, IFileRead public const string BarcodeHostFileShare = @"\\messv02ecc1.ec.local\EC_Metrology_Si\BarcodeHost\API"; public const string MetrologyFileShare = @"\\messv02ecc1.ec.local\EC_Metrology_Si\WorkMaterialOut\API"; - public const string LSL2SQLConnectionString = @"Data Source=10.95.128.28\\PROD1,53959;Initial Catalog=LSL2SQL;Persist Security Info=True;User ID=srpadmin;Password=0okm9ijn;"; + public const string LSL2SQLConnectionString = @"Data Source=10.95.128.28\PROD1,53959;Initial Catalog=LSL2SQL;Persist Security Info=True;User ID=srpadmin;Password=0okm9ijn;"; private long? _TickOffset; @@ -33,15 +33,15 @@ public class FileRead : Shared.FileRead, IFileRead throw new Exception(cellInstanceConnectionName); if (!_IsDuplicator) throw new Exception(cellInstanceConnectionName); - string metrologyFileShare = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "Metrology.FileShare"); - if (metrologyFileShare != MetrologyFileShare) - throw new NotSupportedException($"Update configuration for [{nameof(MetrologyFileShare)}]"); - string barcodeHostFileShare = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "BarcodeHost.FileShare"); + string barcodeHostFileShare = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "Barcode.Host.FileShare"); if (barcodeHostFileShare != BarcodeHostFileShare) throw new NotSupportedException($"Update configuration for [{nameof(BarcodeHostFileShare)}]"); string lsl2SQLConnectionString = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "ConnectionString.LSL2SQL"); if (lsl2SQLConnectionString != LSL2SQLConnectionString) throw new NotSupportedException($"Update configuration for [{nameof(LSL2SQLConnectionString)}]"); + string metrologyFileShare = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "Metrology.FileShare"); + if (metrologyFileShare != MetrologyFileShare) + throw new NotSupportedException($"Update configuration for [{nameof(MetrologyFileShare)}]"); ModelObjectParameterDefinition[] tibcoParameters = GetProperties(cellInstanceConnectionName, modelObjectParameters, "TIBCO."); string tibcoParameterChannel = GetPropertyValue(cellInstanceConnectionName, tibcoParameters, "TIBCO.IFX_CHANNEL"); string tibcoParameterSubject = GetPropertyValue(cellInstanceConnectionName, tibcoParameters, "TIBCO.IFX_SUBJECT"); diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/MET08DDUPSP1TBI.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/MET08DDUPSP1TBI.cs index 35519a8..b5177d1 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/MET08DDUPSP1TBI.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/MET08DDUPSP1TBI.cs @@ -47,9 +47,7 @@ public class MET08DDUPSP1TBI : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__MoveMatchingFiles() { @@ -60,9 +58,7 @@ public class MET08DDUPSP1TBI : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__OpenInsightMetrologyViewer() { @@ -73,9 +69,7 @@ public class MET08DDUPSP1TBI : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__IQSSi() { @@ -86,9 +80,7 @@ public class MET08DDUPSP1TBI : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__OpenInsight() { @@ -99,9 +91,7 @@ public class MET08DDUPSP1TBI : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__OpenInsightMetrologyViewerAttachments() { @@ -112,9 +102,7 @@ public class MET08DDUPSP1TBI : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__APC() { @@ -125,9 +113,7 @@ public class MET08DDUPSP1TBI : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__SPaCe() { @@ -138,9 +124,7 @@ public class MET08DDUPSP1TBI : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__Processed() { @@ -151,9 +135,7 @@ public class MET08DDUPSP1TBI : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__Archive() { @@ -164,9 +146,7 @@ public class MET08DDUPSP1TBI : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__Dummy() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/SP101.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/SP101.cs index a543d80..c730ebb 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/SP101.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/SP101.cs @@ -47,9 +47,7 @@ public class SP101 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__SP101__txt() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/MET08DDUPSP1TBI.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/MET08DDUPSP1TBI.cs new file mode 100644 index 0000000..2a113db --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/MET08DDUPSP1TBI.cs @@ -0,0 +1,191 @@ +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 MET08DDUPSP1TBI : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static MET08DDUPSP1TBI EAFLoggingUnitTesting { get; private set; } + + static MET08DDUPSP1TBI() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public MET08DDUPSP1TBI() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public MET08DDUPSP1TBI(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new MET08DDUPSP1TBI(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_49_3__MET08DDUPSP1TBI__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_49_3__MET08DDUPSP1TBI__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_49_3__MET08DDUPSP1TBI__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_49_3__MET08DDUPSP1TBI__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_49_3__MET08DDUPSP1TBI__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_49_3__MET08DDUPSP1TBI__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_49_3__MET08DDUPSP1TBI__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_49_3__MET08DDUPSP1TBI__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_49_3__MET08DDUPSP1TBI__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_49_3__MET08DDUPSP1TBI__Dummy() + { + string check = "637400748000000000.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")); + } + + [Ignore] + [TestMethod] + public void Staging__v2_49_3__MET08DDUPSP1TBI__TIBCO() + { + string check = "*.idc"; + 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/SP101-EQPT.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/SP101-EQPT.cs new file mode 100644 index 0000000..83fa3e9 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/SP101-EQPT.cs @@ -0,0 +1,70 @@ +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 SP101_EQPT : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static SP101_EQPT EAFLoggingUnitTesting { get; private set; } + + static SP101_EQPT() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public SP101_EQPT() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public SP101_EQPT(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new SP101_EQPT(testContext); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize")); + string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName); + File.WriteAllText(fileNameAndText[0], fileNameAndText[1]); + File.WriteAllText(fileNameAndText[2], fileNameAndText[3]); + } + + [ClassCleanup()] + public static void ClassCleanup() + { + EAFLoggingUnitTesting?.Logger?.LogInformation("Cleanup"); + EAFLoggingUnitTesting?.Dispose(); + } + + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_3__SP101_EQPT__MoveAllFiles() + { + string check = "*"; + 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")); + NonThrowTryCatch(); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/SP101.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/SP101.cs new file mode 100644 index 0000000..a0c1829 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.3/SP101.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_49_3; + +[TestClass] +public class SP101 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static SP101 EAFLoggingUnitTesting { get; private set; } + + static SP101() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public SP101() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public SP101(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new SP101(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_49_3__SP101__txt() + { + string check = "*.txt"; + 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/MET08DDUPSP1TBI.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/MET08DDUPSP1TBI.cs index e1ca79f..ee520d0 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.2/MET08DDUPSP1TBI.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/MET08DDUPSP1TBI.cs @@ -30,15 +30,11 @@ public class MET08DDUPSP1TBI catch (Exception) { } } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__MoveMatchingFiles() => _MET08DDUPSP1TBI.Staging__v2_49_2__MET08DDUPSP1TBI__MoveMatchingFiles(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__MoveMatchingFiles637955319879801344__Normal() { @@ -52,27 +48,19 @@ public class MET08DDUPSP1TBI _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__OpenInsightMetrologyViewer() => _MET08DDUPSP1TBI.Staging__v2_49_2__MET08DDUPSP1TBI__OpenInsightMetrologyViewer(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__IQSSi() => _MET08DDUPSP1TBI.Staging__v2_49_2__MET08DDUPSP1TBI__IQSSi(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__OpenInsight() => _MET08DDUPSP1TBI.Staging__v2_49_2__MET08DDUPSP1TBI__OpenInsight(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__OpenInsight638052814829645888__IqsSql() { @@ -85,39 +73,27 @@ public class MET08DDUPSP1TBI _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__OpenInsightMetrologyViewerAttachments() => _MET08DDUPSP1TBI.Staging__v2_49_2__MET08DDUPSP1TBI__OpenInsightMetrologyViewerAttachments(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__APC() => _MET08DDUPSP1TBI.Staging__v2_49_2__MET08DDUPSP1TBI__APC(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__SPaCe() => _MET08DDUPSP1TBI.Staging__v2_49_2__MET08DDUPSP1TBI__SPaCe(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__Processed() => _MET08DDUPSP1TBI.Staging__v2_49_2__MET08DDUPSP1TBI__Processed(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__Archive() => _MET08DDUPSP1TBI.Staging__v2_49_2__MET08DDUPSP1TBI__Archive(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__MET08DDUPSP1TBI__Dummy() => _MET08DDUPSP1TBI.Staging__v2_49_2__MET08DDUPSP1TBI__Dummy(); diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.2/SP101.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/SP101.cs index a008e8d..428982a 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.2/SP101.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/SP101.cs @@ -22,15 +22,11 @@ public class SP101 _SP101 = CreateSelfDescription.Staging.v2_49_2.SP101.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__SP101__txt() => _SP101.Staging__v2_49_2__SP101__txt(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_2__SP101__txt637955319879801344__Normal() { diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.3/MET08DDUPSP1TBI.cs b/Adaptation/_Tests/Extract/Staging/v2.49.3/MET08DDUPSP1TBI.cs new file mode 100644 index 0000000..783aec8 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.3/MET08DDUPSP1TBI.cs @@ -0,0 +1,148 @@ +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.Reflection; + +namespace Adaptation._Tests.Extract.Staging.v2_49_3; + +[TestClass] +public class MET08DDUPSP1TBI +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_3.MET08DDUPSP1TBI _MET08DDUPSP1TBI; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_3.MET08DDUPSP1TBI.ClassInitialize(testContext); + _MET08DDUPSP1TBI = CreateSelfDescription.Staging.v2_49_3.MET08DDUPSP1TBI.EAFLoggingUnitTesting; + } + + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_3__MET08DDUPSP1TBI__MoveMatchingFiles() => _MET08DDUPSP1TBI.Staging__v2_49_3__MET08DDUPSP1TBI__MoveMatchingFiles(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_3__MET08DDUPSP1TBI__MoveMatchingFiles637955319879801344__Normal() + { + string check = "*.pdsf"; + bool validatePDSF = false; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08DDUPSP1TBI.Staging__v2_49_3__MET08DDUPSP1TBI__MoveMatchingFiles(); + string[] variables = _MET08DDUPSP1TBI.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _MET08DDUPSP1TBI.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + NonThrowTryCatch(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_3__MET08DDUPSP1TBI__OpenInsightMetrologyViewer() => _MET08DDUPSP1TBI.Staging__v2_49_3__MET08DDUPSP1TBI__OpenInsightMetrologyViewer(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_3__MET08DDUPSP1TBI__IQSSi() => _MET08DDUPSP1TBI.Staging__v2_49_3__MET08DDUPSP1TBI__IQSSi(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_3__MET08DDUPSP1TBI__OpenInsight() => _MET08DDUPSP1TBI.Staging__v2_49_3__MET08DDUPSP1TBI__OpenInsight(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_3__MET08DDUPSP1TBI__OpenInsight638052814829645888__IqsSql() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08DDUPSP1TBI.Staging__v2_49_3__MET08DDUPSP1TBI__OpenInsight(); + string[] variables = _MET08DDUPSP1TBI.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08DDUPSP1TBI.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); + NonThrowTryCatch(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_3__MET08DDUPSP1TBI__OpenInsightMetrologyViewerAttachments() => _MET08DDUPSP1TBI.Staging__v2_49_3__MET08DDUPSP1TBI__OpenInsightMetrologyViewerAttachments(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_3__MET08DDUPSP1TBI__APC() => _MET08DDUPSP1TBI.Staging__v2_49_3__MET08DDUPSP1TBI__APC(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_3__MET08DDUPSP1TBI__SPaCe() => _MET08DDUPSP1TBI.Staging__v2_49_3__MET08DDUPSP1TBI__SPaCe(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_3__MET08DDUPSP1TBI__Processed() => _MET08DDUPSP1TBI.Staging__v2_49_3__MET08DDUPSP1TBI__Processed(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_3__MET08DDUPSP1TBI__Archive() => _MET08DDUPSP1TBI.Staging__v2_49_3__MET08DDUPSP1TBI__Archive(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_3__MET08DDUPSP1TBI__Dummy() => _MET08DDUPSP1TBI.Staging__v2_49_3__MET08DDUPSP1TBI__Dummy(); + +#if true + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_3__MET08DDUPSP1TBI__TIBCO() => _MET08DDUPSP1TBI.Staging__v2_49_3__MET08DDUPSP1TBI__TIBCO(); + +#if true + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_3__MET08DDUPSP1TBI__TIBCO638217888620242702__Normal() + { + string check = "*.idc"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08DDUPSP1TBI.Staging__v2_49_3__MET08DDUPSP1TBI__TIBCO(); + string[] variables = _MET08DDUPSP1TBI.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + _ = _MET08DDUPSP1TBI.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + for (int i = 0; i < int.MaxValue; i++) + System.Threading.Thread.Sleep(500); + NonThrowTryCatch(); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.3/SP101-EQPT.cs b/Adaptation/_Tests/Extract/Staging/v2.49.3/SP101-EQPT.cs new file mode 100644 index 0000000..7cdade2 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.3/SP101-EQPT.cs @@ -0,0 +1,27 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace Adaptation._Tests.Extract.Staging.v2_49_3; + +[TestClass] +public class SP101_EQPT +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_3.SP101_EQPT _SP101_EQPT; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_3.SP101_EQPT.ClassInitialize(testContext); + _SP101_EQPT = CreateSelfDescription.Staging.v2_49_3.SP101_EQPT.EAFLoggingUnitTesting; + } + +#if true + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_3__SP101_EQPT__MoveAllFiles() => _SP101_EQPT.Staging__v2_49_3__SP101_EQPT__MoveAllFiles(); + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.3/SP101.cs b/Adaptation/_Tests/Extract/Staging/v2.49.3/SP101.cs new file mode 100644 index 0000000..dc1ca8f --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.3/SP101.cs @@ -0,0 +1,56 @@ +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.Reflection; + +namespace Adaptation._Tests.Extract.Staging.v2_49_3; + +[TestClass] +public class SP101 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_3.SP101 _SP101; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_3.SP101.ClassInitialize(testContext); + _SP101 = CreateSelfDescription.Staging.v2_49_3.SP101.EAFLoggingUnitTesting; + } + + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_3__SP101__txt() => _SP101.Staging__v2_49_3__SP101__txt(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_3__SP101__txt637955319879801344__Normal() + { + string check = "*.txt"; + bool validatePDSF = false; + _SP101.Staging__v2_49_3__SP101__txt(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _SP101.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _SP101.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + NonThrowTryCatch(); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Static/API.cs b/Adaptation/_Tests/Static/API.cs new file mode 100644 index 0000000..74cfe07 --- /dev/null +++ b/Adaptation/_Tests/Static/API.cs @@ -0,0 +1,91 @@ +using Adaptation._Tests.Shared; +using Adaptation.FileHandlers.MoveAllFiles; +using Microsoft.Extensions.Logging; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using System.Reflection; +using System.Text.Json; + +namespace Adaptation._Tests.Static; + +[TestClass] +public class API : LoggingUnitTesting, IDisposable +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static API LoggingUnitTesting { get; private set; } + + public API() : base(testContext: null, declaringType: null) + { + if (LoggingUnitTesting is null) + throw new Exception(); + } + + public API(TestContext testContext) : base(testContext, new StackFrame().GetMethod().DeclaringType) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) => LoggingUnitTesting ??= new API(testContext); + + [ClassCleanup()] + public static void ClassCleanup() + { + LoggingUnitTesting?.Logger?.LogInformation("Cleanup"); + LoggingUnitTesting?.Dispose(); + } + + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + +#if true + [Ignore] +#endif + [TestMethod] + public void TestApiA() + { + MethodBase methodBase = new StackFrame().GetMethod(); +#nullable enable + HttpClient httpClient = new(); + string httpClientResult = httpClient.GetStringAsync($"{FileRead.OpenInsightApplicationProgrammingInterface}/materials/rds/601132").Result; + FileHandlers.MoveAllFiles.OpenInsight.Root? root = JsonSerializer.Deserialize(httpClientResult); + httpClient.Dispose(); + Assert.IsNotNull(root?.Rds.ProdSpec.PrsStages); + List? collection; + Dictionary> qaMetTests = new(); + foreach (FileHandlers.MoveAllFiles.OpenInsight.PrsStage prsStage in root.Rds.ProdSpec.PrsStages) + { + if (prsStage.QaMetTests is null) + continue; + foreach (FileHandlers.MoveAllFiles.OpenInsight.QaMetTest qaMetTest in prsStage.QaMetTests) + { + if (qaMetTest.ToolClass != "FTIR") + continue; + if (!qaMetTests.TryGetValue(prsStage.Stage, out collection)) + { + qaMetTests.Add(prsStage.Stage, new()); + if (!qaMetTests.TryGetValue(prsStage.Stage, out collection)) + throw new Exception(); + } + collection.Add(qaMetTest); + } + } + Assert.IsTrue(qaMetTests.Count > 0); + string json = JsonSerializer.Serialize(qaMetTests, new JsonSerializerOptions { WriteIndented = true }); + Assert.IsTrue(!string.IsNullOrEmpty(json)); + System.IO.File.WriteAllText("D:/.json", json); + LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase?.Name, " - Exit")); + NonThrowTryCatch(); +#nullable restore + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Static/MET08DDUPSP1TBI.cs b/Adaptation/_Tests/Static/MET08DDUPSP1TBI.cs index 1651cff..809d01e 100644 --- a/Adaptation/_Tests/Static/MET08DDUPSP1TBI.cs +++ b/Adaptation/_Tests/Static/MET08DDUPSP1TBI.cs @@ -55,7 +55,7 @@ public class MET08DDUPSP1TBI : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("MET08DDUPSP1TBI", "v2.49.2"), + new("MET08DDUPSP1TBI", "v2.49.3"), }; string staging = "http://mestsa07ec.ec.local:9003/CellInstanceServiceV2"; Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion; diff --git a/Adaptation/_Tests/Static/txt.cs b/Adaptation/_Tests/Static/txt.cs index bbe13ce..fe50648 100644 --- a/Adaptation/_Tests/Static/txt.cs +++ b/Adaptation/_Tests/Static/txt.cs @@ -208,7 +208,7 @@ public class TXT : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("SP101", "v2.49.2"), + new("SP101", "v2.49.3"), new("SP101-EQPT", "v2.47.0"), }; string staging = "http://mestsa07ec.ec.local:9003/CellInstanceServiceV2"; diff --git a/MET08DDUPSP1TBI.csproj b/MET08DDUPSP1TBI.csproj index 40e2cae..9d70e7e 100644 --- a/MET08DDUPSP1TBI.csproj +++ b/MET08DDUPSP1TBI.csproj @@ -113,6 +113,27 @@ + + + + + + + + + + + + + + + + + + + + + @@ -182,7 +203,7 @@ - 2.49.2 + 2.49.3 5.2.7 diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 503dda7..3ccda69 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.49.3.0")] +[assembly: AssemblyFileVersion("2.49.3.0")]