[common][systeminfo][TWDAPI-283 Adding editName property to VideoSourceInfo] 00/272300/1
authortangkaiyuan <kaiyuan.tang@samsung.com>
Mon, 14 Mar 2022 08:40:58 +0000 (16:40 +0800)
committertangkaiyuan <kaiyuan.tang@samsung.com>
Mon, 14 Mar 2022 08:41:12 +0000 (16:41 +0800)
Change-Id: Id5950dfa01d2b8bd5dfe5b6d5c7d7d24b04abc22
Signed-off-by: tangkaiyuan <kaiyuan.tang@samsung.com>
common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_editName_attribute.html [new file with mode: 0755]
common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_editName_attribute_bysourcechange.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/SystemInfoVideoSourceInfo_editName_attribute.html b/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_editName_attribute.html
new file mode 100755 (executable)
index 0000000..2f5fd3a
--- /dev/null
@@ -0,0 +1,63 @@
+<!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:
+        Kaiyuan Tang <kaiyuan.tang@samsung.com>
+
+-->
+<html>
+<head>
+<title>SystemInfoVideoSourceInfo_editName_attribute</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: SystemInfoVideoSourceInfo_editName_attribute
+//==== LABEL Check attribute editName of SystemInfoVideoSourceInfo
+//==== ONLOAD_DELAY 90
+//==== SPEC Tizen Web API:System:SystemInfo:SystemInfoVideoSourceInfo:editName A
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html
+//==== TEST_CRITERIA AE AT ARO
+//==== PRIORITY P1
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), getPropertyValueSuccess,
+    getPropertyValueError;
+
+t.step(function () {
+    getPropertyValueSuccess = t.step_func(function (source) {
+        if(source.connected.length != 0){
+            assert_own_property(source.connected[0], "editName", "SystemInfoVideoSourceInfo doesn't own editName property.");
+            check_readonly(source.connected[0], "editName", source.connected[0].editName, "string", "Tizen");
+        }else if(source.disconnected.length != 0){
+            assert_own_property(source.disconnected[0], "editName", "SystemInfoVideoSourceInfo doesn't own editName property.");
+            check_readonly(source.disconnected[0], "editName", source.disconnected[0].editName, "string", "Tizen");
+        }
+        t.done();
+    });
+    getPropertyValueError = t.step_func(function (e) {
+        assert_unreached("Exception: " + e.message);
+    });
+
+    tizen.systeminfo.getPropertyValue("VIDEOSOURCE", getPropertyValueSuccess, getPropertyValueError);
+});
+
+</script>
+</body>
+</html>
diff --git a/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_editName_attribute_bysourcechange.html b/common/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_editName_attribute_bysourcechange.html
new file mode 100755 (executable)
index 0000000..cd8b203
--- /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:
+        Kaiyuan Tang <kaiyuan.tang@samsung.com>
+
+-->
+<html>
+<head>
+<title>SystemInfoVideoSourceInfo_editName_attribute_bysourcechange</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: SystemInfoVideoSourceInfo_editName_attribute_bysourcechange
+//==== LABEL Check if attribute editName of SystemInfoVideoSourceInfo exists, has type string and is readonly
+//==== SPEC Tizen Web API:System:SystemInfo:SystemInfoVideoSourceInfo:editName 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, "editName", source.editName, "string", "Tizen");
+        t.done();
+    });
+
+    getPropertyValueError = t.step_func(function (e) {
+        assert_unreached("Exception: " + e.message);
+    });
+
+    tizen.systeminfo.getPropertyValue("SOURCE_INFO", getPropertyValueSuccess, getPropertyValueError);
+});
+
+</script>
+</body>
+</html>
index 3b9b8be2fae0f4e430e982000ff16480c16434d2..85754bf812415bc5dbea8486d40ca4b91b293bf5 100755 (executable)
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="Check if attribute editName of SystemInfoVideoSourceInfo exists, has type string and is readonly" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfoVideoSourceInfo_editName_attribute">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_editName_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfoVideoSourceInfo" element_type="attribute" element_name="editName" 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 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>
       </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>
       </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>
         </specs>
       </testcase>
+      <testcase purpose="Check if attribute editName of SystemInfoVideoSourceInfo exists, has type string and is readonly" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfoVideoSourceInfo_editName_attribute_bysourcechange">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_editName_attribute_bysourcechange.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="SystemInfoVideoSourceInfo" element_type="attribute" element_name="editName" 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 interface SystemInfoPanel exists, it should not." type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P3" id="SystemInfoPanel_notexist">
         <description>
           <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoPanel_notexist.html</test_script_entry>
index 463c8d62240f36878a4ca81218fecb8d9614bc15..0110af66380c36ef8b2d2d1b2b77ccb56a29f2a1 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 editName of SystemInfoVideoSourceInfo exists, has type string and is readonly" component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfoVideoSourceInfo_editName_attribute">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_editName_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>
+      <testcase purpose="Check if attribute editName of SystemInfoVideoSourceInfo exists, has type string and is readonly" component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfoVideoSourceInfo_editName_attribute_bysourcechange">
+        <description>
+          <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoVideoSourceInfo_editName_attribute_bysourcechange.html</test_script_entry>
+        </description>
+      </testcase>
       <testcase component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfoPanel_notexist" onload_delay="90" priority="P3" purpose="Check if interface SystemInfoPanel exists, it should not.">
         <description>
           <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfoPanel_notexist.html</test_script_entry>