[common][tct-humanactivitymonitor-tizen-tests][Add feature in config.xml and tests... 39/130639/1
authorxy.qian <xy.qian@samsung.com>
Tue, 23 May 2017 07:14:39 +0000 (15:14 +0800)
committerxy.qian <xy.qian@samsung.com>
Tue, 23 May 2017 07:14:39 +0000 (15:14 +0800)
Change-Id: I60d438bbaf202f28689277ece1aefaa460fb44bc
Signed-off-by: xy.qian <xy.qian@samsung.com>
common/tct-humanactivitymonitor-tizen-tests/config.xml
common/tct-humanactivitymonitor-tizen-tests/tests.xml

index 39b35c41dbdc7dc247d65bd68f32cf19b1c5ba73..1780bb925a08e24c112f34e357fe54a9df514ef3 100755 (executable)
@@ -3,6 +3,14 @@
   <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="4.0"/>
   <tizen:setting screen-orientation="landscape" />
index f8f6265e0da0e2c5bd250cbd8fbb3b841dc7579b..c771837fdec9215f0112a061dce15682a54c7020 100755 (executable)
           <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/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>