Add support for DialogProvider override in mhtest.config

This commit is contained in:
John Lewin 2017-12-06 09:14:32 -08:00
parent 525f20d4cc
commit 36d48a9ee0
2 changed files with 8 additions and 2 deletions

@ -1 +1 @@
Subproject commit 8bab7b08734a241ba114484a11f5a53900e2041f
Subproject commit d3ea7b0aa8bfdb3f07663f5713d3adb8d082de3a

View file

@ -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;