[mobile][deprecatedapi][TWDAPI-262, deprecate STRESS_MONITOR] 77/234577/4
authorqunfang.lin <qunfang.lin@samsung.com>
Wed, 27 May 2020 00:22:41 +0000 (08:22 +0800)
committerQunfang Lin <qunfang.lin@samsung.com>
Wed, 27 May 2020 08:35:22 +0000 (08:35 +0000)
add: 17 TCs, modify: 0 TC, delete: 0 TC

Change-Id: I062d9ae605e1476ec30d5ea4db1afbbe259d4d1f
Signed-off-by: qunfang.lin <qunfang.lin@samsung.com>
19 files changed:
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_listener_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_listener_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_misarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_ranges_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_removeStressMonitorChangeListener.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_removeStressMonitorChangeListener_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_removeStressMonitorChangeListener_invalid_id.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_start_type_STRESS_MONITOR.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_stop_type_STRESS_MONITOR.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityStressMonitorData_stressScore_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorCallback_notexist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorCallback_onsuccess.html [new file with mode: 0644]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorDataRange_constructor.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorDataRange_constructor_default.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorDataRange_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/tests.full.xml
mobile/tct-deprecatedapi-tizen-tests/tests.xml

diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener.html
new file mode 100755 (executable)
index 0000000..96b9add
--- /dev/null
@@ -0,0 +1,61 @@
+<!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>
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..d96b543
--- /dev/null
@@ -0,0 +1,43 @@
+<!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>
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_listener_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_listener_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..7f8ffaa
--- /dev/null
@@ -0,0 +1,58 @@
+<!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>
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_listener_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_listener_invalid_cb.html
new file mode 100755 (executable)
index 0000000..2bb001a
--- /dev/null
@@ -0,0 +1,58 @@
+<!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>
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_misarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_misarg.html
new file mode 100755 (executable)
index 0000000..f15848a
--- /dev/null
@@ -0,0 +1,45 @@
+<!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>
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_ranges_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_ranges_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..aa61f34
--- /dev/null
@@ -0,0 +1,57 @@
+<!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>
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_removeStressMonitorChangeListener.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_removeStressMonitorChangeListener.html
new file mode 100755 (executable)
index 0000000..63f76f2
--- /dev/null
@@ -0,0 +1,55 @@
+<!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>
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_removeStressMonitorChangeListener_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_removeStressMonitorChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..2e9d681
--- /dev/null
@@ -0,0 +1,43 @@
+<!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>
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_removeStressMonitorChangeListener_invalid_id.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_removeStressMonitorChangeListener_invalid_id.html
new file mode 100755 (executable)
index 0000000..578ee2a
--- /dev/null
@@ -0,0 +1,53 @@
+<!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>
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_start_type_STRESS_MONITOR.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_start_type_STRESS_MONITOR.html
new file mode 100755 (executable)
index 0000000..ffe82f9
--- /dev/null
@@ -0,0 +1,54 @@
+<!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>
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_stop_type_STRESS_MONITOR.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_stop_type_STRESS_MONITOR.html
new file mode 100755 (executable)
index 0000000..dd37906
--- /dev/null
@@ -0,0 +1,47 @@
+<!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>
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityStressMonitorData_stressScore_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityStressMonitorData_stressScore_attribute.html
new file mode 100755 (executable)
index 0000000..369a96f
--- /dev/null
@@ -0,0 +1,63 @@
+<!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>
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorCallback_notexist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorCallback_notexist.html
new file mode 100755 (executable)
index 0000000..02d703d
--- /dev/null
@@ -0,0 +1,43 @@
+<!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>
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorCallback_onsuccess.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorCallback_onsuccess.html
new file mode 100644 (file)
index 0000000..13534e1
--- /dev/null
@@ -0,0 +1,62 @@
+<!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>
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorDataRange_constructor.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorDataRange_constructor.html
new file mode 100755 (executable)
index 0000000..565345e
--- /dev/null
@@ -0,0 +1,49 @@
+<!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>
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorDataRange_constructor_default.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorDataRange_constructor_default.html
new file mode 100755 (executable)
index 0000000..07951c7
--- /dev/null
@@ -0,0 +1,49 @@
+<!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>
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorDataRange_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorDataRange_exist.html
new file mode 100755 (executable)
index 0000000..8989835
--- /dev/null
@@ -0,0 +1,43 @@
+<!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>
index c411c59e94e61b13975ee031556699fd1ee87c46..a80cd8b2f490fb466d1165adfe59a08735d4b6e4 100644 (file)
         </specs>
       </testcase>
     </set>
+    <set name="HumanActivityMonitor" type="js">
+      <capabilities>
+        <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" status="approved" type="compliance">
+        <description>
+          <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion category="Tizen Device API Specifications" element_name="addStressMonitorChangeListener" element_type="method" interface="HumanActivityMonitorManager" section="System" specification="HumanActivityMonitor" />
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/humanactivitymonitor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="manual" id="HumanActivityMonitorManager_addStressMonitorChangeListener" priority="P1" purpose="Check if method HumanActivityMonitorManager::addStressMonitorChangeListener() works properly" status="approved" type="compliance">
+        <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-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion category="Tizen Device API Specifications" element_name="addStressMonitorChangeListener" element_type="method" interface="HumanActivityMonitorManager" section="System" specification="HumanActivityMonitor" />
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/humanactivitymonitor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </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" status="approved" type="compliance">
+        <description>
+          <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_listener_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion category="Tizen Device API Specifications" element_name="addStressMonitorChangeListener" element_type="method" interface="HumanActivityMonitorManager" section="System" specification="HumanActivityMonitor" />
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/humanactivitymonitor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </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" status="approved" type="compliance">
+        <description>
+          <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_listener_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion category="Tizen Device API Specifications" element_name="addStressMonitorChangeListener" element_type="method" interface="HumanActivityMonitorManager" section="System" specification="HumanActivityMonitor" />
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/humanactivitymonitor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </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" status="approved" type="compliance">
+        <description>
+          <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_misarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion category="Tizen Device API Specifications" element_name="addStressMonitorChangeListener" element_type="method" interface="HumanActivityMonitorManager" section="System" specification="HumanActivityMonitor" />
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/humanactivitymonitor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </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" status="approved" type="compliance">
+        <description>
+          <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_addStressMonitorChangeListener_ranges_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion category="Tizen Device API Specifications" element_name="addStressMonitorChangeListener" element_type="method" interface="HumanActivityMonitorManager" section="System" specification="HumanActivityMonitor" />
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/humanactivitymonitor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_removeStressMonitorChangeListener_exist" priority="P0" purpose="Check if removeStressMonitorChangeListener exists" status="approved" type="compliance">
+        <description>
+          <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_removeStressMonitorChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion category="Tizen Device API Specifications" element_name="removeStressMonitorChangeListener" element_type="method" interface="HumanActivityMonitorManager" section="System" specification="HumanActivityMonitor" />
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/humanactivitymonitor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_removeStressMonitorChangeListener" priority="P1" purpose="Check if method HumanActivityMonitorManager::removeStressMonitorChangeListener() works properly" status="approved" type="compliance">
+        <description>
+          <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_removeStressMonitorChangeListener.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion category="Tizen Device API Specifications" element_name="removeStressMonitorChangeListener" element_type="method" interface="HumanActivityMonitorManager" section="System" specification="HumanActivityMonitor" />
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/humanactivitymonitor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </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" status="approved" type="compliance">
+        <description>
+          <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_removeStressMonitorChangeListener_invalid_id.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion category="Tizen Device API Specifications" element_name="removeStressMonitorChangeListener" element_type="method" interface="HumanActivityMonitorManager" section="System" specification="HumanActivityMonitor" />
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/humanactivitymonitor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </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" status="approved" type="compliance">
+        <description>
+          <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_start_type_STRESS_MONITOR.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion category="Tizen Device API Specifications" element_name="start" element_type="method" interface="HumanActivityMonitorManager" section="System" specification="HumanActivityMonitor" />
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/humanactivitymonitor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </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" status="approved" type="compliance">
+        <description>
+          <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityMonitorManager_stop_type_STRESS_MONITOR.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion category="Tizen Device API Specifications" element_name="stop" element_type="method" interface="HumanActivityMonitorManager" section="System" specification="HumanActivityMonitor" />
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/humanactivitymonitor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </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" status="approved" type="compliance">
+        <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-deprecatedapi-tizen-tests/deprecatedapi/HumanActivityStressMonitorData_stressScore_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion category="Tizen Device API Specifications" element_type="attribute" element_name="stressScore" interface="HumanActivityMonitorManager" section="System" specification="HumanActivityMonitor" />
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/humanactivitymonitor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="StressMonitorCallback_notexist" priority="P3" purpose="Check if StressMonitorCallback does not exist" status="approved" type="compliance">
+        <description>
+          <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion category="Tizen Device API Specifications" element_name="remove" element_type="method" interface="HumanActivityMonitorManager" section="System" specification="HumanActivityMonitor" />
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/humanactivitymonitor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </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" status="approved" type="compliance">
+        <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-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorCallback_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion category="Tizen Device API Specifications" element_name="onsuccess" element_type="method" interface="StressMonitorCallback" section="System" specification="HumanActivityMonitor" />
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/humanactivitymonitor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="StressMonitorDataRange_exist" priority="P0" purpose="Check if StressMonitorDataRange exists" status="approved" type="compliance">
+        <description>
+          <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorDataRange_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion category="Tizen Device API Specifications" element_name="StressMonitorDataRange" element_type="method" interface="StressMonitorCallback" section="System" specification="HumanActivityMonitor" />
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/humanactivitymonitor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="StressMonitorDataRange_constructor" priority="P1" purpose="Check various arguments for StressMonitorDataRange() constructor" status="approved" type="compliance">
+        <description>
+          <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorDataRange_constructor.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion category="Tizen Device API Specifications" element_name="constructor" element_type="constructor" interface="StressMonitorDataRange" section="System" specification="HumanActivityMonitor" />
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/humanactivitymonitor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="StressMonitorDataRange_constructor_default" priority="P1" purpose="Check default value for StressMonitorDataRange() constructor" status="approved" type="compliance">
+        <description>
+          <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorDataRange_constructor_default.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion category="Tizen Device API Specifications" element_name="constructor" element_type="constructor" interface="StressMonitorDataRange" section="System" specification="HumanActivityMonitor" />
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/humanactivitymonitor.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
   </suite>
 </test_definition>
index c450d7995402340143bdba30813dc21f0d6a0300..1d9c0ab500aa49f4583c1ba2ed4feb80a6b18761 100644 (file)
         </description>
       </testcase>
     </set>
+    <set name="HumanActivityMonitor" type="js">
+      <capabilities>
+        <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-deprecatedapi-tizen-tests/deprecatedapi/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-deprecatedapi-tizen-tests/deprecatedapi/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-deprecatedapi-tizen-tests/deprecatedapi/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-deprecatedapi-tizen-tests/deprecatedapi/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-deprecatedapi-tizen-tests/deprecatedapi/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-deprecatedapi-tizen-tests/deprecatedapi/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-deprecatedapi-tizen-tests/deprecatedapi/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-deprecatedapi-tizen-tests/deprecatedapi/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-deprecatedapi-tizen-tests/deprecatedapi/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-deprecatedapi-tizen-tests/deprecatedapi/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-deprecatedapi-tizen-tests/deprecatedapi/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-deprecatedapi-tizen-tests/deprecatedapi/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-deprecatedapi-tizen-tests/deprecatedapi/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-deprecatedapi-tizen-tests/deprecatedapi/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-deprecatedapi-tizen-tests/deprecatedapi/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-deprecatedapi-tizen-tests/deprecatedapi/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-deprecatedapi-tizen-tests/deprecatedapi/StressMonitorDataRange_constructor_default.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
   </suite>
 </test_definition>