Commit graph

88 commits

Author SHA1 Message Date
John Lewin
081569987e Revise timings, extend wait before aborting ClickByName
- Failure in ClearingCheckBoxClearsUserOverride due to slow env
- Advanced Menu Item not found
- Wait a few cycles for SettingsAndControls
- Default to new five second wait in ClickByName
2016-12-20 17:46:21 -08:00
John Lewin
56f1ab247e Revise failing queue tests on slow VMs
- Use Assert.AreEqual
- Add failure messages
- Extend ClickByName and WaitForName durations
- Restore 500ms waits in NavigateToFolder
2016-12-20 13:58:36 -08:00
John Lewin
caa2d6ae4f Support configuration based TimeToMoveMouse 2016-12-13 10:26:49 -08:00
John Lewin
b49b4b8c7e Reduce hard-coded test wait times, use initial dialog to add printers 2016-12-12 17:33:02 -08:00
John Lewin
d72503a9c4 Rename Com port to Serial port 2016-12-12 14:18:17 -08:00
Lars Brubaker
3b526cdc98 Fixed merge error in test
Make sure we don't ref a null mesh on rebuild bed
2016-12-07 17:04:35 -08:00
Lars Brubaker
dbd2c20398 Merge branch '1.6'
# Conflicts:
#	SlicerConfiguration/Settings/ProfileManager.cs
#	Tests/MatterControl.AutomationTests/PrintQueueTests.cs
#	Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs
2016-12-07 16:14:56 -08:00
Lars Brubaker
ea8f3a70a0 enable hardware as long as we are on internal machines. 2016-12-07 15:24:48 -08:00
John Lewin
153686968f Add PrintLibraryItem test, suppress Process.Kill exceptions 2016-12-07 13:21:53 -08:00
John Lewin
37a9941c70 Add 10 second timeout to WaitForReloadAll helper function 2016-12-06 18:52:25 -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
0cabc4af74 Modify ClickByName automation helper to throw if not found 2016-12-01 13:25:17 -08:00
John Lewin
d4ce45b449 Revise failing tests
- Wait for ReloadAll after calling AddAndSelectPrinter
- Revise ClickQueueRowItemViewAndRemove test
  - Use specialized asserts
  - Assert expected start/end counts
  - Add descriptive failure messages
- Eliminate excess wait times in RemoveAllMenuItemClickedRemovesAll due
  to WaitForName calls. Perform one wait, then assert expected
2016-11-15 15:15:02 -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
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
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
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
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
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
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
c3e57dcc3c Made a setup leveling test work 2016-09-26 15:59:29 -07:00
John Lewin
b4f75311bb Fix PrinterNameStaysChanged test
- Document AddTestResult calls with descriptions
2016-09-23 19:02:22 -07:00
John Lewin
9057eabc4d Fix RemoveAllMenuItemClickedRemovesAll test 2016-09-23 14:18:27 -07:00
Lars Brubaker
17af0bd27f Getting old tests to pass 2016-09-23 13:35:21 -07:00
John Lewin
d4fb4561c4 Add PrinterEmulator flag to run at slower speeds 2016-09-23 10:53:11 -07:00
Lars Brubaker
c3d96b6601 Working on Queue done button working test (+2 squashed commit)
Test that MatterControl vanilla actually stars up
Finished the resume print test
Set backup to 0
Created a SwitchToAdvancedSettings function
2016-09-22 12:35:34 -07:00
John Lewin
68ca5e3ad9 Convert additional automation tests to NUnit3 compat
- Improve logging readability
2016-09-22 08:52:15 -07:00
John Lewin
0ac3ac311d Switch to RequiresSTA replacement attribute
- Add SetCompatibleWorkingDirectory to consistently change working directory
2016-09-21 15:34:53 -07:00
John Lewin
ee52f24835 Upgrade to NUnit3
- Revise hard-coded paths for compatibility with new VS adapter
- Add utility functions for path generation
- Extract SHA1 computation from Save function
- Add ToJson helper function
- Don't save SHA1 in computed document
- Remove Asserts from CloseMatterControl, extend wait period
- Add TestAutomationConfig type replacing serialized Dictionary
2016-09-21 14:13:39 -07:00
Lars Brubaker
cb3d518d35 Made the emulator parse commands better (temps)
Made LaunchAndConnectToPrinterEmulator
Working on pause on layer test
Updated version to 1.6
2016-09-19 14:47:00 -07:00
Lars Brubaker
d41831d23e Created new sign out function of automation tests 2016-09-19 09:38:20 -07:00
John Lewin
71376ff71d Startup com0com window in a minimized state
- Ensures that console window does not catch automation input
2016-09-15 18:24:59 -07:00
Greg
f5931fd8be Added utility function for starting printer emulator
Working on start print from sync test
2016-09-15 13:40:11 -07:00
Greg
2ceda33d62 Fixed Downloads provider automated tests
MatterHackers/MCCentral#286
Pre-pended "-" to Temporary folder created in Download provider tests. Temporary folder
now shows up as the first Downloads item in list.
2016-09-13 12:58:07 -07:00