1# Copyright 2016 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 = 'krisr, wiley, jabele' 6NAME = 'network_WiFi_ChaosConnectDisconnect.open_n' 7TIME = 'LONG' 8TEST_TYPE = 'server' 9ATTRIBUTES = 'suite:wifi_interop, suite:android_wifi_interop' 10DEPENDENCIES = 'chaos_nightly, chaos_dut' 11 12DOC = """ 13This script iterates through all of the access points in the AP compatibility 14lab and has a chrome device connect to each in series. This test must be 15performed in the AP compatibility lab. 16""" 17 18from autotest_lib.server.cros.ap_configurators import ap_spec 19from autotest_lib.server.cros.chaos_lib import chaos_runner 20 21def run_chaos_open(machine): 22 host = hosts.create_host(machine) 23 # Test with no security, mode N and on both 2.4 and 5 GHz bands 24 ap_specs = [ap_spec.APSpec(mode=ap_spec.MODE_N, 25 security=ap_spec.SECURITY_TYPE_DISABLED, 26 band=ap_spec.BAND_2GHZ), 27 ap_spec.APSpec(mode=ap_spec.MODE_N, 28 security=ap_spec.SECURITY_TYPE_DISABLED, 29 band=ap_spec.BAND_5GHZ)] 30 for spec in ap_specs: 31 runner = chaos_runner.ChaosRunner( 32 'network_WiFi_ChaosConnectDisconnect', host, spec) 33 runner.run(job) 34 35 36parallel_simple(run_chaos_open, machines) 37