Implement player PoC (#7)
This commit is contained in:
28
src/Recordingtest.Player/Model/Scenario.cs
Normal file
28
src/Recordingtest.Player/Model/Scenario.cs
Normal 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;
|
||||
}
|
||||
28
src/Recordingtest.Player/Model/Step.cs
Normal file
28
src/Recordingtest.Player/Model/Step.cs
Normal 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 };
|
||||
}
|
||||
Reference in New Issue
Block a user