Home | History | Annotate | Download | only in network_3GDisableWhileConnecting
      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_3GDisableWhileConnecting.pseudomodem"
      7 PURPOSE = "Check that the 3G modem can handle a disconnect while connecting."
      8 CRITERIA = """
      9 This test will fail if a disconnect request while the modem is
     10 connecting is not promptly executed.
     11 """
     12 ATTRIBUTES = "suite:network3g_pseudomodem"
     13 TIME = "SHORT"
     14 TEST_CATEGORY = "Functional"
     15 TEST_CLASS = "network"
     16 TEST_TYPE = "client"
     17 
     18 DOC = """
     19 Check that the 3G modem can handle a disconnect while connecting.
     20 """
     21 
     22 from autotest_lib.client.cros.cellular import test_environment
     23 
     24 ITERATIONS_PER_TEST=1
     25 
     26 # 3GPP
     27 test_env = test_environment.CellularPseudoMMTestEnvironment(
     28         pseudomm_args=({'family': '3GPP'},))
     29 job.run_test('network_3GDisableWhileConnecting',
     30              test_env=test_env,
     31              timeout_s=20,
     32              delay_before_disable_ms=0,
     33              disable_delay_per_iteration_ms=0,
     34              iterations=ITERATIONS_PER_TEST,
     35              tag='instant_disable_3GPP')
     36 
     37 test_env = test_environment.CellularPseudoMMTestEnvironment(
     38         pseudomm_args=({'family': '3GPP'},))
     39 job.run_test('network_3GDisableWhileConnecting',
     40              test_env=test_env,
     41              timeout_s=20,
     42              delay_before_disable_ms=0,
     43              disable_delay_per_iteration_ms=int(1000.0 / ITERATIONS_PER_TEST),
     44              iterations=ITERATIONS_PER_TEST,
     45              tag='disable_delay_ramp_3GPP')
     46 
     47 # CDMA
     48 test_env = test_environment.CellularPseudoMMTestEnvironment(
     49         pseudomm_args=({'family': 'CDMA'},))
     50 job.run_test('network_3GDisableWhileConnecting',
     51              test_env=test_env,
     52              timeout_s=20,
     53              delay_before_disable_ms=0,
     54              disable_delay_per_iteration_ms=0,
     55              iterations=ITERATIONS_PER_TEST,
     56              tag='instant_disable_CDMA')
     57 
     58 test_env = test_environment.CellularPseudoMMTestEnvironment(
     59         pseudomm_args=({'family': 'CDMA'},))
     60 job.run_test('network_3GDisableWhileConnecting',
     61              test_env=test_env,
     62              timeout_s=20,
     63              delay_before_disable_ms=0,
     64              disable_delay_per_iteration_ms=int(1000.0 / ITERATIONS_PER_TEST),
     65              iterations=ITERATIONS_PER_TEST,
     66              tag='disable_delay_ramp_CDMA')
     67