[common][appcontrol][fix test annotations and coding style issue] 82/216582/1
authorqunfang.lin <qunfang.lin@samsung.com>
Tue, 29 Oct 2019 23:35:08 +0000 (07:35 +0800)
committerqunfang.lin <qunfang.lin@samsung.com>
Tue, 29 Oct 2019 23:35:38 +0000 (07:35 +0800)
modify: 5 TCs and tests.xml

Change-Id: Ifcd99a40d5482bbe6b8cacc501637cce155e4c22
Signed-off-by: qunfang.lin <qunfang.lin@samsung.com>
common/tct-appcontrol-tizen-tests/appcontrol/AppControl_browse_webpage.html
common/tct-appcontrol-tizen-tests/appcontrol/AppControl_play_sound.html
common/tct-appcontrol-tizen-tests/appcontrol/AppControl_play_video.html
common/tct-appcontrol-tizen-tests/appcontrol/AppControl_select_file.html
common/tct-appcontrol-tizen-tests/appcontrol/AppControl_view_image_file.html
common/tct-appcontrol-tizen-tests/tests.xml

index f7ed91c32bcc8b53541f5424a839beccd9a7b1d1..ee75fb87ab67bf57d1c7f017c7fdbf8becc95698 100755 (executable)
@@ -24,23 +24,22 @@ Authors:
 <head>
 <title>AppControl_browse_webpage</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/appcontrol_common.js"></script>
+<script src="support/unitcommon.js"></script>
+<script src="support/appcontrol_common.js"></script>
 </head>
-
 <body>
 <div id="log"></div>
-<script type="text/javascript">
+<script>
 //==== TEST: AppControl_browse_webpage
 //==== LABEL Check if application for browsing webpage is available (file, http and https)
 //==== PRIORITY P1
 //==== SPEC Tizen Web API:Application:Application:ApplicationManager:findAppControl M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
+//==== TEST_CRITERIA MR
 
 var t = async_test(document.title), appcontrol1, appcontrol2;
 
 t.step(function () {
-
     // Use case: Browse a web page
 
     // operation: http://tizen.org/appcontrol/operation/view
@@ -56,7 +55,6 @@ t.step(function () {
         TEST_URL_HTTPS);
 
     checkAppControls(t, [appcontrol1, appcontrol2]);
-
 });
 
 </script>
index c4b430757ed2b8071779571645bd27abdf842aad..7b325cdc98acbcc85d889e1223ea0df38ce6ebb7 100755 (executable)
@@ -24,23 +24,22 @@ Authors:
 <head>
 <title>AppControl_play_sound</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/appcontrol_common.js"></script>
+<script src="support/unitcommon.js"></script>
+<script src="support/appcontrol_common.js"></script>
 </head>
-
 <body>
 <div id="log"></div>
-<script type="text/javascript">
+<script>
 //==== TEST: AppControl_play_sound
 //==== LABEL Check if application for playing a sound is available (aac, amr, mid, mp3, wac)
 //==== PRIORITY P1
 //==== SPEC Tizen Web API:Application:Application:ApplicationManager:findAppControl M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
+//==== TEST_CRITERIA MR
 
 var t = async_test(document.title), appcontrol11, appcontrol12, appcontrol13, appcontrol14;
 
 t.step(function () {
-
     // Use case: Play a sound
 
     // operation: http://tizen.org/appcontrol/operation/view
@@ -76,7 +75,6 @@ t.step(function () {
         "audio/wav");
 
     checkAppControls(t, [appcontrol11, appcontrol12, appcontrol13, appcontrol14]);
-
 });
 
 </script>
index 74fe05d327809acc650e5624c8f6851c371e8717..915c667e4f000977e4334f58146afd472e9234c6 100755 (executable)
@@ -24,23 +24,22 @@ Authors:
 <head>
 <title>AppControl_play_video</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/appcontrol_common.js"></script>
+<script src="support/unitcommon.js"></script>
+<script src="support/appcontrol_common.js"></script>
 </head>
-
 <body>
 <div id="log"></div>
-<script type="text/javascript">
+<script>
 //==== TEST: AppControl_play_video
 //==== LABEL Check if application for playing a video is available (mp4)
 //==== PRIORITY P1
 //==== SPEC Tizen Web API:Application:Application:ApplicationManager:findAppControl M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
+//==== TEST_CRITERIA MR
 
 var t = async_test(document.title), appcontrol1, appcontrol2;
 
 t.step(function () {
-
     // Use case: Play a video
 
     // operation: http://tizen.org/appcontrol/operation/view
@@ -60,7 +59,6 @@ t.step(function () {
         "video/3gpp");
 
     checkAppControls(t, [appcontrol1, appcontrol2]);
-
 });
 
 </script>
index 621820eee4dc42db787a21e83e6aa65bfe3f2dcb..db328f080feaebe1a9f62429b618d0f0e55b76dc 100755 (executable)
@@ -24,23 +24,22 @@ Authors:
 <head>
 <title>AppControl_select_file</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/appcontrol_common.js"></script>
+<script src="support/unitcommon.js"></script>
+<script src="support/appcontrol_common.js"></script>
 </head>
-
 <body>
 <div id="log"></div>
-<script type="text/javascript">
+<script>
 //==== TEST: AppControl_select_file
 //==== LABEL Check if application for selecting a file is available
 //==== PRIORITY P1
 //==== SPEC Tizen Web API:Application:Application:ApplicationManager:findAppControl M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
+//==== TEST_CRITERIA MR
 
 var t = async_test(document.title), appcontrol1;
 
 t.step(function () {
-
     // Use case: Select a file
 
     // operation: http://tizen.org/appcontrol/operation/view
@@ -48,7 +47,6 @@ t.step(function () {
         "http://tizen.org/appcontrol/operation/pick");
 
     checkAppControls(t, [appcontrol1]);
-
 });
 
 </script>
index 6761cebbc94dad223bab853c3376db548cf575c5..6ceeb1adb3bb9b483a5dc41011ab84041722090b 100755 (executable)
@@ -24,23 +24,22 @@ Authors:
 <head>
 <title>AppControl_view_image_file</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/appcontrol_common.js"></script>
+<script src="support/unitcommon.js"></script>
+<script src="support/appcontrol_common.js"></script>
 </head>
-
 <body>
 <div id="log"></div>
-<script type="text/javascript">
+<script>
 //==== TEST: AppControl_view_image_file
 //==== LABEL Check if application for viewing an image file is available (bmp, gif, jpeg, png)
 //==== PRIORITY P1
 //==== SPEC Tizen Web API:Application:Application:ApplicationManager:findAppControl M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
+//==== TEST_CRITERIA MR
 
 var t = async_test(document.title), appcontrol11, appcontrol12, appcontrol13, appcontrol14;
 
 t.step(function () {
-
     // Use case: Display an image
 
     // operation: http://tizen.org/appcontrol/operation/view
@@ -76,7 +75,6 @@ t.step(function () {
         "image/png");
 
     checkAppControls(t, [appcontrol11, appcontrol12, appcontrol13, appcontrol14]);
-
 });
 
 </script>
index 6a365f9e61ac1136255aec40db611bd51ea0b1dd..40364eb7b11cec2deffa571524d4b1710b3abacf 100755 (executable)
@@ -6,27 +6,27 @@
     <capabilities>
         <capability name="http://tizen.org/feature/profile"><value>MOBILE_FULL</value></capability>
       </capabilities>
-      <testcase purpose="Check if application for browsing webpage is available (file, http and https)" component="TizenAPI/Application/Application" execution_type="auto" id="AppControl_browse_webpage">
+      <testcase purpose="Check if application for browsing webpage is available (file, http and https)" component="TizenAPI/Application/Application" execution_type="auto" priority="P1" id="AppControl_browse_webpage">
         <description>
           <test_script_entry>/opt/tct-appcontrol-tizen-tests/appcontrol/AppControl_browse_webpage.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if application for playing a sound is available (aac, amr, mid, mp3, wac)" component="TizenAPI/Application/Application" execution_type="auto" id="AppControl_play_sound">
+      <testcase purpose="Check if application for playing a sound is available (aac, amr, mid, mp3, wac)" component="TizenAPI/Application/Application" execution_type="auto" priority="P1" id="AppControl_play_sound">
         <description>
           <test_script_entry>/opt/tct-appcontrol-tizen-tests/appcontrol/AppControl_play_sound.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if application for playing a video is available (mp4)" component="TizenAPI/Application/Application" execution_type="auto" id="AppControl_play_video">
+      <testcase purpose="Check if application for playing a video is available (mp4)" component="TizenAPI/Application/Application" execution_type="auto" priority="P1" id="AppControl_play_video">
         <description>
           <test_script_entry>/opt/tct-appcontrol-tizen-tests/appcontrol/AppControl_play_video.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if application for selecting a file is available" component="TizenAPI/Application/Application" execution_type="auto" id="AppControl_select_file">
+      <testcase purpose="Check if application for selecting a file is available" component="TizenAPI/Application/Application" execution_type="auto" priority="P1" id="AppControl_select_file">
         <description>
           <test_script_entry>/opt/tct-appcontrol-tizen-tests/appcontrol/AppControl_select_file.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if application for viewing an image file is available (bmp, gif, jpeg, png)" component="TizenAPI/Application/Application" execution_type="auto" id="AppControl_view_image_file">
+      <testcase purpose="Check if application for viewing an image file is available (bmp, gif, jpeg, png)" component="TizenAPI/Application/Application" execution_type="auto" priority="P1" id="AppControl_view_image_file">
         <description>
           <test_script_entry>/opt/tct-appcontrol-tizen-tests/appcontrol/AppControl_view_image_file.html</test_script_entry>
         </description>