| Version 2 (modified by jdalbey, 7 years ago) (diff) |
|---|
CPTMS Test Cases
Test Configuration
Save the attached test files into webapps folders:
highways_startup_test.json into data_layers
highway_status_test.json into webapps
In cptms.html, change these constants to reflect the names of the test files:
kVDSstatusFile
kMapStartupFile
Application Startup
In a terminal window with webapps as the current directory, start the web server with the command: python -m CGIHTTPServer 8080
Open a web browser to localhost:8080/cptms.html
A google map should appear in "night mode" with center near intersection of Irvine Center Drive and Culver Drive.
- Zoom in and out buttons in the bottom right corner.
- Recenter button in center right margin.
- VDS, CMS, CCTV, and HAR buttons (top to bottom) in lower left corner.
- Search box in upper left corner (contains the text "Search Box" on a black background.)
- Thirteen colored dots along highway 55 between Dyer Rd and I-5. There are 5 white, 5 green, 2 red, and 1 yellow, assigned as specified in the test files. The startup file specifies all dots are white. The highway_status_test.json file indicates eight dots change to the specified colors.
- Colored dots overlap in this priority: Red, yellow, green, white.
Zoom in and out buttons cause the map to become larger or smaller.
Zoom and pan once. Click the recenter button to return to original zoom level and map center point.
CMS Edit Dialog contains:
- CMS ID and Location field (readonly)
- Close button [X] in upper right corner.
- Phase 1 and Phase 2 input fields, vertically aligned.
- Current display (six lines).
- The "Current" display should be in Scoreboard font.
- Send, Clear, and Close buttons.
- Mouseover the [X] turns the color from gray to black.
- Click the [X] or Close button closes the dialog.
Attachments
-
highways_startup_test.json
(3.3 KB) -
added by jdalbey 7 years ago.
Highways startup file for functional testing, contains 13 vds locations, all white.
-
highway_status_test.json
(2.1 KB) -
added by jdalbey 7 years ago.
Highway status file for functional testing, contains 8 colored vds locations
