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 = 'arakhov@chromium.org' 6NAME = 'bluetooth_SDP_ServiceSearchAttributeRequest' 7ATTRIBUTES = "suite:bluetooth, suite:bluetooth_qualification" 8TIME = 'SHORT' 9TEST_CLASS = 'bluetooth' 10TEST_TYPE = 'Server' 11DEPENDENCIES = 'bluetooth,wificell' 12 13DOC = """ 14Verify the correct behaviour of the device when executing Service Search 15Attribute transaction. 16 17The 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 26This test covers the following Bluetooth SIG test cases: 27TP/SERVER/SSA/BV-01-C 28TP/SERVER/SSA/BV-02-C 29TP/SERVER/SSA/BV-03-C 30TP/SERVER/SSA/BV-04-C 31TP/SERVER/SSA/BV-06-C 32TP/SERVER/SSA/BV-07-C 33TP/SERVER/SSA/BV-08-C 34TP/SERVER/SSA/BV-09-C 35TP/SERVER/SSA/BV-10-C 36TP/SERVER/SSA/BV-11-C 37TP/SERVER/SSA/BV-12-C 38TP/SERVER/SSA/BV-13-C 39TP/SERVER/SSA/BV-14-C 40TP/SERVER/SSA/BV-15-C 41TP/SERVER/SSA/BV-16-C 42TP/SERVER/SSA/BV-17-C 43TP/SERVER/SSA/BV-18-C 44TP/SERVER/SSA/BV-19-C 45TP/SERVER/SSA/BV-20-C 46TP/SERVER/SSA/BV-21-C 47TP/SERVER/SSA/BV-22-C 48TP/SERVER/SSA/BV-23-C 49TP/SERVER/SSA/BI-01-C 50TP/SERVER/SSA/BI-02-C 51 52""" 53 54from autotest_lib.server.cros.bluetooth import bluetooth_tester 55from autotest_lib.server import utils 56 57 58args_dict = utils.args_to_dict(args) 59 60def 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 68parallel_simple(run, machines) 69