[commom][systeminfo][add TCs for new API-getDeviceUptime] 16/293916/1
authortangkaiyuan <kaiyuan.tang@samsung.com>
Thu, 8 Jun 2023 05:25:07 +0000 (13:25 +0800)
committertangkaiyuan <kaiyuan.tang@samsung.com>
Thu, 8 Jun 2023 05:25:17 +0000 (13:25 +0800)
Change-Id: If3a3477f63895b1dcc1fb7308bc04d41bd52058d
Signed-off-by: tangkaiyuan <kaiyuan.tang@samsung.com>
common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime.html [new file with mode: 0755]
common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_exist.html [new file with mode: 0755]
common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_extra_argument.html [new file with mode: 0755]
common/tct-systeminfo-tizen-tests/tests.full.xml
common/tct-systeminfo-tizen-tests/tests.xml

diff --git a/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime.html b/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime.html
new file mode 100755 (executable)
index 0000000..f9cfcd8
--- /dev/null
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2014 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Author:
+        Kaiyuan Tang <kaiyuan.tang@samsung.com>
+
+-->
+<html>
+<head>
+<title>SystemInfo_getDeviceUptime</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/systeminfo_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: SystemInfo_getDeviceUptime
+//==== LABEL Check if SystemInfo::getDeviceUptime() method works properly
+//==== ONLOAD_DELAY 90
+//==== SPEC Tizen Web API:System:SystemInfo:SystemInfo:getDeviceUptime M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR MNA
+
+test(function () {
+    var retVal = null;
+    retVal = tizen.systeminfo.getDeviceUptime();
+    assert_type(retVal, "unsigned long long", "getDeviceUptime returns wrong value");
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_exist.html b/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_exist.html
new file mode 100755 (executable)
index 0000000..3e90331
--- /dev/null
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2014 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Author:
+        Kaiyuan Tang <kaiyuan.tang@samsung.com>
+
+-->
+<html>
+<head>
+<title>SystemInfo_getDeviceUptime_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/systeminfo_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: SystemInfo_getDeviceUptime_exist
+//==== LABEL Check if SystemInfo::getDeviceUptime() method exists
+//==== ONLOAD_DELAY 90
+//==== SPEC Tizen Web API:System:SystemInfo:SystemInfo:getDeviceUptime M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+    check_method_exists(tizen.systeminfo , "getDeviceUptime");
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_extra_argument.html b/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_extra_argument.html
new file mode 100755 (executable)
index 0000000..e85e5ea
--- /dev/null
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2014 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Author:
+        Kaiyuan Tang <kaiyuan.tang@samsung.com>
+
+-->
+<html>
+<head>
+<title>SystemInfo_getDeviceUptime_extra_argument</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/systeminfo_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: SystemInfo_getDeviceUptime_extra_argument
+//==== LABEL Check if SystemInfo::getDeviceUptime() method accepts extra argument
+//==== ONLOAD_DELAY 90
+//==== SPEC Tizen Web API:System:SystemInfo:SystemInfo:getDeviceUptime M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html
+//==== PRIORITY P1
+//==== TEST_CRITERIA MNAEX
+
+test(function () {
+    checkExtraArgument(tizen.systeminfo, "getDeviceUptime");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
index 85754bf812415bc5dbea8486d40ca4b91b293bf5..58d2c6f48f282720dcf0b1afffab090a38c15fb1 100755 (executable)
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="Check if SystemInfo::getDeviceUptime() method works properly" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfo_getDeviceUptime">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfo" usage="true" specification="SystemInfo" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if SystemInfo::getDeviceUptime() method exists" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P0" id="SystemInfo_getDeviceUptime_exist">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfo" usage="true" specification="SystemInfo" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if SystemInfo::getDeviceUptime() method accepts extra argument" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfo_getDeviceUptime_extra_argument">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_extra_argument.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfo" usage="true" specification="SystemInfo" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
     </set>
     <set name="SystemInfo_WEARABLE" type="js">
       <capabilities>
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="Check if SystemInfo::getDeviceUptime() method works properly" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfo_getDeviceUptime">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfo" usage="true" specification="SystemInfo" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if SystemInfo::getDeviceUptime() method exists" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P0" id="SystemInfo_getDeviceUptime_exist">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfo" usage="true" specification="SystemInfo" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if SystemInfo::getDeviceUptime() method accepts extra argument" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfo_getDeviceUptime_extra_argument">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_extra_argument.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfo" usage="true" specification="SystemInfo" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
     </set>
     <set name="SystemInfo_TV" type="js">
       <capabilities>
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="Check if SystemInfo::getDeviceUptime() method works properly" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfo_getDeviceUptime">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfo" usage="true" specification="SystemInfo" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if SystemInfo::getDeviceUptime() method exists" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P0" id="SystemInfo_getDeviceUptime_exist">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfo" usage="true" specification="SystemInfo" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if SystemInfo::getDeviceUptime() method accepts extra argument" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfo_getDeviceUptime_extra_argument">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_extra_argument.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfo" usage="true" specification="SystemInfo" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
     </set>
     <set name="SystemInfoWindowAPI_TV" type="js">
       <capabilities>
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="Check if SystemInfo::getDeviceUptime() method works properly" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfo_getDeviceUptime">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfo" usage="true" specification="SystemInfo" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if SystemInfo::getDeviceUptime() method exists" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P0" id="SystemInfo_getDeviceUptime_exist">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfo" usage="true" specification="SystemInfo" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if SystemInfo::getDeviceUptime() method accepts extra argument" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfo_getDeviceUptime_extra_argument">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_extra_argument.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfo" usage="true" specification="SystemInfo" section="System" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
     </set>
     <set name="systeminfo_telephony_MOBILE">
       <capabilities>
index 0110af66380c36ef8b2d2d1b2b77ccb56a29f2a1..ea3e1691db33b38cf664294f7659fa1c3961dcd5 100755 (executable)
           <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoBattery_timeToFullcharge_attribute.html</test_script_entry>
         </description>
       </testcase>
+      <testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfo_getDeviceUptime" priority="P1" purpose="Check if SystemInfo::getDeviceUptime() method works properly">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfo_getDeviceUptime_exist" priority="P0" purpose="Check if SystemInfo::getDeviceUptime() method exists">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfo_getDeviceUptime_extra_argument" priority="P1" purpose="Check if SystemInfo::getDeviceUptime() method accepts extra argument">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_extra_argument.html</test_script_entry>
+        </description>
+      </testcase>
     </set>
     <set name="SystemInfo_WEARABLE" type="js">
       <capabilities>
           <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoBattery_timeToFullcharge_attribute.html</test_script_entry>
         </description>
       </testcase>
+      <testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfo_getDeviceUptime" priority="P1" purpose="Check if SystemInfo::getDeviceUptime() method works properly">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfo_getDeviceUptime_exist" priority="P0" purpose="Check if SystemInfo::getDeviceUptime() method exists">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfo_getDeviceUptime_extra_argument" priority="P1" purpose="Check if SystemInfo::getDeviceUptime() method accepts extra argument">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_extra_argument.html</test_script_entry>
+        </description>
+      </testcase>
     </set>
     <set name="SystemInfo_TV" type="js">
       <capabilities>
           <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getCapability_network_ethernet.html</test_script_entry>
         </description>
       </testcase>
+      <testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfo_getDeviceUptime" priority="P1" purpose="Check if SystemInfo::getDeviceUptime() method works properly">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfo_getDeviceUptime_exist" priority="P0" purpose="Check if SystemInfo::getDeviceUptime() method exists">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfo_getDeviceUptime_extra_argument" priority="P1" purpose="Check if SystemInfo::getDeviceUptime() method accepts extra argument">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_extra_argument.html</test_script_entry>
+        </description>
+      </testcase>
     </set>
     <set name="SystemInfoWindowAPI_TV" type="js">
       <capabilities>
           <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoADS_id_attribute.html</test_script_entry>
         </description>
       </testcase>
+      <testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfo_getDeviceUptime" priority="P1" purpose="Check if SystemInfo::getDeviceUptime() method works properly">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfo_getDeviceUptime_exist" priority="P0" purpose="Check if SystemInfo::getDeviceUptime() method exists">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfo_getDeviceUptime_extra_argument" priority="P1" purpose="Check if SystemInfo::getDeviceUptime() method accepts extra argument">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getDeviceUptime_extra_argument.html</test_script_entry>
+        </description>
+      </testcase>
     </set>
     <set name="systeminfo_telephony_MOBILE">
       <capabilities>