Commit graph

339 commits

Author SHA1 Message Date
Lars Brubaker
98594899df Merge branch 'master' into master 2016-12-03 12:09:50 -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
Greg
9763016567 Removed failing experimental "stress" test 2016-12-02 16:34:44 -08:00
Lars Brubaker
23061f51cb Make AddAndSelectPrinter more stable 2016-12-02 15:44:12 -08:00
Greg
f0980c5031 Moved test from MatterControlAutomationTests to CloudServicesTests so that it works 2016-12-02 12:41:13 -08:00
Greg
8003114063 Fix ExportItemsFromDownloads.ExportAsGcode
MatterHackers/MCCentral#878
2016-12-02 11:38:13 -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
d4196b7b64 Fix failing QueueThumbnailWidgetOpensPartPreview test 2016-12-01 15:02:49 -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
47c2d418b0 Revise failing RemoveAllMenuItemClickedRemovesAll test
- Use AreEqual for troubleshooting
2016-11-05 12:00:18 -07:00
John Lewin
8997aa3d21 Revise failing RenameButtonRenamesLocalLibraryFolder test 2016-11-05 11:48:08 -07: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
0dfc3b2067 Revise failing test - DoneButtonTurnsOffEditMode 2016-11-04 07:17:59 -07:00
John Lewin
e6162a209e Revise failing test - RemoveButtonRemovesSingleItem
- Latest Agg
2016-11-03 17:01:27 -07:00
John Lewin
b0401478af Restore disabled automation tests 2016-11-03 09:53:22 -07:00
John Lewin
4a48e2d2b3 Disable broken automation test, fix typo 2016-11-03 09:13:18 -07:00
John Lewin
362b269dff Use single string for control names 2016-11-03 08:46:08 -07:00
John Lewin
f25252e03c Use new Agg dialogs in test projects 2016-11-03 08:36:19 -07:00
John Lewin
e739926617 Revise CopyButtonMakesACopyOfPartInTheQueue
- Add Assert messages for troubleshooting
- Wait for expected conditions
2016-11-02 11:32:40 -07:00
John Lewin
5862ecef36 Revise SendMenuItemClickedNoSignIn
- Rename test to reflect actual behavior
- Add Assert messages for troubleshooting
- Add fixed wait times for menu clicks
2016-11-02 10:57:58 -07:00
John Lewin
c1d0e37b71 Revise ExportToZipMenuItemClicked
- Rename test
- Use Assert.AreEqual for clarity
- Add Assert messages for troubleshooting
- Wait for expected condition rather than fixed duration
- Use correct comments format
- Attempt file cleanup inside of a try/catch and ignore failures
2016-11-02 07:48:39 -07:00
John Lewin
ffd95dd2f3 Revise CopyButtonMakesCopyOfPart
- Move variable declaration to block start
- Use .Count instead of .Count()
- Revert accidental wait for 13 seconds to 3 seconds
- Fix compile issue
- Fix typo
2016-11-02 07:02:19 -07:00
John Lewin
a5681174f5 Revise UndoRedoDelete
- Rename test
- Wait to enter edit mode
- Use Assert.AreEqual for clarity
- Add Assert message for troubleshooting
- Wait for expected condition rather than fixed duration
- Use correct comments format
- Use .Count instead of .Count()
2016-11-02 06:52:58 -07:00
John Lewin
6a7b7688f9 Revise CopyButtonMakesCopyOfPart
- Rename test
- Wait to enter edit mode
- Fix ordering of expected/actual on Assert.AreEqual
- Wait for expected condition rather than fixed duration
- Use correct comments format
- Use .Count instead of .Count()
2016-11-02 06:26:35 -07:00
John Lewin
ff3ee5dd78 Revise RemoveButtonClickedRemovesMultipleItems
- Add Assert messages
  - Migrate varname details to message arg to assist in troubleshooting
- Eliminate superfluous variables
- Use correct comments format
2016-11-01 23:27:08 -07:00
John Lewin
16f569320e Revise LibraryItemThumbnailClickedOpensPartPreview
- Add Assert messages
  - Migrate comment details to message arg to assist in troubleshooting
- Eliminate superfluous variables
- Use correct comments format
2016-11-01 22:52:25 -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
a9aef3d096 Add missing changes to PartPreviewTests.cs 2016-10-26 06:58:20 -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
John Lewin
97507cddf6 Remove per test classes, place RunInAppDomain attribute on TestFixture 2016-10-20 16:31:37 -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
de2535715d Fix compile error 2016-10-19 11:18:31 -07:00
John Lewin
e216457ef5 Remove excess blocks 2016-10-19 11:10:30 -07:00