1# Copyright (c) 2011 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_ZeroSignal" 7PURPOSE = "Verify cell modem properly deals with signal changes." 8CRITERIA = """Modem can loses registeration after signal is lost.""" 9ATTRIBUTES = "suite:cell_emulator" 10SUITE = "cell_emulator" 11TIME = "SHORT" 12TEST_CATEGORY = "Functional" 13TEST_CLASS = "network" 14TEST_TYPE = "client" 15 16DOC = """ 17 Tests that a modem loses registration when the signal stregth goes 18 to zero and that it reregisters on a new technology when the a 19 technology has a signal. 20""" 21 22from autotest_lib.client.cros.cellular import cellular 23from autotest_lib.client.cros.cellular import labconfig 24 25 26config = labconfig.Configuration(args) 27technologies = config.get_technologies() 28gsm_technologies = [tech for tech in technologies 29 if cellular.TechnologyToFamily[tech] == cellular.TechnologyFamily.UMTS] 30 31job.run_test('cellular_Signal', 32 config=config, 33 technologies=gsm_technologies, 34 wait_for_disc=True, 35 verify_set_power=True, 36 tag='GSM.SetPower.Wait') 37 38job.run_test('cellular_Signal', 39 config=config, 40 technologies=gsm_technologies, 41 wait_for_disc=False, 42 verify_set_power=True, 43 tag='GSM.SetPower.NoWait') 44 45# TODO(jglasgow): run tests for CDMA technologies 46