using OpenTap;
|
using System.ComponentModel;
|
using System.IO;
|
|
namespace OpenTapEditor
|
{
|
public class UIListener : IResultListener
|
{
|
private string name;
|
public string Name { get => name; set => name = value; }
|
|
private bool isConnected = true;
|
public bool IsConnected => isConnected;
|
|
public event PropertyChangedEventHandler? PropertyChanged;
|
|
private MainWindow mainWindow;
|
|
public UIListener(MainWindow mainWindow)
|
{
|
this.mainWindow = mainWindow;
|
}
|
|
public void Close()
|
{
|
//mainWindow.IsRunning = false;
|
}
|
|
public void OnResultPublished(Guid stepRunID, ResultTable result)
|
{
|
|
}
|
|
public void OnTestPlanRunCompleted(TestPlanRun planRun, Stream logStream)
|
{
|
|
}
|
|
public void OnTestPlanRunStart(TestPlanRun planRun)
|
{
|
}
|
|
public void OnTestStepRunCompleted(TestStepRun stepRun)
|
{
|
|
}
|
|
public void OnTestStepRunStart(TestStepRun stepRun)
|
{
|
//mainWindow.treeView.CurrentId = stepRun.TestStepId;
|
}
|
|
public void Open()
|
{
|
//mainWindow.IsRunning = true;
|
}
|
}
|
}
|