[common][bluetooth][TWDAPI-263, Add API for the configuration of BLE GATT server ] 17/244917/1
authorzhaofeng <feng.zhao@samsung.com>
Sun, 27 Sep 2020 10:56:17 +0000 (18:56 +0800)
committerzhaofeng <feng.zhao@samsung.com>
Sun, 27 Sep 2020 11:13:46 +0000 (19:13 +0800)
Change-Id: I4950086b9689e0f677eb904038ce72e504a34c3e
Signed-off-by: zhaofeng <feng.zhao@samsung.com>
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTServer_getGATTServer.html [new file with mode: 0755]
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTServer_getGATTServer_exist.html [new file with mode: 0755]
common/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTServer_getGATTServer_extra_argument.html [new file with mode: 0755]

diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTServer_getGATTServer.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTServer_getGATTServer.html
new file mode 100755 (executable)
index 0000000..9bce9c6
--- /dev/null
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Feng Zhao <feng.zhao@samsung.com>
+
+-->
+<html>
+<head>
+<title>BluetoothGATTServer_getGATTServer</title>
+<script src="support/unitcommon.js"></script>
+<script src="support/bluetooth_common.js"></script>
+</head>
+<body>
+
+<div id="log"></div>
+<script>
+//==== TEST: BluetoothGATTServer_getGATTServer
+//==== LABEL Proper invocation of getGATTServer method  without arguments
+//==== PRIORITY P1
+//==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothGATTServer:getGATTServer M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html
+//==== TEST_CRITERIA MNA MR
+test(function () {
+    var server = tizen.bluetooth.getGATTServer();
+    assert_type(server, "object", "server test");
+    assert_type(server.services, "array", "The list of GATT services attribute test");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTServer_getGATTServer_exist.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTServer_getGATTServer_exist.html
new file mode 100755 (executable)
index 0000000..5834535
--- /dev/null
@@ -0,0 +1,55 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Feng Zhao <feng.zhao@samsung.com>
+
+-->
+<html>
+<head>
+<title>BluetoothGATTServer_getGATTServer_exist</title>
+<script src="support/unitcommon.js"></script>
+<script src="support/bluetooth_common.js"></script>
+</head>
+<body>
+
+<div id="log"></div>
+<script>
+//==== TEST: BluetoothGATTServer_getGATTServer_exist
+//==== LABEL Check if getGATTServer method exists
+//==== PRIORITY P0
+//==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothGATTServer:getGATTServer M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html
+//==== TEST_CRITERIA ME
+test(function () {
+    assert_true("getGATTServer" in tizen.bluetooth, "Method getGATTServer does not exist in bluetooth server.");
+    check_method_exists(tizen.bluetooth, "getGATTServer");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTServer_getGATTServer_extra_argument.html b/common/tct-bluetooth-tizen-tests/bluetooth/BluetoothGATTServer_getGATTServer_extra_argument.html
new file mode 100755 (executable)
index 0000000..67be188
--- /dev/null
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2020Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Feng Zhao <feng.zhao@samsung.com>
+
+-->
+<html>
+<head>
+<title>BluetoothGATTServer_getGATTServer_extra_argument</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: BluetoothGATTServer_getGATTServer_extra_argument
+//==== LABEL Check if method getGATTServer of BluetoothGATTServer accepts extra argument
+//==== PRIORITY P2
+//==== SPEC Tizen Web API:Communication:Bluetooth:BluetoothGATTServer:getGATTServer M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html
+//==== TEST_CRITERIA MNAEX
+test(function () {
+    checkExtraArgument(tizen.bluetooth, "getGATTServer");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file