1 # Copyright (c) 2013 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 5 AUTHOR = "ChromeOS Team" 6 NAME = "network_3GFailedConnect.pseudomodem" 7 PURPOSE = "Verify that a failed modem connect attempt puts the service in a failed state." 8 CRITERIA = """ 9 This test will fail if a connect failure does not immediately cause the 10 service to enter the Failed state. 11 """ 12 ATTRIBUTES = "suite:network3g_pseudomodem" 13 SUITE = "network3g_pseudomodem" 14 TIME = "FAST" 15 TEST_CATEGORY = "Functional" 16 TEST_CLASS = "network" 17 TEST_TYPE = "client" 18 19 DOC = """ 20 Tests that 3G connect failures are handled by cromo & flimflam properly 21 22 This test will fail if a connect failure does not immediately cause the 23 service to enter the Failed state. It requires a machine with a modem 24 that has been factory reset and cannot start a data session. 25 """ 26 27 from autotest_lib.client.cros.cellular import test_environment 28 29 test_module_path = os.path.join( 30 job.testdir, 'network_3GFailedConnect', 'network_3GFailedConnect.py') 31 32 # 3GPP 33 test_env = test_environment.CellularPseudoMMTestEnvironment( 34 pseudomm_args=({'test-module' : test_module_path, 35 'test-modem-class' : 'GetFailConnectModem', 36 'test-modem-arg' : ['3GPP']},)) 37 job.run_test('network_3GFailedConnect', tag='pseudomodem_3GPP', 38 test_env=test_env) 39 40 # CDMA 41 test_env = test_environment.CellularPseudoMMTestEnvironment( 42 pseudomm_args=({'test-module' : test_module_path, 43 'test-modem-class' : 'GetFailConnectModem', 44 'test-modem-arg' : ['CDMA']},)) 45 job.run_test('network_3GFailedConnect', tag='pseudomodem_CDMA', 46 test_env=test_env) 47