<feature name="http://tizen.org/feature/location.batch"/>
<feature name="http://tizen.org/feature/sensor.activity_recognition"/>
<feature name="http://tizen.org/feature/sensor.sleep_monitor"/>
+ <feature name="http://tizen.org/feature/sensor.stress_monitor"/>
<feature name="http://tizen.org/feature/sensor.gesture_recognition"/>
<icon src="icon.png" height="117" width="117"/>
<tizen:application id="api1human0.WebAPItizenHumanTests" package="api1human0" required_version="5.0"/>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>HumanActivityMonitorManager_addStressMonitorChangeListener</title>
+<meta charset="utf-8"/>
+<meta name="timeout" content="long"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: HumanActivityMonitorManager_addStressMonitorChangeListener
+//==== LABEL Check if the method addStressMonitorChangeListener of HumanActivityMonitorManager returns proper value
+//==== SPEC Tizen Web API:Sensor:HumanActivityMonitor:HumanActivityMonitorManager:addStressMonitorChangeListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
+//==== STEP Click run, wait few minutes
+//==== EXPECT Pass should be shown in the page
+//==== TEST_CRITERIA MR
+
+var t = async_test(document.title), returnedId = null, listener, range, humanActivityType = "STRESS_MONITOR";
+
+t.step(function () {
+ add_result_callback(function () {
+ try{
+ tizen.humanactivitymonitor.removeStressMonitorChangeListener(returnedId);
+ }catch(e){}
+ });
+
+ listener = t.step_func(function (info) {
+ assert_type(returnedId, "number", "Should return number");
+ t.done();
+ });
+
+ range = [new tizen.StressMonitorDataRange()];
+ returnedId = tizen.humanactivitymonitor.addStressMonitorChangeListener(range, listener);
+ tizen.humanactivitymonitor.start(humanActivityType);
+});
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>HumanActivityMonitorManager_addStressMonitorChangeListener_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/humanactivitymonitor_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: HumanActivityMonitorManager_addStressMonitorChangeListener_exist
+//==== LABEL Check if the method addStressMonitorChangeListener of HumanActivityMonitorManager exist
+//==== SPEC Tizen Web API:HumanActivityMonitor:HumanActivityMonitorManager:addStressMonitorChangeListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+ check_method_exists(tizen.humanactivitymonitor, "addStressMonitorChangeListener");
+}, document.title);
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>HumanActivityMonitorManager_addStressMonitorChangeListener_listener_TypeMismatch</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: HumanActivityMonitorManager_addStressMonitorChangeListener_listener_TypeMismatch
+//==== LABEL Check if HumanActivityMonitorManager::addStressMonitorChangeListener() with incorrect listener argument throws exception
+//==== PRIORITY P2
+//==== ONLOAD_DELAY 30
+//==== SPEC Tizen Web API:Sensor:HumanActivityMonitor:HumanActivityMonitorManager:addStressMonitorChangeListener M
+//==== SPEC_URL TBD
+//==== TTEST_CRITERIA MC
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), range,
+ conversionTable, listener, exceptionName, i;
+
+t.step(function () {
+ range = [new tizen.StressMonitorDataRange()];
+ conversionTable = getTypeConversionExceptions("functionObject", false);
+ for (i = 0; i < conversionTable.length; i++) {
+ listener = conversionTable[i][0];
+ exceptionName = conversionTable[i][1];
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+ tizen.humanactivitymonitor.addStressMonitorChangeListener(range, listener);
+ }, "TypeMismatchError should be thrown");
+ }
+ t.done();
+});
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>HumanActivityMonitorManager_addStressMonitorChangeListener_listener_invalid_cb</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: HumanActivityMonitorManager_addStressMonitorChangeListener_listener_invalid_cb
+//==== LABEL Check if HumanActivityMonitorManager::addStressMonitorChangeListener() method throws exception when listener is invalid
+//==== PRIORITY: P2
+//==== SPEC Tizen Web API:Sensor:HumanActivityMonitor:HumanActivityMonitorManager:addStressMonitorChangeListener M
+//==== SPEC_URL TBD
+//==== ONLOAD_DELAY 30
+//==== TEST_CRITERIA MTCB
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), range, invalidCallback;
+
+t.step(function () {
+ range = [new tizen.StressMonitorDataRange()];
+ invalidCallback = {
+ onsuccess: t.step_func(function (data) {
+ assert_unreached("addStressMonitorChangeListener() listener should not invoked");
+ })
+ };
+
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+ tizen.humanactivitymonitor.addStressMonitorChangeListener(range, invalidCallback);
+ }, "TypeMismatchError should be thrown");
+ t.done();
+});
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>HumanActivityMonitorManager_addStressMonitorChangeListener_misarg</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/humanactivitymonitor_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: HumanActivityMonitorManager_addStressMonitorChangeListener_misarg
+//==== LABEL Check if the method addStressMonitorChangeListener of HumanActivityMonitorManager throws TypeMismatchError when no param assigned
+//==== SPEC Tizen Web API:HumanActivityMonitor:HumanActivityMonitorManager:addStressMonitorChangeListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MMA
+
+test(function () {
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+ tizen.humanactivitymonitor.addStressMonitorChangeListener();
+ }, "TypeMismatchError should be thrown when no argument assigned");
+}, document.title);
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>HumanActivityMonitorManager_addStressMonitorChangeListener_ranges_TypeMismatch</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: HumanActivityMonitorManager_addStressMonitorChangeListener_ranges_TypeMismatch
+//==== LABEL Check if HumanActivityMonitorManager::addStressMonitorChangeListener() with incorrect ranges argument throws exception
+//==== PRIORITY P2
+//==== ONLOAD_DELAY 30
+//==== SPEC Tizen Web API:Sensor:HumanActivityMonitor:HumanActivityMonitorManager:addStressMonitorChangeListener M
+//==== SPEC_URL TBD
+//==== TTEST_CRITERIA MC
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), ranges,
+ conversionTable, exceptionName, i;
+
+t.step(function () {
+ conversionTable = getTypeConversionExceptions("object", false);
+ for (i = 0; i < conversionTable.length; i++) {
+ ranges = conversionTable[i][0];
+ exceptionName = conversionTable[i][1];
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+ tizen.humanactivitymonitor.addStressMonitorChangeListener(ranges, function(){});
+ }, "TypeMismatchError should be thrown");
+ }
+ t.done();
+});
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>HumanActivityMonitorManager_removeStressMonitorChangeListener</title>
+<meta charset="utf-8"/>
+<meta name="timeout" content="long"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: HumanActivityMonitorManager_removeStressMonitorChangeListener
+//==== LABEL Check if the method removeStressMonitorChangeListener of HumanActivityMonitorManager returns proper value
+//==== SPEC Tizen Web API:Sensor:HumanActivityMonitor:HumanActivityMonitorManager:removeStressMonitorChangeListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR
+
+var t = async_test(document.title), returnedId = null, returnedValue = undefined, listener, range, humanActivityType = "STRESS_MONITOR";
+
+t.step(function () {
+ listener = t.step_func(function (info) {
+ });
+
+ range = [new tizen.StressMonitorDataRange()];
+
+ tizen.humanactivitymonitor.start(humanActivityType);
+ returnedId = tizen.humanactivitymonitor.addStressMonitorChangeListener(range, listener);
+
+ returnedValue = tizen.humanactivitymonitor.removeStressMonitorChangeListener(returnedId);
+ assert_equals(returnedValue, undefined, "Should return nothing");
+ t.done();
+});
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>HumanActivityMonitorManager_removeStressMonitorChangeListener_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/humanactivitymonitor_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: HumanActivityMonitorManager_removeStressMonitorChangeListener_exist
+//==== LABEL Check if the method removeStressMonitorChangeListener of HumanActivityMonitorManager exist
+//==== SPEC Tizen Web API:HumanActivityMonitor:HumanActivityMonitorManager:removeStressMonitorChangeListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+ check_method_exists(tizen.humanactivitymonitor, "removeStressMonitorChangeListener");
+}, document.title);
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>HumanActivityMonitorManager_removeStressMonitorChangeListener_invalid_id</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/humanactivitymonitor_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: HumanActivityMonitorManager_removeStressMonitorChangeListener_invalid_id
+//==== LABEL Check if the method removeStressMonitorChangeListener of HumanActivityMonitorManager ignores invalid id
+//==== SPEC Tizen Web API:HumanActivityMonitor:HumanActivityMonitorManager:removeStressMonitorChangeListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+//==== ONLOAD_DELAY 3
+
+setup({"timeout": 3000});
+
+var t = async_test(document.title, {"timeout": 3000}), invalidId = 10000;
+
+t.step(function () {
+ try {
+ tizen.humanactivitymonitor.removeStressMonitorChangeListener(invalidId);
+ setTimeout(function () {t.done();}, 2000);
+ } catch (error) {
+ assert_unreached("Should not throw any error, but threw " + error.name);
+ }
+});
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>HumanActivityMonitorManager_start_type_SLEEP_DETECTOR</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/humanactivitymonitor_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: HumanActivityMonitorManager_start_type_SLEEP_DETECTOR
+//==== LABEL Check if method HumanActivityMonitorManager::start() works properly for SLEEP_DETECTOR HumanActivity type
+//==== PRIORITY P1
+//==== SPEC Tizen Web API:System:HumanActivityMonitor:HumanActivityMonitorManager:start M
+//==== SPEC_URL TBD
+//==== TEST_CRITERIA MR MMINA
+
+test(function () {
+ var returnedValue = null, humanActivityType = "SLEEP_DETECTOR";
+ try {
+ returnedValue = tizen.humanactivitymonitor.start(humanActivityType);
+ assert_equals(returnedValue, undefined, "Incorrect returned value from start method");
+ tizen.humanactivitymonitor.stop(humanActivityType);
+ } catch (e) {
+ if(e.name === "NotSupportedError") {
+ } else {
+ assert_unreached("unexpected exception is thrown" + e.name + ", msg: " + e.message);
+ }
+ }
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>HumanActivityMonitorManager_start_type_STRESS_MONITOR</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/humanactivitymonitor_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: HumanActivityMonitorManager_start_type_STRESS_MONITOR
+//==== LABEL Check if method HumanActivityMonitorManager::start() works properly for STRESS_MONITOR HumanActivity type
+//==== PRIORITY P1
+//==== SPEC Tizen Web API:System:HumanActivityMonitor:HumanActivityMonitorManager:start M
+//==== SPEC_URL TBD
+//==== TEST_CRITERIA MR MMINA
+
+test(function () {
+ var returnedValue = null, humanActivityType = "STRESS_MONITOR";
+ try {
+ returnedValue = tizen.humanactivitymonitor.start(humanActivityType);
+ assert_equals(returnedValue, undefined, "Incorrect returned value from start method");
+ tizen.humanactivitymonitor.stop(humanActivityType);
+ } catch (e) {
+ if(e.name === "NotSupportedError") {
+ } else {
+ assert_unreached("unexpected exception is thrown" + e.name + ", msg: " + e.message);
+ }
+ }
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>HumanActivityMonitorManager_stop_type_SLEEP_DETECTOR</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: HumanActivityMonitorManager_stop_type_SLEEP_DETECTOR
+//==== LABEL Check if HumanActivityMonitorManager::stop() method works properly for HumanActivity type SLEEP_DETECTOR
+//==== SPEC Tizen Web API:System:HumanActivityMonitor:HumanActivityMonitorManager:stop M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR
+
+test(function () {
+ var returnedValue, humanActivityType = "SLEEP_DETECTOR";
+ returnedValue = tizen.humanactivitymonitor.start(humanActivityType);
+ assert_equals(returnedValue, undefined, "Incorrect returned value from start method");
+ returnedValue = null;
+ returnedValue = tizen.humanactivitymonitor.stop(humanActivityType);
+ assert_equals(returnedValue, undefined, "Incorrect returned value from stop method");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+-->
+<html>
+<head>
+<title>HumanActivityMonitorManager_stop_type_STRESS_MONITOR</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: HumanActivityMonitorManager_stop_type_STRESS_MONITOR
+//==== LABEL Check if HumanActivityMonitorManager::stop() method works properly for HumanActivity type STRESS_MONITOR
+//==== SPEC Tizen Web API:System:HumanActivityMonitor:HumanActivityMonitorManager:stop M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR
+
+test(function () {
+ var returnedValue, humanActivityType = "STRESS_MONITOR";
+ returnedValue = tizen.humanactivitymonitor.start(humanActivityType);
+ assert_equals(returnedValue, undefined, "Incorrect returned value from start method");
+ returnedValue = null;
+ returnedValue = tizen.humanactivitymonitor.stop(humanActivityType);
+ assert_equals(returnedValue, undefined, "Incorrect returned value from stop method");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>HumanActivitySleepDetectorData_status_attribute</title>
+<meta charset="utf-8"/>
+<meta name="timeout" content="long"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: HumanActivitySleepDetectorData_status_attribute
+//==== LABEL Check if HumanActivitySleepDetectorData::status exists and is readonly
+//==== SPEC Tizen Web API:Sensor:HumanActivityMonitor:HumanActivitySleepDetectorData:status A
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
+//==== STEP Click run, wait about 20 minutes
+//==== EXPECT Pass should be shown in the page
+//==== TEST_CRITERIA AE AT ARO
+
+setup({timeout: 1300000});
+
+var t = async_test(document.title, {timeout: 1300000}), getHumanActivityDataSuccess, getHumanActivityDataError, humanActivityType = "SLEEP_DETECTOR";
+
+t.step(function () {
+ add_result_callback(function () {
+ tizen.humanactivitymonitor.stop(humanActivityType);
+ });
+
+ getHumanActivityDataError = t.step_func(function (error) {
+ assert_unreached("getHumanActivityDataError is called" + error.name);
+ });
+
+ getHumanActivityDataSuccess = t.step_func(function (slpInfo) {
+ check_readonly(slpInfo, "status", slpInfo.status, "string", "UNKNOWN");
+ t.done();
+ });
+
+ tizen.humanactivitymonitor.start(humanActivityType, getHumanActivityDataSuccess, getHumanActivityDataError);
+});
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>HumanActivityStressMonitorData_stressScore_attribute</title>
+<meta charset="utf-8"/>
+<meta name="timeout" content="long"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: HumanActivityStressMonitorData_stressScore_attribute
+//==== LABEL Check if HumanActivityStressMonitorData::stressScore exists and is readonly
+//==== SPEC Tizen Web API:Sensor:HumanActivityMonitor:HumanActivityStressMonitorData:stressScore A
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
+//==== STEP
+//==== EXPECT Pass should be shown in the page
+//==== TEST_CRITERIA AE AT ARO
+
+setup({timeout: 1300000});
+
+var t = async_test(document.title, {timeout: 1300000}), getHumanActivityDataSuccess, getHumanActivityDataError, humanActivityType = "STRESS_MONITOR";
+
+t.step(function () {
+ add_result_callback(function () {
+ tizen.humanactivitymonitor.stop(humanActivityType);
+ });
+
+ getHumanActivityDataError = t.step_func(function (error) {
+ assert_unreached("getHumanActivityDataError is called" + error.name);
+ });
+
+ getHumanActivityDataSuccess = t.step_func(function (stressInfo) {
+ check_readonly(stressInfo, "stressScore", stressInfo.stressScore, "number", 10);
+ t.done();
+ });
+
+ tizen.humanactivitymonitor.start(humanActivityType, getHumanActivityDataSuccess, getHumanActivityDataError);
+});
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>StressMonitorCallback_notexist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: StressMonitorCallback_notexist
+//==== LABEL Check if StressMonitorCallback does not exist
+//==== SPEC Tizen Web API:Sensor:HumanActivityMonitor:StressMonitorCallback U
+//==== SPEC_URL TBD
+//==== PRIORITY P3
+//==== TEST_CRITERIA CBNIO
+
+test(function () {
+ check_no_interface_object("StressMonitorCallback");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>StressMonitorCallback_onsuccess</title>
+<meta charset="utf-8"/>
+<meta name="timeout" content="long"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: StressMonitorCallback_onsuccess
+//==== LABEL Test whether StressMonitorCallback::onsuccess() is called with argument of proper type
+//==== SPEC Tizen Web API:Sensor:HumanActivityMonitor:StressMonitorCallback:onsuccess M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
+//==== STEP
+//==== EXPECT Pass should be shown in the page
+//==== TEST_CRITERIA CBT CBOA
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), watchID = null, listener, range, humanActivityType = "STRESS_MONITOR";
+
+t.step(function () {
+ add_result_callback(function () {
+ tizen.humanactivitymonitor.removeStressMonitorChangeListener(watchID);
+ });
+
+ range = [new tizen.StressMonitorDataRange()];
+
+ listener = t.step_func(function (label) {
+ assert_type(label, "string", "label is not string type");
+ t.done();
+ });
+
+ tizen.humanactivitymonitor.start(humanActivityType);
+ watchID = tizen.humanactivitymonitor.addStressMonitorChangeListener(range, listener);
+});
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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.
+
+Author:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>StressMonitorDataRange_constructor</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: StressMonitorDataRange_constructor
+//==== LABEL Check various arguments for StressMonitorDataRange() constructor
+//==== SPEC Tizen Web API:Sensor:HumanActivityMonitor:StressMonitorDataRange:constructor C
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA CONSTRA CONSTRM
+
+test(function () {
+ var range, label = "Normal", minValue = 10, maxValue = 15;
+ range = new tizen.StressMonitorDataRange(label, minValue, maxValue);
+
+ assert_true(range instanceof tizen.StressMonitorDataRange, "InstanceOf.");
+ assert_equals(range.label, label, "label passed as constructor parameter is different than label in the object.");
+ assert_equals(range.min, minValue, "minValue passed as constructor parameter is different than minValue in the object.");
+ assert_equals(range.max, maxValue, "maxValue passed as constructor parameter is different than maxValue in the object.");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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.
+
+Author:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>StressMonitorDataRange_constructor_default</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: StressMonitorDataRange_constructor_default
+//==== LABEL Check default value for StressMonitorDataRange() constructor
+//==== SPEC Tizen Web API:Sensor:HumanActivityMonitor:StressMonitorDataRange:constructor C
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA CONSTRA CONSTRM
+
+test(function () {
+ var range;
+ range = new tizen.StressMonitorDataRange();
+
+ assert_true(range instanceof tizen.StressMonitorDataRange, "InstanceOf.");
+ assert_equals(range.label, "", "Incorrect default value of lable.");
+ assert_equals(range.min, 0, "Incorrect default value of min.");
+ assert_equals(range.max, undefined, "Incorrect default value of max.");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2018 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.
+
+Author:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>StressMonitorDataRange_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: StressMonitorDataRange_exist
+//==== LABEL Check if StressMonitorDataRange exists
+//==== SPEC Tizen Web API:Sensor:HumanActivityMonitor:StressMonitorDataRange:constructor C
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA CONSTRF
+
+test(function () {
+ check_constructor("StressMonitorDataRange");
+}, document.title);
+
+</script>
+</body>
+</html>
</description>
</testcase>
</set>
+ <set name="HumanActivityMonitor_with_stress_monitor_mobile" type="js">
+ <capabilities>
+ <capability name="http://tizen.org/feature/profile"><value>MOBILE_FULL</value></capability>
+ <capability name="http://tizen.org/feature/sensor.stress_monitor"/>
+ </capabilities>
+ <testcase component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_addStressMonitorChangeListener_exist" priority="P0" purpose="Check if addStressMonitorChangeListener exists">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_addStressMonitorChangeListener_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="manual" id="HumanActivityMonitorManager_addStressMonitorChangeListener" priority="P1" purpose="Check if method HumanActivityMonitorManager::addStressMonitorChangeListener() works properly">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>Click run, wait a few minutes</step_desc>
+ <expected>Pass should be shown in the page</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_addStressMonitorChangeListener.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_addStressMonitorChangeListener_listener_invalid_cb" priority="P2" purpose="Check if HumanActivityMonitorManager::addStressMonitorChangeListener() method throws exception when listener is invalid">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_addStressMonitorChangeListener_listener_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_addStressMonitorChangeListener_listener_TypeMismatch" priority="P2" purpose="Check if HumanActivityMonitorManager::addStressMonitorChangeListener() with incorrect listener argument throws exception">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_addStressMonitorChangeListener_listener_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_addStressMonitorChangeListener_misarg" priority="P2" purpose="Check if HumanActivityMonitorManager::addStressMonitorChangeListener() called with missing non-optional argument throws an exception">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_addStressMonitorChangeListener_misarg.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_addStressMonitorChangeListener_ranges_TypeMismatch" priority="P2" purpose="Check if HumanActivityMonitorManager::addStressMonitorChangeListener() with incorrect ranges argument throws exception">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_addStressMonitorChangeListener_ranges_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_removeStressMonitorChangeListener_exist" priority="P0" purpose="Check if removeStressMonitorChangeListener exists">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_removeStressMonitorChangeListener_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_removeStressMonitorChangeListener" priority="P1" purpose="Check if method HumanActivityMonitorManager::removeStressMonitorChangeListener() works properly">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_removeStressMonitorChangeListener.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_removeStressMonitorChangeListener_invalid_id" priority="P2" purpose="Check if HumanActivityMonitorManager::removeStressMonitorChangeListener() method throws exception when id is invalid">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_removeStressMonitorChangeListener_invalid_id.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_start_type_STRESS_MONITOR" priority="P1" purpose="Check if method HumanActivityMonitorManager::start() works properly for STRESS_MONITOR HumanActivity type">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_start_type_STRESS_MONITOR.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_stop_type_STRESS_MONITOR" priority="P1" purpose="Check if method HumanActivityMonitorManager::stop() works properly for STRESS_MONITOR HumanActivity type">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_stop_type_STRESS_MONITOR.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="manual" id="HumanActivityStressMonitorData_stressScore_attribute" priority="P1" purpose="Check if HumanActivityStressMonitorData::stressScore exists and is readonly">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>Click run, wait a few minutes</step_desc>
+ <expected>Pass should be shown in the page</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityStressMonitorData_stressScore_attribute.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="StressMonitorCallback_notexist" priority="P3" purpose="Check if StressMonitorCallback does not exist">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/StressMonitorCallback_notexist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="manual" id="StressMonitorCallback_onsuccess" priority="P1" purpose="Test whether StressMonitorCallback::onsuccess() is called with argument of proper type">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>Click Run button, wait a few minutes</step_desc>
+ <expected>Pass should be shown in the page</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/StressMonitorCallback_onsuccess.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="StressMonitorDataRange_exist" priority="P0" purpose="Check if StressMonitorDataRange exists">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/StressMonitorDataRange_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="StressMonitorDataRange_constructor" priority="P1" purpose="Check various arguments for StressMonitorDataRange() constructor">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/StressMonitorDataRange_constructor.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="StressMonitorDataRange_constructor_default" priority="P1" purpose="Check default value for StressMonitorDataRange() constructor">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/StressMonitorDataRange_constructor_default.html</test_script_entry>
+ </description>
+ </testcase>
+ </set>
+ <set name="HumanActivityMonitor_with_sleep_detector_mobile" type="js">
+ <capabilities>
+ <capability name="http://tizen.org/feature/profile"><value>MOBILE_FULL</value></capability>
+ <capability name="http://tizen.org/feature/sensor.sleep_monitor"/>
+ </capabilities>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_start_type_SLEEP_DETECTOR" priority="P1" purpose="Check if method HumanActivityMonitorManager::start() works properly for SLEEP_DETECTOR HumanActivity type">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_start_type_SLEEP_DETECTOR.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_stop_type_SLEEP_DETECTOR" priority="P1" purpose="Check if method HumanActivityMonitorManager::stop() works properly for SLEEP_DETECTOR HumanActivity type">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_stop_type_SLEEP_DETECTOR.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="manual" id="HumanActivitySleepDetectorData_status_attribute" priority="P1" purpose="Check if HumanActivitySleepDetectorData::status attribute exists and is readonly">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>Click run, wait 20 minutes</step_desc>
+ <expected>Pass should be shown in the page</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivitySleepDetectorData_status_attribute.html</test_script_entry>
+ </description>
+ </testcase>
+ </set>
<set name="HumanActivityMonitor_wearable" type="js">
<capabilities>
<capability name="http://tizen.org/feature/profile"><value>WEARABLE</value></capability>
</description>
</testcase>
</set>
+ <set name="HumanActivityMonitor_with_stress_monitor_wearable" type="js">
+ <capabilities>
+ <capability name="http://tizen.org/feature/profile"><value>WEARABLE</value></capability>
+ <capability name="http://tizen.org/feature/sensor.stress_monitor"/>
+ </capabilities>
+ <testcase component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_addStressMonitorChangeListener_exist" priority="P0" purpose="Check if addStressMonitorChangeListener exists">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_addStressMonitorChangeListener_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="manual" id="HumanActivityMonitorManager_addStressMonitorChangeListener" priority="P1" purpose="Check if method HumanActivityMonitorManager::addStressMonitorChangeListener() works properly">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>Click run, wait a few minutes</step_desc>
+ <expected>Pass should be shown in the page</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_addStressMonitorChangeListener.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_addStressMonitorChangeListener_listener_invalid_cb" priority="P2" purpose="Check if HumanActivityMonitorManager::addStressMonitorChangeListener() method throws exception when listener is invalid">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_addStressMonitorChangeListener_listener_invalid_cb.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_addStressMonitorChangeListener_listener_TypeMismatch" priority="P2" purpose="Check if HumanActivityMonitorManager::addStressMonitorChangeListener() with incorrect listener argument throws exception">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_addStressMonitorChangeListener_listener_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_addStressMonitorChangeListener_misarg" priority="P2" purpose="Check if HumanActivityMonitorManager::addStressMonitorChangeListener() called with missing non-optional argument throws an exception">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_addStressMonitorChangeListener_misarg.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_addStressMonitorChangeListener_ranges_TypeMismatch" priority="P2" purpose="Check if HumanActivityMonitorManager::addStressMonitorChangeListener() with incorrect ranges argument throws exception">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_addStressMonitorChangeListener_ranges_TypeMismatch.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_removeStressMonitorChangeListener_exist" priority="P0" purpose="Check if removeStressMonitorChangeListener exists">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_removeStressMonitorChangeListener_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_removeStressMonitorChangeListener" priority="P1" purpose="Check if method HumanActivityMonitorManager::removeStressMonitorChangeListener() works properly">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_removeStressMonitorChangeListener.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_removeStressMonitorChangeListener_invalid_id" priority="P2" purpose="Check if HumanActivityMonitorManager::removeStressMonitorChangeListener() method throws exception when id is invalid">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_removeStressMonitorChangeListener_invalid_id.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_start_type_STRESS_MONITOR" priority="P1" purpose="Check if method HumanActivityMonitorManager::start() works properly for STRESS_MONITOR HumanActivity type">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_start_type_STRESS_MONITOR.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_stop_type_STRESS_MONITOR" priority="P1" purpose="Check if method HumanActivityMonitorManager::stop() works properly for STRESS_MONITOR HumanActivity type">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_stop_type_STRESS_MONITOR.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="manual" id="HumanActivityStressMonitorData_stressScore_attribute" priority="P1" purpose="Check if HumanActivityStressMonitorData::stressScore exists and is readonly">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>Click run, wait a few minutes</step_desc>
+ <expected>Pass should be shown in the page</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityStressMonitorData_stressScore_attribute.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="StressMonitorCallback_notexist" priority="P3" purpose="Check if StressMonitorCallback does not exist">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/StressMonitorCallback_notexist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="manual" id="StressMonitorCallback_onsuccess" priority="P1" purpose="Test whether StressMonitorCallback::onsuccess() is called with argument of proper type">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>Click Run button, wait a few minutes</step_desc>
+ <expected>Pass should be shown in the page</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/StressMonitorCallback_onsuccess.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="StressMonitorDataRange_exist" priority="P0" purpose="Check if StressMonitorDataRange exists">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/StressMonitorDataRange_exist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="StressMonitorDataRange_constructor" priority="P1" purpose="Check various arguments for StressMonitorDataRange() constructor">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/StressMonitorDataRange_constructor.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="StressMonitorDataRange_constructor_default" priority="P1" purpose="Check default value for StressMonitorDataRange() constructor">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/StressMonitorDataRange_constructor_default.html</test_script_entry>
+ </description>
+ </testcase>
+ </set>
+ <set name="HumanActivityMonitor_with_sleep_detector_wearable" type="js">
+ <capabilities>
+ <capability name="http://tizen.org/feature/profile"><value>WEARABLE</value></capability>
+ <capability name="http://tizen.org/feature/sensor.sleep_monitor"/>
+ </capabilities>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_start_type_SLEEP_DETECTOR" priority="P1" purpose="Check if method HumanActivityMonitorManager::start() works properly for SLEEP_DETECTOR HumanActivity type">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_start_type_SLEEP_DETECTOR.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_stop_type_SLEEP_DETECTOR" priority="P1" purpose="Check if method HumanActivityMonitorManager::stop() works properly for SLEEP_DETECTOR HumanActivity type">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_stop_type_SLEEP_DETECTOR.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="manual" id="HumanActivitySleepDetectorData_status_attribute" priority="P1" purpose="Check if HumanActivitySleepDetectorData::status attribute exists and is readonly">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>Click run, wait 20 minutes</step_desc>
+ <expected>Pass should be shown in the page</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivitySleepDetectorData_status_attribute.html</test_script_entry>
+ </description>
+ </testcase>
+ </set>
</suite>
</test_definition>