From 5d0ca165036053ea4e436253e1a47fcc8236bef6 Mon Sep 17 00:00:00 2001 From: John Lewin Date: Wed, 6 Dec 2017 15:19:23 -0800 Subject: [PATCH] Revise configuration for mhtest.config UseAutomationMouse --- .../MatterControl/MatterControlUtilities.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs b/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs index cb47c60b7..da7e8e7ba 100644 --- a/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs +++ b/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs @@ -527,7 +527,7 @@ namespace MatterHackers.MatterControl.Tests.Automation testMethod, maxTimeToRun, defaultTestImages, - config.AutomationInputType, + config.UseAutomationMouse ? AutomationRunner.InputType.SimulatedDrawMouse : AutomationRunner.InputType.Native, closeWindow: () => { if (ApplicationController.Instance.ActivePrinter.Connection.CommunicationState == CommunicationStates.Printing) @@ -698,16 +698,16 @@ namespace MatterHackers.MatterControl.Tests.Automation /// public string TestEnvClientToken { get; set; } - [JsonConverter(typeof(StringEnumConverter))] - public AutomationRunner.InputType AutomationInputType { get; set; } = AutomationRunner.InputType.Native; - /// /// The number of seconds to move the mouse when going to a new position. /// public double TimeToMoveMouse { get; set; } = .5; - public bool UseAutomationDialogs { get; set; } - public static TestAutomationConfig Load() + public bool UseAutomationDialogs { get; set; } + + public bool UseAutomationMouse { get; set; } + + public static TestAutomationConfig Load() { TestAutomationConfig config = null;