iPerlCommunication : Activity 'Q2 corrected from <test> plus' supported, ver. 2.32.2025

This commit is contained in:
Milan Hanajik
2023-03-08 10:01:18 +01:00
parent 94e83ad63a
commit 1a7a5661c4
2 changed files with 6 additions and 29 deletions
@@ -24,14 +24,6 @@ namespace TBF.Rig.TestMethods.iPerlCommunication
public const string IperlCheckCmd = "iPERL_check ";
public static Dictionary<string, iPerlCommunicationParams> testParamsDict;
///
static iPerlCommunicationSeq()
{
testParamsDict = new Dictionary<string, iPerlCommunicationParams>();
}
System.Windows.Forms.Form modelessDlg;
///
delegate void iPerlCommFormDlgt(iPerlCommunicationSeq myRef, TestMethod method, Test test, iPerlCommunicationParams testParams);
@@ -64,15 +56,6 @@ namespace TBF.Rig.TestMethods.iPerlCommunication
{
TestMethodCfg cfg = method.Cfg as TestMethodCfg;
if (testParamsDict.ContainsKey(test.Name))
{
testParamsDict[test.Name] = testParams;
}
else
{
testParamsDict.Add(test.Name, testParams);
}
IList<Event> e; /// Events from currently running operations
checkUiOp = new Operations.CheckUIOp(true); /// Runs in more then one state
modelessDlg = null;
@@ -140,16 +123,10 @@ namespace TBF.Rig.TestMethods.iPerlCommunication
Bridge.OnTestProgress(this, new TestProgressEventArgs(test, Progress.JustStarted));
Bridge.OnTestProgress(this, new TestProgressEventArgs(test, Progress.FlowSetting));
string fromTestName = testParams.Activity.Substring(cmd.Length);
iPerlCommunicationParams fromTestParams;
if (testParamsDict.TryGetValue(fromTestName, out fromTestParams) && fromTestParams.Activity.ToLower().Contains("plus"))
{
MakeQ2CorrectedFrom(test.Name, fromTestName, true);
}
else
{
MakeQ2CorrectedFrom(test.Name, fromTestName);
}
string[] args = testParams.Activity.Substring(cmd.Length).Split(new char[] { ' ' });
string fromTestName = (args.Length >= 1) ? args[0] : string.Empty;
bool isPlus = (args.Length >= 2) ? args[1].ToLower().Contains("plus") : false;
MakeQ2CorrectedFrom(test.Name, fromTestName, isPlus);
Bridge.OnTestProgress(this, new TestProgressEventArgs(test, Progress.Completed));
Bridge.OnTestCompleted(this, new TestCompletedEventArgs(test.Name, ProcessData.BatchRslts.GetTestRslt(test.Name, 0)));