• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5AUTHOR = "ChromeOS Team"
6NAME = "cellular_ConnectFailure.pseudomodem"
7PURPOSE = "Verify that a failed modem connect attempt puts the service in a failed state."
8CRITERIA = """
9This test will fail if a connect failure does not immediately cause the
10service to enter the Failed state.
11"""
12ATTRIBUTES = "suite:cellular_pseudomodem"
13TIME = "FAST"
14TEST_CATEGORY = "Functional"
15TEST_CLASS = "network"
16TEST_TYPE = "client"
17
18DOC = """
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
26from autotest_lib.client.cros.cellular import test_environment
27
28test_module_path = os.path.join(
29        job.testdir, 'cellular_ConnectFailure', 'cellular_ConnectFailure.py')
30
31# 3GPP
32test_env = test_environment.CellularPseudoMMTestEnvironment(
33        pseudomm_args=({'test-module' : test_module_path,
34                        'test-modem-class' : 'GetFailConnectModem',
35                        'test-modem-arg' : ['3GPP']},))
36job.run_test('cellular_ConnectFailure', tag='pseudomodem_3GPP',
37             test_env=test_env)
38
39# CDMA
40test_env = test_environment.CellularPseudoMMTestEnvironment(
41        pseudomm_args=({'test-module' : test_module_path,
42                        'test-modem-class' : 'GetFailConnectModem',
43                        'test-modem-arg' : ['CDMA']},))
44job.run_test('cellular_ConnectFailure', tag='pseudomodem_CDMA',
45             test_env=test_env)
46