Moved to IFX (Development) from EC (Staging)
This commit is contained in:
parent
77966d1a0b
commit
48b9d0fb43
@ -6,7 +6,7 @@ using System.Diagnostics;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_49_0;
|
namespace Adaptation._Tests.CreateSelfDescription.Development.v2_49_0;
|
||||||
|
|
||||||
[TestClass]
|
[TestClass]
|
||||||
public class BACKLOG_EQPT : EAFLoggingUnitTesting
|
public class BACKLOG_EQPT : EAFLoggingUnitTesting
|
||||||
@ -18,7 +18,7 @@ public class BACKLOG_EQPT : EAFLoggingUnitTesting
|
|||||||
internal static string DummyRoot { get; private set; }
|
internal static string DummyRoot { get; private set; }
|
||||||
internal static BACKLOG_EQPT EAFLoggingUnitTesting { get; private set; }
|
internal static BACKLOG_EQPT EAFLoggingUnitTesting { get; private set; }
|
||||||
|
|
||||||
static BACKLOG_EQPT() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy";
|
static BACKLOG_EQPT() => DummyRoot = @"\\messdv002.na.infineon.com\Candela\EC_Characterization_Si\Dummy";
|
||||||
|
|
||||||
public BACKLOG_EQPT() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
|
public BACKLOG_EQPT() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
|
||||||
{
|
{
|
||||||
@ -51,7 +51,7 @@ public class BACKLOG_EQPT : EAFLoggingUnitTesting
|
|||||||
[Ignore]
|
[Ignore]
|
||||||
#endif
|
#endif
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void Staging__v2_49_0__BACKLOG_EQPT__DownloadExcelFile()
|
public void Development__v2_49_0__BACKLOG_EQPT__DownloadExcelFile()
|
||||||
{
|
{
|
||||||
string check = ".xlsx";
|
string check = ".xlsx";
|
||||||
MethodBase methodBase = new StackFrame().GetMethod();
|
MethodBase methodBase = new StackFrame().GetMethod();
|
@ -6,7 +6,7 @@ using System.Diagnostics;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_49_0;
|
namespace Adaptation._Tests.CreateSelfDescription.Development.v2_49_0;
|
||||||
|
|
||||||
[TestClass]
|
[TestClass]
|
||||||
public class BACKLOG : EAFLoggingUnitTesting
|
public class BACKLOG : EAFLoggingUnitTesting
|
||||||
@ -18,7 +18,7 @@ public class BACKLOG : EAFLoggingUnitTesting
|
|||||||
internal static string DummyRoot { get; private set; }
|
internal static string DummyRoot { get; private set; }
|
||||||
internal static BACKLOG EAFLoggingUnitTesting { get; private set; }
|
internal static BACKLOG EAFLoggingUnitTesting { get; private set; }
|
||||||
|
|
||||||
static BACKLOG() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy";
|
static BACKLOG() => DummyRoot = @"\\messdv002.na.infineon.com\Candela\EC_Characterization_Si\Dummy";
|
||||||
|
|
||||||
public BACKLOG() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
|
public BACKLOG() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
|
||||||
{
|
{
|
||||||
@ -51,7 +51,7 @@ public class BACKLOG : EAFLoggingUnitTesting
|
|||||||
[Ignore]
|
[Ignore]
|
||||||
#endif
|
#endif
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void Staging__v2_49_0__BACKLOG__ConvertExcelToJson()
|
public void Development__v2_49_0__BACKLOG__ConvertExcelToJson()
|
||||||
{
|
{
|
||||||
string check = "*.xlsx";
|
string check = "*.xlsx";
|
||||||
MethodBase methodBase = new StackFrame().GetMethod();
|
MethodBase methodBase = new StackFrame().GetMethod();
|
@ -6,7 +6,7 @@ using System.Diagnostics;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_49_0;
|
namespace Adaptation._Tests.CreateSelfDescription.Development.v2_49_0;
|
||||||
|
|
||||||
[TestClass]
|
[TestClass]
|
||||||
public class MESAFIBACKLOG : EAFLoggingUnitTesting
|
public class MESAFIBACKLOG : EAFLoggingUnitTesting
|
||||||
@ -18,7 +18,7 @@ public class MESAFIBACKLOG : EAFLoggingUnitTesting
|
|||||||
internal static string DummyRoot { get; private set; }
|
internal static string DummyRoot { get; private set; }
|
||||||
internal static MESAFIBACKLOG EAFLoggingUnitTesting { get; private set; }
|
internal static MESAFIBACKLOG EAFLoggingUnitTesting { get; private set; }
|
||||||
|
|
||||||
static MESAFIBACKLOG() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy";
|
static MESAFIBACKLOG() => DummyRoot = @"\\messdv002.na.infineon.com\Candela\EC_Characterization_Si\Dummy";
|
||||||
|
|
||||||
public MESAFIBACKLOG() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
|
public MESAFIBACKLOG() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
|
||||||
{
|
{
|
||||||
@ -51,7 +51,7 @@ public class MESAFIBACKLOG : EAFLoggingUnitTesting
|
|||||||
[Ignore]
|
[Ignore]
|
||||||
#endif
|
#endif
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void Staging__v2_49_0__MESAFIBACKLOG__json()
|
public void Development__v2_49_0__MESAFIBACKLOG__json()
|
||||||
{
|
{
|
||||||
string check = "*.json";
|
string check = "*.json";
|
||||||
MethodBase methodBase = new StackFrame().GetMethod();
|
MethodBase methodBase = new StackFrame().GetMethod();
|
@ -4,7 +4,7 @@ using System.Diagnostics;
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
namespace Adaptation._Tests.Extract.Staging.v2_49_0;
|
namespace Adaptation._Tests.Extract.Development.v2_49_0;
|
||||||
|
|
||||||
[TestClass]
|
[TestClass]
|
||||||
public class BACKLOG_EQPT
|
public class BACKLOG_EQPT
|
||||||
@ -13,13 +13,13 @@ public class BACKLOG_EQPT
|
|||||||
#pragma warning disable CA2254
|
#pragma warning disable CA2254
|
||||||
#pragma warning disable IDE0060
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
private static CreateSelfDescription.Staging.v2_49_0.BACKLOG_EQPT _BACKLOG_EQPT;
|
private static CreateSelfDescription.Development.v2_49_0.BACKLOG_EQPT _BACKLOG_EQPT;
|
||||||
|
|
||||||
[ClassInitialize]
|
[ClassInitialize]
|
||||||
public static void ClassInitialize(TestContext testContext)
|
public static void ClassInitialize(TestContext testContext)
|
||||||
{
|
{
|
||||||
CreateSelfDescription.Staging.v2_49_0.BACKLOG_EQPT.ClassInitialize(testContext);
|
CreateSelfDescription.Development.v2_49_0.BACKLOG_EQPT.ClassInitialize(testContext);
|
||||||
_BACKLOG_EQPT = CreateSelfDescription.Staging.v2_49_0.BACKLOG_EQPT.EAFLoggingUnitTesting;
|
_BACKLOG_EQPT = CreateSelfDescription.Development.v2_49_0.BACKLOG_EQPT.EAFLoggingUnitTesting;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void NonThrowTryCatch()
|
private static void NonThrowTryCatch()
|
||||||
@ -33,18 +33,18 @@ public class BACKLOG_EQPT
|
|||||||
[Ignore]
|
[Ignore]
|
||||||
#endif
|
#endif
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void Staging__v2_49_0__BACKLOG_EQPT__DownloadExcelFile() => _BACKLOG_EQPT.Staging__v2_49_0__BACKLOG_EQPT__DownloadExcelFile();
|
public void Development__v2_49_0__BACKLOG_EQPT__DownloadExcelFile() => _BACKLOG_EQPT.Development__v2_49_0__BACKLOG_EQPT__DownloadExcelFile();
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
[Ignore]
|
[Ignore]
|
||||||
#endif
|
#endif
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void Staging__v2_49_0__BACKLOG_EQPT__DownloadExcelFile637961178824025822__Normal()
|
public void Development__v2_49_0__BACKLOG_EQPT__DownloadExcelFile637961178824025822__Normal()
|
||||||
{
|
{
|
||||||
string check = ".xlsx";
|
string check = ".xlsx";
|
||||||
bool validatePDSF = false;
|
bool validatePDSF = false;
|
||||||
MethodBase methodBase = new StackFrame().GetMethod();
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
_BACKLOG_EQPT.Staging__v2_49_0__BACKLOG_EQPT__DownloadExcelFile();
|
_BACKLOG_EQPT.Development__v2_49_0__BACKLOG_EQPT__DownloadExcelFile();
|
||||||
_ = _BACKLOG_EQPT.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
|
_ = _BACKLOG_EQPT.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
|
||||||
for (int i = 0; i < int.MinValue; i++)
|
for (int i = 0; i < int.MinValue; i++)
|
||||||
Thread.Sleep(500);
|
Thread.Sleep(500);
|
@ -8,7 +8,7 @@ using System.IO;
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
|
|
||||||
namespace Adaptation._Tests.Extract.Staging.v2_49_0;
|
namespace Adaptation._Tests.Extract.Development.v2_49_0;
|
||||||
|
|
||||||
[TestClass]
|
[TestClass]
|
||||||
public class BACKLOG
|
public class BACKLOG
|
||||||
@ -17,13 +17,13 @@ public class BACKLOG
|
|||||||
#pragma warning disable CA2254
|
#pragma warning disable CA2254
|
||||||
#pragma warning disable IDE0060
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
private static CreateSelfDescription.Staging.v2_49_0.BACKLOG _BACKLOG;
|
private static CreateSelfDescription.Development.v2_49_0.BACKLOG _BACKLOG;
|
||||||
|
|
||||||
[ClassInitialize]
|
[ClassInitialize]
|
||||||
public static void ClassInitialize(TestContext testContext)
|
public static void ClassInitialize(TestContext testContext)
|
||||||
{
|
{
|
||||||
CreateSelfDescription.Staging.v2_49_0.BACKLOG.ClassInitialize(testContext);
|
CreateSelfDescription.Development.v2_49_0.BACKLOG.ClassInitialize(testContext);
|
||||||
_BACKLOG = CreateSelfDescription.Staging.v2_49_0.BACKLOG.EAFLoggingUnitTesting;
|
_BACKLOG = CreateSelfDescription.Development.v2_49_0.BACKLOG.EAFLoggingUnitTesting;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void NonThrowTryCatch()
|
private static void NonThrowTryCatch()
|
||||||
@ -37,18 +37,18 @@ public class BACKLOG
|
|||||||
[Ignore]
|
[Ignore]
|
||||||
#endif
|
#endif
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void Staging__v2_49_0__BACKLOG__ConvertExcelToJson() => _BACKLOG.Staging__v2_49_0__BACKLOG__ConvertExcelToJson();
|
public void Development__v2_49_0__BACKLOG__ConvertExcelToJson() => _BACKLOG.Development__v2_49_0__BACKLOG__ConvertExcelToJson();
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
[Ignore]
|
[Ignore]
|
||||||
#endif
|
#endif
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void Staging__v2_49_0__BACKLOG__ConvertExcelToJson637961178824025822__Normal()
|
public void Development__v2_49_0__BACKLOG__ConvertExcelToJson637961178824025822__Normal()
|
||||||
{
|
{
|
||||||
string check = "*.xlsx";
|
string check = "*.xlsx";
|
||||||
bool validatePDSF = false;
|
bool validatePDSF = false;
|
||||||
MethodBase methodBase = new StackFrame().GetMethod();
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
_BACKLOG.Staging__v2_49_0__BACKLOG__ConvertExcelToJson();
|
_BACKLOG.Development__v2_49_0__BACKLOG__ConvertExcelToJson();
|
||||||
Assert.IsFalse(string.IsNullOrEmpty(_BACKLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName));
|
Assert.IsFalse(string.IsNullOrEmpty(_BACKLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName));
|
||||||
string[] variables = _BACKLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
|
string[] variables = _BACKLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
|
||||||
IFileRead fileRead = _BACKLOG.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
IFileRead fileRead = _BACKLOG.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
@ -8,7 +8,7 @@ using System.IO;
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
|
|
||||||
namespace Adaptation._Tests.Extract.Staging.v2_49_0;
|
namespace Adaptation._Tests.Extract.Development.v2_49_0;
|
||||||
|
|
||||||
[TestClass]
|
[TestClass]
|
||||||
public class MESAFIBACKLOG
|
public class MESAFIBACKLOG
|
||||||
@ -17,13 +17,13 @@ public class MESAFIBACKLOG
|
|||||||
#pragma warning disable CA2254
|
#pragma warning disable CA2254
|
||||||
#pragma warning disable IDE0060
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
private static CreateSelfDescription.Staging.v2_49_0.MESAFIBACKLOG _MESAFIBACKLOG;
|
private static CreateSelfDescription.Development.v2_49_0.MESAFIBACKLOG _MESAFIBACKLOG;
|
||||||
|
|
||||||
[ClassInitialize]
|
[ClassInitialize]
|
||||||
public static void ClassInitialize(TestContext testContext)
|
public static void ClassInitialize(TestContext testContext)
|
||||||
{
|
{
|
||||||
CreateSelfDescription.Staging.v2_49_0.MESAFIBACKLOG.ClassInitialize(testContext);
|
CreateSelfDescription.Development.v2_49_0.MESAFIBACKLOG.ClassInitialize(testContext);
|
||||||
_MESAFIBACKLOG = CreateSelfDescription.Staging.v2_49_0.MESAFIBACKLOG.EAFLoggingUnitTesting;
|
_MESAFIBACKLOG = CreateSelfDescription.Development.v2_49_0.MESAFIBACKLOG.EAFLoggingUnitTesting;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void NonThrowTryCatch()
|
private static void NonThrowTryCatch()
|
||||||
@ -37,17 +37,17 @@ public class MESAFIBACKLOG
|
|||||||
[Ignore]
|
[Ignore]
|
||||||
#endif
|
#endif
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void Staging__v2_49_0__MESAFIBACKLOG__json() => _MESAFIBACKLOG.Staging__v2_49_0__MESAFIBACKLOG__json();
|
public void Development__v2_49_0__MESAFIBACKLOG__json() => _MESAFIBACKLOG.Development__v2_49_0__MESAFIBACKLOG__json();
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
[Ignore]
|
[Ignore]
|
||||||
#endif
|
#endif
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void Staging__v2_49_0__MESAFIBACKLOG__json637961251829737445__Normal()
|
public void Development__v2_49_0__MESAFIBACKLOG__json637961251829737445__Normal()
|
||||||
{
|
{
|
||||||
string check = "*.json";
|
string check = "*.json";
|
||||||
bool validatePDSF = false;
|
bool validatePDSF = false;
|
||||||
_MESAFIBACKLOG.Staging__v2_49_0__MESAFIBACKLOG__json();
|
_MESAFIBACKLOG.Development__v2_49_0__MESAFIBACKLOG__json();
|
||||||
MethodBase methodBase = new StackFrame().GetMethod();
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
Assert.IsFalse(string.IsNullOrEmpty(_MESAFIBACKLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName));
|
Assert.IsFalse(string.IsNullOrEmpty(_MESAFIBACKLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName));
|
||||||
string[] variables = _MESAFIBACKLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
|
string[] variables = _MESAFIBACKLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
|
@ -52,6 +52,32 @@ public class BACKLOG : LoggingUnitTesting, IDisposable
|
|||||||
Assert.IsTrue(dateTime.ToString("M/d/yyyy h:mm:ss tt") == dateTime.ToString());
|
Assert.IsTrue(dateTime.ToString("M/d/yyyy h:mm:ss tt") == dateTime.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Development()
|
||||||
|
{
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
StringBuilder results = new();
|
||||||
|
(string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[]
|
||||||
|
{
|
||||||
|
new("BACKLOG", "v2.49.0"),
|
||||||
|
new("BACKLOG-EQPT", "v2.49.0"),
|
||||||
|
};
|
||||||
|
string development = "http://eaf-dev.mes.infineon.com:9003/CellInstanceServiceV2";
|
||||||
|
Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion;
|
||||||
|
LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||||
|
foreach ((string cellInstanceName, string cellInstanceVersionName) in collection)
|
||||||
|
{
|
||||||
|
cellInstanceVersion = AdaptationTesting.GetCellInstanceVersion($"{development}/{cellInstanceName}/{cellInstanceVersionName}/configuration");
|
||||||
|
_ = results.AppendLine($"{cellInstanceName}\t{cellInstanceVersionName}\t{cellInstanceVersion.EdaConnection.PortNumber}");
|
||||||
|
}
|
||||||
|
File.WriteAllText($"D:/Tmp/{methodBase.Module.Name}-{methodBase.ReflectedType.Name}-{methodBase.Name}.tsv", results.ToString());
|
||||||
|
LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||||
|
NonThrowTryCatch();
|
||||||
|
}
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
[Ignore]
|
[Ignore]
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user