Specifications:
Verify status S0201 traffic counting: number of vehicles
-
Given the site is connected
-
Request status
-
Expect status response before timeout
10 11 12 13 14
# File 'spec/site/tlc/traffic_data_spec.rb', line 10 Validator::Site.connected do |task,supervisor,site| request_status_and_confirm site, "traffic counting: number of vehicles", { S0201: [:starttime,:vehicles] }, Validator.get_config('components','detector_logic').keys.first end
-
Verify status S0205 traffic counting: number of vehicles
-
Given the site is connected
-
Request status
-
Expect status response before timeout
23 24 25 26
# File 'spec/site/tlc/traffic_data_spec.rb', line 23 Validator::Site.connected do |task,supervisor,site| request_status_and_confirm site, "traffic counting: number of vehicles", { S0205: [:start,:vehicles] } end
-
Verify status S0202 traffic counting: vehicle speed
-
Given the site is connected
-
Request status
-
Expect status response before timeout
35 36 37 38 39
# File 'spec/site/tlc/traffic_data_spec.rb', line 35 Validator::Site.connected do |task,supervisor,site| request_status_and_confirm site, "traffic counting: vehicle speed", { S0202: [:starttime,:speed] }, Validator.get_config('components','detector_logic').keys.first end
-
Verify status S0206 traffic counting: vehicle speed
-
Given the site is connected
-
Request status
-
Expect status response before timeout
48 49 50 51
# File 'spec/site/tlc/traffic_data_spec.rb', line 48 Validator::Site.connected do |task,supervisor,site| request_status_and_confirm site, "traffic counting: vehicle speed", { S0206: [:start,:speed] } end
-
Verify status S0203 traffic counting: occupancy
-
Given the site is connected
-
Request status
-
Expect status response before timeout
60 61 62 63 64
# File 'spec/site/tlc/traffic_data_spec.rb', line 60 Validator::Site.connected do |task,supervisor,site| request_status_and_confirm site, "traffic counting: occupancy", { S0203: [:starttime,:occupancy] }, Validator.get_config('components','detector_logic').keys.first end
-
Verify status S0207 traffic counting: occupancy
-
Given the site is connected
-
Request status
-
Expect status response before timeout
73 74 75 76
# File 'spec/site/tlc/traffic_data_spec.rb', line 73 Validator::Site.connected do |task,supervisor,site| request_status_and_confirm site, "traffic counting: occupancy", { S0207: [:start,:occupancy] } end
-
Verify status S0204 traffic counting: classification
-
Given the site is connected
-
Request status
-
Expect status response before timeout
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
# File 'spec/site/tlc/traffic_data_spec.rb', line 85 Validator::Site.connected do |task,supervisor,site| request_status_and_confirm site, "traffic counting: classification", { S0204: [ :starttime, :P, :PS, :L, :LS, :B, :SP, :MC, :C, :F ] }, Validator.get_config('components','detector_logic').keys.first end
-
Verify status S0208 traffic counting: classification
-
Given the site is connected
-
Request status
-
Expect status response before timeout
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
# File 'spec/site/tlc/traffic_data_spec.rb', line 109 Validator::Site.connected do |task,supervisor,site| request_status_and_confirm site, "traffic counting: classification", { S0208: [ :start, :P, :PS, :L, :LS, :B, :SP, :MC, :C, :F ] } end
-