| | 1 | |
| | 2 | Integration Testing of CADSimulator |
| | 3 | |
| | 4 | This is an individual lab. You may not discuss any aspect of it with other students. |
| | 5 | |
| | 6 | Goal: Write an automated integration test (using JUnit and UISpec4J) to verify that simulation status shows "Ready" in the GUI after a script has been loaded. |
| | 7 | |
| | 8 | The overall approach: |
| | 9 | |
| | 10 | Prepare config and script files as needed. |
| | 11 | |
| | 12 | Create an instance of CADSimulator, not the model or anything else. Don't call the main() method. |
| | 13 | |
| | 14 | With UISpec4J grab the value of the simulation status field and verify that it says "No Script". |
| | 15 | |
| | 16 | Using the CADSimulator instance, obtain a reference to the Coordinator and invoke a method to load a script file. |
| | 17 | |
| | 18 | With UISpec4J grab the value of the simulation status field and verify that it says "Ready". |
| | 19 | |
| | 20 | Submission: Submit your JUnit test class to PolyLearn. |