• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2018 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5AUTHOR = 'harpreet'
6NAME = 'network_WiFi_ChaosConnectDisconnect.static_5Ghz'
7TIME = 'LONG'
8TEST_TYPE = 'server'
9ATTRIBUTES = 'suite:wifi_interop'
10DEPENDENCIES = 'chaos_dut'
11MAX_RESULT_SIZE_KB = 512000
12PY_VERSION = 3
13
14DOC = """
15This script iterates through all 5Ghz access points in Chaos chamber.
16"""
17
18from autotest_lib.server.cros.ap_configurators import ap_spec
19from autotest_lib.server.cros.chaos_lib import static_runner
20
21def run_chaos_static(machine):
22    host = hosts.create_host(machine)
23    # Test all 5Ghz static APs on channel 36, 40, 44, 48, 149, 153, 157 and 161
24    ap_specs = [ap_spec.APSpec(band=ap_spec.BAND_5GHZ,
25                               channel = 36,
26                               configurator_type=ap_spec.CONFIGURATOR_STATIC),
27                ap_spec.APSpec(band=ap_spec.BAND_5GHZ,
28                               channel = 40,
29                               configurator_type=ap_spec.CONFIGURATOR_STATIC),
30                ap_spec.APSpec(band=ap_spec.BAND_5GHZ,
31                               channel = 44,
32                               configurator_type=ap_spec.CONFIGURATOR_STATIC),
33                ap_spec.APSpec(band=ap_spec.BAND_5GHZ,
34                               channel = 48,
35                               configurator_type=ap_spec.CONFIGURATOR_STATIC),
36                ap_spec.APSpec(band=ap_spec.BAND_5GHZ,
37                               channel = 149,
38                               configurator_type=ap_spec.CONFIGURATOR_STATIC),
39                ap_spec.APSpec(band=ap_spec.BAND_5GHZ,
40                               channel = 153,
41                               configurator_type=ap_spec.CONFIGURATOR_STATIC),
42                ap_spec.APSpec(band=ap_spec.BAND_5GHZ,
43                               channel = 157,
44                               configurator_type=ap_spec.CONFIGURATOR_STATIC),
45                ap_spec.APSpec(band=ap_spec.BAND_5GHZ,
46                               channel = 161,
47                               configurator_type=ap_spec.CONFIGURATOR_STATIC)]
48
49    for spec in ap_specs:
50        runner = static_runner.StaticRunner(
51                'network_WiFi_ChaosConnectDisconnect', host, spec)
52        runner.run(job)
53
54parallel_simple(run_chaos_static, machines)
55