[common][feedback][TSDF-4071 change feedback type to vibration] 10/265110/1
authortangkaiyuan <kaiyuan.tang@samsung.com>
Sat, 9 Oct 2021 07:01:14 +0000 (15:01 +0800)
committertangkaiyuan <kaiyuan.tang@samsung.com>
Sat, 9 Oct 2021 07:01:26 +0000 (15:01 +0800)
Change-Id: I7aa18127c574840840301ac84211592f2d6c6e48
Signed-off-by: tangkaiyuan <kaiyuan.tang@samsung.com>
common/tct-feedback-tizen-tests/feedback/FeedbackManager_play_with_type.html
common/tct-feedback-tizen-tests/tests.full.xml
common/tct-feedback-tizen-tests/tests.xml

index 9ccc1ada498080114c38db1f3bb3b4b33717652c..41db9f35f0c1bdd86052b1d7f517ccfd01787d04 100755 (executable)
@@ -33,9 +33,8 @@ Authors:
 //==== SPEC_URL TBD
 //==== PRIORITY P1
 //==== EXECUTION_TYPE manual
-//==== PRE Device should be set to sound mode in settings.
-//==== STEP Check if the device reacts as sound after press [Run] button in the test case.
-//==== EXPECT There is sound from the device.
+//==== STEP Check if the device reacts as vibration after press [Run] button in the test case.
+//==== EXPECT The device should be vibrated.
 //==== TEST_CRITERIA MOA MR
 
 test(function () {
@@ -46,7 +45,7 @@ test(function () {
         "EMAIL", "WAKEUP", "SCHEDULE", "TIMER", "GENERAL", "POWERON", "POWEROFF", "CHARGERCONN",
         "CHARGING_ERROR", "FULLCHARGED", "LOWBATT", "LOCK", "UNLOCK", "VIBRATION_ON", "SILENT_OFF",
         "BT_CONNECTED", "BT_DISCONNECTED", "LIST_REORDER", "LIST_SLIDER", "VOLUME_KEY");
-    type = "TYPE_SOUND";
+    type = "TYPE_VIBRATION";
 
     retval = false;
     for (i = 0; i < pattern.length; i++) {
index 34927044e72fb8e7a063ca41d8d0ed5a61b1cd77..df82d626fad2c48ef8582d95da955cdcbe261328 100755 (executable)
       </capabilities>
       <testcase purpose="Check if play() method plays type of reaction that is defined." type="compliance" status="approved" component="Tizen Device APIs/TBD/Feedback" execution_type="manual" priority="P1" id="FeedbackManager_play_with_type">
         <description>
-          <pre_condition>Device should be set to sound mode in settings.</pre_condition>
           <steps>
             <step order="1">
               <step_desc>Check if the device reacts as vibration after press [Run] button in the test case.</step_desc>
         </specs>
       </testcase>
     </set>
-   <set name="Feedback_wearable" type="js">
+    <set name="Feedback_wearable" type="js">
       <capabilities>
         <capability name="http://tizen.org/feature/profile"><value>WEARABLE</value></capability>
       </capabilities>
           </spec>
         </specs>
       </testcase>
-       <testcase purpose="Check if play() method plays type of reaction that is defined." component="Tizen Device APIs/TBD/Feedback" execution_type="manual" priority="P1" id="FeedbackManager_play_with_type">
+      <testcase purpose="Check if method stop exists." type="compliance" status="approved" component="Tizen Device APIs/TBD/Feedback" execution_type="auto" priority="P0" id="FeedbackManager_stop_exist">
         <description>
-          <pre_condition>Device should be set to sound mode in settings.</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if the device reacts as sound after press [Run] button in the test case.</step_desc>
-              <expected>There is sound from the device.</expected>
-            </step>
-          </steps>
-          <test_script_entry>/opt/tct-feedback-tizen-tests/feedback/FeedbackManager_play_with_type.html</test_script_entry>
+          <test_script_entry>/opt/tct-feedback-tizen-tests/feedback/FeedbackManager_stop_exist.html</test_script_entry>
         </description>
         <specs>
           <spec>
-            <spec_assertion interface="FeedbackManager" element_type="method" element_name="play" specification="Feedback" section="Graphics" category="Tizen Device API Specifications"/>
+            <spec_assertion interface="FeedbackManager" element_type="method" element_name="stop" specification="Feedback" section="Graphics" category="Tizen Device API Specifications"/>
             <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/feedback.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if stop() method stops type of reaction." type="compliance" status="approved" component="Tizen Device APIs/TBD/Feedback" execution_type="manual" priority="P1" id="FeedbackManager_stop">
+      <testcase purpose="Check using stop() method with extra argument." type="compliance" status="approved" component="Tizen Device APIs/TBD/Feedback" execution_type="auto" priority="P1" id="FeedbackManager_stop_extra_argument">
         <description>
-          <steps>
-            <step order="1">
-              <step_desc>Check if the device reacts as sound after press [Run] button in the test case.</step_desc>
-              <expected>No sound is from the device.</expected>
-            </step>
-          </steps>
-          <test_script_entry>/opt/tct-feedback-tizen-tests/feedback/FeedbackManager_stop.html</test_script_entry>
+          <test_script_entry>/opt/tct-feedback-tizen-tests/feedback/FeedbackManager_stop_extra_argument.html</test_script_entry>
         </description>
         <specs>
           <spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if method stop exists." type="compliance" status="approved" component="Tizen Device APIs/TBD/Feedback" execution_type="auto" priority="P0" id="FeedbackManager_stop_exist">
+    </set>
+    <set name="Feedback_wearable_vibrate" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>WEARABLE</value></capability>
+        <capability name="http://tizen.org/feature/feedback.vibration"/>
+      </capabilities>
+      <testcase purpose="Check if play() method plays type of reaction that is defined." type="compliance" status="approved" component="Tizen Device APIs/TBD/Feedback" execution_type="manual" priority="P1" id="FeedbackManager_play_with_type">
         <description>
-          <test_script_entry>/opt/tct-feedback-tizen-tests/feedback/FeedbackManager_stop_exist.html</test_script_entry>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the device reacts as vibration after press [Run] button in the test case.</step_desc>
+              <expected>The device should be vibrated.</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-feedback-tizen-tests/feedback/FeedbackManager_play_with_type.html</test_script_entry>
         </description>
         <specs>
           <spec>
-            <spec_assertion interface="FeedbackManager" element_type="method" element_name="stop" specification="Feedback" section="Graphics" category="Tizen Device API Specifications"/>
+            <spec_assertion interface="FeedbackManager" element_type="method" element_name="play" specification="Feedback" section="Graphics" category="Tizen Device API Specifications"/>
             <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/feedback.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check using stop() method with extra argument." type="compliance" status="approved" component="Tizen Device APIs/TBD/Feedback" execution_type="auto" priority="P1" id="FeedbackManager_stop_extra_argument">
+      <testcase purpose="Check if stop() method stops type of reaction." component="Tizen Device APIs/TBD/Feedback" execution_type="manual" priority="P1" id="FeedbackManager_stop">
         <description>
-          <test_script_entry>/opt/tct-feedback-tizen-tests/feedback/FeedbackManager_stop_extra_argument.html</test_script_entry>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the device reacts as vibration after press [Run] button in the test case.</step_desc>
+              <expected>No vibration is from the device.</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-feedback-tizen-tests/feedback/FeedbackManager_stop.html</test_script_entry>
         </description>
         <specs>
           <spec>
         </specs>
       </testcase>
     </set>
-  <set name="Feedback_iot" type="js">
+    <set name="Feedback_iot" type="js">
       <capabilities>
         <capability name="http://tizen.org/feature/profile">
           <value>COMMON</value>
       </capabilities>
       <testcase purpose="Check if play() method plays type of reaction that is defined." type="compliance" status="approved" component="Tizen Device APIs/TBD/Feedback" execution_type="manual" priority="P1" id="FeedbackManager_play_with_type">
         <description>
-          <pre_condition>Device should be set to sound mode in settings.</pre_condition>
           <steps>
             <step order="1">
               <step_desc>Check if the device reacts as vibration after press [Run] button in the test case.</step_desc>
index b38bc6123ddfc616a9ba4ecbe96568eff12d11b5..3197323bc7d0c4fcfd6a5e55c4874758db4cb190 100755 (executable)
       </capabilities>
       <testcase purpose="Check if play() method plays type of reaction that is defined." component="Tizen Device APIs/TBD/Feedback" execution_type="manual" priority="P1" id="FeedbackManager_play_with_type">
         <description>
-          <pre_condition>Device should be set to sound mode in settings.</pre_condition>
           <steps>
             <step order="1">
               <step_desc>Check if the device reacts as vibration after press [Run] button in the test case.</step_desc>
       </testcase>
     </set>
     <set name="Feedback_wearable" type="js">
-         <capabilities>
+      <capabilities>
         <capability name="http://tizen.org/feature/profile"><value>WEARABLE</value></capability>
       </capabilities>
       <testcase purpose="Check if interface FeedbackManagerObject exists, it should not exists." component="Tizen Device APIs/TBD/Feedback" execution_type="auto" priority="P3" id="FeedbackManagerObject_notexist">
           <test_script_entry>/opt/tct-feedback-tizen-tests/feedback/FeedbackManager_play_type_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="Check if method stop exists." component="Tizen Device APIs/TBD/Feedback" execution_type="auto" priority="P0" id="FeedbackManager_stop_exist">
+        <description>
+          <test_script_entry>/opt/tct-feedback-tizen-tests/feedback/FeedbackManager_stop_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check using stop() method with extra argument." component="Tizen Device APIs/TBD/Feedback" execution_type="auto" priority="P1" id="FeedbackManager_stop_extra_argument">
+        <description>
+          <test_script_entry>/opt/tct-feedback-tizen-tests/feedback/FeedbackManager_stop_extra_argument.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Feedback_wearable_vibrate" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>WEARABLE</value></capability>
+        <capability name="http://tizen.org/feature/feedback.vibration"/>
+      </capabilities>
       <testcase purpose="Check if play() method plays type of reaction that is defined." component="Tizen Device APIs/TBD/Feedback" execution_type="manual" priority="P1" id="FeedbackManager_play_with_type">
         <description>
-          <pre_condition>Device should be set to sound mode in settings.</pre_condition>
           <steps>
             <step order="1">
-              <step_desc>Check if the device reacts as sound after press [Run] button in the test case.</step_desc>
-              <expected>There is sound from the device.</expected>
+              <step_desc>Check if the device reacts as vibration after press [Run] button in the test case.</step_desc>
+              <expected>The device should be vibrated.</expected>
             </step>
           </steps>
           <test_script_entry>/opt/tct-feedback-tizen-tests/feedback/FeedbackManager_play_with_type.html</test_script_entry>
         <description>
           <steps>
             <step order="1">
-              <step_desc>Check if the device reacts as sound after press [Run] button in the test case.</step_desc>
-              <expected>No sound is from the device.</expected>
+              <step_desc>Check if the device reacts as vibration after press [Run] button in the test case.</step_desc>
+              <expected>No vibration is from the device.</expected>
             </step>
           </steps>
           <test_script_entry>/opt/tct-feedback-tizen-tests/feedback/FeedbackManager_stop.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if method stop exists." component="Tizen Device APIs/TBD/Feedback" execution_type="auto" priority="P0" id="FeedbackManager_stop_exist">
-        <description>
-          <test_script_entry>/opt/tct-feedback-tizen-tests/feedback/FeedbackManager_stop_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check using stop() method with extra argument." component="Tizen Device APIs/TBD/Feedback" execution_type="auto" priority="P1" id="FeedbackManager_stop_extra_argument">
-        <description>
-          <test_script_entry>/opt/tct-feedback-tizen-tests/feedback/FeedbackManager_stop_extra_argument.html</test_script_entry>
-        </description>
-      </testcase>
     </set>
     <set name="Feedback_iot" type="js">
       <capabilities>
       </capabilities>
       <testcase purpose="Check if play() method plays type of reaction that is defined." component="Tizen Device APIs/TBD/Feedback" execution_type="manual" priority="P1" id="FeedbackManager_play_with_type">
         <description>
-          <pre_condition>Device should be set to sound mode in settings.</pre_condition>
           <steps>
             <step order="1">
               <step_desc>Check if the device reacts as vibration after press [Run] button in the test case.</step_desc>