alielie
2026-09-10 9ec80cafc23f5ee3278cacce3c9f86f4087b435a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
using System;
using System.IO;
using System.Xml.Serialization;
 
namespace OpenTap.Addin.Listener
{
    public class PostUIMsg
    {
        public int EventCode;
        public string StringData;
        public bool BoolData;
        public double NumberData;
    }
 
    public class PostUIMessageHandler : RootListener
    {
 
        public event EventHandler<PostUIMsg> OnPostUIMsg;
 
 
        private static PostUIMessageHandler Instance;
        public static PostUIMessageHandler Get()
        {
            if (Instance == null)
            {
                Instance = new PostUIMessageHandler();
            }
            return Instance;
        }
 
        private PostUIMessageHandler()
        {
            Name = "PostUIMessage";
        }
 
        public override IResultListener CreateChild()
        {
            return this;
        }
 
        public void OnPostUIMsgGet(PostUIMsg msg)
        {
            OnPostUIMsg?.Invoke(null, msg);
        }
 
        public override void OnTestPlanRunStart(TestPlanRun planRun)
        {
        }
 
        public override void OnResultPublished(Guid stepRunID, ResultTable result)
        {
 
        }
 
        public override void OnTestPlanRunCompleted(TestPlanRun planRun, Stream logStream)
        {
 
        }
 
        public override void OnTestStepRunCompleted(TestStepRun stepRun)
        {
 
        }
 
        public override void OnTestStepRunStart(TestStepRun stepRun)
        {
 
        }
    }
}