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 = 'arakhov (a] chromium.org' 6 NAME = 'bluetooth_SDP_ServiceSearchAttributeRequest' 7 ATTRIBUTES = "suite:bluetooth, suite:bluetooth_qualification" 8 TIME = 'SHORT' 9 TEST_CLASS = 'bluetooth' 10 TEST_TYPE = 'Server' 11 DEPENDENCIES = 'bluetooth,wificell' 12 13 DOC = """ 14 Verify the correct behaviour of the device when executing Service Search 15 Attribute transaction. 16 17 The tester sends a Service Search Attribute Request to the DUT, checking: 18 * non-existing Service, existing Attribute 19 * existing Service, non-existing Attribute 20 * non-existing Service, non-existing Attribute 21 * existing Service, existing Attribute 22 * various specific attributes, listed in Test Specification 23 * correctness of continuation state behavior 24 * responses to invalid requests 25 26 This test covers the following Bluetooth SIG test cases: 27 TP/SERVER/SSA/BV-01-C 28 TP/SERVER/SSA/BV-02-C 29 TP/SERVER/SSA/BV-03-C 30 TP/SERVER/SSA/BV-04-C 31 TP/SERVER/SSA/BV-06-C 32 TP/SERVER/SSA/BV-07-C 33 TP/SERVER/SSA/BV-08-C 34 TP/SERVER/SSA/BV-09-C 35 TP/SERVER/SSA/BV-10-C 36 TP/SERVER/SSA/BV-11-C 37 TP/SERVER/SSA/BV-12-C 38 TP/SERVER/SSA/BV-13-C 39 TP/SERVER/SSA/BV-14-C 40 TP/SERVER/SSA/BV-15-C 41 TP/SERVER/SSA/BV-16-C 42 TP/SERVER/SSA/BV-17-C 43 TP/SERVER/SSA/BV-18-C 44 TP/SERVER/SSA/BV-19-C 45 TP/SERVER/SSA/BV-20-C 46 TP/SERVER/SSA/BV-21-C 47 TP/SERVER/SSA/BV-22-C 48 TP/SERVER/SSA/BV-23-C 49 TP/SERVER/SSA/BI-01-C 50 TP/SERVER/SSA/BI-02-C 51 52 """ 53 54 from autotest_lib.server.cros.bluetooth import bluetooth_tester 55 from autotest_lib.server import utils 56 57 58 args_dict = utils.args_to_dict(args) 59 60 def run(machine): 61 device_host = hosts.create_host(machine) 62 tester_host = bluetooth_tester.create_host_from(device_host, args=args_dict) 63 job.run_test('bluetooth_SDP_ServiceSearchAttributeRequest', 64 device_host=device_host, 65 tester_host=tester_host, 66 interactive=False) 67 68 parallel_simple(run, machines) 69