Commit graph

56 commits

Author SHA1 Message Date
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
Lars Brubaker
be1c5eaddf Made delete printer a function inside of MatterControl utilities
Re-factoring
2016-09-08 14:20:39 -07:00
Lars Brubaker
014ea6e75c Got the remaining automation tests running 2016-09-06 16:36:25 -07:00
Lars Brubaker
2dadb72271 Changed Login -> Sign in & Logout -> Sign Out 2016-08-29 17:13:45 -07:00
John Lewin
e9b99eb71d Revise method name 2016-08-16 11:48:59 -07:00
Lars Brubaker
ccdb90cb7f A few more tests passing. 2016-08-02 09:47:26 -07:00
Lars Brubaker
dc22e6b788 Getting more tests to pass
Down to 7 failing tests.
2016-08-01 17:21:31 -07:00
Lars Brubaker
472b26ac34 Added a edit selected utility function. 2016-08-01 14:22:16 -07:00
Lars Brubaker
1340e875d3 Making the add to queue automation tests work again 2016-08-01 13:53:28 -07:00
Lars Brubaker
d8138ac51e Making a function to prep MatterControl prior to runing tests.
Made automation tests call it.
2016-07-29 16:44:00 -07:00
John Lewin
c255e46032 Move automation tests to "MatterControl.UI.Automation" category
- Change namespaces to MatterHackers.MatterControl.Tests.Automation
 - Cleanup using statements
2016-05-11 09:16:03 -07:00
John Lewin
d684630a50 Add console debugging to investigate test failures 2016-05-09 16:25:32 -07:00
Lars Brubaker
9dbe8ebcac Put in Add New Printer menu 2016-04-29 13:55:29 -07:00
Greg
1e4c1cda53 Added automated test to ensure that setting values are being passed to MatterSlice with the correct values. Also added a stress test in slice settings. 2016-03-03 16:57:43 -08:00
Gregory Diaz
2d42ec52e1 Added unittest for ensuring that when has_hardware_leveling = 1 we dont show the Print Leveling tab in Slice Settings and also that when has_hardware_leveling = 0 we do show Print Leveling 2016-02-01 17:20:18 -08:00
Gregory Diaz
ebd10c395f Added more FileSystemProvider tests and refactored old code so that it is more readable 2016-01-13 17:02:41 -08:00
Gregory Diaz
c866d06b83 Added method to select and add printer for automated slicing tests 2016-01-13 10:26:17 -08:00
Gregory Diaz
5a1cd1b974 Added Automated unit tests for Exporting GCode from the Downloads folder and for adding zip files to the Downloads Folder I flagged it to be Ignored currently but they are nearly done 2015-12-31 12:57:00 -08:00
Gregory Diaz
da851a7f6a Added test tools for running Library Downloads unit tests and added two unit tests 2015-12-29 18:26:00 -08:00
John Lewin
9a5d872486 Automation updates
- Revise skirt_distance label per support team
 - Remove CreateInstance(showWindow) out variable
 - Remove embedded tools requiring showWindow out variable
 - Remove queueItemFolderToAdd variable/parameter
 - Change AfterFirstDraw event to null conditional invoke
 - Removed unused AutomationTest from MatterControlApplication
 - Refactor for style consistency and document new methods
 - Change queueItemFolderToAdd type to custom enum to ensure optional parameters are not mixed up
 - Ensure TestExportZip file is deleted before attempting export
2015-12-22 13:06:47 -08:00
Gregory Diaz
6748612a70 Added code so that we can set a special ApplicationDataStorage.Instance.ApplicationUserData for testing. Also removed code that renamed original MatterControl folder name in AppData. 2015-12-21 15:58:53 -08:00
John Lewin
879a2856d3 Extract automation tests to a separate assembly to ensure isolation/clean startup
- Fall back to English if translation data is missing, rather than crashing
 - Dump test name to console when running test harness to troubleshoot hangs
2015-12-13 17:29:01 -08:00
Gregory Diaz
ce835942d3 Merge branch 'master' of https://github.com/MatterHackers/MatterControl 2015-11-19 15:50:39 -08:00
Gregory Diaz
4b3356036c Fixed path for queue item tests so that we use a relative path from the Debug folder so that the path works when anyone runs the tests. 2015-11-03 10:52:12 -08:00
Gregory Diaz
913ead4cea Print Queue Automation Work In Progress 2015-10-29 12:02:56 -07:00
Gregory Diaz
9282675f87 Automated most manual queue tests 2015-10-29 12:02:55 -07:00
Gregory Diaz
4fc652dd06 Added String for type method to add queue items 2015-10-29 12:02:55 -07:00
Gregory Diaz
47fc5e17fc New Queue Test Implementation 2015-10-29 12:02:54 -07:00
Lars Brubaker
79928f8fb7 Made the Debugger.Break() only exist in debug mode. 2015-09-17 13:45:26 -07:00
Lars Brubaker
fa97829073 Put in lots of code to break on exceptions in the debugger.
Made the cloud provider able to report that it is loading
2015-09-11 10:48:24 -07:00
Lars Brubaker
563a5a3b2d Improving the intuition around library navigation 2015-09-08 18:01:09 -07:00
Gregory Diaz
28d76d981e Print Queue tests 2015-09-04 14:56:15 -07:00
Lars Brubaker
1b5c1e6a3e Total Seconds is what we really wanted.
Making the tests have more common code for less errors.
2015-09-04 11:28:01 -07:00