Changes between Version 8 and Version 9 of CameraControllerspec


Ignore:
Timestamp:
04/25/2020 02:12:55 PM (6 years ago)
Author:
tanmay
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CameraControllerspec

    v8 v9  
    1010 1. The user selects which route (highway) is to be displayed.  The list of routes is 5 22 55 57 73 91 133 241 261 405 605. [[BR]] Once a route is selected, the camera drop down box filters the camera choices to just those on the selected route. 
    1111 1. The users selects a camera.  The chosen camera view appears in the selected display. 
    12  1. Our collection of images is incomplete; not every camera in the gson file has an image.  So if the user requests a camera for which we have no image, display the "video unavailable" jpg.  
     12 1. Our collection of images is incomplete; not every camera in the gson file has an image.  So if the user requests a camera for which we have no image, display the "video unavailable" jpg. 
    1313 
    1414Data Sources 
     
    1717 1. `cptms/images/CCTV` folder contains all camera images.  The route name is the second field of the filename.  The traffic speed is the last field in the filename.  E.g. `12-005-CCTV-0084-slow.jpg` is camera 84 on route 5 for slow traffic. 
    1818 1. `webapps/dynamicdata/highway_status.json` is updated every 30 seconds with traffic flow.  The camera display controller reads this file every 30 seconds.  For each camera currently being displayed it looks up the nearest VDS (using the "nearVDS" property). Then, based on the color property of that VDS (lime = freeflow, yellow = slow, red = stopped), it then chooses the corresponding image to display from the `cptms/images` folder. 
     19 
     20== Test Case 1 == #TestCase1 
     21 
     22=== Purpose === #Purpose 
     23This is a "smoke" test to verify the basic functionality of the application. 
     24 
     25 
     26=== Configuration === #Configuration 
     27These tests assume` cptms/data_layers/cctv_locations_D12.gson, ``cptms/images/CCTV `and 
     28 
     29`dynamicdata/highway_status.json `are the data sources. 
     30 
     31=== Application Startup === #ApplicationStartup 
     32In a terminal window with `webapps` as the current directory, start the web server with the (Python 2.7) command: `python -m CGIHTTPServer 8080` 
     33 
     34Open a web browser to `localhost:8080/einotebook/` 
     35 
     36Four boxes appear with two drop-downs in each box, named "Choose Route" and "Choose Camera".  
     37 
     38Selecting "Choose Route" reveals a drop-down with 5 22 55 57 73 91 133 241 261 405 605 as the options. Selecting "Choose Camera" however reveals no tesoptions.  
     39 
     40=== [http://dev.tmcacad.com:8888/wiki/einotebookTestCases#ApplicationStartup ¶] === #ApplicationStartup