Set acceleration values to non-zero before tests 62/265062/1
authorchen89.chen <chen89.chen@samsung.com>
Fri, 8 Oct 2021 13:38:37 +0000 (21:38 +0800)
committerchen89.chen <chen89.chen@samsung.com>
Fri, 8 Oct 2021 13:38:52 +0000 (21:38 +0800)
Change-Id: I1c089b1578d09800529c0bbcc765c01fb104d260
Signed-off-by: chen89.chen <chen89.chen@samsung.com>
common/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometerSuccess_onSuccess.html
common/tct-devicemotion-cordova-tests/tests.full.xml
common/tct-devicemotion-cordova-tests/tests.xml

index c36ea5b405773402152903701152b2749a02ced3..8b57210c7f94fa4eab8497fa942227eb99630df8 100755 (executable)
@@ -38,14 +38,14 @@ var t = async_test(document.title, {timeout: 5000}), deviceReady, onSuccess, onE
 
 t.step(function () {
     onSuccess = t.step_func(function (a) {
-        assert_type(a.x, "number", "invalid type of Acceleraton X");
-        assert_not_equals(a.x, 0, "invalid value of Acceleraton X");
-        assert_type(a.y, "number", "invalid type of Acceleraton Y");
-        assert_not_equals(a.y, 0, "invalid value of Acceleraton Y");
-        assert_type(a.z, "number", "invalid type of Acceleraton Z");
-        assert_not_equals(a.z, 0, "invalid value of Acceleraton Z");
-        assert_type(a.timestamp, "number", "invalid type of Acceleraton Timestamp");
-        assert_not_equals(a.timestamp, 0, "invalid value of Acceleraton Timestamp");
+        assert_type(a.x, "number", "invalid type of Acceleration X");
+        assert_not_equals(a.x, 0, "invalid value of Acceleration X");
+        assert_type(a.y, "number", "invalid type of Acceleration Y");
+        assert_not_equals(a.y, 0, "invalid value of Acceleration Y");
+        assert_type(a.z, "number", "invalid type of Acceleration Z");
+        assert_not_equals(a.z, 0, "invalid value of Acceleration Z");
+        assert_type(a.timestamp, "number", "invalid type of Acceleration Timestamp");
+        assert_not_equals(a.timestamp, 0, "invalid value of Acceleration Timestamp");
         t.done();
     });
 
index 08e6c0dc86af38e183a8757ee352aefe08be584d..fd8ec260ba5f841aee7289a1159956c3ed962207 100755 (executable)
         </description>
         <specs>
         </specs>
-      </testcase><testcase purpose="Check if accelerometerSuccess is called with argument of proper type." type="compliance" status="approved" component="TizenAPI/Cordova/CordovaDeviceMotion" execution_type="auto" priority="P3" id="cordova_accelerometerSuccess_onSuccess">
+      </testcase><testcase purpose="Check if accelerometerSuccess is called with argument of proper type." type="compliance" status="approved" component="TizenAPI/Cordova/CordovaDeviceMotion" execution_type="manual" priority="P3" id="cordova_accelerometerSuccess_onSuccess">
         <description>
+          <pre_condition>HD Mobile EMULATOR : Emulator Control Panel -> 3-Axis -> Acceleration to set X, Y, Z to nonzero value
+              Wearable Circle EMULATOR : Emulator Control Panel -> Sensor -> Acceleration to set X, Y, Z to nonzero value. </pre_condition>
+          <steps>
+            <step order="1">
+              <step_desc>press [Run] button in the test case.</step_desc>
+              <expected>test case is passed.</expected>
+            </step>
+          </steps>
           <test_script_entry>/opt/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometerSuccess_onSuccess.html</test_script_entry>
         </description>
         <specs>
         </description>
         <specs>
         </specs>
-      </testcase><testcase purpose="Check if getCurrentAcceleration method can get the current acceleration." type="compliance" status="approved" component="TizenAPI/Cordova/CordovaDeviceMotion" execution_type="auto" priority="P1" id="cordova_accelerometer_getCurrentAcceleration">
+      </testcase><testcase purpose="Check if getCurrentAcceleration method can get the current acceleration." type="compliance" status="approved" component="TizenAPI/Cordova/CordovaDeviceMotion" execution_type="manual" priority="P1" id="cordova_accelerometer_getCurrentAcceleration">
         <description>
+          <pre_condition>HD Mobile EMULATOR : Emulator Control Panel -> 3-Axis -> Acceleration to set X to nonzero value
+                Wearable Circle EMULATOR : Emulator Control Panel -> Sensor -> Acceleration to set X to nonzero value. </pre_condition>
+            <steps>
+              <step order="1">
+                <step_desc>press [Run] button in the test case.</step_desc>
+                <expected>test case is passed.</expected>
+              </step>
+            </steps>
           <test_script_entry>/opt/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometer_getCurrentAcceleration.html</test_script_entry>
         </description>
         <specs>
         </description>
         <specs>
         </specs>
-      </testcase><testcase purpose="Check if watchAcceleration method works properly with optional arguments." type="compliance" status="approved" component="TizenAPI/Cordova/CordovaDeviceMotion" execution_type="auto" priority="P1" id="cordova_accelerometer_watchAcceleration_with_accelerometerOptions">
+      </testcase><testcase purpose="Check if watchAcceleration method works properly with optional arguments." type="compliance" status="approved" component="TizenAPI/Cordova/CordovaDeviceMotion" execution_type="manual" priority="P1" id="cordova_accelerometer_watchAcceleration_with_accelerometerOptions">
         <description>
+          <pre_condition>HD Mobile EMULATOR : Emulator Control Panel -> 3-Axis -> Acceleration to set X to nonzero value
+              Wearable Circle EMULATOR : Emulator Control Panel -> Sensor-> Acceleration to set X to nonzero value. </pre_condition>
+            <steps>
+              <step order="1">
+                <step_desc>press [Run] button in the test case.</step_desc>
+                <expected>test case is passed.</expected>
+              </step>
+            </steps>
           <test_script_entry>/opt/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometer_watchAcceleration_with_accelerometerOptions.html</test_script_entry>
         </description>
         <specs>
index 75c4f5687d335614943d4b94f873c729e0579506..3d73b383adeb829c684f69b6c71112f2d9498f97 100755 (executable)
           <test_script_entry>/opt/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometerSuccess_notexist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if accelerometerSuccess is called with argument of proper type." component="TizenAPI/Cordova/CordovaDeviceMotion" execution_type="auto" priority="P3" id="cordova_accelerometerSuccess_onSuccess">
+      <testcase purpose="Check if accelerometerSuccess is called with argument of proper type." component="TizenAPI/Cordova/CordovaDeviceMotion" execution_type="manual" priority="P3" id="cordova_accelerometerSuccess_onSuccess">
         <description>
+          <pre_condition>HD Mobile EMULATOR : Emulator Control Panel -> 3-Axis -> Acceleration to set X, Y, Z to nonzero value
+              Wearable Circle EMULATOR : Emulator Control Panel -> Sensor -> Acceleration to set X, Y, Z to nonzero value. </pre_condition>
+          <steps>
+            <step order="1">
+              <step_desc>press [Run] button in the test case.</step_desc>
+              <expected>test case is passed.</expected>
+            </step>
+          </steps>
           <test_script_entry>/opt/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometerSuccess_onSuccess.html</test_script_entry>
         </description>
         </testcase>
           <test_script_entry>/opt/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometer_extend.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if getCurrentAcceleration method can get the current acceleration." component="TizenAPI/Cordova/CordovaDeviceMotion" execution_type="auto" priority="P1" id="cordova_accelerometer_getCurrentAcceleration">
+      <testcase purpose="Check if getCurrentAcceleration method can get the current acceleration." component="TizenAPI/Cordova/CordovaDeviceMotion" execution_type="manual" priority="P1" id="cordova_accelerometer_getCurrentAcceleration">
         <description>
+          <pre_condition>HD Mobile EMULATOR : Emulator Control Panel -> 3-Axis -> Acceleration to set X to nonzero value
+                Wearable Circle EMULATOR : Emulator Control Panel -> Sensor -> Acceleration to set X to nonzero value. </pre_condition>
+            <steps>
+              <step order="1">
+                <step_desc>press [Run] button in the test case.</step_desc>
+                <expected>test case is passed.</expected>
+              </step>
+            </steps>
           <test_script_entry>/opt/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometer_getCurrentAcceleration.html</test_script_entry>
         </description>
       </testcase>
           <test_script_entry>/opt/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometer_watchAcceleration_misarg.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if watchAcceleration method works properly with optional arguments." component="TizenAPI/Cordova/CordovaDeviceMotion" execution_type="auto" priority="P1" id="cordova_accelerometer_watchAcceleration_with_accelerometerOptions">
+      <testcase purpose="Check if watchAcceleration method works properly with optional arguments." component="TizenAPI/Cordova/CordovaDeviceMotion" execution_type="manual" priority="P1" id="cordova_accelerometer_watchAcceleration_with_accelerometerOptions">
         <description>
+          <pre_condition>HD Mobile EMULATOR : Emulator Control Panel -> 3-Axis -> Acceleration to set X to nonzero value
+                Wearable Circle EMULATOR : Emulator Control Panel -> Sensor-> Acceleration to set X to nonzero value. </pre_condition>
+            <steps>
+              <step order="1">
+                <step_desc>press [Run] button in the test case.</step_desc>
+                <expected>test case is passed.</expected>
+              </step>
+            </steps>
           <test_script_entry>/opt/tct-devicemotion-cordova-tests/accelerometer/cordova_accelerometer_watchAcceleration_with_accelerometerOptions.html</test_script_entry>
         </description>
       </testcase>