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