[common][mediacontroller][TWDAPI-221, add 4 tcs for new api] 18/209418/2
authorzhongyuan <zy123.yuan@samsung.com>
Sat, 6 Jul 2019 07:45:07 +0000 (15:45 +0800)
committerzhongyuan yuan <zy123.yuan@samsung.com>
Mon, 8 Jul 2019 04:00:43 +0000 (04:00 +0000)
Change-Id: If6782636cf486786f95e6f8d8e5716d4600f7b12

common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_iconURI_attribute.html [new file with mode: 0755]
common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_iconURI_attribute.html [new file with mode: 0755]
common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_updateIconURI.html [new file with mode: 0755]
common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_updateIconURI_exist.html [new file with mode: 0755]
common/tct-mediacontroller-tizen-tests/tests.full.xml
common/tct-mediacontroller-tizen-tests/tests.xml

diff --git a/common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_iconURI_attribute.html b/common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_iconURI_attribute.html
new file mode 100755 (executable)
index 0000000..f6e5270
--- /dev/null
@@ -0,0 +1,48 @@
+<!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:
+        Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServerInfo_iconURI_attribute</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServerInfo_iconURI_attribute
+//==== LABEL Check if attribute iconURI of MediaControllerServerInfo exists, has type string and is readonly
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServerInfo:iconURI A
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA AE AT ARO
+
+test(function () {
+    var mcClient, mcServerInfo;
+
+    tizen.mediacontroller.createServer();
+    mcClient = tizen.mediacontroller.getClient();
+    mcServerInfo = mcClient.getLatestServerInfo();
+    check_readonly(mcServerInfo, "iconURI", mcServerInfo.iconURI, "string", "test");
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_iconURI_attribute.html b/common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_iconURI_attribute.html
new file mode 100755 (executable)
index 0000000..f828060
--- /dev/null
@@ -0,0 +1,44 @@
+<!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:
+        Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServer_iconURI_attribute</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServer_iconURI_attribute
+//==== LABEL Check if attribute iconURI of MediaControllerServer exists, has type string and is readonly
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServer:iconURI A
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA AE AT ARO
+
+test(function () {
+    var mcServer= tizen.mediacontroller.createServer();
+    check_readonly(mcServer, "iconURI", mcServer.iconURI, "string", "test");
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_updateIconURI.html b/common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_updateIconURI.html
new file mode 100755 (executable)
index 0000000..c4a7ff4
--- /dev/null
@@ -0,0 +1,51 @@
+<!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:
+        Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServer_updateIconURI</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServer_updateIconURI
+//==== LABEL Check if MediaControllerServer updateIconURI method works properly
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServer:updateIconURI M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR MAST
+
+test(function () {
+    var server, client, sinfo, uri = "http://example.com/res/icon2.ico", retVal = null;
+
+    server = tizen.mediacontroller.createServer();
+    server.updatePlaybackState("PLAY");
+    client = tizen.mediacontroller.getClient();
+    sinfo = client.getLatestServerInfo();
+    retVal = server.updateIconURI(uri);
+    assert_equals(retVal, undefined, "updateIconURI should return undefined");
+    assert_equals(sinfo.iconURI, uri, "update iconURI failed");
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_updateIconURI_exist.html b/common/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_updateIconURI_exist.html
new file mode 100755 (executable)
index 0000000..d706c35
--- /dev/null
@@ -0,0 +1,44 @@
+<!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:
+        Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>MediaControllerServer_updateIconURI_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MediaControllerServer_updateIconURI_exist
+//==== LABEL Check if method updateIconURI of MediaControllerServer exists
+//==== SPEC Tizen Web API:Multimedia:MediaController:MediaControllerServer:updateIconURI M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+    var mcServer = tizen.mediacontroller.createServer();
+    check_method_exists(mcServer, "updateIconURI");
+}, document.title);
+
+</script>
+</body>
+</html>
index dd9f5da50cbcecaa8a9ca7eca0cabf9b7c317e21..7844ebca049bbc3146bc62bfd8e24a239322e142 100755 (executable)
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="Check if MediaControllerServer updateIconURI method works properly" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerServer_updateIconURI">
+        <description>
+          <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_updateIconURI.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MediaControllerServer" element_type="method" element_name="updateIconURI" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if updateIconURI exists" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P0" id="MediaControllerServer_updateIconURI_exist">
+        <description>
+          <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_updateIconURI_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MediaControllerServer" element_type="method" element_name="updateIconURI" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute iconURI of MediaControllerServer exists, has type string and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerServer_iconURI_attribute">
+        <description>
+          <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_iconURI_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MediaControllerServer" element_type="attribute" element_name="iconURI" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute iconURI of MediaControllerServerInfo exists, has type string and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" priority="P1" id="MediaControllerServerInfo_iconURI_attribute">
+        <description>
+          <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_iconURI_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MediaControllerServerInfo" element_type="attribute" element_name="iconURI" specification="MediaController" section="Multimedia" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/mediacontroller.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
     </set>
   </suite>
 </test_definition>
index bd54f2a82aa1a895513d735aaf32255845b8361a..84594025bfa9c2bd87538ca4cf18b153f16da823 100755 (executable)
           <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerPlaybackInfo_contentType_attribute.html</test_script_entry>
         </description>
       </testcase>
+      <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServer_updateIconURI" priority="P1" purpose="Check if MediaControllerServer updateIconURI method works properly">
+        <description>
+          <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_updateIconURI.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServer_updateIconURI_exist" priority="P0" purpose="Check if updateIconURI exists">
+        <description>
+          <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_updateIconURI_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServer_iconURI_attribute" priority="P1" purpose="Check if attribute iconURI of MediaControllerServer exists, has type MediaControllerPlaybackInfo and is readonly">
+        <description>
+          <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServer_iconURI_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase component="Tizen Device APIs/Multimedia/MediaController" execution_type="auto" id="MediaControllerServerInfo_iconURI_attribute" priority="P1" purpose="Check if attribute iconURI of MediaControllerServerInfo exists, has type MediaControllerPlaybackInfo and is readonly">
+        <description>
+          <test_script_entry>/opt/tct-mediacontroller-tizen-tests/mediacontroller/MediaControllerServerInfo_iconURI_attribute.html</test_script_entry>
+        </description>
+      </testcase>
     </set>
   </suite>
 </test_definition>