--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Feng Zhao <feng.zhao@samsung.com>
+
+-->
+
+<html>
+<head>
+<title>BluetoothGATTCharacteristic_uuid_attribute</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/bluetooth_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: BluetoothGATTCharacteristic_uuid_attribute
+//==== LABEL Check if BluetoothGATTCharacteristic::uuid attribute exists, has type string and is readonly
+//==== PRIORITY P1
+//==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothGATTCharacteristic:uuid A
+//==== SPEC_URL TBD
+//==== EXECUTION_TYPE manual
+//==== PRE The bluetooth of the BLE remote/test device MUST support BLE and be turned on and discoverable from other devices.
+//==== TEST_CRITERIA AE AT ARO
+
+setup({timeout: 60000});
+
+var t = async_test(document.title, {timeout: 60000}), adapter, bleScanSuccessCallback, bleScanRrrorCallback,
+ service, characteristic, onconnected, onerror, device = null, flag = false;
+
+t.step(function () {
+ onconnected = t.step_func(function () {
+ service = device.getService(device.uuids[0]);
+ if (service.characteristics.length > 0) {
+ characteristic = service.characteristics[0];
+ check_readonly(characteristic, "uuid", characteristic.uuid, "string", characteristic.uuid+"Tizen");
+ device.disconnect();
+ t.done();
+ }
+ });
+
+ onerror = t.step_func(function (error) {
+ assert_unreached("connect() error callback was invoked: " + error.name + " msg: " + error.message);
+ });
+
+ bleScanSuccessCallback = t.step_func(function (bledevice) {
+ if (bledevice.address == REMOTE_BLE_DEVICE_ADDRESS && device == null) {
+ adapter.stopScan();
+ device = bledevice;
+ if (flag == false) {
+ device.connect(onconnected, onerror);
+ flag = true;
+ }
+ }
+ });
+
+ bleScanRrrorCallback = t.step_func(function (error) {
+ assert_unreached("startScan() error callback was invoked: " + error.name + " msg: " + error.message);
+ });
+
+ adapter = tizen.bluetooth.getLEAdapter();
+ adapter.stopScan();
+ adapter.startScan(bleScanSuccessCallback, bleScanRrrorCallback);
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
assert_not_equals(service.characteristics, tmp, "characteristics should not be modified");
}, "BluetoothGATTService_characteristics_attribute");
- //BluetoothGATTService_uuid_attribute
+ //BluetoothGATTService_serviceUuid_attribute
test(function () {
var service = storedDevice.getService(storedDevice.uuids[0]), characteristic, descriptor, i, j, conversionTable, exceptionName;
- check_readonly(service, "uuid", service.uuid, "string", service.uuid+"Tizen");
- }, "BluetoothGATTService_uuid_attribute");
+ check_readonly(service, "serviceUuid", service.serviceUuid, "string", service.serviceUuid+"Tizen");
+ }, "BluetoothGATTService_serviceUuid_attribute");
//BluetoothGATTService_services_attribute
test(function () {
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Feng Zhao <feng.zhao@samsung.com>
+
+-->
+<html>
+<head>
+<title>BluetoothGATTDescriptor_uuid_attribute</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/bluetooth_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: BluetoothGATTDescriptor_uuid_attribute
+//==== LABEL Check if BluetoothGATTDescriptor uuid_attribute exists, has type string and is readonly
+//==== EXECUTION_TYPE manual
+//==== ONLOAD_DELAY 30
+//==== SPEC Tizen Web API:TBD:Bluetooth:BluetoothGATTDescriptor:uuid A
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== PRE The bluetooth of the BLE remote/test device MUST support BLE and be turned on and discoverable from other devices.
+//==== TEST_CRITERIA AE AT ARO
+
+setup({timeout: 60000});
+
+var t = async_test(document.title, {timeout: 60000}), adapter, BbLEScanSuccessCallback, BbLEScanErrorCallback, service,
+ onconnected, onerror, characteristic, descriptor, device = null, flag = false, i;
+
+t.step(function () {
+ onconnected = t.step_func(function () {
+ service = device.getService(device.uuids[0]);
+ for (i = 0; i < service.characteristics.length; i++) {
+ characteristic = service.characteristics[i];
+ if (characteristic != undefined) {
+ descriptor = characteristic.descriptors[0];
+ if (descriptor != undefined) {
+ check_readonly(descriptor, "uuid", descriptor.uuid, "string", descriptor.uuid+"Tizen");
+ device.disconnect();
+ t.done();
+ }
+ }
+ }
+ });
+
+ onerror = t.step_func(function (error) {
+ assert_unreached("connect() error callback was invoked: " + error.name + " msg: " + error.message);
+ });
+
+ BbLEScanSuccessCallback = t.step_func(function (bledevice) {
+ if (bledevice.address == REMOTE_BLE_DEVICE_ADDRESS && device == null) {
+ adapter.stopScan();
+ device = bledevice;
+ if (flag == false) {
+ device.connect(onconnected, onerror);
+ flag = true;
+ }
+ }
+ });
+
+ BbLEScanErrorCallback = t.step_func(function (error) {
+ assert_unreached("startScan() error callback was invoked: " + error.name + " msg: " + error.message);
+ });
+
+ adapter = tizen.bluetooth.getLEAdapter();
+ adapter.stopScan();
+ adapter.startScan(BbLEScanSuccessCallback, BbLEScanErrorCallback);
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2015 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+ Feng Zhao <feng.zhao@samsung.com>
+
+-->
+<html>
+<head>
+<title>BluetoothGATTService_serviceUuid_attribute</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/bluetooth_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: BluetoothGATTService_serviceUuid_attribute
+//==== LABEL Check uuid attribute in BluetoothGATTService is readonly
+//==== EXECUTION_TYPE manual
+//==== PRE The bluetooth of the BLE remote/test device MUST support BLE and be turned on and discoverable from other devices.
+//==== PRIORITY P1
+//==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothGATTService:serviceUuid A
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html
+//==== TEST_CRITERIA AE AT ARO
+
+setup({timeout: 180000});
+
+var adapter = null, t = async_test(document.title, {timeout: 180000}), SuccessCB, onconnected, service,
+ device = null, flag = false;
+
+t.step(function () {
+ onconnected = t.step_func(function () {
+ service = device.getService(device.uuids[0]);
+ check_readonly(service, "serviceUuid", service.serviceUuid, "string", service.serviceUuid+"Tizen");
+ device.disconnect();
+ t.done();
+ });
+
+ onerror = t.step_func(function (e) {
+ assert_unreached("connect errorCallback exception:" + e.message);
+ });
+
+ SuccessCB = t.step_func(function (bledevice) {
+ if (bledevice.address == REMOTE_BLE_DEVICE_ADDRESS && device == null) {
+ adapter.stopScan();
+ device = bledevice;
+ if (flag == false) {
+ device.connect(onconnected, onerror);
+ flag = true;
+ }
+ }
+ });
+
+ adapter = tizen.bluetooth.getLEAdapter();
+ adapter.stopScan();
+ adapter.startScan(SuccessCB);
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2015 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
- Lei Tang <lei312.tang@samsung.com>
-
--->
-<html>
-<head>
-<title>BluetoothGATTService_serviceUuid_attribute</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/bluetooth_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: BluetoothGATTService_serviceUuid_attribute
-//==== LABEL Check uuid attribute in BluetoothGATTService is readonly
-//==== EXECUTION_TYPE manual
-//==== PRE The bluetooth of the remote/test device MUST support BLE and be turned on and discoverable from other devices.
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothGATTService:serviceUuid A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html
-//==== TEST_CRITERIA AE AT ARO
-
-setup({timeout: 180000});
-
-var adapter = null, t = async_test(document.title, {timeout: 180000}), SuccessCB, onconnected, service,
- device = null, flag = false;
-
-t.step(function () {
- onconnected = t.step_func(function () {
- service = device.getService(device.uuids[0]);
- check_readonly(service, "serviceUuid", service.serviceUuid, "string", service.serviceUuid+"Tizen");
- device.disconnect();
- t.done();
- });
-
- onerror = t.step_func(function (e) {
- assert_unreached("connect errorCallback exception:" + e.message);
- });
-
- SuccessCB = t.step_func(function (bledevice) {
- if (bledevice.address == REMOTE_BLE_DEVICE_ADDRESS && device == null) {
- adapter.stopScan();
- device = bledevice;
- if (flag == false) {
- device.connect(onconnected, onerror);
- flag = true;
- }
- }
- });
-
- adapter = tizen.bluetooth.getLEAdapter();
- adapter.stopScan();
- adapter.startScan(SuccessCB);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
</spec>
</specs>
</testcase>
+ <testcase purpose="Check uuid attribute in BluetoothGATTService is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Bluetooth" execution_type="manual" priority="P1" id="BluetoothGATTService_serviceUuid_attribute">
+ <description>
+ <pre_condition>The bluetooth of the remote/test device MUST support BLE and be turned on and discoverable from other devices.</pre_condition>
+ <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTService_serviceUuid_attribute.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="BluetoothLEDevice" element_type="attribute" element_name="rssi" specification="Bluetooth" section="Communication" category="Tizen Device API Specifications"/>
+ <spec_url>https://docs.tizen.org/application/web/api/6.0/device_api/mobile/tizen/bluetooth.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if BluetoothGATTCharacteristic::uuid attribute exists, has type string and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Bluetooth" execution_type="manual" priority="P1" id="BluetoothGATTCharacteristic_uuid_attribute">
+ <description>
+ <pre_condition>The bluetooth of the remote/test device MUST support BLE and be turned on and discoverable from other devices.</pre_condition>
+ <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTCharacteristic_uuid_attribute.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="BluetoothLEDevice" element_type="attribute" element_name="rssi" specification="Bluetooth" section="Communication" category="Tizen Device API Specifications"/>
+ <spec_url>https://docs.tizen.org/application/web/api/6.0/device_api/mobile/tizen/bluetooth.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if BluetoothGATTDescriptor uuid_attribute exists, has type string and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Bluetooth" execution_type="manual" priority="P1" id="BluetoothGATTDescriptor_uuid_attribute">
+ <description>
+ <pre_condition>The bluetooth of the remote/test device MUST support BLE and be turned on and discoverable from other devices.</pre_condition>
+ <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTDescriptor_uuid_attribute.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion interface="BluetoothLEDevice" element_type="attribute" element_name="rssi" specification="Bluetooth" section="Communication" category="Tizen Device API Specifications"/>
+ <spec_url>https://docs.tizen.org/application/web/api/6.0/device_api/mobile/tizen/bluetooth.html</spec_url>
+ <spec_statement>TBD</spec_statement>
+ </spec>
+ </specs>
+ </testcase>
</set>
</suite>
</test_definition>
</description>
</testcase>
</set>
- <set name="Bluetooth04_BLE_mobile">
+ <set name="Bluetooth04_BLE_mobile" type="js">
<capabilities>
<capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
<capability name="http://tizen.org/feature/network.bluetooth"/>
</capabilities>
+ <testcase purpose="Check uuid attribute in BluetoothGATTService is readonly" onload_delay="180" priority = "P1" component="TizenAPI/Communication/Bluetooth" execution_type="manual" id="BluetoothGATTService_serviceUuid_attribute">
+ <description>
+ <pre_condition>The bluetooth of the BLE remote/test device MUST support BLE and be turned on and discoverable from other devices.</pre_condition>
+ <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTService_serviceUuid_attribute.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if BluetoothGATTCharacteristic::uuid attribute exists, has type string and is readonly" onload_delay="180" priority = "P1" component="TizenAPI/Communication/Bluetooth" execution_type="manual" id="BluetoothGATTCharacteristic_uuid_attribute">
+ <description>
+ <pre_condition>The bluetooth of the BLE remote/test device MUST support BLE and be turned on and discoverable from other devices.</pre_condition>
+ <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTCharacteristic_uuid_attribute.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if BluetoothGATTDescriptor uuid_attribute method if the value cannot be retrieved" onload_delay="180" priority = "P1" component="TizenAPI/Communication/Bluetooth" execution_type="manual" id="BluetoothGATTDescriptor_uuid_attribute">
+ <description>
+ <pre_condition>The bluetooth of the BLE remote/test device MUST support BLE and be turned on and discoverable from other devices.</pre_condition>
+ <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTDescriptor_uuid_attribute.html</test_script_entry>
+ </description>
+ </testcase>
<!--testcase purpose="Check if BluetoothLEConnectChangeCallbacks are called and if their arguments have proper types" onload_delay="180" priority = "P3" component="TizenAPI/Communication/Bluetooth" execution_type="manual" id="BluetoothLEConnectChangeCallback_connection">
<description>
<pre_condition>The bluetooth of the remote/test device MUST support BLE and be turned on and discoverable from other devices.</pre_condition>
</description>
</testcase>
</set>
- <set name="Bluetooth04_BLE_wearable">
+ <set name="Bluetooth04_BLE_wearable" type="js">
<capabilities>
<capability name="http://tizen.org/feature/profile"><value>WEARABLE</value></capability>
<capability name="http://tizen.org/feature/network.bluetooth"/>
</capabilities>
+ <testcase purpose="Check uuid attribute in BluetoothGATTService is readonly" onload_delay="180" priority = "P1" component="TizenAPI/Communication/Bluetooth" execution_type="manual" id="BluetoothGATTService_serviceUuid_attribute">
+ <description>
+ <pre_condition>The bluetooth of the BLE remote/test device MUST support BLE and be turned on and discoverable from other devices.</pre_condition>
+ <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTService_serviceUuid_attribute.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if BluetoothGATTCharacteristic::uuid attribute exists, has type string and is readonly" onload_delay="180" priority = "P1" component="TizenAPI/Communication/Bluetooth" execution_type="manual" id="BluetoothGATTCharacteristic_uuid_attribute">
+ <description>
+ <pre_condition>The bluetooth of the BLE remote/test device MUST support BLE and be turned on and discoverable from other devices.</pre_condition>
+ <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTCharacteristic_uuid_attribute.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if BluetoothGATTDescriptor uuid_attribute method if the value cannot be retrieved" onload_delay="180" priority = "P1" component="TizenAPI/Communication/Bluetooth" execution_type="manual" id="BluetoothGATTDescriptor_uuid_attribute">
+ <description>
+ <pre_condition>The bluetooth of the BLE remote/test device MUST support BLE and be turned on and discoverable from other devices.</pre_condition>
+ <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTDescriptor_uuid_attribute.html</test_script_entry>
+ </description>
+ </testcase>
<testcase purpose="Check if BluetoothGATT works" component="TizenAPI/Communication/Bluetooth" execution_type="manual" id="BluetoothGATTCombined" priority = "P3" onload_delay="180">
<description>
<pre_condition>The bluetooth of the remote/test device MUST support BLE and be turned on and discoverable from other devices.</pre_condition>
<steps>
- <step order="1">
+ <step order="1">
<step_desc>several tests executed from base test</step_desc>
<expected>all subtests should be successful</expected>
</step>
</description>
</testcase>
</set>
- <set name="Bluetooth04_BLE_tv">
+ <set name="Bluetooth04_BLE_tv" type="js">
<capabilities>
<capability name="http://tizen.org/feature/profile"><value>TV</value></capability>
<capability name="http://tizen.org/feature/network.bluetooth"/>
<capability name="http://tizen.org/feature/network.bluetooth.le"/>
</capabilities>
+ <testcase purpose="Check uuid attribute in BluetoothGATTService is readonly" onload_delay="180" priority = "P1" component="TizenAPI/Communication/Bluetooth" execution_type="manual" id="BluetoothGATTService_serviceUuid_attribute">
+ <description>
+ <pre_condition>The bluetooth of the BLE remote/test device MUST support BLE and be turned on and discoverable from other devices.</pre_condition>
+ <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTService_serviceUuid_attribute.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if BluetoothGATTCharacteristic::uuid attribute exists, has type string and is readonly" onload_delay="180" priority = "P1" component="TizenAPI/Communication/Bluetooth" execution_type="manual" id="BluetoothGATTCharacteristic_uuid_attribute">
+ <description>
+ <pre_condition>The bluetooth of the BLE remote/test device MUST support BLE and be turned on and discoverable from other devices.</pre_condition>
+ <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTCharacteristic_uuid_attribute.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if BluetoothGATTDescriptor uuid_attribute method if the value cannot be retrieved" onload_delay="180" priority = "P1" component="TizenAPI/Communication/Bluetooth" execution_type="manual" id="BluetoothGATTDescriptor_uuid_attribute">
+ <description>
+ <pre_condition>The bluetooth of the BLE remote/test device MUST support BLE and be turned on and discoverable from other devices.</pre_condition>
+ <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTDescriptor_uuid_attribute.html</test_script_entry>
+ </description>
+ </testcase>
<testcase purpose="Check if BluetoothLEDevice/Manufacturer/ServiceData attribues exist and have proper traits" onload_delay="180" priority = "P3" component="TizenAPI/Communication/Bluetooth" execution_type="manual" id="BluetoothLEAttributes">
<description>
<pre_condition>The bluetooth of the remote/test device MUST support BLE and be turned on and discoverable from other devices.</pre_condition>