Creating a default test images path.

This commit is contained in:
Lars Brubaker 2015-08-26 11:23:21 -07:00
parent a4f916e35c
commit 5a68851fd9
2 changed files with 10 additions and 2 deletions

View file

@ -49,7 +49,7 @@ namespace MatterHackers.MatterControl.UI
// Run a copy of MatterControl
Action<AutomationTesterHarness> testToRun = (AutomationTesterHarness resultsHarness) =>
{
AutomationRunner testRunner = new AutomationRunner();
AutomationRunner testRunner = new AutomationRunner(MatterControlUITests.DefaultTestImages);
// Now do the actions specific to this test. (replace this for new tests)
{

View file

@ -54,6 +54,14 @@ namespace MatterHackers.MatterControl.UI
Assert.IsTrue(testRunner.ClickByName(" Remove All Menu Item", secondsToWait: 2));
}
public static string DefaultTestImages
{
get
{
return Path.Combine("..", "..", "..", "TestData", "TestImages");
}
}
public static void CloseMatterControl(AutomationRunner testRunner)
{
SystemWindow mcWindowLocal = MatterControlApplication.Instance;
@ -72,7 +80,7 @@ namespace MatterHackers.MatterControl.UI
// Run a copy of MatterControl
Action<AutomationTesterHarness> testToRun = (AutomationTesterHarness resultsHarness) =>
{
AutomationRunner testRunner = new AutomationRunner();
AutomationRunner testRunner = new AutomationRunner(MatterControlUITests.DefaultTestImages);
// Now do the actions specific to this test. (replace this for new tests)
{