Implement player PoC (#7)

This commit is contained in:
minsung
2026-04-07 14:28:11 +09:00
parent d486cbb4d9
commit f17e764678
12 changed files with 727 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
namespace Recordingtest.Player.Model;
public sealed class Scenario
{
public string Name { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public SutInfo Sut { get; set; } = new();
public List<Step> Steps { get; set; } = new();
public List<Checkpoint> Checkpoints { get; set; } = new();
public List<Baseline> Baselines { get; set; } = new();
}
public sealed class SutInfo
{
public string Exe { get; set; } = string.Empty;
public int StartupTimeoutMs { get; set; } = 15000;
}
public sealed class Checkpoint
{
public int AfterStep { get; set; }
public string SaveAs { get; set; } = string.Empty;
}
public sealed class Baseline
{
public string Path { get; set; } = string.Empty;
}

View File

@@ -0,0 +1,28 @@
namespace Recordingtest.Player.Model;
public enum StepKind
{
Click,
Type,
Drag,
Hotkey,
Wait,
Checkpoint,
Save,
}
public sealed class Step
{
public StepKind Kind { get; set; }
public Target? Target { get; set; }
public string? Value { get; set; }
public string? WaitFor { get; set; }
public int? AfterStep { get; set; }
public string? SaveAs { get; set; }
}
public sealed class Target
{
public string UiaPath { get; set; } = string.Empty;
public double[] Offset { get; set; } = new double[] { 0.5, 0.5 };
}