Commit graph

252 commits

Author SHA1 Message Date
John Lewin
f19ffd5efe Use correct Assert method 2016-12-05 16:10:54 -08:00
John Lewin
716972896f Assert UserLayer is empty in production .printer files 2016-12-05 15:57:35 -08:00
John Lewin
57cfe64a5c Fix StaticData/Profiles path 2016-12-05 15:37:07 -08:00
John Lewin
755c7ac2aa Rewrite PrinterConfigTests to use .printer/PrinterSettings files
- Migrate first_layer_speed to SettingsKey
- Use specialized Asserts to assist in troubleshooting
- Improve failure text to assist in troubleshooting
- Process all layers in .printer files
2016-12-05 15:18:43 -08:00
Lars Brubaker
2e93d43ccd Fixing up automation tests 2016-12-02 18:06:29 -08:00
Lars Brubaker
21b45ec761 Made it so that we can run tests in software mode. 2016-12-02 16:49:18 -08:00
Lars Brubaker
23061f51cb Make AddAndSelectPrinter more stable 2016-12-02 15:44:12 -08:00
Lars Brubaker
2d0aa84c7d Reverted new command line code
Set test to use orthographic thumbnails
2016-12-02 10:52:33 -08:00
Lars Brubaker
7662e45586 Make it possible to pass command line arguments in test.
Made a new argument to do thumbnails as orthographic
Significantly speeds up tests
2016-12-01 18:03:40 -08:00
John Lewin
4c7cb5deba Fix issue with MatterControlRuns test when no printers exist 2016-12-01 15:44:13 -08:00
John Lewin
0cabc4af74 Modify ClickByName automation helper to throw if not found 2016-12-01 13:25:17 -08:00
Lars Brubaker
7c2be58c6a Fixed extruder unit test 2016-11-30 13:44:56 -08:00
John Lewin
e7f36fcb59 Remove nunit from production code 2016-11-14 11:46:32 -08:00
Lars Brubaker
ff0c2738d8 Made importing a quality setting set the name correctly. 2016-11-07 12:41:05 -08:00
John Lewin
e923d8c211 Remove fixed wait time, wait for ReloadAll, fix typos 2016-11-05 11:30:52 -07:00
John Lewin
38b07d1799 Remove fixed wait values, wait for known conditions
- Add WaitForReload function
- Remove invalid WaitFor("Connection Wizard...") -2 seconds per call
- Remove fixed 2 second wait, waitfor known condition
2016-11-05 10:57:02 -07:00
John Lewin
6dc9d6ae2c Revise failing RaftEnabledPassedToSliceEngine test
- Add Wait calls after clicks
- After slicing, wait for expected result, up to 10 seconds
- Use utility functions for parsing .ini files
- Refactor AddAdSelectPrinter - remove unused variables, add Waits
2016-11-04 10:23:29 -07:00
John Lewin
b0401478af Restore disabled automation tests 2016-11-03 09:53:22 -07:00
John Lewin
56ef92ab91 Collapse PrepForTestRun(mode) into new CloseSignInAndPrinterSelect() 2016-10-26 09:03:46 -07:00
John Lewin
a592b86cd7 Remove five second per test delay when plugins are missing 2016-10-26 07:44:17 -07:00
John Lewin
b54b73db7f Ensure spawned emulator process is always killed via using/Dispose
- LaunchAndConnectToPrinterEmulator -> TestRunner extension method
2016-10-26 07:30:29 -07:00
John Lewin
13067e1602 Convert NavigateToFolder to a TestRunner extension method 2016-10-26 06:49:50 -07:00
John Lewin
0b3853ae11 Restore required RunInApplicationDomain attribute 2016-10-25 14:35:51 -07:00
John Lewin
c72c8d8fc6 Revise Agg automation
- Remove per test classes
- Migrate RunInApplicationDomain attributes to TextFixture
- Convert from Action<AutomationRunner> to AutomationTest delegate
- Convert testRunner.AddTestResult to Assert.IsTrue
- Remove testRunner.AllTestPassed(n) - use Asserts
- Add return Task.FromResult(0) for non-async test method bodies
- Upgrade NUnit.ApplicationDomain to v10
2016-10-25 07:38:48 -07:00
Lars Brubaker
47968f566f Going back to the old leveling method. 2016-10-19 16:03:08 -07:00
John Lewin
91dbcd590d Force AppVeyor rebuild 2016-10-19 14:17:09 -07:00
John Lewin
5cf774dd49 Support configuration based InputMethod selection 2016-10-19 13:27:27 -07:00
John Lewin
c1a445270e Realistic test timeout values 2016-10-19 12:26:47 -07:00
John Lewin
4d3f5d2521 Move CloseMatterControl responsiblity outside of TestMethod
- Behavior is now invoked in parent RunTest call
2016-10-19 12:06:31 -07:00
John Lewin
28699c9197 Remove defaultTestImages parameter
- Leave as null, fall back to default on null
2016-10-19 11:49:52 -07:00
John Lewin
e216457ef5 Remove excess blocks 2016-10-19 11:10:30 -07:00
John Lewin
75834e5664 Further refinements to MatterControlRuns test - v2 2016-10-19 10:53:58 -07:00
John Lewin
f1579307aa Further refinements to MatterControlRuns test 2016-10-19 10:43:02 -07:00
John Lewin
32e296e3bf Revise expected test count 2016-10-19 10:25:03 -07:00
John Lewin
8f8d0e5b30 Consolidate AutomationTesterHarness into AutomationRunner
- Remove AutomationRunner construction from test bodies
- Pass AutomationRunner into test method
2016-10-19 07:44:09 -07:00
John Lewin
da19a6dc81 Use keyboard to manufacturer selection during test
- Looks less broken
2016-10-17 11:15:28 -07:00
John Lewin
aa6f2a539f Explicitly set working directory for automation tests
- MatterSlice not found: IssueMatterHackers/MCCentral#612
2016-10-17 11:15:28 -07:00
Lars Brubaker
a3d4032704 Wrote tests for LineIsZHoming
Made sure we don't clear leveling data while viewing.
2016-10-14 13:15:09 -07:00
John Lewin
01c6ed72a4 Revise comment and fix typo 2016-10-11 18:00:04 -07:00
John Lewin
2d5f177d87 Remove MCCentral assembly references 2016-10-11 17:49:57 -07:00
John Lewin
96bc8301f6 Add assert error message 2016-10-11 17:42:03 -07:00
John Lewin
1834221db5 Prevent false positives when assemblies are missing
- Use the MatterControl output directory in all cases
- Only load assemblies for testing in Release builds
- Use conditional comp. for path resolution
2016-10-11 17:28:16 -07:00
Lars Brubaker
aa2fde82fb Import Settings now working
Moved merge into PrinterSettings
With test
2016-10-05 14:57:37 -07:00
John Lewin
f53f8f2a1b Convert disabled tests to FixNeeded category 2016-10-04 18:49:36 -07:00
John Lewin
ec9d6c35da Revise test output formatting
- Improve layout in NUnit console output
- Remove stacktrace workarounds for NUnit2
2016-09-30 17:54:41 -07:00
John Lewin
9d57b6435e Clean up failing LibraryDownload tests
- Move all tests into one class
- Only apply RunInApplicationDomain to test
- Add descriptions on AddTestResult calls to improve troubleshooting
2016-09-30 16:04:16 -07:00
Lars Brubaker
b522a47dbe Making android not connect to unspecified printer 2016-09-28 15:31:40 -07:00
Lars Brubaker
4bee2ea718 Made using 2016-09-28 12:56:34 -07:00
Lars Brubaker
c16cede87a Getting android to build 2016-09-28 10:24:11 -07:00
Lars Brubaker
c3e57dcc3c Made a setup leveling test work 2016-09-26 15:59:29 -07:00