[common][tct-application-tizen-tests][TWDAPI-177 Add some tc into wearable profile] 59/159859/2
authorxy.qian <xy.qian@samsung.com>
Mon, 13 Nov 2017 08:43:52 +0000 (16:43 +0800)
committerxy.qian <xy.qian@samsung.com>
Mon, 13 Nov 2017 08:49:59 +0000 (16:49 +0800)
Change-Id: I7ee420456b2bb6fa49f198b3bf464d663623630d
Signed-off-by: xy.qian <xy.qian@samsung.com>
common/tct-application-tizen-tests/config.xml
common/tct-application-tizen-tests/tests.xml

index c77f8e6b531ac91bf78116c64921f9e5111084a0..3357c765156f8f594fc8da47221973a14f41f734 100755 (executable)
@@ -7,6 +7,7 @@
   <tizen:privilege name="http://tizen.org/privilege/application.info"/>
   <tizen:privilege name="http://tizen.org/privilege/apphistory.read"/>
   <feature name="http://tizen.org/feature/battery"/>
+  <feature name="http://tizen.org/feature/app_history"/>
   <icon src="icon.png" height="117" width="117"/>
   <tizen:application id="api1appli0.WebAPITizenApplicationTests" package="api1appli0" required_version="4.0"/>
   <tizen:setting screen-orientation="landscape" />
index 8ddb51b373e84d3d1807b869ba3391620333f82a..eb5f44b1727f2e7cb50f35c52acd6a2fda1f0463 100755 (executable)
         </description>
       </testcase>
    </set>
-    <set name="Application_waeable" type="js">
+    <set name="Application_wearable" type="js">
       <capabilities>
         <capability name="http://tizen.org/feature/profile"><value>WEARABLE</value></capability>
       </capabilities>
           <test_script_entry>/opt/tct-application-tizen-tests/application/EventCallback_onevent.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="Check if ApplicationBatteryUsage have appId attribute with proper type and is readonly" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationBatteryUsage_appId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationBatteryUsage_appId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if ApplicationBatteryUsage have batteryUsage attribute with proper type and is readonly" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationBatteryUsage_batteryUsage_attribute">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationBatteryUsage_batteryUsage_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface ApplicationBatteryUsage possible extend" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="ApplicationBatteryUsage_extend">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationBatteryUsage_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface ApplicationBatteryUsage exists, it should not" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="ApplicationBatteryUsage_notexist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationBatteryUsage_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method getAppsUsageInfo works properly without optional parameter" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_getAppsUsageInfo">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check argument 'errorCallback' type conversion" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if getAppsUsageInfo throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check exception in error callback of getAppsUsageInfo method" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_errorCallback_invoked">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_errorCallback_invoked.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method getAppsUsageInfo exist" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P0" id="ApplicationManager_getAppsUsageInfo_exist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check argument 'filter' type conversion" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method getAppsUsageInfo can be called with empty object as filter argument" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_getAppsUsageInfo_filter_empty">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_filter_empty.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if find throws exception when filter is a simple object" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_filter_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_filter_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if getAppsUsageInfo method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_misarg">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_misarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check argument 'successCallback' type conversion" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if getAppsUsageInfo throws exception when successCallback is incorrect" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method getAppsUsageInfo works properly with all optional parameter" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_getAppsUsageInfo_with_limit">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_with_limit.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method getBatteryUsageInfo works properly without optional parameter" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_getBatteryUsageInfo">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check argument 'errorCallback' type conversion" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getBatteryUsageInfo_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if getBatteryUsageInfo throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getBatteryUsageInfo_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check exception in error callback of getBatteryUsageInfo method" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getBatteryUsageInfo_errorCallback_invoked">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_errorCallback_invoked.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method getBatteryUsageInfo exist" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P0" id="ApplicationManager_getBatteryUsageInfo_exist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if getBatteryUsageInfo method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getBatteryUsageInfo_misarg">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_misarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check argument 'successCallback' type conversion" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getBatteryUsageInfo_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if getBatteryUsageInfo throws exception when successCallback is incorrect" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getBatteryUsageInfo_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method getBatteryUsageInfo works properly with all optional parameter" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_getBatteryUsageInfo_with_limit">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_with_limit.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if ApplicationUsage have appId attribute with proper type and is readonly" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationUsage_appId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationUsage_appId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface ApplicationUsage possible extend" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="ApplicationUsage_extend">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationUsage_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if ApplicationUsage have lastTime attribute with proper type and is readonly" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationUsage_lastTime_attribute">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationUsage_lastTime_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface ApplicationUsage exists, it should not" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="ApplicationUsage_notexist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationUsage_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if ApplicationUsage have totalCount attribute with proper type and is readonly" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationUsage_totalCount_attribute">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationUsage_totalCount_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if ApplicationUsage have totalDuration attribute with proper type and is readonly" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationUsage_totalDuration_attribute">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationUsage_totalDuration_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AppsUsageInfoArraySuccessCallback notexist" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="AppsUsageInfoArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/AppsUsageInfoArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AppsUsageInfoArraySuccessCallback onsuccess is called and if its arguments have proper type" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="AppsUsageInfoArraySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/AppsUsageInfoArraySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if BatteryUsageInfoArraySuccessCallback notexist" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="BatteryUsageInfoArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/BatteryUsageInfoArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if BatteryUsageInfoArraySuccessCallback onsuccess is called and if its arguments have proper type" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="BatteryUsageInfoArraySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/BatteryUsageInfoArraySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
    </set>
   </suite>
 </test_definition>