[common][systeminfo][TWDAPI-235, add callback for change of source_info] 41/215541/2
authorqunfang.lin <qunfang.lin@samsung.com>
Fri, 11 Oct 2019 02:45:56 +0000 (10:45 +0800)
committerqunfang.lin <qunfang.lin@samsung.com>
Tue, 15 Oct 2019 20:55:23 +0000 (04:55 +0800)
add: 3 tcs, modify: 0 tcs, delete: 0 tcs

Change-Id: I18c92d8ae28e34c2959711981cc7db7eb59f9499
Signed-off-by: qunfang.lin <qunfang.lin@samsung.com>
common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_number_attribute_bysourcechange.html [new file with mode: 0644]
common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_signal_attribute_bysourcechange.html [new file with mode: 0644]
common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_type_attribute_bysourcechange.html [new file with mode: 0644]
common/tct-systeminfo-tizen-tests/tests.full.xml
common/tct-systeminfo-tizen-tests/tests.xml

diff --git a/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_number_attribute_bysourcechange.html b/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_number_attribute_bysourcechange.html
new file mode 100644 (file)
index 0000000..cabd8ad
--- /dev/null
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 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:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>SystemInfoVideoSourceInfo_number_attribute_bysourcechange</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: SystemInfoVideoSourceInfo_number_attribute_bysourcechange
+//==== LABEL Check if attribute number of SystemInfoVideoSourceInfo exists, has type number and is readonly
+//==== SPEC Tizen Web API:System:SystemInfo:SystemInfoVideoSourceInfo:number A
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html
+//==== PRIORITY P1
+//==== ONLOAD_DELAY 90
+//==== TEST_CRITERIA AE AT ARO
+
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), getPropertyValueSuccess, getPropertyValueError;
+
+t.step(function () {
+    getPropertyValueSuccess = t.step_func(function (source) {
+        check_readonly(source, "number", source.number, "long", 0);
+        t.done();
+    });
+
+    getPropertyValueError = t.step_func(function (e) {
+        assert_unreached("Exception: " + e.message);
+    });
+
+    tizen.systeminfo.getPropertyValue("SOURCE_INFO", getPropertyValueSuccess, getPropertyValueError);
+});
+
+</script>
+</body>
+</html>
diff --git a/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_signal_attribute_bysourcechange.html b/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_signal_attribute_bysourcechange.html
new file mode 100644 (file)
index 0000000..1d5ba56
--- /dev/null
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 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:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>SystemInfoVideoSourceInfo_signal_attribute_bysourcechange</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: SystemInfoVideoSourceInfo_signal_attribute_bysourcechange
+//==== LABEL Check if attribute signal of SystemInfoVideoSourceInfo exists, has type boolean and is readonly
+//==== SPEC Tizen Web API:System:SystemInfo:SystemInfoVideoSourceInfo:signal A
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html
+//==== PRIORITY P1
+//==== ONLOAD_DELAY 90
+//==== TEST_CRITERIA AE AT ARO
+
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), getPropertyValueSuccess, getPropertyValueError;
+
+t.step(function () {
+    getPropertyValueSuccess = t.step_func(function (source) {
+        check_readonly(source, "signal", source.signal, "boolean", !source.signal);
+        t.done();
+    });
+
+    getPropertyValueError = t.step_func(function (e) {
+        assert_unreached("Exception: " + e.message);
+    });
+
+    tizen.systeminfo.getPropertyValue("SOURCE_INFO", getPropertyValueSuccess, getPropertyValueError);
+});
+
+</script>
+</body>
+</html>
diff --git a/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_type_attribute_bysourcechange.html b/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_type_attribute_bysourcechange.html
new file mode 100644 (file)
index 0000000..819de01
--- /dev/null
@@ -0,0 +1,60 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 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:
+        Qunfang Lin <qunfang.lin@samsung.com>
+
+-->
+<html>
+<head>
+<title>SystemInfoVideoSourceInfo_type_attribute_bysourcechange</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: SystemInfoVideoSourceInfo_type_attribute_bysourcechange
+//==== LABEL Check if attribute type of SystemInfoVideoSourceInfo exists, has type string and is readonly
+//==== SPEC Tizen Web API:System:SystemInfo:SystemInfoVideoSourceInfo:type A
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html
+//==== PRIORITY P1
+//==== ONLOAD_DELAY 90
+//==== TEST_CRITERIA AE AT ARO
+
+
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), getPropertyValueSuccess, getPropertyValueError;
+
+t.step(function () {
+    getPropertyValueSuccess = t.step_func(function (source) {
+        check_readonly(source, "type", source.type, "string", "invalid");
+        assert_in_array(source.type, ["TV", "AV", "SVIDEO", "COMP", "PC", "HDMI", "SCART", "DVI", "MEDIA"], "Incorrect value of video type");
+        t.done();
+    });
+
+    getPropertyValueError = t.step_func(function (e) {
+        assert_unreached("Exception: " + e.message);
+    });
+
+    tizen.systeminfo.getPropertyValue("SOURCE_INFO", getPropertyValueSuccess, getPropertyValueError);
+});
+
+</script>
+</body>
+</html>
index 1c60b51d195be8912329fd693b46c852824990fd..dc207ae0b0757a5fc94583e521e3ef88fc1b019a 100755 (executable)
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="Check if attribute type of SystemInfoVideoSourceInfo exists, has type string and is readonly" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfoVideoSourceInfo_type_attribute_bysourcechange">
+        <description>
+          <pre_condition>You must connect one type of sources(TV, AV, SVIDEO, COMP, PC, HDMI, SCART, DVI, MEDIA)</pre_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Run the test.</step_desc>
+              <expected>Pass.</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_type_attribute_bysourcechange.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfoVideoSourceInfo" element_type="attribute" element_name="type" 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 attribute signal of SystemInfoVideoSourceInfo exists, has type boolean and is readonly" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfoVideoSourceInfo_signal_attribute_bysourcechange">
+        <description>
+          <pre_condition>You must connect one type of sources(TV, AV, SVIDEO, COMP, PC, HDMI, SCART, DVI, MEDIA)</pre_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Run the test.</step_desc>
+              <expected>Pass.</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_signal_attribute_bysourcechange.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfoVideoSourceInfo" element_type="attribute" element_name="signal" 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 attribute number of SystemInfoVideoSourceInfo exists, has type number and is readonly" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfoVideoSourceInfo_number_attribute_bysourcechange">
+        <description>
+          <pre_condition>You must connect one type of sources(TV, AV, SVIDEO, COMP, PC, HDMI, SCART, DVI, MEDIA)</pre_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Run the test.</step_desc>
+              <expected>Pass.</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_number_attribute_bysourcechange.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfoVideoSourceInfo" element_type="attribute" element_name="number" 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 a2fcbcbbfe98f7c398cf88eecceee129bd9fd627..9db0b55bfd245e70a9b27cdb8c210cd146f6ed24 100755 (executable)
           <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_number_attribute.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="Check if attribute type of SystemInfoVideoSourceInfo exists, has type string and is readonly" component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfoVideoSourceInfo_type_attribute_bysourcechange">
+        <description>
+          <pre_condition>You must connect one type of sources(TV, AV, SVIDEO, COMP, PC, HDMI, SCART, DVI, MEDIA)</pre_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Run the test.</step_desc>
+              <expected>Pass.</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_type_attribute_bysourcechange.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute signal of SystemInfoVideoSourceInfo exists, has type boolean and is readonly" component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfoVideoSourceInfo_signal_attribute_bysourcechange">
+        <description>
+          <pre_condition>You must connect one type of sources(TV, AV, SVIDEO, COMP, PC, HDMI, SCART, DVI, MEDIA)</pre_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Run the test.</step_desc>
+              <expected>Pass.</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_signal_attribute_bysourcechange.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute number of SystemInfoVideoSourceInfo exists, has type number and is readonly" component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfoVideoSourceInfo_number_attribute_bysourcechange">
+        <description>
+          <pre_condition>You must connect one type of sources(TV, AV, SVIDEO, COMP, PC, HDMI, SCART, DVI, MEDIA)</pre_condition>
+          <steps>
+            <step order="1">
+              <step_desc>Run the test.</step_desc>
+              <expected>Pass.</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_number_attribute_bysourcechange.html</test_script_entry>
+        </description>
+      </testcase>
     </set>
     <set name="systeminfo_telephony_MOBILE">
       <capabilities>