Home | History | Annotate | Download | only in network_3GDisableWhileConnecting
      1 # Copyright (c) 2014 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.hefty"
      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_att, suite:network3g_tmobile"
     13 SUITE = "network3g_att, network3g_tmobile"
     14 TIME = "SHORT"
     15 TEST_CATEGORY = "Functional"
     16 TEST_CLASS = "network"
     17 TEST_TYPE = "client"
     18 DEPENDENCIES = "modem:hefty"
     19 
     20 DOC = """
     21 Check that the 3G modem can handle a disconnect while connecting.
     22 """
     23 
     24 from autotest_lib.client.cros.cellular import test_environment
     25 
     26 ITERATIONS_PER_TEST=1
     27 
     28 test_env = test_environment.CellularOTATestEnvironment()
     29 job.run_test('network_3GDisableWhileConnecting',
     30              test_env=test_env,
     31              delay_before_disable_ms=0,
     32              disable_delay_per_iteration_ms=0,
     33              iterations=ITERATIONS_PER_TEST,
     34              tag='instant_disable-hefty')
     35 
     36 # Since dbus-python emits our calls asynchronously, it is sometimes
     37 # (often?) the case that the disable arrives before the connect.
     38 # There's no good way to track what actually gets sent first, so we
     39 # sleep.
     40 job.run_test('network_3GDisableWhileConnecting',
     41              test_env=test_env,
     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-hefty')
     46