Home | History | Annotate | Download | only in bluetooth_SDP_ServiceAttributeRequest
      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_ServiceAttributeRequest'
      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 searching for attributes of
     15 services.
     16 
     17 The tester sends Service Search Request and Service Attribute Request to the DUT
     18 to ensure that it is able to response with different attributes:
     19 ServiceRecordHandle, BrowseGroupList, DocumentationURL, ClientExecutableURL,
     20 IconURL, ProtocolDescriptorList, VersionNumberList, ServiceDatabaseState,
     21 BluetoothProfileDescriptorList, AdditionalProtocolDescriptorLists, ServiceID,
     22 ServiceRecordState, ServiceInfoTime, LanguageBaseAttributeIdList,
     23 ServiceAvailability, ServiceName, ServiceDescription, ProviderName.
     24 It also checks that responses with continuation state work properly,
     25 as well as requests with non-existing attributes and various invalid requests.
     26 
     27 This test covers the Bluetooth SIG test cases:
     28 TP/SERVER/SA/BV-01-C
     29 TP/SERVER/SA/BV-03-C
     30 TP/SERVER/SA/BV-04-C
     31 TP/SERVER/SA/BV-05-C
     32 TP/SERVER/SA/BV-06-C
     33 TP/SERVER/SA/BV-07-C
     34 TP/SERVER/SA/BV-08-C
     35 TP/SERVER/SA/BV-09-C
     36 TP/SERVER/SA/BV-10-C
     37 TP/SERVER/SA/BV-11-C
     38 TP/SERVER/SA/BV-12-C
     39 TP/SERVER/SA/BV-13-C
     40 TP/SERVER/SA/BV-14-C
     41 TP/SERVER/SA/BV-15-C
     42 TP/SERVER/SA/BV-16-C
     43 TP/SERVER/SA/BV-17-C
     44 TP/SERVER/SA/BV-18-C
     45 TP/SERVER/SA/BV-19-C
     46 TP/SERVER/SA/BV-20-C
     47 TP/SERVER/SA/BV-21-C
     48 TP/SERVER/SA/BI-01-C
     49 TP/SERVER/SA/BI-02-C
     50 TP/SERVER/SA/BI-03-C
     51 """
     52 
     53 from autotest_lib.server.cros.bluetooth import bluetooth_tester
     54 from autotest_lib.server import utils
     55 
     56 
     57 args_dict = utils.args_to_dict(args)
     58 
     59 def run(machine):
     60     device_host = hosts.create_host(machine)
     61     tester_host = bluetooth_tester.create_host_from(device_host, args=args_dict)
     62     job.run_test('bluetooth_SDP_ServiceAttributeRequest',
     63                  device_host=device_host,
     64                  tester_host=tester_host,
     65                  interactive=False)
     66 
     67 parallel_simple(run, machines)
     68