Add support for DialogProvider override in mhtest.config
This commit is contained in:
parent
525f20d4cc
commit
36d48a9ee0
2 changed files with 8 additions and 2 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit 8bab7b08734a241ba114484a11f5a53900e2041f
|
||||
Subproject commit d3ea7b0aa8bfdb3f07663f5713d3adb8d082de3a
|
||||
|
|
@ -514,6 +514,11 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
|
||||
var config = TestAutomationConfig.Load();
|
||||
|
||||
if (config.UseAutomationDialogs)
|
||||
{
|
||||
AggContext.Config.ProviderTypes.DialogProvider = "MatterHackers.Agg.Platform.AutomationDialogProvider, GuiAutomation";
|
||||
}
|
||||
|
||||
// Extract mouse speed from config
|
||||
AutomationRunner.TimeToMoveMouse = config.TimeToMoveMouse;
|
||||
|
||||
|
|
@ -700,8 +705,9 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
/// The number of seconds to move the mouse when going to a new position.
|
||||
/// </summary>
|
||||
public double TimeToMoveMouse { get; set; } = .5;
|
||||
public bool UseAutomationDialogs { get; set; }
|
||||
|
||||
public static TestAutomationConfig Load()
|
||||
public static TestAutomationConfig Load()
|
||||
{
|
||||
TestAutomationConfig config = null;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue