Implement recorder PoC (#6)
This commit is contained in:
32
src/Recordingtest.Recorder/Scenario.cs
Normal file
32
src/Recordingtest.Recorder/Scenario.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Recordingtest.Recorder;
|
||||
|
||||
public sealed class Scenario
|
||||
{
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public ScenarioSut Sut { get; set; } = new();
|
||||
public List<ScenarioStep> Steps { get; set; } = new();
|
||||
}
|
||||
|
||||
public sealed class ScenarioSut
|
||||
{
|
||||
public string Exe { get; set; } = "EG-BIM Modeler/EG-BIM Modeler.exe";
|
||||
public int StartupTimeoutMs { get; set; } = 15000;
|
||||
}
|
||||
|
||||
public sealed class ScenarioStep
|
||||
{
|
||||
/// <summary>click | type | drag | hotkey | wait</summary>
|
||||
public string Kind { get; set; } = "click";
|
||||
public ScenarioTarget? Target { get; set; }
|
||||
public string? Value { get; set; }
|
||||
public string? WaitFor { get; set; }
|
||||
}
|
||||
|
||||
public sealed class ScenarioTarget
|
||||
{
|
||||
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