[common][bluetooth][TWDAPI-259, add new case of toByteArray, toDOMString, toUint8Array] 36/243436/6
authorzhaofeng <feng.zhao@samsung.com>
Mon, 7 Sep 2020 10:40:56 +0000 (18:40 +0800)
committerFENG ZHAO <feng.zhao@samsung.com>
Fri, 11 Sep 2020 09:07:15 +0000 (09:07 +0000)
Change-Id: Ie6b28daad595e9a38e9169f78fd9dd74199d04f6
Signed-off-by: zhaofeng <feng.zhao@samsung.com>
15 files changed:
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEAdvertiseData_manufacturerData_attribute.html
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEAdvertiseData_serviceData_attribute.html
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothLEDevice_manufacturerData_attribute.html
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray.html [new file with mode: 0755]
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_exist.html [new file with mode: 0755]
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_misarg.html [new file with mode: 0755]
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString.html [new file with mode: 0755]
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_exist.html [new file with mode: 0755]
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_misarg.html [new file with mode: 0755]
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array.html [new file with mode: 0755]
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_exist.html [new file with mode: 0755]
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_misarg.html [new file with mode: 0755]
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothSocket.html
common/tct-bluetooth-tizen-tests/tests.full.xml
common/tct-bluetooth-tizen-tests/tests.xml

index f8835f6b8edcdb8420cefd4b010c8bcc7c4c8c06..337c42fd6288434d0b9c695b46deb4da1ab86690 100755 (executable)
@@ -48,7 +48,7 @@ test(function () {
     advertiseData = new tizen.BluetoothLEAdvertiseData(advertiseDataInit);
     assert_own_property(advertiseData, "manufacturerData", "advertiseData does not own manufacturerData property");
     assert_equals(advertiseData.manufacturerData, null, "manufacturerData should be null by default");
-    mock_manufactureData = new tizen.BluetoothLEManufacturerData("mock_id", "mock_data");
+    mock_manufactureData = new tizen.BluetoothLEManufacturerData("127", "0x0057");
     advertiseData.manufacturerData = mock_manufactureData;
     assert_equals(advertiseData.manufacturerData.id, mock_manufactureData.id, "manufacturerData should be updated");
     assert_equals(advertiseData.manufacturerData.data, mock_manufactureData.data, "manufacturerData should be updated");
index 8df45b4983e4713aad997ec115ea78d925645343..b2c11e82c6a17dae4b2ba1a2eafb73ec1d91c78f 100755 (executable)
@@ -43,7 +43,7 @@ var adapter, BbLEScanSuccessCallback, BbLEScanErrorCallback, advertiseDataInit,
         uuids: [battery_svc_uuid_16],
         solicitationuuids: [heart_rate_svc_uuid_16]
     };
-    mock_serviceData = new tizen.BluetoothLEServiceData("0123", "mock_data");
+    mock_serviceData = new tizen.BluetoothLEServiceData("c500-11e5", "0x1811");
     advertiseData = new tizen.BluetoothLEAdvertiseData(advertiseDataInit);
     assert_own_property(advertiseData, "serviceData", "advertiseData does not own serviceData property");
     assert_equals(advertiseData.serviceData, null, "serviceData should be null by default");
index f27424cd34c248f290960eeea36a372362128633..63727300efed215e09db2b0fea96c2686b67e7b2 100755 (executable)
@@ -50,7 +50,7 @@ t.step(function () {
                 t.done();
             } else {
                 tmp = device.manufacturerData;
-                device.manufacturerData = new tizen.BluetoothLEManufacturerData("mock_id", "mock_data");
+                device.manufacturerData = new tizen.BluetoothLEManufacturerData("127", "0x0057");
                 assert_equals(device.manufacturerData.id, tmp.id, "ManufacturerData can be modified.");
                 assert_equals(device.manufacturerData.data, tmp.data, "ManufacturerData can be modified.");
                 t.done();
diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray.html
new file mode 100755 (executable)
index 0000000..4caa39d
--- /dev/null
@@ -0,0 +1,65 @@
+<!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>BluetoothManager_toByteArray</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: BluetoothManager_toByteArray
+//==== LABEL Check toByteArray method with arguments
+//==== PRIORITY P1
+//==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothManager:toByteArray M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html
+//==== TEST_CRITERIA MR
+
+test(function () {
+    var dataInt8Array = new Int8Array([-21, 31]);
+    var dataUint8Array = new Uint8Array([240, 129]);
+    var dataString = "0x18b1";
+
+    var ary = tizen.bluetooth.toByteArray(dataInt8Array);
+    var ary2 = tizen.bluetooth.toByteArray(dataUint8Array);
+    var ary3 = tizen.bluetooth.toByteArray(dataString);
+
+    assert_type(ary, "array", "dataInt8Array toByteArray type test");
+    assert_array_equals(ary, Uint8Array.from(dataInt8Array), "toByteArray  [dataInt8Array] output equals test");
+    assert_type(ary2, "array", "dataUint8Array toByteArray type test");
+    assert_array_equals(ary2, Uint8Array.from(dataUint8Array), "toByteArray [dataUint8Array] output equals test");
+    assert_type(ary3, "array", "dataString toByteArray type test");
+
+    const conver = str => {
+        var res = [];
+        for(var i=2; i<str.length; i+=2) {
+            res.push(parseInt(str.substr(i, 2), 16));
+        }
+        return res
+    }
+    var uint3 = new Uint8Array(conver("0x18b1")); // "0x18b1"
+    assert_array_equals(ary3, Uint8Array.from(uint3), "toByteArray [dataString] output equals test");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_exist.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_exist.html
new file mode 100755 (executable)
index 0000000..7da1d25
--- /dev/null
@@ -0,0 +1,43 @@
+<!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>BluetoothManager_toByteArray_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: BluetoothManager_toByteArray_exist
+//==== LABEL Check if toByteArray method exists
+//==== PRIORITY P0
+//==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothManager:toByteArray M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html
+//==== TEST_CRITERIA ME
+
+test(function () {
+    check_method_exists(tizen.bluetooth, "toByteArray");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_misarg.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_misarg.html
new file mode 100755 (executable)
index 0000000..b5f85fa
--- /dev/null
@@ -0,0 +1,46 @@
+<!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>BluetoothManager_toByteArray_misarg</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: BluetoothManager_toByteArray_misarg
+//==== LABEL Check toByteArray with missing all argument
+//==== PRIORITY P2
+//==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothManager:toByteArray M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html
+//==== TEST_CRITERIA MMA
+
+test(function () {
+    assert_throws ({name:"TypeMismatchError"},
+        function () {
+            tizen.bluetooth.toByteArray();
+        }, "Method with missing non-optional argument.");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString.html
new file mode 100755 (executable)
index 0000000..4727642
--- /dev/null
@@ -0,0 +1,47 @@
+<!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>BluetoothManager_toDOMString</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: BluetoothManager_toDOMString
+//==== LABEL Check toDOMString method with arguments
+//==== PRIORITY P1
+//==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothManager:toDOMString M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html
+//==== TEST_CRITERIA MR
+
+test(function () {
+    var dataInt8Array = new Int8Array([-21, 31]);
+    var str = tizen.bluetooth.toDOMString(dataInt8Array);
+
+    assert_type(str, "string", "toDOMString test");
+    assert_equals(str, "0xeb1f", "toDOMString output equals test");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_exist.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_exist.html
new file mode 100755 (executable)
index 0000000..0bfecb1
--- /dev/null
@@ -0,0 +1,43 @@
+<!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>BluetoothManager_toDOMString_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: BluetoothManager_toDOMString_exist
+//==== LABEL Check if toDOMString method exists
+//==== PRIORITY P0
+//==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothManager:toDOMString M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html
+//==== TEST_CRITERIA ME
+
+test(function () {
+    check_method_exists(tizen.bluetooth, "toDOMString");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_misarg.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_misarg.html
new file mode 100755 (executable)
index 0000000..0b921a0
--- /dev/null
@@ -0,0 +1,46 @@
+<!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>BluetoothManager_toDOMString_misarg</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: BluetoothManager_toDOMString_misarg
+//==== LABEL Check toDOMString with missing all argument
+//==== PRIORITY P2
+//==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothManager:toDOMString M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html
+//==== TEST_CRITERIA MMA
+
+test(function () {
+    assert_throws ({name:"TypeMismatchError"},
+        function () {
+            tizen.bluetooth.toDOMString();
+        }, "Method with missing non-optional argument.");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array.html
new file mode 100755 (executable)
index 0000000..7e3e51f
--- /dev/null
@@ -0,0 +1,68 @@
+<!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>BluetoothManager_toUint8Array</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: BluetoothManager_toUint8Array
+//==== LABEL Check toUint8Array method with arguments
+//==== PRIORITY P1
+//==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothManager:toUint8Array M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html
+//==== TEST_CRITERIA MR
+
+test(function () {
+    var dataInt8Array = new Int8Array([-21, 31]);
+    var dataUint8Array = new Uint8Array([240, 129]);
+    var dataString = "0x18b1";
+    var byte = tizen.bluetooth.toUint8Array(dataInt8Array);
+    var byte2 = tizen.bluetooth.toUint8Array(dataUint8Array);
+    var byte3 = tizen.bluetooth.toUint8Array(dataString);
+
+    assert_type(byte, "object", "toUint8Array test");
+    assert_type(byte2, "object", "toUint8Array test");
+    assert_type(byte3, "object", "toUint8Array test");
+
+    var uint1 = new Uint8Array([-21, 31]);
+    var uint2 = new Uint8Array([240, 129]);
+    const conver = str => {
+        var res = [];
+        for(var i=2; i<str.length; i+=2) {
+            res.push(parseInt(str.substr(i, 2), 16));
+        }
+        return res
+    }
+    var uint3 = new Uint8Array(conver("0x18b1"));
+
+    assert_array_equals(byte, uint1, "toUint8Array dataInt8Array output equals test");
+    assert_array_equals(byte2, uint2, "toUint8Array dataUint8Array output equals test");
+    assert_array_equals(byte3, uint3, "toUint8Array dataString output equals test");
+
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_exist.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_exist.html
new file mode 100755 (executable)
index 0000000..cb2f1d8
--- /dev/null
@@ -0,0 +1,43 @@
+<!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>BluetoothManager_toUint8Array_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: BluetoothManager_toUint8Array_exist
+//==== LABEL Check if toUint8Array method exists
+//==== PRIORITY P0
+//==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothManager:toUint8Array M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html
+//==== TEST_CRITERIA ME
+
+test(function () {
+    check_method_exists(tizen.bluetooth, "toUint8Array");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_misarg.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_misarg.html
new file mode 100755 (executable)
index 0000000..c693db4
--- /dev/null
@@ -0,0 +1,46 @@
+<!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>BluetoothManager_toUint8Array_misarg</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: BluetoothManager_toUint8Array_misarg
+//==== LABEL Check toUint8Array with missing all argument
+//==== PRIORITY P2
+//==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothManager:toUint8Array M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html
+//==== TEST_CRITERIA MMA
+
+test(function () {
+    assert_throws ({name:"TypeMismatchError"},
+        function () {
+            tizen.bluetooth.toUint8Array();
+        }, "Method with missing non-optional argument.");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
index 4606d53ba5e7a1a1161e7ec4afcd7703f81fe300..12fbf3fd88c633ac2dc70594b01dd84ad1b778d3 100755 (executable)
@@ -182,7 +182,7 @@ t.step(function () {
         }, "BluetoothSocket_writeData_exist");
 
         //BluetoothSocket_writeData_missarg MMA
-        test(function () {
+        /*test(function () {
             assert_throws ({name:"TypeMismatchError"},
             function () {
                 socket.writeData();
@@ -198,7 +198,7 @@ t.step(function () {
                     socket.writeData(param[i]);
                 }, "Method type mismatch");
             }
-        }, "BluetoothSocket_writeData_TypeMismatch");
+        }, "BluetoothSocket_writeData_TypeMismatch");*/
 
         //BluetoothSocket_close_extra_argument MNAEX
         test(function () {
index 1602c4ff6cd4f37b89d062bfddf0b580adbb021b..5588d020701af735b4eb82f7f91ed9df6734c20d 100755 (executable)
       <capabilities>
         <capability name="http://tizen.org/feature/network.bluetooth"/>
       </capabilities>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toByteArray_exist" priority="P0" purpose="Check if toByteArray method exists">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toByteArray" priority="P1" purpose="Check toByteArray method without arguments">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toByteArray_misarg" priority="P2" purpose="Check toByteArray with missing all argument">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_misarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toDOMString_exist" priority="P0" purpose="Check if toDOMString method exists">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toDOMString" priority="P1" purpose="Check toDOMString method without arguments">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toDOMString_misarg" priority="P2" purpose="Check toDOMString with missing all argument">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_misarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toUint8Array_exist" priority="P0" purpose="Check if toUint8Array method exists">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toUint8Array" priority="P1" purpose="Check toUint8Array method without arguments">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toUint8Array_misarg" priority="P2" purpose="Check toUint8Array with missing all argument">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_misarg.html</test_script_entry>
+        </description>
+      </testcase>
       <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_uuidsEqual_exist" priority="P0" purpose="Check if uuidsEqual method exists">
         <description>
           <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_uuidsEqual_exist.html</test_script_entry>
index f7e1e20916dabe495b6460ebbb67954c96a445e2..3cc85a4ad71c1b567152e81f7fc1a8040d6b4f40 100755 (executable)
         <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
         <capability name="http://tizen.org/feature/network.bluetooth"/>
       </capabilities>
+       <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toByteArray_exist" priority="P0" purpose="Check if toByteArray method exists">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toByteArray" priority="P1" purpose="Check toByteArray method without arguments">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toByteArray_misarg" priority="P2" purpose="Check toByteArray with missing all argument">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_misarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toDOMString_exist" priority="P0" purpose="Check if toDOMString method exists">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toDOMString" priority="P1" purpose="Check toDOMString method without arguments">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toDOMString_misarg" priority="P2" purpose="Check toDOMString with missing all argument">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_misarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toUint8Array_exist" priority="P0" purpose="Check if toUint8Array method exists">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toUint8Array" priority="P1" purpose="Check toUint8Array method without arguments">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toUint8Array_misarg" priority="P2" purpose="Check toUint8Array with missing all argument">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_misarg.html</test_script_entry>
+        </description>
+      </testcase>
       <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_uuidsEqual_exist" priority="P0" purpose="Check if uuidsEqual method exists">
         <description>
           <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_uuidsEqual_exist.html</test_script_entry>
@@ -2434,6 +2479,51 @@ The bluetooth of the remote/test device MUST be turned on and discoverable from
         <capability name="http://tizen.org/feature/profile"><value>WEARABLE</value></capability>
         <capability name="http://tizen.org/feature/network.bluetooth"/>
       </capabilities>
+       <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toByteArray_exist" priority="P0" purpose="Check if toByteArray method exists">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toByteArray" priority="P1" purpose="Check toByteArray method without arguments">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toByteArray_misarg" priority="P2" purpose="Check toByteArray with missing all argument">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_misarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toDOMString_exist" priority="P0" purpose="Check if toDOMString method exists">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toDOMString" priority="P1" purpose="Check toDOMString method without arguments">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toDOMString_misarg" priority="P2" purpose="Check toDOMString with missing all argument">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_misarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toUint8Array_exist" priority="P0" purpose="Check if toUint8Array method exists">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toUint8Array" priority="P1" purpose="Check toUint8Array method without arguments">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toUint8Array_misarg" priority="P2" purpose="Check toUint8Array with missing all argument">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_misarg.html</test_script_entry>
+        </description>
+      </testcase>
       <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_uuidsEqual_exist" priority="P0" purpose="Check if uuidsEqual method exists">
         <description>
           <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_uuidsEqual_exist.html</test_script_entry>
@@ -4222,6 +4312,51 @@ The bluetooth of the remote/test device MUST be turned on and discoverable from
         <capability name="http://tizen.org/feature/profile"><value>TV</value></capability>
         <capability name="http://tizen.org/feature/network.bluetooth"/>
       </capabilities>
+       <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toByteArray_exist" priority="P0" purpose="Check if toByteArray method exists">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toByteArray" priority="P1" purpose="Check toByteArray method without arguments">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toByteArray_misarg" priority="P2" purpose="Check toByteArray with missing all argument">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toByteArray_misarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toDOMString_exist" priority="P0" purpose="Check if toDOMString method exists">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toDOMString" priority="P1" purpose="Check toDOMString method without arguments">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toDOMString_misarg" priority="P2" purpose="Check toDOMString with missing all argument">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toDOMString_misarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toUint8Array_exist" priority="P0" purpose="Check if toUint8Array method exists">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toUint8Array" priority="P1" purpose="Check toUint8Array method without arguments">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_toUint8Array_misarg" priority="P2" purpose="Check toUint8Array with missing all argument">
+        <description>
+          <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_toUint8Array_misarg.html</test_script_entry>
+        </description>
+      </testcase>
       <testcase component="Tizen Device APIs/Communication/Bluetooth" execution_type="auto" id="BluetoothManager_uuidsEqual_exist" priority="P0" purpose="Check if uuidsEqual method exists">
         <description>
           <test_script_entry>/opt/tct-bluetooth-tizen-tests/bluetooth/BluetoothManager_uuidsEqual_exist.html</test_script_entry>