Changeset 6 in tmcsimulator for trunk/test/tmcsim/simulationmanager
- Timestamp:
- 04/20/2016 02:29:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/tmcsim/simulationmanager/SimulationManagerSmokeTest.java
r2 r6 3 3 import java.io.File; 4 4 import static junit.framework.Assert.assertEquals; 5 import static junit.framework.Assert.assertFalse;6 5 import static junit.framework.Assert.fail; 7 6 import org.uispec4j.*; … … 98 97 assertEquals("Yes", mainPanel.getTextBox("managerConnectedTF").getText().trim()); 99 98 99 // Load a script file 100 String autoloadScriptname = "scripts/practice_script_2016.xml"; 101 SimulationManagerModel simMgrModel = simMgrApp.theSimManagerModel; 102 simMgrModel.loadScript(new File(autoloadScriptname)); 103 // The status should now say Ready 104 assertEquals("Ready", txtSimStatus.getText()); 105 106 // Click "Start" 107 win.getButton("Start").click(); 108 try 109 { 110 Thread.sleep(200); 111 } catch (Exception ex) 112 { 113 ex.printStackTrace(); 114 } 115 assertEquals("Running", txtSimStatus.getText()); 116 100 117 // Quit 101 118 engine = null;
Note: See TracChangeset
for help on using the changeset viewer.
