Changeset 6 in tmcsimulator for trunk/test


Ignore:
Timestamp:
04/20/2016 02:29:52 PM (10 years ago)
Author:
jdalbey
Message:

Multifile commit. Add version # to Paramics Communicator. Move Load button in Sim Mgr. Add several tests. Add package jars target.

Location:
trunk/test
Files:
6 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/tmcsim/simulationmanager/SimulationManagerSmokeTest.java

    r2 r6  
    33import java.io.File; 
    44import static junit.framework.Assert.assertEquals; 
    5 import static junit.framework.Assert.assertFalse; 
    65import static junit.framework.Assert.fail; 
    76import org.uispec4j.*; 
     
    9897        assertEquals("Yes", mainPanel.getTextBox("managerConnectedTF").getText().trim()); 
    9998 
     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 
    100117        // Quit 
    101118        engine = null; 
Note: See TracChangeset for help on using the changeset viewer.