Merge pull request #1726 from jlewin/master

Support configuration based TimeToMoveMouse
This commit is contained in:
johnlewin 2016-12-13 10:34:04 -08:00 committed by GitHub
commit 6c4a2eeb7d
2 changed files with 9 additions and 1 deletions

@ -1 +1 @@
Subproject commit 90effc7966990704833da4c67c1ba2782207d1d7
Subproject commit f7f40283e8f103da10e14b49589b65877d18fa0c

View file

@ -404,6 +404,9 @@ namespace MatterHackers.MatterControl.Tests.Automation
var config = TestAutomationConfig.Load();
// Extract mouse speed from config
AutomationRunner.TimeToMoveMouse = config.TimeToMoveMouse;
await AutomationRunner.ShowWindowAndExecuteTests(matterControlWindow, testMethod, maxTimeToRun, defaultTestImages, config.AutomationInputType);
}
@ -500,6 +503,11 @@ namespace MatterHackers.MatterControl.Tests.Automation
[JsonConverter(typeof(StringEnumConverter))]
public AutomationRunner.InputType AutomationInputType { get; set; } = AutomationRunner.InputType.Native;
/// <summary>
/// The number of seconds to move the mouse when going to a new position.
/// </summary>
public double TimeToMoveMouse { get; set; } = .5;
public static TestAutomationConfig Load()
{
TestAutomationConfig config = null;