Made a setup leveling test work
This commit is contained in:
parent
45f2a0c576
commit
c3e57dcc3c
8 changed files with 95 additions and 40 deletions
|
|
@ -136,13 +136,13 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
}
|
||||
}
|
||||
|
||||
public static Process LaunchAndConnectToPrinterEmulator(AutomationRunner testRunner, bool runSlow = false)
|
||||
public static Process LaunchAndConnectToPrinterEmulator(AutomationRunner testRunner, bool runSlow = false, string make = "Airwolf 3D", string model = "HD")
|
||||
{
|
||||
// Load the TestEnv config
|
||||
var config = TestAutomationConfig.Load();
|
||||
|
||||
// Create the printer
|
||||
MatterControlUtilities.AddAndSelectPrinter(testRunner, "Airwolf 3D", "HD");
|
||||
MatterControlUtilities.AddAndSelectPrinter(testRunner, make, model);
|
||||
|
||||
var process = new Process();
|
||||
process.StartInfo = new ProcessStartInfo()
|
||||
|
|
@ -239,6 +239,9 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
|
||||
testRunner.ClickByName("Select Make", 2);
|
||||
|
||||
testRunner.Wait(.2);
|
||||
testRunner.Type(make);
|
||||
|
||||
testRunner.ClickByName(manufacturer, 2);
|
||||
|
||||
testRunner.ClickByName("Select Model", 2);
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ namespace MatterControl.Tests.MatterControl
|
|||
[TestFixture]
|
||||
public class PrinterConfigurationTests
|
||||
{
|
||||
|
||||
[Test, Category("PrinterConfigurationFiles"), Ignore("Not Finished")]
|
||||
public void PrinterConfigTests()
|
||||
{
|
||||
|
|
@ -208,7 +207,6 @@ namespace MatterControl.Tests.MatterControl
|
|||
return convertedLayerHeight <= convertedNozzleDiameterValue;
|
||||
}
|
||||
|
||||
|
||||
public bool bedSizeXYSeparatedByComma(Dictionary<string, string> currentFile)
|
||||
{
|
||||
string settingValue = currentFile[SettingsKey.bed_size];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue