<name>tct-humanactivitymonitor-tizen-tests</name>
<tizen:privilege name="http://tizen.org/privilege/healthinfo"/>
<tizen:privilege name="http://tizen.org/privilege/location"/>
+ <feature name="http://tizen.org/feature/sensor.barometer"/>
+ <feature name="http://tizen.org/feature/humanactivitymonitor"/>
+ <feature name="http://tizen.org/feature/sensor.heart_rate_monitor"/>
+ <feature name="http://tizen.org/feature/sensor.photometer"/>
+ <feature name="http://tizen.org/feature/sensor.wrist_up"/>
+ <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"/>
<icon src="icon.png" height="117" width="117"/>
<tizen:application id="api1human0.WebAPItizenHumanTests" package="api1human0" required_version="3.0"/>
<tizen:setting screen-orientation="landscape" />
assert_unreached("getHumanActivityDataError is called" + error.name);\r
});\r
\r
- getHumanActivityDataSuccess = t.step_func(function (gpsInfo) {\r
- check_readonly(gpsInfo, "altitude", gpsInfo.altitude, "double", gpsInfo.altitude + 10);\r
+ getHumanActivityDataSuccess = t.step_func(function (data) {\r
+ var gpsInfo = data.gpsInfo;\r
+ check_readonly(gpsInfo[0], "altitude", gpsInfo[0].altitude, "double", gpsInfo[0].altitude + 10);\r
t.done();\r
});\r
\r
- tizen.humanactivitymonitor.start(humanActivityType);\r
- tizen.humanactivitymonitor.getHumanActivityData(humanActivityType, getHumanActivityDataSuccess, getHumanActivityDataError);\r
+ tizen.humanactivitymonitor.start(humanActivityType, getHumanActivityDataSuccess, getHumanActivityDataError);\r
});\r
\r
</script>\r
assert_unreached("getHumanActivityDataError is called" + error.name);\r
});\r
\r
- getHumanActivityDataSuccess = t.step_func(function (gpsInfo) {\r
- check_readonly(gpsInfo, "errorRange", gpsInfo.errorRange, "long", gpsInfo.errorRange + 10);\r
+ getHumanActivityDataSuccess = t.step_func(function (data) {\r
+ var gpsInfo = data.gpsInfo;\r
+ check_readonly(gpsInfo[0], "errorRange", gpsInfo[0].errorRange, "long", gpsInfo[0].errorRange + 10);\r
t.done();\r
});\r
\r
- tizen.humanactivitymonitor.start(humanActivityType);\r
- tizen.humanactivitymonitor.getHumanActivityData(humanActivityType, getHumanActivityDataSuccess, getHumanActivityDataError);\r
+ tizen.humanactivitymonitor.start(humanActivityType, getHumanActivityDataSuccess, getHumanActivityDataError);\r
});\r
\r
</script>\r
assert_unreached("getHumanActivityDataError is called" + error.name);\r
});\r
\r
- getHumanActivityDataSuccess = t.step_func(function (gpsInfo) {\r
- check_readonly(gpsInfo, "latitude", gpsInfo.latitude, "double", gpsInfo.latitude + 10);\r
+ getHumanActivityDataSuccess = t.step_func(function (data) {\r
+ var gpsInfo = data.gpsInfo;\r
+ check_readonly(gpsInfo[0], "latitude", gpsInfo[0].latitude, "double", gpsInfo[0].latitude + 10);\r
t.done();\r
});\r
\r
- tizen.humanactivitymonitor.start(humanActivityType);\r
- tizen.humanactivitymonitor.getHumanActivityData(humanActivityType, getHumanActivityDataSuccess, getHumanActivityDataError);\r
+ tizen.humanactivitymonitor.start(humanActivityType, getHumanActivityDataSuccess, getHumanActivityDataError);\r
});\r
\r
</script>\r
assert_unreached("getHumanActivityDataError is called" + error.name);\r
});\r
\r
- getHumanActivityDataSuccess = t.step_func(function (gpsInfo) {\r
- check_readonly(gpsInfo, "longitude", gpsInfo.longitude, "double", gpsInfo.longitude + 10);\r
+ getHumanActivityDataSuccess = t.step_func(function (data) {\r
+ var gpsInfo = data.gpsInfo;\r
+ check_readonly(gpsInfo[0], "longitude", gpsInfo[0].longitude, "double", gpsInfo[0].longitude + 10);\r
t.done();\r
});\r
\r
- tizen.humanactivitymonitor.start(humanActivityType);\r
- tizen.humanactivitymonitor.getHumanActivityData(humanActivityType, getHumanActivityDataSuccess, getHumanActivityDataError);\r
+ tizen.humanactivitymonitor.start(humanActivityType, getHumanActivityDataSuccess, getHumanActivityDataError);\r
});\r
\r
</script>\r
assert_unreached("getHumanActivityDataError is called" + error.name);\r
});\r
\r
- getHumanActivityDataSuccess = t.step_func(function (gpsInfo) {\r
- check_readonly(gpsInfo, "speed", gpsInfo.speed, "double", gpsInfo.speed + 10);\r
+ getHumanActivityDataSuccess = t.step_func(function (data) {\r
+ var gpsInfo = data.gpsInfo;\r
+ check_readonly(gpsInfo[0], "speed", gpsInfo[0].speed, "double", gpsInfo[0].speed + 10);\r
t.done();\r
});\r
\r
- tizen.humanactivitymonitor.start(humanActivityType);\r
- tizen.humanactivitymonitor.getHumanActivityData(humanActivityType, getHumanActivityDataSuccess, getHumanActivityDataError);\r
+ tizen.humanactivitymonitor.start(humanActivityType, getHumanActivityDataSuccess, getHumanActivityDataError);\r
});\r
\r
</script>\r
assert_unreached("getHumanActivityDataError is called" + error.name);\r
});\r
\r
- getHumanActivityDataSuccess = t.step_func(function (gpsInfo) {\r
- check_readonly(gpsInfo, "timestamp", gpsInfo.timestamp, "long", gpsInfo.timestamp + 10);\r
+ getHumanActivityDataSuccess = t.step_func(function (data) {\r
+ var gpsInfo = data.gpsInfo;\r
+ check_readonly(gpsInfo[0], "timestamp", gpsInfo[0].timestamp, "long", gpsInfo[0].timestamp + 10);\r
t.done();\r
});\r
\r
- tizen.humanactivitymonitor.start(humanActivityType);\r
- tizen.humanactivitymonitor.getHumanActivityData(humanActivityType, getHumanActivityDataSuccess, getHumanActivityDataError);\r
+ tizen.humanactivitymonitor.start(humanActivityType, getHumanActivityDataSuccess, getHumanActivityDataError);\r
});\r
\r
</script>\r
//==== STEP Press run button, then keep the device stationary
//==== EXPECT Pass
//==== TEST_CRITERIA MR MMINA CBT
-//==== ONLOAD_DELAY 60
+//==== ONLOAD_DELAY 120
-setup({"timeout": 60000});
+setup({"timeout": 120000});
-var t = async_test(document.title, {"timeout": 60000}), returnedValue = null, humanActivityType = "STATIONARY", listener;
+var t = async_test(document.title, {"timeout": 120000}), returnedValue = null, humanActivityType = "STATIONARY", listener;
t.step(function () {
add_result_callback(function () {
assert_unreached("success callback should not be invoked");
});
- if (!tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.pedometer")) {
+ /*if (!tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.pedometer")) {
assert_throws(NOT_SUPPORTED_EXCEPTION, function () {
tizen.humanactivitymonitor.readRecorderData("PEDOMETER", query, successCallback);
}, "NotSupportedError exception should throw");
assert_throws(NOT_SUPPORTED_EXCEPTION, function () {
tizen.humanactivitymonitor.readRecorderData("SLEEP_MONITOR", query, successCallback);
}, "NotSupportedError exception should throw");
- }
+ }*/
if (!tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.barometer")) {
assert_throws(NOT_SUPPORTED_EXCEPTION, function () {
tizen.humanactivitymonitor.readRecorderData("PRESSURE", query, successCallback);
exceptionName = conversionTable[i][1];
assert_throws({name: exceptionName},
function () {
- tizen.humanactivitymonitor.readRecorderData("PEDOMETER", query, successCallback, errorCallback);
+ tizen.humanactivitymonitor.readRecorderData("PRESSURE", query, successCallback, errorCallback);
}, "Given incorrect error callback.");
}
assert_throws(TYPE_MISMATCH_EXCEPTION,
function () {
- tizen.humanactivitymonitor.readRecorderData("PEDOMETER", query, successCallback, incorrectCallback);
+ tizen.humanactivitymonitor.readRecorderData("PRESSURE", query, successCallback, incorrectCallback);
}, "Given invalid successCallback.");
t.done();
exceptionName = conversionTable[i][1];
assert_throws({name: exceptionName},
function () {
- tizen.humanactivitymonitor.readRecorderData("PEDOMETER", query, successCallback, errorCallback);
+ tizen.humanactivitymonitor.readRecorderData("PRESSURE", query, successCallback, errorCallback);
}, "Given incorrect query callback.");
}
//==== SPEC_URL TBD
//==== PRIORITY P1
//==== EXECUTION_TYPE manual
-//==== STEP Press run button. Pretend walking with the device.
-//==== EXPECT Pass
+//==== STEP Waiting for 1 minutes for the callback.
+//==== EXPECT Pass should be shown in the page after 1 minutes.
//==== TEST_CRITERIA MTD
//==== ONLOAD_DELAY 60
t.step(function () {
add_result_callback(function () {
- tizen.humanactivitymonitor.stopRecorder("PEDOMETER");
+ tizen.humanactivitymonitor.stopRecorder("PRESSURE");
});
successCallback = t.step_func(function (humanactivitydata) {
t.done();
});
- tizen.humanactivitymonitor.startRecorder("PEDOMETER");
- setTimeout(function(){tizen.humanactivitymonitor.stopRecorder("PEDOMETER");
- retValue = tizen.humanactivitymonitor.readRecorderData("PEDOMETER", {}, successCallback);}, 60000);
+ tizen.humanactivitymonitor.startRecorder("PRESSURE");
+ setTimeout(function(){tizen.humanactivitymonitor.stopRecorder("PRESSURE");
+ retValue = tizen.humanactivitymonitor.readRecorderData("PRESSURE", {}, successCallback);}, 60000);
});
exceptionName = conversionTable[i][1];
assert_throws({name: exceptionName},
function () {
- tizen.humanactivitymonitor.readRecorderData("PEDOMETER", query, successCallback, errorCallback);
+ tizen.humanactivitymonitor.readRecorderData("PRESSURE", query, successCallback, errorCallback);
}, "Given incorrect success callback.");
}
assert_throws(TYPE_MISMATCH_EXCEPTION,
function () {
- tizen.humanactivitymonitor.readRecorderData("PEDOMETER", query, incorrectCallback);
+ tizen.humanactivitymonitor.readRecorderData("PRESSURE", query, incorrectCallback);
}, "Given invalid successCallback.");
}, document.title);
//==== SPEC Tizen Web API:System:HumanActivityMonitor:HumanActivityMonitorManager:readRecorderData M
//==== SPEC_URL TBD
//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
+//==== STEP Press run button. Waiting for 10 minutes for the callback..
+//==== EXPECT Pass
//==== TEST_CRITERIA MR MMINA
setup({timeout: 1500000});
//==== SPEC Tizen Web API:System:HumanActivityMonitor:HumanActivityMonitorManager:readRecorderData M
//==== SPEC_URL TBD
//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
+//==== STEP Waiting for 1 minutes for the callback.
+//==== EXPECT Pass should be shown in the page after 1 minutes.
//==== TEST_CRITERIA MR MMINA
+//==== ONLOAD_DELAY 60
setup({timeout: 150000});
//==== SPEC Tizen Web API:System:HumanActivityMonitor:HumanActivityMonitorManager:readRecorderData M
//==== SPEC_URL TBD
//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
+//==== STEP Press run button. Waiting for 20 minutes for the callback without touching the device.
+//==== EXPECT Pass
//==== TEST_CRITERIA MR MMINA
-setup({timeout: 30000});
+setup({timeout: 1500000});
-var t = async_test(document.title, {timeout: 30000}), retValue = null, successCallback, date = new Date(), endTime = date.getTime(), startTime = date.setDate(date.getDate() - 1),
+var t = async_test(document.title, {timeout: 1500000}), retValue = null, successCallback, date = new Date(), startTime = date.getTime(), endTime = date.setDate(date.getDate() + 1),
query = {
startTime: startTime/1000,
endTime: endTime/1000,
tizen.humanactivitymonitor.startRecorder("SLEEP_MONITOR");
setTimeout(function(){tizen.humanactivitymonitor.stopRecorder("SLEEP_MONITOR");
- retValue = tizen.humanactivitymonitor.readRecorderData("SLEEP_MONITOR", query, successCallback);}, 100);
+ retValue = tizen.humanactivitymonitor.readRecorderData("SLEEP_MONITOR", query, successCallback);}, 1300000);
});
//==== SPEC Tizen Web API:System:HumanActivityMonitor:HumanActivityMonitorManager:readRecorderData M
//==== SPEC_URL TBD
//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
+//==== STEP Waiting for 1 minutes for the callback.
+//==== EXPECT Pass should be shown in the page after 1 minutes.
//==== TEST_CRITERIA MR MOA
+//==== ONLOAD_DELAY 60
setup({timeout: 120000});
t.step(function () {
add_result_callback(function () {
- tizen.humanactivitymonitor.stopRecorder("PEDOMETER");
+ tizen.humanactivitymonitor.stopRecorder("PRESSURE");
});
successCallback = t.step_func(function (humanactivitydata) {
assert_unreached("Invalid error callback invoked:" + error.name + ": " + error.message);
});
- tizen.humanactivitymonitor.startRecorder("PEDOMETER");
- setTimeout(function(){tizen.humanactivitymonitor.stopRecorder("PEDOMETER");
- retValue = tizen.humanactivitymonitor.readRecorderData("PEDOMETER", query, successCallback, errorCallback);}, 60000);
+ tizen.humanactivitymonitor.startRecorder("PRESSURE");
+ setTimeout(function(){tizen.humanactivitymonitor.stopRecorder("PRESSURE");
+ retValue = tizen.humanactivitymonitor.readRecorderData("PRESSURE", query, successCallback, errorCallback);}, 60000);
});
//==== TEST_CRITERIA MC
test(function () {
- if (!tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.pedometer")) {
+ /*if (!tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.pedometer")) {
assert_throws(NOT_SUPPORTED_EXCEPTION, function () {
tizen.humanactivitymonitor.startRecorder("PEDOMETER");
}, "NotSupportedError exception should throw");
assert_throws(NOT_SUPPORTED_EXCEPTION, function () {
tizen.humanactivitymonitor.startRecorder("SLEEP_MONITOR");
}, "NotSupportedError exception should throw");
- }
+ }*/
if (!tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.barometer")) {
assert_throws(NOT_SUPPORTED_EXCEPTION, function () {
tizen.humanactivitymonitor.startRecorder("PRESSURE");
tizen.humanactivitymonitor.stopRecorder(humanActivityType);
});
- var returnedValue = null, humanActivityType = "PEDOMETER";
+ var returnedValue = null, humanActivityType = "PRESSURE";
returnedValue = tizen.humanactivitymonitor.startRecorder(humanActivityType, {});
assert_equals(returnedValue, undefined, "Incorrect returned value");
}, document.title);
//==== TEST_CRITERIA MR MOA
test(function () {
- var returnedValue = null, humanActivityType = "HRM",
+ var returnedValue = null, humanActivityType = "PRESSURE",
options = {
retentionPeriod: 1
};
//==== TEST_CRITERIA MC
test(function () {
- if (!tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.pedometer")) {
+ /*if (!tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.pedometer")) {
assert_throws(NOT_SUPPORTED_EXCEPTION, function () {
tizen.humanactivitymonitor.stopRecorder("PEDOMETER");
}, "NotSupportedError exception should throw");
assert_throws(NOT_SUPPORTED_EXCEPTION, function () {
tizen.humanactivitymonitor.stopRecorder("SLEEP_MONITOR");
}, "NotSupportedError exception should throw");
- }
+ }*/
if (!tizen.systeminfo.getCapability("http://tizen.org/feature/sensor.barometer")) {
assert_throws(NOT_SUPPORTED_EXCEPTION, function () {
tizen.humanactivitymonitor.stopRecorder("PRESSURE");
//==== EXECUTION_TYPE manual
//==== SPEC Tizen Web API:System:HumanActivityMonitor:HumanActivityMonitorOption:callbackInterval A
//==== SPEC_URL TBD
-//==== STEP Wait 155 seconds for the callback
-//==== EXPECT Pass should be shown in the page after 155 seconds
+//==== STEP Turn off the screen, then wait 155 seconds for the callback
+//==== EXPECT Pass should be shown in the page after turn off the screen 155 seconds
//==== TEST_CRITERIA
//==== ONLOAD_DELAY 300
-setup({"timeout": 300000});
+setup({"timeout": 400000});
-var t = async_test(document.title, {"timeout": 300000}), changedCallback, startMeasure, endMeasure, humanActivityType = "GPS", cbFlag = 0;
+var t = async_test(document.title, {"timeout": 400000}), onScreenStateChanged, changedCallback, startMeasure, endMeasure, humanActivityType = "GPS", cbFlag = 0;
t.step(function () {
add_result_callback(function () {
changedCallback = t.step_func(function (gpsInfo) {
if (cbFlag == 1) {
endMeasure = new Date().getTime();
- assert_approx_equals(endMeasure - startMeasure, 150000, 1000, "Callback should be invoked in given interval time.");
+ assert_approx_equals(endMeasure - startMeasure, 100000, 1000, "Callback should be invoked in given interval time.");
t.done();
}
if (cbFlag == 0) {
}
});
- tizen.humanactivitymonitor.start(humanActivityType, changedCallback, {callbackInterval:155000});
- startMeasure = new Date().getTime();
+ onScreenStateChanged = t.step_func(function (previousState, changedState) {
+ if (changedState === "SCREEN_OFF") {
+ tizen.humanactivitymonitor.start(humanActivityType, changedCallback, null, {callbackInterval:100000});
+ tizen.power.unsetScreenStateChangeListener();
+ }
+ });
+
+ alert('Please turn off the screen');
+ tizen.power.setScreenStateChangeListener(onScreenStateChanged);
});
</script>
//==== EXECUTION_TYPE manual
//==== SPEC Tizen Web API:System:HumanActivityMonitor:HumanActivityMonitorOption:callbackInterval A
//==== SPEC_URL TBD
-//==== STEP Wait 150 seconds for the callback
-//==== EXPECT Pass should be shown in the page after 150 seconds
+//==== STEP Turn off the screen, then wait 150 seconds for the callback
+//==== EXPECT Pass should be shown in the page after turn off the screen 150 seconds
//==== TEST_CRITERIA
//==== ONLOAD_DELAY 300
-setup({"timeout": 300000});
+setup({"timeout": 400000});
-var t = async_test(document.title, {"timeout": 300000}), changedCallback, startMeasure, endMeasure, humanActivityType = "GPS", cbFlag = 0;
+var t = async_test(document.title, {"timeout": 400000}), onScreenStateChanged, changedCallback, startMeasure, endMeasure, humanActivityType = "GPS", cbFlag = 0;
t.step(function () {
add_result_callback(function () {
}
});
- tizen.humanactivitymonitor.start(humanActivityType, changedCallback, {callbackInterval:null});
+ onScreenStateChanged = t.step_func(function (previousState, changedState) {
+ if (changedState === "SCREEN_OFF") {
+ tizen.humanactivitymonitor.start(humanActivityType, changedCallback, null, {callbackInterval:null});
+ startMeasure = new Date().getTime();
+ tizen.power.unsetScreenStateChangeListener();
+ }
+ });
+
+ alert('Please turn off the screen');
+ tizen.power.setScreenStateChangeListener(onScreenStateChanged);
});
</script>
//==== TEST: HumanActivityMonitorOption_callbackInterval_type_HRM
//==== LABEL Check if method HumanActivityMonitorOption::callbackInterval works properly for HRM HumanActivity type
//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
//==== SPEC Tizen Web API:System:HumanActivityMonitor:HumanActivityMonitorOption:callbackInterval A
//==== SPEC_URL TBD
+//==== STEP Turn off the screen, then wait 0.5 seconds for the callback
+//==== EXPECT Pass should be shown in the page after turn off the screen 0.5 seconds
//==== TEST_CRITERIA
var t = async_test(document.title), changedCallback, startMeasure, endMeasure, humanActivityType = "HRM", cbFlag = 0;
}
});
+ alert('Please turn off the screen');
tizen.humanactivitymonitor.start(humanActivityType, changedCallback, {callbackInterval:500});
});
//==== TEST: HumanActivityMonitorOption_callbackInterval_type_HRM_default
//==== LABEL Check if method HumanActivityMonitorOption::callbackInterval() works properly when set to null
//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
//==== SPEC Tizen Web API:System:HumanActivityMonitor:HumanActivityMonitorOption:callbackInterval A
//==== SPEC_URL TBD
+//==== STEP Turn off the screen, then wait 0.1 seconds for the callback
+//==== EXPECT Pass should be shown in the page after turn off the screen 0.1 seconds
//==== TEST_CRITERIA
var t = async_test(document.title), changedCallback, startMeasure, endMeasure, humanActivityType = "HRM", cbFlag = 0;
}
});
+ alert('Please turn off the screen');
tizen.humanactivitymonitor.start(humanActivityType, changedCallback, {callbackInterval:null});
startMeasure = new Date().getTime();
});
setup({"timeout": 300000});
-var t = async_test(document.title, {"timeout": 300000}), changedCallback, humanActivityType = "GPS", cbFlag = 0;
+var t = async_test(document.title, {"timeout": 300000}), onScreenStateChanged, changedCallback, humanActivityType = "GPS", cbFlag = 0;
t.step(function () {
add_result_callback(function () {
}
});
- tizen.humanactivitymonitor.start(humanActivityType, changedCallback, {callbackInterval:120000, sampleInterval:2000});
+ onScreenStateChanged = t.step_func(function (previousState, changedState) {
+ if (changedState === "SCREEN_OFF") {
+ tizen.humanactivitymonitor.start(humanActivityType, changedCallback, null, {callbackInterval:120000, sampleInterval:2000});
+ tizen.power.unsetScreenStateChangeListener();
+ }
+ });
+
+ alert('Please turn off the screen');
+ tizen.power.setScreenStateChangeListener(onScreenStateChanged);
});
</script>
setup({"timeout": 300000});
-var t = async_test(document.title, {"timeout": 300000}), changedCallback, humanActivityType = "GPS", cbFlag = 0;
+var t = async_test(document.title, {"timeout": 300000}), onScreenStateChanged, changedCallback, humanActivityType = "GPS", cbFlag = 0;
t.step(function () {
add_result_callback(function () {
}
});
- tizen.humanactivitymonitor.start(humanActivityType, changedCallback, {callbackInterval:120000, sampleInterval:null});
+ onScreenStateChanged = t.step_func(function (previousState, changedState) {
+ if (changedState === "SCREEN_OFF") {
+ tizen.humanactivitymonitor.start(humanActivityType, changedCallback, null, {callbackInterval:120000, sampleInterval:null});
+ tizen.power.unsetScreenStateChangeListener();
+ }
+ });
+
+ alert('Please turn off the screen');
+ tizen.power.setScreenStateChangeListener(onScreenStateChanged);
});
</script>
//==== SPEC_URL TBD
//==== PRIORITY P1
//==== EXECUTION_TYPE manual
-//==== STEP Press run button. Waiting for 10 minutes, then press the Click button.
-//==== EXPECT Pass
+//==== STEP Waiting for 1 minutes for the callback.
+//==== EXPECT Pass should be shown in the page after 1 minutes.
//==== TEST_CRITERIA CBT CBOA
//==== ONLOAD_DELAY 60
successCallback = t.step_func(function (humanactivitydata) {
assert_not_equals(humanactivitydata , null, "Argument should not be null.");
assert_type(humanactivitydata[0], "object", "Incorrect type.");
- assert_type(humanactivitydata[0].heartRate, "number", "heartRate type check");
- assert_type(humanactivitydata[0].startTime, "number", "startTime type check");
- assert_type(humanactivitydata[0].endTime, "number", "endTime type check");
- assert_not_equals(humanactivitydata[0].heartRate, null, "heartRate should not be null");
- assert_not_equals(humanactivitydata[0].startTime, null, "startTime should not be null");
- assert_not_equals(humanactivitydata[0].endTime, null, "endTime should not be null");
+ assert_type(humanactivitydata[0].max, "number", "max type check");
+ assert_type(humanactivitydata[0].min, "number", "min type check");
+ assert_type(humanactivitydata[0].average, "number", "average type check");
+ assert_not_equals(humanactivitydata[0].max, null, "max should not be null");
+ assert_not_equals(humanactivitydata[0].min, null, "min should not be null");
+ assert_not_equals(humanactivitydata[0].average, null, "average should not be null");
t.done();
});
assert_unreached("Invalid error callback invoked:" + error.name + ": " + error.message);
});
- tizen.humanactivitymonitor.readRecorderData("HRM", query, successCallback);
+ tizen.humanactivitymonitor.readRecorderData("PRESSURE", query, successCallback);
});
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2016 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:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>HumanActivityRecorderPressureData_endTime_attribute</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: HumanActivityRecorderPressureData_endTime_attribute
-//==== LABEL Check if HumanActivityRecorderPressureData have endTime attribute with proper type, readonly
-//==== SPEC Tizen Web API:System:HumanActivityMonitor:HumanActivityRecorderPressureData:endTime A
-//==== SPEC_URL TBD
-//==== PRIORITY P1
-//==== TEST_CRITERIA AE AT ARO
-
-setup({timeout: 70000});
-
-var t = async_test(document.title, {timeout: 70000}), successCallback, date = new Date(), endTime = date.getTime(), startTime = date.setDate(date.getDate() - 1),
- query = {
- startTime: startTime/1000,
- endTime: endTime/1000,
- interval: 1440
- };
-
-t.step(function () {
-
- successCallback = t.step_func(function (humanactivitydata) {
- assert_greater_than(humanactivitydata.length, 0, "data is not found");
- check_readonly(humanactivitydata[0], "endTime", humanactivitydata[0].endTime, "number", humanactivitydata[0].endTime + 100);
- t.done();
- });
-
- tizen.humanactivitymonitor.readRecorderData("PRESSURE", query, successCallback);
-
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2016 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:
- Xiaoyan Qian <xy.qian@samsung.com>
-
--->
-<html>
-<head>
-<title>HumanActivityRecorderPressureData_startTime_attribute</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: HumanActivityRecorderPressureData_startTime_attribute
-//==== LABEL Check if HumanActivityRecorderPressureData have startTime attribute with proper type, readonly
-//==== SPEC Tizen Web API:System:HumanActivityMonitor:HumanActivityRecorderPressureData:startTime A
-//==== SPEC_URL TBD
-//==== PRIORITY P1
-//==== TEST_CRITERIA AE AT ARO
-
-setup({timeout: 70000});
-
-var t = async_test(document.title, {timeout: 70000}), successCallback, date = new Date(), endTime = date.getTime(), startTime = date.setDate(date.getDate() - 1),
- query = {
- startTime: startTime/1000,
- endTime: endTime/1000,
- interval: 1440
- };
-
-t.step(function () {
-
- successCallback = t.step_func(function (humanactivitydata) {
- assert_greater_than(humanactivitydata.length, 0, "data is not found");
- check_readonly(humanactivitydata[0], "startTime", humanactivitydata[0].startTime, "number", humanactivitydata[0].startTime + 100);
- t.done();
- });
-
- tizen.humanactivitymonitor.readRecorderData("PRESSURE", query, successCallback);
-
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
//==== SPEC Tizen Web API:System:HumanActivityMonitor:HumanActivityRecorderSleepMonitorData:endTime A
//==== SPEC_URL TBD
//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
+//==== STEP Press run button. Waiting for 20 minutes for the callback without touching the device.
+//==== EXPECT Pass
//==== TEST_CRITERIA AE AT ARO
-setup({timeout: 30000});
+setup({timeout: 1500000});
-var t = async_test(document.title, {timeout: 30000}), successCallback, date = new Date(), endTime = date.getTime(), startTime = date.setDate(date.getDate() - 1),
+var t = async_test(document.title, {timeout: 1500000}), successCallback, date = new Date(), startTime = date.getTime(), endTime = date.setDate(date.getDate() + 1),
query = {
startTime: startTime/1000,
endTime: endTime/1000,
});
tizen.humanactivitymonitor.startRecorder("SLEEP_MONITOR");
- setTimeout(function(){tizen.humanactivitymonitor.stopRecorder("SLEEP_MONITOR");}, 100);
- tizen.humanactivitymonitor.readRecorderData("SLEEP_MONITOR", query, successCallback);
+ setTimeout(function(){tizen.humanactivitymonitor.stopRecorder("SLEEP_MONITOR");
+ retValue = tizen.humanactivitymonitor.readRecorderData("SLEEP_MONITOR", query, successCallback);}, 1300000);
});
//==== SPEC Tizen Web API:System:HumanActivityMonitor:HumanActivityRecorderSleepMonitorData:startTime A
//==== SPEC_URL TBD
//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
+//==== STEP Press run button. Waiting for 20 minutes for the callback without touching the device.
+//==== EXPECT Pass
//==== TEST_CRITERIA AE AT ARO
-setup({timeout: 30000});
+setup({timeout: 1500000});
-var t = async_test(document.title, {timeout: 30000}), successCallback, date = new Date(), endTime = date.getTime(), startTime = date.setDate(date.getDate() - 1),
+var t = async_test(document.title, {timeout: 1500000}), successCallback, date = new Date(), startTime = date.getTime(), endTime = date.setDate(date.getDate() + 1),
query = {
startTime: startTime/1000,
endTime: endTime/1000,
});
tizen.humanactivitymonitor.startRecorder("SLEEP_MONITOR");
- setTimeout(function(){tizen.humanactivitymonitor.stopRecorder("SLEEP_MONITOR");}, 100);
- tizen.humanactivitymonitor.readRecorderData("SLEEP_MONITOR", query, successCallback);
+ setTimeout(function(){tizen.humanactivitymonitor.stopRecorder("SLEEP_MONITOR");
+ retValue = tizen.humanactivitymonitor.readRecorderData("SLEEP_MONITOR", query, successCallback);}, 1300000);
});
//==== SPEC Tizen Web API:System:HumanActivityMonitor:HumanActivityRecorderSleepMonitorData:status A
//==== SPEC_URL TBD
//==== PRIORITY P1
+//==== EXECUTION_TYPE manual
+//==== STEP Press run button. Waiting for 20 minutes for the callback without touching the device.
+//==== EXPECT Pass
//==== TEST_CRITERIA AE AT ARO AVL
-setup({timeout: 30000});
+setup({timeout: 1500000});
-var t = async_test(document.title, {timeout: 30000}), successCallback, date = new Date(), endTime = date.getTime(), startTime = date.setDate(date.getDate() - 1),
+var t = async_test(document.title, {timeout: 1500000}), successCallback, date = new Date(), startTime = date.getTime(), endTime = date.setDate(date.getDate() + 1),
query = {
startTime: startTime/1000,
endTime: endTime/1000,
});
tizen.humanactivitymonitor.startRecorder("SLEEP_MONITOR");
- setTimeout(function(){tizen.humanactivitymonitor.stopRecorder("SLEEP_MONITOR");}, 100);
- tizen.humanactivitymonitor.readRecorderData("SLEEP_MONITOR", query, successCallback);
+ setTimeout(function(){tizen.humanactivitymonitor.stopRecorder("SLEEP_MONITOR");
+ retValue = tizen.humanactivitymonitor.readRecorderData("SLEEP_MONITOR", query, successCallback);}, 1300000);
});
t.done();
});
- tizen.humanactivitymonitor.start(humanActivityType);
- tizen.humanactivitymonitor.getHumanActivityData(humanActivityType, getHumanActivityDataSuccess, getHumanActivityDataError);
+ tizen.humanactivitymonitor.start(humanActivityType, getHumanActivityDataSuccess, getHumanActivityDataError);
});
</script>
t.done();
});
- tizen.humanactivitymonitor.start(humanActivityType);
- tizen.humanactivitymonitor.getHumanActivityData(humanActivityType, getHumanActivityDataSuccess, getHumanActivityDataError);
+ tizen.humanactivitymonitor.start(humanActivityType, getHumanActivityDataSuccess, getHumanActivityDataError);
});
SERVICE_NOT_AVAILABLE_ERR = "ServiceNotAvailableError";
NOT_SUPPORTED_EXCEPTION = "NotSupportedError";
+SERVICE_NOT_AVAILABLE_EXCEPTION = {name: 'ServiceNotAvailableError'};
var PEDOMETER_STEP_STATUS = [
"NOT_MOVING", "WALKING", "RUNNING", "UNKNOWN"
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_readRecorderData_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if readRecorderData without optional arguments works properly for PRESSURE HumanActivity type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="manual" onload_delay="150" id="HumanActivityMonitorManager_readRecorderData_type_PRESSURE">
- <description>
- <steps>
- <step order="1">
- <step_desc>Waiting for 1 minutes for the callback.</step_desc>
- <expected>Pass should be shown in the page after 1 minutes.</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_readRecorderData_type_PRESSURE.html</test_script_entry>
- </description>
- </testcase>
<testcase purpose="Check if HumanActivityMonitorManager::startRecorder() throw NotSupportedError called with not supported human activity recorder type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_startRecorder_NotSupportedError">
<description>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_startRecorder_NotSupportedError.html</test_script_entry>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_startRecorder_misarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method HumanActivityMonitorManager::startRecorder() works properly for PRESSURE HumanActivity type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_startRecorder_type_PRESSURE">
- <description>
- <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_startRecorder_type_PRESSURE.html</test_script_entry>
- </description>
- </testcase>
<testcase purpose="Check if HumanActivityMonitorManager::stopRecorder() throw NotSupportedError called with not supported human activity recorder type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_stopRecorder_NotSupportedError">
<description>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_stopRecorder_NotSupportedError.html</test_script_entry>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_stopRecorder_misarg.html</test_script_entry>
</description>
</testcase>
+ </set>
+ <set name="HumanActivityMonitor_with_barometer_mobile">
+ <capabilities>
+ <capability name="http://tizen.org/feature/profile"><value>MOBILE_FULL</value></capability>
+ <capability name="http://tizen.org/feature/sensor.barometer"/>
+ </capabilities>
+ <testcase purpose="Check if readRecorderData without optional arguments works properly for PRESSURE HumanActivity type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="manual" onload_delay="150" id="HumanActivityMonitorManager_readRecorderData_type_PRESSURE">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>Waiting for 1 minutes for the callback.</step_desc>
+ <expected>Pass should be shown in the page after 1 minutes.</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_readRecorderData_type_PRESSURE.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if method HumanActivityMonitorManager::startRecorder() works properly for PRESSURE HumanActivity type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_startRecorder_type_PRESSURE">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_startRecorder_type_PRESSURE.html</test_script_entry>
+ </description>
+ </testcase>
<testcase purpose="Check if method HumanActivityMonitorManager::stopRecorder() works properly for PRESSURE HumanActivity type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_stopRecorder_type_PRESSURE">
<description>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_stopRecorder_type_PRESSURE.html</test_script_entry>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityRecorderPressureData_average_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if HumanActivityRecorderPressureData have endTime attribute with proper type, readonly" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="manual" onload_delay="90" id="HumanActivityRecorderPressureData_endTime_attribute">
- <description>
- <pre_condition>Before run this tc, run HumanActivityMonitorManager_readRecorderData_type_PRESSURE.html first, because we should wait at least 1 minute to get the recorded data after start recorder. But if you tested that TC already, you can run this TC now.</pre_condition>
- <steps>
- <step order="1">
- <step_desc>Waiting for 1 minutes for the callback.</step_desc>
- <expected>Pass should be shown in the page after 1 minutes.</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityRecorderPressureData_endTime_attribute.html</test_script_entry>
- </description>
- </testcase>
<testcase purpose="Check if HumanActivityRecorderPressureData have max attribute with proper type, readonly" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="manual" onload_delay="90" id="HumanActivityRecorderPressureData_max_attribute">
<description>
<pre_condition>Before run this tc, run HumanActivityMonitorManager_readRecorderData_type_PRESSURE.html first, because we should wait at least 1 minute to get the recorded data after start recorder. But if you tested that TC already, you can run this TC now.</pre_condition>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityRecorderPressureData_notexist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if HumanActivityRecorderPressureData have startTime attribute with proper type, readonly" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="manual" onload_delay="90" id="HumanActivityRecorderPressureData_startTime_attribute">
- <description>
- <pre_condition>Before run this tc, run HumanActivityMonitorManager_readRecorderData_type_PRESSURE.html first, because we should wait at least 1 minute to get the recorded data after start recorder. But if you tested that TC already, you can run this TC now.</pre_condition>
- <steps>
- <step order="1">
- <step_desc>Waiting for 1 minutes for the callback.</step_desc>
- <expected>Pass should be shown in the page after 1 minutes.</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityRecorderPressureData_startTime_attribute.html</test_script_entry>
- </description>
- </testcase>
</set>
<set name="HumanActivityMonitor_with_activity_recognition_mobile">
<capabilities>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_getHumanActivityData_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_getHumanActivityData_errorCallback_invalid_cb" onload_delay="30" priority="P2" purpose="Check if HumanActivityMonitorManager::getHumanActivityData() method throws exception when errorCallback is invalid">
- <description>
- <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_getHumanActivityData_errorCallback_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
<testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_getHumanActivityData_errorCallback_invoked" onload_delay="30" priority="P2" purpose="Check exception in error callback of HumanActivityMonitorManager::getHumanActivityData() method">
<description>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_getHumanActivityData_errorCallback_invoked.html</test_script_entry>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_getHumanActivityData_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_getHumanActivityData_successCallback_invalid_cb" onload_delay="30" priority="P2" purpose="Check if HumanActivityMonitorManager::getHumanActivityData() method throws exception when successCallback is invalid">
- <description>
- <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_getHumanActivityData_successCallback_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
<testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_getHumanActivityData_type_PEDOMETER" onload_delay="30" priority="P1" purpose="Check if HumanActivityMonitorManager::getHumanActivityData() method works properly">
<description>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_getHumanActivityData_type_PEDOMETER.html</test_script_entry>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_getHumanActivityData_stepStatus_RUNNING.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if readRecorderData can be called with empty object as query argument" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="manual" onload_delay="60" id="HumanActivityMonitorManager_readRecorderData_query_empty">
+ <testcase purpose="Check if readRecorderData can be called with empty object as query argument" onload_delay="60" component="TizenAPI/System/HumanActivityMonitor" execution_type="manual" id="HumanActivityMonitorManager_readRecorderData_query_empty">
<description>
+ <pre_condition>Before run this tc, run HumanActivityMonitorManager_readRecorderData_type_PRESSURE.html first, because we should wait at least 1 minute to get the recorded data after start recorder. But if you tested that TC already, you can run this TC now.</pre_condition>
<steps>
<step order="1">
- <step_desc>Press run button. Pretend walking with the device.</step_desc>
- <expected>Pass</expected>
+ <step_desc>Waiting for 1 minutes for the callback.</step_desc>
+ <expected>Pass should be shown in the page after 1 minutes.</expected>
</step>
</steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_readRecorderData_query_empty.html</test_script_entry>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_readRecorderData_type_PEDOMETER.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if readRecorderData with optional arguments works properly" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="manual" onload_delay="60" id="HumanActivityMonitorManager_readRecorderData_with_errorCallback">
+ <testcase purpose="Check if readRecorderData with optional arguments works properly" onload_delay="60" component="TizenAPI/System/HumanActivityMonitor" execution_type="manual" id="HumanActivityMonitorManager_readRecorderData_with_errorCallback">
<description>
+ <pre_condition>Before run this tc, run HumanActivityMonitorManager_readRecorderData_type_PRESSURE.html first, because we should wait at least 1 minute to get the recorded data after start recorder. But if you tested that TC already, you can run this TC now.</pre_condition>
<steps>
<step order="1">
- <step_desc>Press run button. Pretend walking with the device.</step_desc>
- <expected>Pass</expected>
+ <step_desc>Waiting for 1 minutes for the callback.</step_desc>
+ <expected>Pass should be shown in the page after 1 minutes.</expected>
</step>
</steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_readRecorderData_with_errorCallback.html</test_script_entry>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityHRMData_rRInterval_attribute.html</test_script_entry>
</description>
</testcase>
- <!-- <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorOption_callbackInterval_type_HRM" purpose="Check if method HumanActivityMonitorOption::callbackInterval works properly for HRM HumanActivity type">
+ <!-- <testcase component="TizenAPI/Sensor/HumanActivityMonitor" execution_type="manual" id="HumanActivityMonitorOption_callbackInterval_type_HRM" purpose="Check if method HumanActivityMonitorOption::callbackInterval works properly for HRM HumanActivity type">
<description>
+ <steps>
+ <step order="1">
+ <step_desc>Turn off the screen, then wait 0.5 seconds for the callback</step_desc>
+ <expected>Pass should be shown in the page after turn off the screen 0.5 seconds</expected>
+ </step>
+ </steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorOption_callbackInterval_type_HRM.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorOption_callbackInterval_type_HRM_default" purpose="Check if method HumanActivityMonitorOption::callbackInterval works properly when set to null">
+ <testcase component="TizenAPI/Sensor/HumanActivityMonitor" execution_type="manual" id="HumanActivityMonitorOption_callbackInterval_type_HRM_default" purpose="Check if method HumanActivityMonitorOption::callbackInterval works properly when set to null">
<description>
+ <steps>
+ <step order="1">
+ <step_desc>Turn off the screen, then wait 0.1 seconds for the callback</step_desc>
+ <expected>Pass should be shown in the page after turn off the screen 0.1 seconds</expected>
+ </step>
+ </steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorOption_callbackInterval_type_HRM_default.html</test_script_entry>
</description>
</testcase> -->
- <testcase purpose="Check if readRecorderData without optional arguments works properly for HRM HumanActivity type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="manual" onload_delay="1500" id="HumanActivityMonitorManager_readRecorderData_type_HRM">
+ <testcase purpose="Check if readRecorderData without optional arguments works properly for HRM HumanActivity type" component="TizenAPI/System/HumanActivityMonitor" execution_type="manual" onload_delay="1500" id="HumanActivityMonitorManager_readRecorderData_type_HRM">
<description>
<steps>
<step order="1">
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_stopRecorder_type_HRM.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if HumanActivityReadRecorderSuccessCallback onsuccess is called and if its arguments have proper type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="manual" onload_delay="60" id="HumanActivityReadRecorderSuccessCallback_onsuccess">
+ <testcase purpose="Check if HumanActivityReadRecorderSuccessCallback onsuccess is called and if its arguments have proper type" component="TizenAPI/System/HumanActivityMonitor" execution_type="manual" onload_delay="60" id="HumanActivityReadRecorderSuccessCallback_onsuccess">
<description>
- <pre_condition>Before run this tc, run HumanActivityMonitorManager_readRecorderData_type_HRM.html first, because we should wait at least 10 minutes to get the recorded data after start recorder. But if you tested that TC already, you can run this TC now.</pre_condition>
+ <pre_condition>Before run this tc, run HumanActivityMonitorManager_readRecorderData_type_PRESSURE.html first, because we should wait at least 1 minute to get the recorded data after start recorder. But if you tested that TC already, you can run this TC now.</pre_condition>
<steps>
<step order="1">
- <step_desc>Waiting for 10 minutes for the callback.</step_desc>
- <expected>Pass should be shown in the page after 10 minutes.</expected>
+ <step_desc>Waiting for 1 minutes for the callback.</step_desc>
+ <expected>Pass should be shown in the page after 1 minutes.</expected>
</step>
</steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityReadRecorderSuccessCallback_onsuccess.html</test_script_entry>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityGPSInfo_timestamp_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method HumanActivityMonitorOption::callbackInterval works properly for GPS HumanActivity type" component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="manual" priority="P1" id="HumanActivityMonitorOption_callbackInterval_type_GPS" onload_delay="300">
+ <testcase purpose="Check if method HumanActivityMonitorOption::callbackInterval works properly for GPS HumanActivity type" component="TizenAPI/Sensor/HumanActivityMonitor" execution_type="manual" priority="P1" id="HumanActivityMonitorOption_callbackInterval_type_GPS" onload_delay="300">
<description>
<steps>
<step order="1">
- <step_desc>Wait 155 seconds for the callback</step_desc>
- <expected>Pass should be shown in the page after 155 seconds</expected>
+ <step_desc>Turn off the screen, then wait 155 seconds for the callback</step_desc>
+ <expected>Pass should be shown in the page after turn off the screen 155 seconds</expected>
</step>
</steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorOption_callbackInterval_type_GPS.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method HumanActivityMonitorOption::callbackInterval works properly when set to null" component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="manual" priority="P1" id="HumanActivityMonitorOption_callbackInterval_type_GPS_default" onload_delay="300">
+ <testcase purpose="Check if method HumanActivityMonitorOption::callbackInterval works properly when set to null" component="TizenAPI/Sensor/HumanActivityMonitor" execution_type="manual" priority="P1" id="HumanActivityMonitorOption_callbackInterval_type_GPS_default" onload_delay="300">
<description>
<steps>
<step order="1">
- <step_desc>Wait 150 seconds for the callback</step_desc>
- <expected>Pass should be shown in the page after 150 seconds</expected>
+ <step_desc>Turn off the screen, then wait 150 seconds for the callback</step_desc>
+ <expected>Pass should be shown in the page after turn off the screen 150 seconds</expected>
</step>
</steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorOption_callbackInterval_type_GPS_default.html</test_script_entry>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivitySleepMonitorData_timestamp_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if readRecorderData without optional arguments works properly for SLEEP_MONITOR HumanActivity type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_readRecorderData_type_SLEEP_MONITOR">
+ <testcase purpose="Check if readRecorderData without optional arguments works properly for SLEEP_MONITOR HumanActivity type" component="TizenAPI/System/HumanActivityMonitor" execution_type="manual" id="HumanActivityMonitorManager_readRecorderData_type_SLEEP_MONITOR">
<description>
+ <steps>
+ <step order="1">
+ <step_desc>Waiting for 20 minutes for the callback without touching the device.</step_desc>
+ <expected>Pass should be shown in the page after 20 minutes.</expected>
+ </step>
+ </steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_readRecorderData_type_SLEEP_MONITOR.html</test_script_entry>
</description>
</testcase>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_stopRecorder_type_SLEEP_MONITOR.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if HumanActivityRecorderSleepMonitorData have endTime attribute with proper type, readonly" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityRecorderSleepMonitorData_endTime_attribute">
+ <testcase purpose="Check if HumanActivityRecorderSleepMonitorData have endTime attribute with proper type, readonly" component="TizenAPI/System/HumanActivityMonitor" execution_type="manual" id="HumanActivityRecorderSleepMonitorData_endTime_attribute">
<description>
+ <steps>
+ <step order="1">
+ <step_desc>Waiting for 20 minutes for the callback without touching the device.</step_desc>
+ <expected>Pass should be shown in the page after 20 minutes.</expected>
+ </step>
+ </steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityRecorderSleepMonitorData_endTime_attribute.html</test_script_entry>
</description>
</testcase>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityRecorderSleepMonitorData_notexist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if HumanActivityRecorderSleepMonitorData have startTime attribute with proper type, readonly" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityRecorderSleepMonitorData_startTime_attribute">
+ <testcase purpose="Check if HumanActivityRecorderSleepMonitorData have startTime attribute with proper type, readonly" component="TizenAPI/System/HumanActivityMonitor" execution_type="manual" id="HumanActivityRecorderSleepMonitorData_startTime_attribute">
<description>
+ <steps>
+ <step order="1">
+ <step_desc>Waiting for 20 minutes for the callback without touching the device.</step_desc>
+ <expected>Pass should be shown in the page after 20 minutes.</expected>
+ </step>
+ </steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityRecorderSleepMonitorData_startTime_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if HumanActivityRecorderSleepMonitorData have status attribute with proper type, readonly" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityRecorderSleepMonitorData_status_attribute">
+ <testcase purpose="Check if HumanActivityRecorderSleepMonitorData have status attribute with proper type, readonly" component="TizenAPI/System/HumanActivityMonitor" execution_type="manual" id="HumanActivityRecorderSleepMonitorData_status_attribute">
<description>
+ <steps>
+ <step order="1">
+ <step_desc>Waiting for 20 minutes for the callback without touching the device.</step_desc>
+ <expected>Pass should be shown in the page after 20 minutes.</expected>
+ </step>
+ </steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityRecorderSleepMonitorData_status_attribute.html</test_script_entry>
</description>
</testcase>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_readRecorderData_successCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if readRecorderData without optional arguments works properly for PRESSURE HumanActivity type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="manual" onload_delay="150" id="HumanActivityMonitorManager_readRecorderData_type_PRESSURE">
- <description>
- <steps>
- <step order="1">
- <step_desc>Waiting for 1 minutes for the callback.</step_desc>
- <expected>Pass should be shown in the page after 1 minutes.</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_readRecorderData_type_PRESSURE.html</test_script_entry>
- </description>
- </testcase>
<testcase purpose="Check if HumanActivityMonitorManager::startRecorder() throw NotSupportedError called with not supported human activity recorder type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_startRecorder_NotSupportedError">
<description>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_startRecorder_NotSupportedError.html</test_script_entry>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_startRecorder_misarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method HumanActivityMonitorManager::startRecorder() works properly for PRESSURE HumanActivity type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_startRecorder_type_PRESSURE">
- <description>
- <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_startRecorder_type_PRESSURE.html</test_script_entry>
- </description>
- </testcase>
<testcase purpose="Check if HumanActivityMonitorManager::stopRecorder() throw NotSupportedError called with not supported human activity recorder type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_stopRecorder_NotSupportedError">
<description>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_stopRecorder_NotSupportedError.html</test_script_entry>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_stopRecorder_misarg.html</test_script_entry>
</description>
</testcase>
+ <testcase purpose="Check if HumanActivityReadRecorderSuccessCallback cannot be called in new expression and as a function or in new expression" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityReadRecorderSuccessCallback_notexist">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityReadRecorderSuccessCallback_notexist.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if HumanActivityRecorderData cannot be called in new expression and as a function or in new expression" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityRecorderData_notexist">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityRecorderData_notexist.html</test_script_entry>
+ </description>
+ </testcase>
+ </set>
+ <set name="HumanActivityMonitor_with_barometer_wearable">
+ <capabilities>
+ <capability name="http://tizen.org/feature/profile"><value>WEARABLE</value></capability>
+ <capability name="http://tizen.org/feature/sensor.barometer"/>
+ </capabilities>
+ <testcase purpose="Check if readRecorderData without optional arguments works properly for PRESSURE HumanActivity type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="manual" onload_delay="150" id="HumanActivityMonitorManager_readRecorderData_type_PRESSURE">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>Waiting for 1 minutes for the callback.</step_desc>
+ <expected>Pass should be shown in the page after 1 minutes.</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_readRecorderData_type_PRESSURE.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if method HumanActivityMonitorManager::startRecorder() works properly for PRESSURE HumanActivity type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_startRecorder_type_PRESSURE">
+ <description>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_startRecorder_type_PRESSURE.html</test_script_entry>
+ </description>
+ </testcase>
<testcase purpose="Check if method HumanActivityMonitorManager::stopRecorder() works properly for PRESSURE HumanActivity type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_stopRecorder_type_PRESSURE">
<description>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_stopRecorder_type_PRESSURE.html</test_script_entry>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_getHumanActivityData_errorCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_getHumanActivityData_errorCallback_invalid_cb" onload_delay="30" priority="P2" purpose="Check if HumanActivityMonitorManager::getHumanActivityData() method throws exception when errorCallback is invalid">
- <description>
- <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_getHumanActivityData_errorCallback_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
<testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_getHumanActivityData_errorCallback_invoked" onload_delay="30" priority="P2" purpose="Check exception in error callback of HumanActivityMonitorManager::getHumanActivityData() method">
<description>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_getHumanActivityData_errorCallback_invoked.html</test_script_entry>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_getHumanActivityData_successCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_getHumanActivityData_successCallback_invalid_cb" onload_delay="30" priority="P2" purpose="Check if HumanActivityMonitorManager::getHumanActivityData() method throws exception when successCallback is invalid">
- <description>
- <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_getHumanActivityData_successCallback_invalid_cb.html</test_script_entry>
- </description>
- </testcase>
<testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_getHumanActivityData_type_PEDOMETER" onload_delay="30" priority="P1" purpose="Check if HumanActivityMonitorManager::getHumanActivityData() method works properly">
<description>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_getHumanActivityData_type_PEDOMETER.html</test_script_entry>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_getHumanActivityData_stepStatus_RUNNING.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if readRecorderData can be called with empty object as query argument" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="manual" onload_delay="60" id="HumanActivityMonitorManager_readRecorderData_query_empty">
+ <testcase purpose="Check if readRecorderData can be called with empty object as query argument" onload_delay="60" component="TizenAPI/System/HumanActivityMonitor" execution_type="manual" id="HumanActivityMonitorManager_readRecorderData_query_empty">
<description>
+ <pre_condition>Before run this tc, run HumanActivityMonitorManager_readRecorderData_type_PRESSURE.html first, because we should wait at least 1 minute to get the recorded data after start recorder. But if you tested that TC already, you can run this TC now.</pre_condition>
<steps>
<step order="1">
- <step_desc>Press run button. Pretend walking with the device.</step_desc>
- <expected>Pass</expected>
+ <step_desc>Waiting for 1 minutes for the callback.</step_desc>
+ <expected>Pass should be shown in the page after 1 minutes.</expected>
</step>
</steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_readRecorderData_query_empty.html</test_script_entry>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_readRecorderData_type_PEDOMETER.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if readRecorderData with optional arguments works properly" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="manual" onload_delay="60" id="HumanActivityMonitorManager_readRecorderData_with_errorCallback">
+ <testcase purpose="Check if readRecorderData with optional arguments works properly" onload_delay="60" component="TizenAPI/System/HumanActivityMonitor" execution_type="manual" id="HumanActivityMonitorManager_readRecorderData_with_errorCallback">
<description>
+ <pre_condition>Before run this tc, run HumanActivityMonitorManager_readRecorderData_type_PRESSURE.html first, because we should wait at least 1 minute to get the recorded data after start recorder. But if you tested that TC already, you can run this TC now.</pre_condition>
<steps>
<step order="1">
- <step_desc>Press run button. Pretend walking with the device.</step_desc>
- <expected>Pass</expected>
+ <step_desc>Waiting for 1 minutes for the callback.</step_desc>
+ <expected>Pass should be shown in the page after 1 minutes.</expected>
</step>
</steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_readRecorderData_with_errorCallback.html</test_script_entry>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityHRMData_rRInterval_attribute.html</test_script_entry>
</description>
</testcase>
- <!-- <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorOption_callbackInterval_type_HRM" purpose="Check if method HumanActivityMonitorOption::callbackInterval works properly for HRM HumanActivity type">
+ <!-- <testcase component="TizenAPI/Sensor/HumanActivityMonitor" execution_type="manual" id="HumanActivityMonitorOption_callbackInterval_type_HRM" purpose="Check if method HumanActivityMonitorOption::callbackInterval works properly for HRM HumanActivity type">
<description>
+ <steps>
+ <step order="1">
+ <step_desc>Turn off the screen, then wait 0.5 seconds for the callback</step_desc>
+ <expected>Pass should be shown in the page after turn off the screen 0.5 seconds</expected>
+ </step>
+ </steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorOption_callbackInterval_type_HRM.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorOption_callbackInterval_type_HRM_default" purpose="Check if method HumanActivityMonitorOption::callbackInterval works properly when set to null">
+ <testcase component="TizenAPI/Sensor/HumanActivityMonitor" execution_type="manual" id="HumanActivityMonitorOption_callbackInterval_type_HRM_default" purpose="Check if method HumanActivityMonitorOption::callbackInterval works properly when set to null">
<description>
+ <steps>
+ <step order="1">
+ <step_desc>Turn off the screen, then wait 0.1 seconds for the callback</step_desc>
+ <expected>Pass should be shown in the page after turn off the screen 0.1 seconds</expected>
+ </step>
+ </steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorOption_callbackInterval_type_HRM_default.html</test_script_entry>
</description>
</testcase> -->
- <testcase purpose="Check if readRecorderData without optional arguments works properly for HRM HumanActivity type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="manual" onload_delay="1500" id="HumanActivityMonitorManager_readRecorderData_type_HRM">
+ <testcase purpose="Check if readRecorderData without optional arguments works properly for HRM HumanActivity type" component="TizenAPI/System/HumanActivityMonitor" execution_type="manual" onload_delay="1500" id="HumanActivityMonitorManager_readRecorderData_type_HRM">
<description>
<steps>
<step order="1">
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_stopRecorder_type_HRM.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if HumanActivityReadRecorderSuccessCallback onsuccess is called and if its arguments have proper type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="manual" onload_delay="60" id="HumanActivityReadRecorderSuccessCallback_onsuccess">
+ <testcase purpose="Check if HumanActivityReadRecorderSuccessCallback onsuccess is called and if its arguments have proper type" component="TizenAPI/System/HumanActivityMonitor" execution_type="manual" onload_delay="60" id="HumanActivityReadRecorderSuccessCallback_onsuccess">
<description>
- <pre_condition>Before run this tc, run HumanActivityMonitorManager_readRecorderData_type_HRM.html first, because we should wait at least 10 minutes to get the recorded data after start recorder. But if you tested that TC already, you can run this TC now.</pre_condition>
+ <pre_condition>Before run this tc, run HumanActivityMonitorManager_readRecorderData_type_PRESSURE.html first, because we should wait at least 1 minute to get the recorded data after start recorder. But if you tested that TC already, you can run this TC now.</pre_condition>
<steps>
<step order="1">
- <step_desc>Waiting for 10 minutes for the callback.</step_desc>
- <expected>Pass should be shown in the page after 10 minutes.</expected>
+ <step_desc>Waiting for 1 minutes for the callback.</step_desc>
+ <expected>Pass should be shown in the page after 1 minutes.</expected>
</step>
</steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityReadRecorderSuccessCallback_onsuccess.html</test_script_entry>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityGPSInfo_timestamp_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method HumanActivityMonitorOption::callbackInterval works properly for GPS HumanActivity type" component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="manual" priority="P1" id="HumanActivityMonitorOption_callbackInterval_type_GPS" onload_delay="300">
+ <testcase purpose="Check if method HumanActivityMonitorOption::callbackInterval works properly for GPS HumanActivity type" component="TizenAPI/Sensor/HumanActivityMonitor" execution_type="manual" priority="P1" id="HumanActivityMonitorOption_callbackInterval_type_GPS" onload_delay="300">
<description>
<steps>
<step order="1">
- <step_desc>Wait 155 seconds for the callback</step_desc>
- <expected>Pass should be shown in the page after 155 seconds</expected>
+ <step_desc>Turn off the screen, then wait 155 seconds for the callback</step_desc>
+ <expected>Pass should be shown in the page after turn off the screen 155 seconds</expected>
</step>
</steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorOption_callbackInterval_type_GPS.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if method HumanActivityMonitorOption::callbackInterval works properly when set to null" component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="manual" priority="P1" id="HumanActivityMonitorOption_callbackInterval_type_GPS_default" onload_delay="300">
+ <testcase purpose="Check if method HumanActivityMonitorOption::callbackInterval works properly when set to null" component="TizenAPI/Sensor/HumanActivityMonitor" execution_type="manual" priority="P1" id="HumanActivityMonitorOption_callbackInterval_type_GPS_default" onload_delay="300">
<description>
<steps>
<step order="1">
- <step_desc>Wait 150 seconds for the callback</step_desc>
- <expected>Pass should be shown in the page after 150 seconds</expected>
+ <step_desc>Turn off the screen, then wait 150 seconds for the callback</step_desc>
+ <expected>Pass should be shown in the page after turn off the screen 150 seconds</expected>
</step>
</steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorOption_callbackInterval_type_GPS_default.html</test_script_entry>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivitySleepMonitorData_status_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Sensor/HumanActivityMonitor" execution_type="auto" id="HumanActivitySleepMonitorData_timestamp_attribute" purpose="Check if HumanActivitySleepMonitorData::timestamp exists, has type long, and is readonly">
+ <testcase purpose="Check if readRecorderData without optional arguments works properly for SLEEP_MONITOR HumanActivity type" component="TizenAPI/System/HumanActivityMonitor" execution_type="manual" id="HumanActivityMonitorManager_readRecorderData_type_SLEEP_MONITOR">
<description>
- <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivitySleepMonitorData_timestamp_attribute.html</test_script_entry>
+ <steps>
+ <step order="1">
+ <step_desc>Waiting for 20 minutes for the callback without touching the device.</step_desc>
+ <expected>Pass should be shown in the page after 20 minutes.</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_readRecorderData_type_SLEEP_MONITOR.html</test_script_entry>
</description>
</testcase>
<testcase purpose="Check if readRecorderData without optional arguments works properly for SLEEP_MONITOR HumanActivity type" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityMonitorManager_readRecorderData_type_SLEEP_MONITOR">
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityMonitorManager_stopRecorder_type_SLEEP_MONITOR.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if HumanActivityRecorderSleepMonitorData have endTime attribute with proper type, readonly" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityRecorderSleepMonitorData_endTime_attribute">
+ <testcase purpose="Check if HumanActivityRecorderSleepMonitorData have endTime attribute with proper type, readonly" component="TizenAPI/System/HumanActivityMonitor" execution_type="manual" id="HumanActivityRecorderSleepMonitorData_endTime_attribute">
<description>
+ <steps>
+ <step order="1">
+ <step_desc>Waiting for 20 minutes for the callback without touching the device.</step_desc>
+ <expected>Pass should be shown in the page after 20 minutes.</expected>
+ </step>
+ </steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityRecorderSleepMonitorData_endTime_attribute.html</test_script_entry>
</description>
</testcase>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityRecorderSleepMonitorData_notexist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if HumanActivityRecorderSleepMonitorData have startTime attribute with proper type, readonly" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityRecorderSleepMonitorData_startTime_attribute">
+ <testcase purpose="Check if HumanActivityRecorderSleepMonitorData have startTime attribute with proper type, readonly" component="TizenAPI/System/HumanActivityMonitor" execution_type="manual" id="HumanActivityRecorderSleepMonitorData_startTime_attribute">
<description>
+ <steps>
+ <step order="1">
+ <step_desc>Waiting for 20 minutes for the callback without touching the device.</step_desc>
+ <expected>Pass should be shown in the page after 20 minutes.</expected>
+ </step>
+ </steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityRecorderSleepMonitorData_startTime_attribute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if HumanActivityRecorderSleepMonitorData have status attribute with proper type, readonly" component="Tizen Device APIs/System/HumanActivityMonitor" execution_type="auto" id="HumanActivityRecorderSleepMonitorData_status_attribute">
+ <testcase purpose="Check if HumanActivityRecorderSleepMonitorData have status attribute with proper type, readonly" component="TizenAPI/System/HumanActivityMonitor" execution_type="manual" id="HumanActivityRecorderSleepMonitorData_status_attribute">
<description>
+ <steps>
+ <step order="1">
+ <step_desc>Waiting for 20 minutes for the callback without touching the device.</step_desc>
+ <expected>Pass should be shown in the page after 20 minutes.</expected>
+ </step>
+ </steps>
<test_script_entry>/opt/tct-humanactivitymonitor-tizen-tests/humanactivitymonitor/HumanActivityRecorderSleepMonitorData_status_attribute.html</test_script_entry>
</description>
</testcase>