Changes between Version 2 and Version 3 of einotebookTestCases


Ignore:
Timestamp:
05/12/2019 06:56:54 AM (7 years ago)
Author:
jdalbey
Comment:

add test case 2

Legend:

Unmodified
Added
Removed
Modified
  • einotebookTestCases

    v2 v3  
    11= Electronic Instructor Notebook Test Cases = 
    2 == Test Configuration == 
     2== Test Case #1 == 
     3=== Configuration === 
    34These tests assume `dynamicdata\incident_script.xml` is the full incident script. 
    45 
    5 In a terminal window (from webapps directory) execute:  `python einotebook/spikes/runTimer.py`. 
     6In a terminal window (from webapps directory) execute:  `python einotebook/spikes/runTimer.py`. 
    67 
    7 == Application Startup == 
    8 In a terminal window with `webapps` as the current directory, start the web server with the command: `python -m CGIHTTPServer 8080` 
     8=== Application Startup === 
     9In a terminal window with `webapps` as the current directory, start the web server with the (Python 2.7) command: `python -m CGIHTTPServer 8080` 
    910 
    1011Open a web browser to `localhost:8080/einotebook/` 
     
    1415The timer in the upper right hand corner should be advancing according to the runTimer.py script. 
    1516 
    16 The Simulation Script tab shows ... 
     17The Simulation Script tab shows the list of events in the script with the current event highlighted in yellow. 
    1718 
    18 Clicking "Jump to Current Event" results in ... 
     19Wait until the timer elapses to 1:00.  Click "Jump to Current Event." The event closest to 1:00 is highlighted. 
    1920 
    20 The Current Event tab shows ... 
     21The Current Event tab shows just the current event. 
    2122 
    22 The Maps tab shows ... 
     23The Maps tab shows two radio buttons: "Incidents" and "ATMS". The "Incidents" button is selected and a google map is displayed. Zoom in the map to the marker until five markers appear in the Irvine region. 
     24 
     25== Test Case #2 == 
     26=== Configuration === 
     27Attached to this page is a test script file: `incident_script.xml`.  Save this file to the `dynamicdata` directory.  
     28 
     29Modify the contents of `dynamicdata\sim_elapsedtime.json` to read:  
     30{{{ 
     31{"elapsedtime":"39"} 
     32}}} 
     33 
     34 
     35=== Application Startup === 
     36In a terminal window with `webapps` as the current directory, start the web server with the (Python 2.7) command: `python -m CGIHTTPServer 8080` 
     37 
     38Open a web browser to `localhost:8080/einotebook/` 
     39 
     40The timer in the upper right hand corner reads 00:00:39. 
     41 
     42The Simulation Script tab shows the list of events in the script. The event at time 00:30 is highlighted. The events at time 00:00 and 00:05 are greyed out. 
     43 
     44Open the file `dynamicdata\sim_elapsedtime.json` in a text editor.  Change "39" to "46". Observe the einotebook window as you save the data file. Within one second of saving the file the time box displays 00:00:46 and the event at time 00:45 becomes highlighted while the event at time 00:30 is greyed out. 
     45 
     46Scroll to the top of the script events. Click "Jump to Current Event". The display advances to the event at time 00:45 and it is highlighted.  Slowly scroll upwards to view the previous events; they should all be greyed out.