[common][application][TWDAPI-276 Added support for system events] 70/261270/1
authortangkaiyuan <kaiyuan.tang@samsung.com>
Tue, 13 Jul 2021 23:35:36 +0000 (07:35 +0800)
committertangkaiyuan <kaiyuan.tang@samsung.com>
Tue, 13 Jul 2021 23:35:45 +0000 (07:35 +0800)
Change-Id: I6a0abc8b6aed9da5a317a3548b995fcb1d43de84
Signed-off-by: tangkaiyuan <kaiyuan.tang@samsung.com>
common/tct-application-tizen-tests/application/Application_addEventListener_bt_state.html [new file with mode: 0755]
common/tct-application-tizen-tests/application/Application_addEventListener_gps_enable_state.html [new file with mode: 0755]
common/tct-application-tizen-tests/application/Application_addEventListener_location_enable_state.html [new file with mode: 0755]
common/tct-application-tizen-tests/application/Application_addEventListener_screen_autorotate_state.html [new file with mode: 0755]
common/tct-application-tizen-tests/application/Application_addEventListener_silent_mode.html [new file with mode: 0755]
common/tct-application-tizen-tests/application/Application_addEventListener_vibration_state.html [new file with mode: 0755]
common/tct-application-tizen-tests/application/Application_addEventListener_wifi_state.html [new file with mode: 0755]
common/tct-application-tizen-tests/tests.full.xml
common/tct-application-tizen-tests/tests.xml

diff --git a/common/tct-application-tizen-tests/application/Application_addEventListener_bt_state.html b/common/tct-application-tizen-tests/application/Application_addEventListener_bt_state.html
new file mode 100755 (executable)
index 0000000..58eb8ee
--- /dev/null
@@ -0,0 +1,64 @@
+<!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:
+        Wangxiao Chun <xiaochn.wang@samsung.com>
+
+-->
+<html>
+<head>
+<title>Application_addEventListener_bt_state</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/app_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: Application_addEventListener_bt_state
+//==== LABEL Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when bt_state changed
+//==== ONLOAD_DELAY 90
+//==== SPEC Tizen Web API:TBD:Application:Application:addEventListener M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR CBOA CBT
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), app, eventCallback, listenerId;
+
+setup_launch(t, APP_BROAD_TEST_APP_ID, function () {
+    eventCallback = t.step_func(function (event, data) {
+        assert_type(event, "object", "event isn't an object");
+        assert_type(data, "object", "data isn't an object");
+        assert_own_property(event, "name", "EventInfo does not own name property.");
+        assert_equals(event.name, "BT_STATE", "event name isn't correct");
+        app.removeEventListener(listenerId);
+        t.done();
+    });
+
+    app = tizen.application.getCurrentApplication();
+    try {
+        listenerId = app.addEventListener({"name": "bt_state"}, eventCallback);
+        assert_type(listenerId, "number", "addEventListener returns wrong value");
+    } catch (e) {
+        assert_unreached(e.name + ": " + e.message);
+    }
+});
+
+</script>
+</body>
+</html>
diff --git a/common/tct-application-tizen-tests/application/Application_addEventListener_gps_enable_state.html b/common/tct-application-tizen-tests/application/Application_addEventListener_gps_enable_state.html
new file mode 100755 (executable)
index 0000000..1bfe507
--- /dev/null
@@ -0,0 +1,64 @@
+<!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:
+        Wangxiao Chun <xiaochn.wang@samsung.com>
+
+-->
+<html>
+<head>
+<title>Application_addEventListener_gps_enable_state</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/app_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: Application_addEventListener_gps_enable_state
+//==== LABEL Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when gps_enable_state changed
+//==== ONLOAD_DELAY 90
+//==== SPEC Tizen Web API:TBD:Application:Application:addEventListener M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR CBOA CBT
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), app, eventCallback, listenerId;
+
+setup_launch(t, APP_BROAD_TEST_APP_ID, function () {
+    eventCallback = t.step_func(function (event, data) {
+        assert_type(event, "object", "event isn't an object");
+        assert_type(data, "object", "data isn't an object");
+        assert_own_property(event, "name", "EventInfo does not own name property.");
+        assert_equals(event.name, "GPS_ENABLE_STATE", "event name isn't correct");
+        app.removeEventListener(listenerId);
+        t.done();
+    });
+
+    app = tizen.application.getCurrentApplication();
+    try {
+        listenerId = app.addEventListener({"name": "gps_enable_state"}, eventCallback);
+        assert_type(listenerId, "number", "addEventListener returns wrong value");
+    } catch (e) {
+        assert_unreached(e.name + ": " + e.message);
+    }
+});
+
+</script>
+</body>
+</html>
diff --git a/common/tct-application-tizen-tests/application/Application_addEventListener_location_enable_state.html b/common/tct-application-tizen-tests/application/Application_addEventListener_location_enable_state.html
new file mode 100755 (executable)
index 0000000..9fa3a95
--- /dev/null
@@ -0,0 +1,64 @@
+<!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:
+        Wangxiao Chun <xiaochn.wang@samsung.com>
+
+-->
+<html>
+<head>
+<title>Application_addEventListener_location_enable_state</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/app_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: Application_addEventListener_location_enable_state
+//==== LABEL Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when location_enable_state changed
+//==== ONLOAD_DELAY 90
+//==== SPEC Tizen Web API:TBD:Application:Application:addEventListener M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR CBOA CBT
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), app, eventCallback, listenerId;
+
+setup_launch(t, APP_BROAD_TEST_APP_ID, function () {
+    eventCallback = t.step_func(function (event, data) {
+        assert_type(event, "object", "event isn't an object");
+        assert_type(data, "object", "data isn't an object");
+        assert_own_property(event, "name", "EventInfo does not own name property.");
+        assert_equals(event.name, "LOCATION_ENABLE_STATE", "event name isn't correct");
+        app.removeEventListener(listenerId);
+        t.done();
+    });
+
+    app = tizen.application.getCurrentApplication();
+    try {
+        listenerId = app.addEventListener({"name": "location_enable_state"}, eventCallback);
+        assert_type(listenerId, "number", "addEventListener returns wrong value");
+    } catch (e) {
+        assert_unreached(e.name + ": " + e.message);
+    }
+});
+
+</script>
+</body>
+</html>
diff --git a/common/tct-application-tizen-tests/application/Application_addEventListener_screen_autorotate_state.html b/common/tct-application-tizen-tests/application/Application_addEventListener_screen_autorotate_state.html
new file mode 100755 (executable)
index 0000000..7493e95
--- /dev/null
@@ -0,0 +1,64 @@
+<!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:
+        Wangxiao Chun <xiaochn.wang@samsung.com>
+
+-->
+<html>
+<head>
+<title>Application_addEventListener_screen_autorotate_state</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/app_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: Application_addEventListener_screen_autorotate_state
+//==== LABEL Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when screen_autorotate_state changed
+//==== ONLOAD_DELAY 90
+//==== SPEC Tizen Web API:TBD:Application:Application:addEventListener M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR CBOA CBT
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), app, eventCallback, listenerId;
+
+setup_launch(t, APP_BROAD_TEST_APP_ID, function () {
+    eventCallback = t.step_func(function (event, data) {
+        assert_type(event, "object", "event isn't an object");
+        assert_type(data, "object", "data isn't an object");
+        assert_own_property(event, "name", "EventInfo does not own name property.");
+        assert_equals(event.name, "SCREEN_AUTOROTATE_STATE", "event name isn't correct");
+        app.removeEventListener(listenerId);
+        t.done();
+    });
+
+    app = tizen.application.getCurrentApplication();
+    try {
+        listenerId = app.addEventListener({"name": "screen_autorotate_state"}, eventCallback);
+        assert_type(listenerId, "number", "addEventListener returns wrong value");
+    } catch (e) {
+        assert_unreached(e.name + ": " + e.message);
+    }
+});
+
+</script>
+</body>
+</html>
diff --git a/common/tct-application-tizen-tests/application/Application_addEventListener_silent_mode.html b/common/tct-application-tizen-tests/application/Application_addEventListener_silent_mode.html
new file mode 100755 (executable)
index 0000000..c9e8a7e
--- /dev/null
@@ -0,0 +1,64 @@
+<!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:
+        Wangxiao Chun <xiaochn.wang@samsung.com>
+
+-->
+<html>
+<head>
+<title>Application_addEventListener_silent_mode</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/app_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: Application_addEventListener_silent_mode
+//==== LABEL Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when silent_mode changed
+//==== ONLOAD_DELAY 90
+//==== SPEC Tizen Web API:TBD:Application:Application:addEventListener M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR CBOA CBT
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), app, eventCallback, listenerId;
+
+setup_launch(t, APP_BROAD_TEST_APP_ID, function () {
+    eventCallback = t.step_func(function (event, data) {
+        assert_type(event, "object", "event isn't an object");
+        assert_type(data, "object", "data isn't an object");
+        assert_own_property(event, "name", "EventInfo does not own name property.");
+        assert_equals(event.name, "SILENT_MODE", "event name isn't correct");
+        app.removeEventListener(listenerId);
+        t.done();
+    });
+
+    app = tizen.application.getCurrentApplication();
+    try {
+        listenerId = app.addEventListener({"name": "silent_mode"}, eventCallback);
+        assert_type(listenerId, "number", "addEventListener returns wrong value");
+    } catch (e) {
+        assert_unreached(e.name + ": " + e.message);
+    }
+});
+
+</script>
+</body>
+</html>
diff --git a/common/tct-application-tizen-tests/application/Application_addEventListener_vibration_state.html b/common/tct-application-tizen-tests/application/Application_addEventListener_vibration_state.html
new file mode 100755 (executable)
index 0000000..a0c1b46
--- /dev/null
@@ -0,0 +1,64 @@
+<!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:
+        Wangxiao Chun <xiaochn.wang@samsung.com>
+
+-->
+<html>
+<head>
+<title>Application_addEventListener_vibration_state</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/app_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: Application_addEventListener_vibration_state
+//==== LABEL Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when vibration_state changed
+//==== ONLOAD_DELAY 90
+//==== SPEC Tizen Web API:TBD:Application:Application:addEventListener M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR CBOA CBT
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), app, eventCallback, listenerId;
+
+setup_launch(t, APP_BROAD_TEST_APP_ID, function () {
+    eventCallback = t.step_func(function (event, data) {
+        assert_type(event, "object", "event isn't an object");
+        assert_type(data, "object", "data isn't an object");
+        assert_own_property(event, "name", "EventInfo does not own name property.");
+        assert_equals(event.name, "VIBRATION_STATE", "event name isn't correct");
+        app.removeEventListener(listenerId);
+        t.done();
+    });
+
+    app = tizen.application.getCurrentApplication();
+    try {
+        listenerId = app.addEventListener({"name": "vibration_state"}, eventCallback);
+        assert_type(listenerId, "number", "addEventListener returns wrong value");
+    } catch (e) {
+        assert_unreached(e.name + ": " + e.message);
+    }
+});
+
+</script>
+</body>
+</html>
diff --git a/common/tct-application-tizen-tests/application/Application_addEventListener_wifi_state.html b/common/tct-application-tizen-tests/application/Application_addEventListener_wifi_state.html
new file mode 100755 (executable)
index 0000000..5f54c35
--- /dev/null
@@ -0,0 +1,64 @@
+<!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:
+        Wangxiao Chun <xiaochn.wang@samsung.com>
+
+-->
+<html>
+<head>
+<title>Application_addEventListener_wifi_state</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/app_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: Application_addEventListener_wifi_state
+//==== LABEL Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when wifi_state changed
+//==== ONLOAD_DELAY 90
+//==== SPEC Tizen Web API:TBD:Application:Application:addEventListener M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR CBOA CBT
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), app, eventCallback, listenerId;
+
+setup_launch(t, APP_BROAD_TEST_APP_ID, function () {
+    eventCallback = t.step_func(function (event, data) {
+        assert_type(event, "object", "event isn't an object");
+        assert_type(data, "object", "data isn't an object");
+        assert_own_property(event, "name", "EventInfo does not own name property.");
+        assert_equals(event.name, "WIFI_STATE", "event name isn't correct");
+        app.removeEventListener(listenerId);
+        t.done();
+    });
+
+    app = tizen.application.getCurrentApplication();
+    try {
+        listenerId = app.addEventListener({"name": "wifi_state"}, eventCallback);
+        assert_type(listenerId, "number", "addEventListener returns wrong value");
+    } catch (e) {
+        assert_unreached(e.name + ": " + e.message);
+    }
+});
+
+</script>
+</body>
+</html>
index a5e66a6cc59ee742123350fc4c0ef0dfb39de14e..bcaee3c06a2e680a1d238217398b8917b54ddf03 100755 (executable)
           </spec>
         </specs>
       </testcase>
-            <testcase purpose="Check using addAppStatusChangeListener method (installation process) in ApplicationManager interface" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_addAppStatusChangeListener">
+      <testcase purpose="Check using addAppStatusChangeListener method (installation process) in ApplicationManager interface" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_addAppStatusChangeListener">
         <description>
           <steps>
             <step order="1">
       <capabilities>
         <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
       </capabilities>
+      <testcase purpose="Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when wifi_state changed" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="manual" priority="P1" id="Application_addEventListener_wifi_state">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="2">
+              <step_desc>Turn on/off wifi.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/Application_addEventListener_wifi_state.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Application" element_type="method" element_name="addEventListener" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when bt_state changed" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="manual" priority="P1" id="Application_addEventListener_bt_state">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="2">
+              <step_desc>Turn off bluetooth.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/Application_addEventListener_bt_state.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Application" element_type="method" element_name="addEventListener" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when gps_enable_state changed" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="manual" priority="P1" id="Application_addEventListener_gps_enable_state">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="2">
+              <step_desc>Turn on/off location.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/Application_addEventListener_gps_enable_state.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Application" element_type="method" element_name="addEventListener" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when location_enable_state changed" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="manual" priority="P1" id="Application_addEventListener_location_enable_state">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="2">
+              <step_desc>Turn on/off location.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/Application_addEventListener_location_enable_state.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Application" element_type="method" element_name="addEventListener" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when silent_mode changed" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="manual" priority="P1" id="Application_addEventListener_silent_mode">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="2">
+              <step_desc>Turn on/off silent mode.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/Application_addEventListener_silent_mode.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Application" element_type="method" element_name="addEventListener" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when vibration_state changed" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="manual" priority="P1" id="Application_addEventListener_vibration_state">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="2">
+              <step_desc>Turn on/off vibration mode.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/Application_addEventListener_vibration_state.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Application" element_type="method" element_name="addEventListener" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when screen_autorotate_state changed" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="manual" priority="P1" id="Application_addEventListener_screen_autorotate_state">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="2">
+              <step_desc>Turn on/off screen auto rotation.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/Application_addEventListener_screen_autorotate_state.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Application" element_type="method" element_name="addEventListener" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
       <testcase purpose="Check attribute ApplicationControl::launchMode existence and type" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="auto" priority="P1" id="ApplicationControl_launchMode_attribute">
         <description>
           <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationControl_launchMode_attribute.html</test_script_entry>
index 82e03a84e04838890f7da73ba4ec89ffc8f3ef0c..c5ae1d6f15acd1a0f2114f34b716ddcb42f34afc 100755 (executable)
       <capabilities>
         <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
       </capabilities>
+      <testcase component="TizenAPI/Application/Application" execution_type="manual" onload_delay="90" id="Application_addEventListener_wifi_state" priority="P1" purpose="Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when wifi_state changed">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="2">
+              <step_desc>Turn on/off wifi.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/Application_addEventListener_wifi_state.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="TizenAPI/Application/Application" execution_type="manual" onload_delay="90" id="Application_addEventListener_bt_state" priority="P1" purpose="Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when bt_state changed">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="2">
+              <step_desc>Turn off bluetooth.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/Application_addEventListener_bt_state.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="TizenAPI/Application/Application" execution_type="manual" onload_delay="90" id="Application_addEventListener_gps_enable_state" priority="P1" purpose="Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when gps_enable_state changed">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="2">
+              <step_desc>Turn on/off location.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/Application_addEventListener_gps_enable_state.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="TizenAPI/Application/Application" execution_type="manual" onload_delay="90" id="Application_addEventListener_location_enable_state" priority="P1" purpose="Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when location_enable_state changed">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="2">
+              <step_desc>Turn on/off location.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/Application_addEventListener_location_enable_state.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="TizenAPI/Application/Application" execution_type="manual" onload_delay="90" id="Application_addEventListener_silent_mode" priority="P1" purpose="Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when silent_mode changed">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="2">
+              <step_desc>Turn on/off silent mode.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/Application_addEventListener_silent_mode.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="TizenAPI/Application/Application" execution_type="manual" onload_delay="90" id="Application_addEventListener_vibration_state" priority="P1" purpose="Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when vibration_state changed">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="2">
+              <step_desc>Turn on/off vibration mode.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/Application_addEventListener_vibration_state.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="TizenAPI/Application/Application" execution_type="manual" onload_delay="90" id="Application_addEventListener_screen_autorotate_state" priority="P1" purpose="Check if method Application::addEventListener() successfully and EventCallback is called with proper arguments when screen_autorotate_state changed">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="2">
+              <step_desc>Turn on/off screen auto rotation.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/Application_addEventListener_screen_autorotate_state.html</test_script_entry>
+        </description>
+      </testcase>
       <testcase component="TizenAPI/Application/Application" execution_type="auto" id="ApplicationControl_launchMode_attribute" priority="P1" purpose="Check attribute ApplicationControl::launchMode existence and type">
         <description>
           <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationControl_launchMode_attribute.html</test_script_entry>