Release v2.36.3 Tencor 1 only 1 day
This commit is contained in:
parent
3f7adb1106
commit
a8a93cb115
1
Adaptation/.vscode/settings.json
vendored
1
Adaptation/.vscode/settings.json
vendored
@ -5,6 +5,7 @@
|
|||||||
"gpcl",
|
"gpcl",
|
||||||
"IKVM",
|
"IKVM",
|
||||||
"ISMTP",
|
"ISMTP",
|
||||||
|
"JOBID",
|
||||||
"Linc",
|
"Linc",
|
||||||
"LPDCM",
|
"LPDCM",
|
||||||
"messa",
|
"messa",
|
||||||
|
@ -5,7 +5,6 @@ namespace Adaptation.Eaf.Core.Smtp;
|
|||||||
public class EmailMessage
|
public class EmailMessage
|
||||||
{
|
{
|
||||||
|
|
||||||
#pragma warning disable CA2254
|
|
||||||
#pragma warning disable IDE0060
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
public EmailMessage() { }
|
public EmailMessage() { }
|
||||||
|
@ -7,8 +7,6 @@ namespace Adaptation.Eaf.EquipmentCore.DataCollection.Reporting;
|
|||||||
public class ParameterValue
|
public class ParameterValue
|
||||||
{
|
{
|
||||||
|
|
||||||
#pragma warning disable CA1822
|
|
||||||
#pragma warning disable CA2254
|
|
||||||
#pragma warning disable IDE0060
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
public ParameterValue(EquipmentParameter definition, object value) { }
|
public ParameterValue(EquipmentParameter definition, object value) { }
|
||||||
|
@ -5,7 +5,6 @@ namespace Adaptation.Eaf.EquipmentCore.SelfDescription.ElementDescription;
|
|||||||
public class EquipmentParameter
|
public class EquipmentParameter
|
||||||
{
|
{
|
||||||
|
|
||||||
#pragma warning disable CA2254
|
|
||||||
#pragma warning disable IDE0060
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
public EquipmentParameter(EquipmentParameter source, ParameterTypeDefinition typeDefinition) { }
|
public EquipmentParameter(EquipmentParameter source, ParameterTypeDefinition typeDefinition) { }
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
public class Field
|
public class Field
|
||||||
{
|
{
|
||||||
|
|
||||||
#pragma warning disable CA2254
|
|
||||||
#pragma warning disable IDE0060
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
public Field(string name, string description, bool canBeNull, ParameterTypeDefinition typeDefinition) { }
|
public Field(string name, string description, bool canBeNull, ParameterTypeDefinition typeDefinition) { }
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
public abstract class ParameterTypeDefinition
|
public abstract class ParameterTypeDefinition
|
||||||
{
|
{
|
||||||
|
|
||||||
#pragma warning disable CA2254
|
|
||||||
#pragma warning disable IDE0060
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
public ParameterTypeDefinition(string name, string description) { }
|
public ParameterTypeDefinition(string name, string description) { }
|
||||||
|
@ -5,8 +5,6 @@ namespace Adaptation.Eaf.EquipmentCore.SelfDescription.ParameterTypes;
|
|||||||
public class StructuredType : ParameterTypeDefinition
|
public class StructuredType : ParameterTypeDefinition
|
||||||
{
|
{
|
||||||
|
|
||||||
#pragma warning disable CA1822
|
|
||||||
#pragma warning disable CA2254
|
|
||||||
#pragma warning disable IDE0060
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
public StructuredType(string name, string description, IList<Field> fields) : base(name, description) { }
|
public StructuredType(string name, string description, IList<Field> fields) : base(name, description) { }
|
||||||
|
@ -6,7 +6,6 @@ namespace Adaptation.Eaf.Management.ConfigurationData.CellAutomation;
|
|||||||
public class ModelObjectParameterDefinition : IConfigurationObject
|
public class ModelObjectParameterDefinition : IConfigurationObject
|
||||||
{
|
{
|
||||||
|
|
||||||
#pragma warning disable CA2254
|
|
||||||
#pragma warning disable IDE0060
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
public ModelObjectParameterDefinition() { }
|
public ModelObjectParameterDefinition() { }
|
||||||
|
@ -29,6 +29,7 @@ public class CellInstanceConnectionName
|
|||||||
{
|
{
|
||||||
result = cellInstanceConnectionName switch
|
result = cellInstanceConnectionName switch
|
||||||
{
|
{
|
||||||
|
"MET08DDUPSFS6420" => new pcl.FileRead(smtp, fileParameter, cellInstanceName, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, useCyclicalForDescription, isEAFHosted),
|
||||||
nameof(pcl) => new pcl.FileRead(smtp, fileParameter, cellInstanceName, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, useCyclicalForDescription, isEAFHosted),
|
nameof(pcl) => new pcl.FileRead(smtp, fileParameter, cellInstanceName, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, useCyclicalForDescription, isEAFHosted),
|
||||||
_ => throw new Exception(),
|
_ => throw new Exception(),
|
||||||
};
|
};
|
||||||
|
@ -30,7 +30,7 @@ public class FileRead : Shared.FileRead, IFileRead
|
|||||||
if (_IsDuplicator)
|
if (_IsDuplicator)
|
||||||
throw new Exception(cellInstanceConnectionName);
|
throw new Exception(cellInstanceConnectionName);
|
||||||
_GhostPCLFileName = string.Concat(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location), @"\gpcl6win64.exe");
|
_GhostPCLFileName = string.Concat(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location), @"\gpcl6win64.exe");
|
||||||
if (_IsEAFHosted && !File.Exists(_GhostPCLFileName))
|
if (!File.Exists(_GhostPCLFileName))
|
||||||
throw new Exception("Ghost PCL FileName doesn't Exist!");
|
throw new Exception("Ghost PCL FileName doesn't Exist!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -255,24 +255,6 @@ public class ProcessData : IProcessData
|
|||||||
if (fileRead is null)
|
if (fileRead is null)
|
||||||
{ }
|
{ }
|
||||||
_I = 0;
|
_I = 0;
|
||||||
//string headerText;
|
|
||||||
//string altHeaderFileName = Path.ChangeExtension(headerFileName, ".txt");
|
|
||||||
//if (File.Exists(altHeaderFileName))
|
|
||||||
// headerText = File.ReadAllText(altHeaderFileName);
|
|
||||||
//else
|
|
||||||
//{
|
|
||||||
// //Pdfbox, IKVM.AWT.WinForms
|
|
||||||
// org.apache.pdfbox.pdmodel.PDDocument pdfDocument = org.apache.pdfbox.pdmodel.PDDocument.load(headerFileName);
|
|
||||||
// org.apache.pdfbox.util.PDFTextStripper stripper = new org.apache.pdfbox.util.PDFTextStripper();
|
|
||||||
// headerText = stripper.getText(pdfDocument);
|
|
||||||
// pdfDocument.close();
|
|
||||||
// File.AppendAllText(altHeaderFileName, headerText);
|
|
||||||
//}
|
|
||||||
//result.Id = h;
|
|
||||||
//result.Title = h;
|
|
||||||
//result.Zone = h;
|
|
||||||
//result.PSN = h;
|
|
||||||
//result.Layer = h;
|
|
||||||
ParseErrorText = string.Empty;
|
ParseErrorText = string.Empty;
|
||||||
if (!pages.ContainsKey(headerFileName))
|
if (!pages.ContainsKey(headerFileName))
|
||||||
throw new Exception();
|
throw new Exception();
|
||||||
@ -382,19 +364,6 @@ public class ProcessData : IProcessData
|
|||||||
{
|
{
|
||||||
Detail result = new() { Data = "*Data*", i = -1, };
|
Detail result = new() { Data = "*Data*", i = -1, };
|
||||||
_I = 0;
|
_I = 0;
|
||||||
//string waferText;
|
|
||||||
//string altWaferFileName = Path.ChangeExtension(waferFileName, ".txt");
|
|
||||||
//if (File.Exists(altWaferFileName))
|
|
||||||
// waferText = File.ReadAllText(altWaferFileName);
|
|
||||||
//else
|
|
||||||
//{
|
|
||||||
// //Pdfbox, IKVM.AWT.WinForms
|
|
||||||
// org.apache.pdfbox.pdmodel.PDDocument pdfDocument = org.apache.pdfbox.pdmodel.PDDocument.load(waferFileName);
|
|
||||||
// org.apache.pdfbox.util.PDFTextStripper dataStripper = new org.apache.pdfbox.util.PDFTextStripper();
|
|
||||||
// waferText = dataStripper.getText(pdfDocument);
|
|
||||||
// pdfDocument.close();
|
|
||||||
// File.AppendAllText(altWaferFileName, waferText);
|
|
||||||
//}
|
|
||||||
List<string> stringList = new();
|
List<string> stringList = new();
|
||||||
result.HeaderUniqueId = UniqueId;
|
result.HeaderUniqueId = UniqueId;
|
||||||
result.Id = 0;
|
result.Id = 0;
|
||||||
@ -500,85 +469,77 @@ public class ProcessData : IProcessData
|
|||||||
string pageTextFile;
|
string pageTextFile;
|
||||||
List<string> sourceFiles = new();
|
List<string> sourceFiles = new();
|
||||||
List<string> missingSlots = new();
|
List<string> missingSlots = new();
|
||||||
List<Detail> dataFiles = new();
|
|
||||||
Dictionary<string, string> pages = new();
|
Dictionary<string, string> pages = new();
|
||||||
string sourcePath = Path.GetDirectoryName(logistics.ReportFullPath);
|
|
||||||
Dictionary<string, List<Detail>> slots = new();
|
Dictionary<string, List<Detail>> slots = new();
|
||||||
|
string sourcePath = Path.GetDirectoryName(logistics.ReportFullPath);
|
||||||
string sourceFileNamePdf = ConvertSourceFileToPdf(ghostPCLFileName, logistics);
|
string sourceFileNamePdf = ConvertSourceFileToPdf(ghostPCLFileName, logistics);
|
||||||
sourceFiles.Add(sourceFileNamePdf);
|
sourceFiles.Add(sourceFileNamePdf);
|
||||||
string sourceFileNameNoExt = Path.GetFileNameWithoutExtension(logistics.ReportFullPath);
|
string sourceFileNameWithoutExtension = Path.GetFileNameWithoutExtension(logistics.ReportFullPath);
|
||||||
////PdfSharp open pdf
|
string[] txtFiles = Directory.GetFiles(sourcePath, $"{sourceFileNameWithoutExtension}_*.txt", SearchOption.TopDirectoryOnly);
|
||||||
//using (PdfSharp.Pdf.PdfDocument sourceDocument = PdfSharp.Pdf.IO.PdfReader.Open(sourceFileNamePdf, PdfSharp.Pdf.IO.PdfDocumentOpenMode.Import))
|
if (txtFiles.Any())
|
||||||
//{
|
|
||||||
// for (int idxPage = 0; idxPage < sourceDocument.PageCount; idxPage++)
|
|
||||||
// {
|
|
||||||
// // split the pdf into separate pages. Odd pages are wafer image, even are wafer summary. Last page is Lot Summary.
|
|
||||||
// _Log.Debug($"****ParseData - Splitting page: {idxPage}, sourceDocument: {sourceDocument.FullPath}, sourcePathFileNoExt: {sourcePathFileNoExt}");
|
|
||||||
// //SplitPage(sourceDocument, sourcePathFileNoExt, idxPage);
|
|
||||||
// pageNum = idxPage + 1;
|
|
||||||
// pageFile = string.Format("{0}_{1}.pdf", sourcePathFileNoExt, pageNum);
|
|
||||||
// _Log.Debug($"****SplitPage - Page {pageNum} Source file: {sourceDocument.FullPath}");
|
|
||||||
// _Log.Debug($"****SplitPage - Page {pageNum} Output file: {pageFile}");
|
|
||||||
// //PdfSharp Create new document
|
|
||||||
// PdfSharp.Pdf.PdfDocument outputDocument = new PdfSharp.Pdf.PdfDocument { Version = sourceDocument.Version };
|
|
||||||
// outputDocument.Info.Title = string.Format("Page {0} of {1}", pageNum, sourceDocument.Info.Title);
|
|
||||||
// outputDocument.Info.Creator = sourceDocument.Info.Creator;
|
|
||||||
// outputDocument.AddPage(sourceDocument.Pages[idxPage]);
|
|
||||||
// outputDocument.Pages[0].CropBox = new PdfSharp.Pdf.PdfRectangle(new PdfSharp.Drawing.XRect(0, 100, 700, 700));
|
|
||||||
// outputDocument.Save(pageFile);
|
|
||||||
// }
|
|
||||||
// sourceDocumentPageCount = sourceDocument.PageCount;
|
|
||||||
// sourceDocument.Close();
|
|
||||||
//}
|
|
||||||
java.io.File file = new(sourceFileNamePdf);
|
|
||||||
org.apache.pdfbox.util.Splitter splitter = new();
|
|
||||||
org.apache.pdfbox.pdmodel.PDDocument pdDocument = org.apache.pdfbox.pdmodel.PDDocument.load(file);
|
|
||||||
java.util.List list = splitter.split(pdDocument);
|
|
||||||
java.util.ListIterator iterator = list.listIterator();
|
|
||||||
org.apache.pdfbox.util.PDFTextStripper dataStripper = new();
|
|
||||||
for (short i = 1; i < short.MaxValue; i++)
|
|
||||||
{
|
{
|
||||||
if (!iterator.hasNext())
|
foreach (string txtFile in txtFiles)
|
||||||
break;
|
|
||||||
item = iterator.next();
|
|
||||||
pagePDFFile = string.Concat(sourcePath, @"\", sourceFileNameNoExt, "_", i, ".pdf");
|
|
||||||
pageTextFile = Path.ChangeExtension(pagePDFFile, ".txt");
|
|
||||||
if (File.Exists(pageTextFile))
|
|
||||||
{
|
{
|
||||||
pageText = File.ReadAllText(pageTextFile);
|
sourceFiles.Add(txtFile);
|
||||||
sourceFiles.Add(pageTextFile);
|
pageText = File.ReadAllText(txtFile);
|
||||||
if (item is not org.apache.pdfbox.pdmodel.PDDocument pd)
|
pagePDFFile = Path.ChangeExtension(txtFile, ".pdf");
|
||||||
|
if (!File.Exists(pagePDFFile))
|
||||||
continue;
|
continue;
|
||||||
pd.close();
|
pages.Add(pagePDFFile, pageText);
|
||||||
}
|
}
|
||||||
else if (File.Exists(pagePDFFile))
|
|
||||||
{
|
|
||||||
org.apache.pdfbox.pdmodel.PDDocument document = org.apache.pdfbox.pdmodel.PDDocument.load(pagePDFFile);
|
|
||||||
pageText = dataStripper.getText(document);
|
|
||||||
document.close();
|
|
||||||
sourceFiles.Add(pagePDFFile);
|
|
||||||
if (item is not org.apache.pdfbox.pdmodel.PDDocument pd)
|
|
||||||
continue;
|
|
||||||
pd.close();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (item is not org.apache.pdfbox.pdmodel.PDDocument pd)
|
|
||||||
continue;
|
|
||||||
pageText = dataStripper.getText(pd);
|
|
||||||
pd.save(pagePDFFile);
|
|
||||||
sourceFiles.Add(pagePDFFile);
|
|
||||||
pd.close();
|
|
||||||
File.WriteAllText(pageTextFile, pageText);
|
|
||||||
sourceFiles.Add(pageTextFile);
|
|
||||||
}
|
|
||||||
pages.Add(pagePDFFile, pageText);
|
|
||||||
}
|
}
|
||||||
pdDocument.close();
|
if (!pages.Any())
|
||||||
|
{
|
||||||
|
java.io.File file = new(sourceFileNamePdf);
|
||||||
|
org.apache.pdfbox.util.Splitter splitter = new();
|
||||||
|
org.apache.pdfbox.pdmodel.PDDocument pdDocument = org.apache.pdfbox.pdmodel.PDDocument.load(file);
|
||||||
|
java.util.List list = splitter.split(pdDocument);
|
||||||
|
java.util.ListIterator iterator = list.listIterator();
|
||||||
|
org.apache.pdfbox.util.PDFTextStripper dataStripper = new();
|
||||||
|
for (short i = 1; i < short.MaxValue; i++)
|
||||||
|
{
|
||||||
|
if (!iterator.hasNext())
|
||||||
|
break;
|
||||||
|
item = iterator.next();
|
||||||
|
pagePDFFile = string.Concat(sourcePath, @"\", sourceFileNameWithoutExtension, "_", i, ".pdf");
|
||||||
|
pageTextFile = Path.ChangeExtension(pagePDFFile, ".txt");
|
||||||
|
if (File.Exists(pageTextFile))
|
||||||
|
{
|
||||||
|
pageText = File.ReadAllText(pageTextFile);
|
||||||
|
sourceFiles.Add(pageTextFile);
|
||||||
|
if (item is not org.apache.pdfbox.pdmodel.PDDocument pd)
|
||||||
|
continue;
|
||||||
|
pd.close();
|
||||||
|
}
|
||||||
|
else if (File.Exists(pagePDFFile))
|
||||||
|
{
|
||||||
|
org.apache.pdfbox.pdmodel.PDDocument document = org.apache.pdfbox.pdmodel.PDDocument.load(pagePDFFile);
|
||||||
|
pageText = dataStripper.getText(document);
|
||||||
|
document.close();
|
||||||
|
sourceFiles.Add(pagePDFFile);
|
||||||
|
if (item is not org.apache.pdfbox.pdmodel.PDDocument pd)
|
||||||
|
continue;
|
||||||
|
pd.close();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (item is not org.apache.pdfbox.pdmodel.PDDocument pd)
|
||||||
|
continue;
|
||||||
|
pageText = dataStripper.getText(pd);
|
||||||
|
pd.save(pagePDFFile);
|
||||||
|
sourceFiles.Add(pagePDFFile);
|
||||||
|
pd.close();
|
||||||
|
File.WriteAllText(pageTextFile, pageText);
|
||||||
|
sourceFiles.Add(pageTextFile);
|
||||||
|
}
|
||||||
|
pages.Add(pagePDFFile, pageText);
|
||||||
|
}
|
||||||
|
pdDocument.close();
|
||||||
|
}
|
||||||
// parse lot summary
|
// parse lot summary
|
||||||
_Log.Debug($"****ParseData - Parsing lot summary");
|
_Log.Debug($"****ParseData - Parsing lot summary");
|
||||||
List<Tuple<string, string>> pageMapping = new();
|
List<Tuple<string, string>> pageMapping = new();
|
||||||
string headerFileName = string.Concat(sourcePath, @"\", sourceFileNameNoExt, "_", pages.Count, ".pdf");
|
string headerFileName = string.Concat(sourcePath, @"\", sourceFileNameWithoutExtension, "_", pages.Count, ".pdf");
|
||||||
ParseLotSummary(fileRead, logistics, headerFileName, pages, slots);
|
ParseLotSummary(fileRead, logistics, headerFileName, pages, slots);
|
||||||
foreach (KeyValuePair<string, string> keyValuePair in pages)
|
foreach (KeyValuePair<string, string> keyValuePair in pages)
|
||||||
{
|
{
|
||||||
@ -604,10 +565,10 @@ public class ProcessData : IProcessData
|
|||||||
pageMapping.Add(new Tuple<string, string>(keyValuePair.Key, string.Empty));
|
pageMapping.Add(new Tuple<string, string>(keyValuePair.Key, string.Empty));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
pageMapping.Add(new Tuple<string, string>(keyValuePair.Key, string.Concat(sourcePath, @"\", sourceFileNameNoExt, "_", dataFile.Slot.Replace('*', 's'), "_data.pdf")));
|
pageMapping.Add(new Tuple<string, string>(keyValuePair.Key, string.Concat(sourcePath, @"\", sourceFileNameWithoutExtension, "_", dataFile.Slot.Replace('*', 's'), "_data.pdf")));
|
||||||
slots[dataFile.Slot].Add(dataFile);
|
slots[dataFile.Slot].Add(dataFile);
|
||||||
}
|
}
|
||||||
string checkFileName = string.Concat(sourcePath, @"\", sourceFileNameNoExt, "_data.pdf");
|
string checkFileName = string.Concat(sourcePath, @"\", sourceFileNameWithoutExtension, "_data.pdf");
|
||||||
if (!File.Exists(checkFileName))
|
if (!File.Exists(checkFileName))
|
||||||
{
|
{
|
||||||
File.Move(headerFileName, checkFileName);
|
File.Move(headerFileName, checkFileName);
|
||||||
@ -649,12 +610,12 @@ public class ProcessData : IProcessData
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
foreach (Detail data in keyValuePair.Value)
|
foreach (Detail data in keyValuePair.Value)
|
||||||
dataFiles.Add(data);
|
_Details.Add(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (missingSlots.Any())
|
if (missingSlots.Any())
|
||||||
{
|
{
|
||||||
string missingSlotsFile = string.Concat(sourcePath, @"\", sourceFileNameNoExt, "_MissingSlots.txt");
|
string missingSlotsFile = string.Concat(sourcePath, @"\", sourceFileNameWithoutExtension, "_MissingSlots.txt");
|
||||||
File.WriteAllLines(missingSlotsFile, missingSlots);
|
File.WriteAllLines(missingSlotsFile, missingSlots);
|
||||||
sourceFiles.Add(missingSlotsFile);
|
sourceFiles.Add(missingSlotsFile);
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
public class ConnectionSetting
|
public class ConnectionSetting
|
||||||
{
|
{
|
||||||
|
|
||||||
#pragma warning disable CA2254
|
|
||||||
#pragma warning disable IDE0060
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
public ConnectionSetting(string name, string value) { }
|
public ConnectionSetting(string name, string value) { }
|
||||||
|
@ -6,7 +6,6 @@ namespace Adaptation.Ifx.Eaf.EquipmentConnector.File.Component;
|
|||||||
public class File
|
public class File
|
||||||
{
|
{
|
||||||
|
|
||||||
#pragma warning disable CA2254
|
|
||||||
#pragma warning disable IDE0060
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
public File(string filePath) => throw new NotImplementedException();
|
public File(string filePath) => throw new NotImplementedException();
|
||||||
|
@ -7,8 +7,6 @@ namespace Adaptation.Ifx.Eaf.EquipmentConnector.File.Component;
|
|||||||
public class FilePathGenerator
|
public class FilePathGenerator
|
||||||
{
|
{
|
||||||
|
|
||||||
#pragma warning disable CA1822
|
|
||||||
#pragma warning disable CA2254
|
|
||||||
#pragma warning disable IDE0060
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
public const char PLACEHOLDER_IDENTIFIER = '%';
|
public const char PLACEHOLDER_IDENTIFIER = '%';
|
||||||
|
@ -0,0 +1,64 @@
|
|||||||
|
using Adaptation.Shared;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
using Shared;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.IO;
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Text.Json;
|
||||||
|
using System.Threading;
|
||||||
|
|
||||||
|
namespace _Tests.CreateSelfDescription.Staging.v2_36_3;
|
||||||
|
|
||||||
|
[TestClass]
|
||||||
|
public class TENCOR1 : EAFLoggingUnitTesting
|
||||||
|
{
|
||||||
|
|
||||||
|
#pragma warning disable CA2254
|
||||||
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
|
internal static TENCOR1 EAFLoggingUnitTesting { get; private set; }
|
||||||
|
|
||||||
|
public TENCOR1() : base(testContext: null, declaringType: null, skipEquipmentDictionary: false)
|
||||||
|
{
|
||||||
|
if (EAFLoggingUnitTesting is null)
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
public TENCOR1(TestContext testContext) : base(testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
[ClassInitialize]
|
||||||
|
public static void ClassInitialize(TestContext testContext)
|
||||||
|
{
|
||||||
|
if (EAFLoggingUnitTesting is null)
|
||||||
|
EAFLoggingUnitTesting = new TENCOR1(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()
|
||||||
|
{
|
||||||
|
if (EAFLoggingUnitTesting.Logger is not null)
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation("Cleanup");
|
||||||
|
if (EAFLoggingUnitTesting is not null)
|
||||||
|
EAFLoggingUnitTesting.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_36_3__TENCOR1__MET08DDUPSFS6420()
|
||||||
|
{
|
||||||
|
string check = "*.pcl";
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||||
|
_ = Helpers.Metrology.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
44
Adaptation/_Tests/Extract/Staging/v2.36.3/TENCOR1.cs
Normal file
44
Adaptation/_Tests/Extract/Staging/v2.36.3/TENCOR1.cs
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
using Adaptation.Shared;
|
||||||
|
using Adaptation.Shared.Methods;
|
||||||
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.IO;
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Text.Json;
|
||||||
|
|
||||||
|
namespace _Tests.Extract.Staging.v2_36_3;
|
||||||
|
|
||||||
|
[TestClass]
|
||||||
|
public class TENCOR1
|
||||||
|
{
|
||||||
|
|
||||||
|
#pragma warning disable CA2254
|
||||||
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
|
private static CreateSelfDescription.Staging.v2_36_3.TENCOR1 _TENCOR1;
|
||||||
|
|
||||||
|
[ClassInitialize]
|
||||||
|
public static void ClassInitialize(TestContext testContext)
|
||||||
|
{
|
||||||
|
CreateSelfDescription.Staging.v2_36_3.TENCOR1.ClassInitialize(testContext);
|
||||||
|
_TENCOR1 = CreateSelfDescription.Staging.v2_36_3.TENCOR1.EAFLoggingUnitTesting;
|
||||||
|
}
|
||||||
|
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_36_3__TENCOR1__MET08DDUPSFS6420() => _TENCOR1.Staging__v2_36_3__TENCOR1__MET08DDUPSFS6420();
|
||||||
|
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_36_3__TENCOR1__MET08DDUPSFS6420637810124350899080__Normal()
|
||||||
|
{
|
||||||
|
string check = "*.pcl";
|
||||||
|
_TENCOR1.Staging__v2_36_3__TENCOR1__MET08DDUPSFS6420();
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
string[] variables = _TENCOR1.AdaptationTesting.GetVariables(methodBase, check);
|
||||||
|
IFileRead fileRead = _TENCOR1.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
||||||
|
Logistics logistics = new(fileRead);
|
||||||
|
_ = Helpers.Metrology.ReExtractComapareUpdatePassDirectory(variables, fileRead, logistics);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -14,7 +14,7 @@
|
|||||||
"AX-CreateSelfDescription.Staging.v2_39_0-TENCOR3_EQPT": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~_Tests.CreateSelfDescription.Staging.v2_39_0 & ClassName~TENCOR3_EQPT\" --% -- TestRunParameters.Parameter(name=\\\"Debug\\\", value=\\\"Debugger.IsAttached\\\")",
|
"AX-CreateSelfDescription.Staging.v2_39_0-TENCOR3_EQPT": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~_Tests.CreateSelfDescription.Staging.v2_39_0 & ClassName~TENCOR3_EQPT\" --% -- TestRunParameters.Parameter(name=\\\"Debug\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"AY-CreateSelfDescription.Staging.v2_39_0-TENCOR3": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~_Tests.CreateSelfDescription.Staging.v2_39_0 & ClassName~TENCOR3\" --% -- TestRunParameters.Parameter(name=\\\"Debug\\\", value=\\\"Debugger.IsAttached\\\")",
|
"AY-CreateSelfDescription.Staging.v2_39_0-TENCOR3": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~_Tests.CreateSelfDescription.Staging.v2_39_0 & ClassName~TENCOR3\" --% -- TestRunParameters.Parameter(name=\\\"Debug\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"AZ-CreateSelfDescription.Staging.v2_39_0": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~_Tests.CreateSelfDescription.Staging.v2_39_0\" --% -- TestRunParameters.Parameter(name=\\\"Debug\\\", value=\\\"Debugger.IsAttached\\\")",
|
"AZ-CreateSelfDescription.Staging.v2_39_0": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~_Tests.CreateSelfDescription.Staging.v2_39_0\" --% -- TestRunParameters.Parameter(name=\\\"Debug\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"BA-Extract.Staging.v2_39_0-TENCOR3-Staging__v2_39_0__TENCOR3__RsM643047560320000000__Normal": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~_Tests.Extract.Staging.v2_39_0 & ClassName~TENCOR3 & Staging__v2_39_0__TENCOR3__RsM643047560320000000__Normal\" --% -- TestRunParameters.Parameter(name=\\\"Debug\\\", value=\\\"Debugger.IsAttached\\\")",
|
"BA-Extract.Staging.v2_39_0-TENCOR1-Staging__v2_36_3__TENCOR1__MET08DDUPSFS6420": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~_Tests.Extract.Staging.v2_36_3 & ClassName~TENCOR1 & Staging__v2_36_3__TENCOR1__MET08DDUPSFS6420637810124350899080__Normal\" --% -- TestRunParameters.Parameter(name=\\\"Debug\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"BT-Extract.Staging.v2_39_0-MET08DDUPSFS6420": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~_Tests.Extract.Staging.v2_39_0 & ClassName~MET08DDUPSFS6420\" --% -- TestRunParameters.Parameter(name=\\\"Debug\\\", value=\\\"Debugger.IsAttached\\\")",
|
"BT-Extract.Staging.v2_39_0-MET08DDUPSFS6420": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~_Tests.Extract.Staging.v2_39_0 & ClassName~MET08DDUPSFS6420\" --% -- TestRunParameters.Parameter(name=\\\"Debug\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"BV-Extract.Staging.v2_39_0-TENCOR1_EQPT": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~_Tests.Extract.Staging.v2_39_0 & ClassName~TENCOR1_EQPT\" --% -- TestRunParameters.Parameter(name=\\\"Debug\\\", value=\\\"Debugger.IsAttached\\\")",
|
"BV-Extract.Staging.v2_39_0-TENCOR1_EQPT": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~_Tests.Extract.Staging.v2_39_0 & ClassName~TENCOR1_EQPT\" --% -- TestRunParameters.Parameter(name=\\\"Debug\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"BW-Extract.Staging.v2_39_0-TENCOR1": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~_Tests.Extract.Staging.v2_39_0 & ClassName~TENCOR1\" --% -- TestRunParameters.Parameter(name=\\\"Debug\\\", value=\\\"Debugger.IsAttached\\\")",
|
"BW-Extract.Staging.v2_39_0-TENCOR1": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~_Tests.Extract.Staging.v2_39_0 & ClassName~TENCOR1\" --% -- TestRunParameters.Parameter(name=\\\"Debug\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{37F6B043-8305-4773-B0A3-BE9AC010E4F1}</ProjectGuid>
|
<ProjectGuid>{37F6B043-8305-4773-B0A3-BE9AC010E4F1}</ProjectGuid>
|
||||||
<LangVersion>9.0</LangVersion>
|
<LangVersion>10.0</LangVersion>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>MET08DDUPSFS6420</RootNamespace>
|
<RootNamespace>MET08DDUPSFS6420</RootNamespace>
|
||||||
@ -97,7 +97,6 @@
|
|||||||
<Compile Include="Adaptation\FileHandlers\Archive\FileRead.cs" />
|
<Compile Include="Adaptation\FileHandlers\Archive\FileRead.cs" />
|
||||||
<Compile Include="Adaptation\FileHandlers\CellInstanceConnectionName.cs" />
|
<Compile Include="Adaptation\FileHandlers\CellInstanceConnectionName.cs" />
|
||||||
<Compile Include="Adaptation\FileHandlers\Dummy\FileRead.cs" />
|
<Compile Include="Adaptation\FileHandlers\Dummy\FileRead.cs" />
|
||||||
<Compile Include="Adaptation\FileHandlers\FileRead.cs" />
|
|
||||||
<Compile Include="Adaptation\FileHandlers\MET08DDUPSFS6420\FileRead.cs" />
|
<Compile Include="Adaptation\FileHandlers\MET08DDUPSFS6420\FileRead.cs" />
|
||||||
<Compile Include="Adaptation\FileHandlers\MET08DDUPSFS6420\Hyphen.cs" />
|
<Compile Include="Adaptation\FileHandlers\MET08DDUPSFS6420\Hyphen.cs" />
|
||||||
<Compile Include="Adaptation\FileHandlers\MET08DDUPSFS6420\ProcessData.cs" />
|
<Compile Include="Adaptation\FileHandlers\MET08DDUPSFS6420\ProcessData.cs" />
|
||||||
@ -108,11 +107,6 @@
|
|||||||
<Compile Include="Adaptation\FileHandlers\pcl\ProcessData.cs" />
|
<Compile Include="Adaptation\FileHandlers\pcl\ProcessData.cs" />
|
||||||
<Compile Include="Adaptation\FileHandlers\ManualOIEntry\FileRead.cs" />
|
<Compile Include="Adaptation\FileHandlers\ManualOIEntry\FileRead.cs" />
|
||||||
<Compile Include="Adaptation\FileHandlers\ToArchive\FileRead.cs" />
|
<Compile Include="Adaptation\FileHandlers\ToArchive\FileRead.cs" />
|
||||||
<Compile Include="Adaptation\Helpers\Si\Transport.cs" />
|
|
||||||
<Compile Include="Adaptation\Helpers\Si\Transport.Job.cs" />
|
|
||||||
<Compile Include="Adaptation\Helpers\Si\Transport.Item.cs" />
|
|
||||||
<Compile Include="Adaptation\Helpers\Si\Transport.Input.cs" />
|
|
||||||
<Compile Include="Adaptation\Helpers\Si\Transport.Logistics.cs" />
|
|
||||||
<Compile Include="Adaptation\Ifx\Eaf\Common\Configuration\ConnectionSetting.cs" />
|
<Compile Include="Adaptation\Ifx\Eaf\Common\Configuration\ConnectionSetting.cs" />
|
||||||
<Compile Include="Adaptation\Ifx\Eaf\EquipmentConnector\File\Component\File.cs" />
|
<Compile Include="Adaptation\Ifx\Eaf\EquipmentConnector\File\Component\File.cs" />
|
||||||
<Compile Include="Adaptation\Ifx\Eaf\EquipmentConnector\File\Component\FilePathGenerator.cs" />
|
<Compile Include="Adaptation\Ifx\Eaf\EquipmentConnector\File\Component\FilePathGenerator.cs" />
|
||||||
@ -142,13 +136,6 @@
|
|||||||
<Compile Include="Adaptation\Shared\Properties\IScopeInfo.cs" />
|
<Compile Include="Adaptation\Shared\Properties\IScopeInfo.cs" />
|
||||||
<Compile Include="Adaptation\Shared\Test.cs" />
|
<Compile Include="Adaptation\Shared\Test.cs" />
|
||||||
<Compile Include="FileHandlers\FileRead.cs" />
|
<Compile Include="FileHandlers\FileRead.cs" />
|
||||||
<Compile Include="Adaptation\Helpers\ConfigData.cs" />
|
|
||||||
<Compile Include="Adaptation\Helpers\ConfigData.Level.cs" />
|
|
||||||
<Compile Include="Adaptation\Helpers\ProcessData.cs" />
|
|
||||||
<Compile Include="Adaptation\Helpers\ProcessData.DataFile.cs" />
|
|
||||||
<Compile Include="Adaptation\Helpers\ProcessData.FileRead.Description.cs" />
|
|
||||||
<Compile Include="Adaptation\Helpers\ProcessData.HeaderFile.cs" />
|
|
||||||
<Compile Include="Adaptation\Helpers\ProcessData.WSRequest.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="Adaptation\Shared\Logistics.cs" />
|
<Compile Include="Adaptation\Shared\Logistics.cs" />
|
||||||
<Compile Include="Adaptation\Shared\Logistics2.cs" />
|
<Compile Include="Adaptation\Shared\Logistics2.cs" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user