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)
|
{
|
|
}
|
}
|
}
|