[TCT-Deprecatedapi] Automating manual tests 60/190160/4
authorMateusz Plesinski <m.plesinski@samsung.com>
Thu, 27 Sep 2018 07:36:51 +0000 (09:36 +0200)
committerPiotr Kosko <p.kosko@samsung.com>
Fri, 2 Nov 2018 11:31:05 +0000 (12:31 +0100)
Changed implementation of manual tests to fully automate them.
Tests that has been changed:
+ ApplicationManager_addAppInfoEventListener_oninstalled
+ ApplicationManager_addAppInfoEventListener_onuninstalled
+ ApplicationManager_addAppInfoEventListener_onupdated

Added method executeCommand to unitcommon.js.
Updated documentation on changed tests.

Change-Id: I561f084c2a584f1c20807f0345b4d92f770a75db
Signed-off-by: Mateusz Plesinski <m.plesinski@samsung.com>
21 files changed:
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_oninstalled.html
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_onuninstalled.html
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_onupdated.html
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/support/app_common.js
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/support/unitcommon.js
mobile/tct-deprecatedapi-tizen-tests/tests.full.xml
mobile/tct-deprecatedapi-tizen-tests/tests.xml
tv/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_oninstalled.html
tv/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_onuninstalled.html
tv/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_onupdated.html
tv/tct-deprecatedapi-tizen-tests/deprecatedapi/support/app_common.js
tv/tct-deprecatedapi-tizen-tests/deprecatedapi/support/unitcommon.js
tv/tct-deprecatedapi-tizen-tests/tests.full.xml
tv/tct-deprecatedapi-tizen-tests/tests.xml
wearable/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_oninstalled.html
wearable/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_onuninstalled.html
wearable/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_onupdated.html
wearable/tct-deprecatedapi-tizen-tests/deprecatedapi/support/app_common.js
wearable/tct-deprecatedapi-tizen-tests/deprecatedapi/support/unitcommon.js
wearable/tct-deprecatedapi-tizen-tests/tests.full.xml
wearable/tct-deprecatedapi-tizen-tests/tests.xml

index 49e3059dd606393b0933268b3603edfe4bf66d89..ef99e963155139256c196aac337d36b6c5306b6e 100755 (executable)
@@ -48,6 +48,8 @@ Authors:
 //==== PRIORITY P1
 //==== TEST_CRITERIA MMINA MAST MR
 
+executeCommand(uninstallApplicationCommand(TCT_APPINFOEVENT1_PKG_NAME));
+
 setup({timeout: 300000});
 
 var t = async_test(document.title, {timeout: 300000}), appEventCallback, watchId;
@@ -67,6 +69,7 @@ t.step(function () {
 
     watchId = tizen.application.addAppInfoEventListener(appEventCallback);
     assert_type(watchId, "long", "wrong listener ID");
+    executeCommand(installApplicationCommand(TCT_TCTAPPINFOEVENTTEST1_NAME, TCT_WGT_LOCATION));
 });
 
 </script>
index 9b80cb213baa018088756bfa1280d10e03b1cb6e..cfdc62fa5410f72487e22e8f0c9cea26185d255a 100755 (executable)
@@ -48,6 +48,8 @@ Authors:
 //==== PRIORITY P1
 //==== TEST_CRITERIA MMINA MAST MR
 
+executeCommand(installApplicationCommand(TCT_TCTAPPINFOEVENTTEST1_NAME, TCT_WGT_LOCATION));
+
 setup({timeout: 300000});
 
 var t = async_test(document.title, {timeout: 300000}), appEventCallback, watchId;
@@ -67,6 +69,7 @@ t.step(function () {
 
     watchId = tizen.application.addAppInfoEventListener(appEventCallback);
     assert_type(watchId, "long", "wrong listener ID");
+    executeCommand(uninstallApplicationCommand(TCT_APPINFOEVENT1_PKG_NAME));
 });
 
 </script>
index f63f552d2f2239b442bde00c6f92d982ca20ad2e..eb0149121ae71edeed1885b1ec2d2814d77e7672 100755 (executable)
@@ -48,6 +48,8 @@ Authors:
 //==== PRIORITY P1
 //==== TEST_CRITERIA MMINA MAST MR
 
+executeCommand(installApplicationCommand(TCT_TCTAPPINFOEVENTTEST1_NAME, TCT_WGT_LOCATION));
+
 setup({timeout: 300000});
 
 var t = async_test(document.title, {timeout: 300000}), appEventCallback, watchId;
@@ -67,7 +69,7 @@ t.step(function () {
 
     watchId = tizen.application.addAppInfoEventListener(appEventCallback);
     assert_type(watchId, "long", "wrong listener ID");
-
+    executeCommand(installApplicationCommand(TCT_TCTAPPINFOEVENTTEST2_NAME, TCT_WGT_LOCATION));
 });
 
 </script>
index 41bb9c1e4a93e9b4d48cdd13a6216faaf39a9b22..0329f7e4146941d32e662391d1d560926e0d1d02 100755 (executable)
@@ -61,8 +61,15 @@ var TCT_APPCONTROL_EXIT_OPERATION = "http://tizen.org/appcontrol/operation/tct/e
 var TYPE_MISMATCH_ERR = {name: 'TypeMismatchError'};
 
 var TIMEOUT_AUTO_TEST = 30000;
+
+var TCT_WGT_LOCATION = "/opt/usr/home/owner/share/tct/opt/tct-deprecatedapi-tizen-tests/mediasrc/";
+var TCT_APPINFOEVENT1_PKG_NAME = "api1appli3";
+var TCT_TCTAPPINFOEVENTTEST1_NAME = "TCTAppInfoEventTest1.wgt";
+var TCT_TCTAPPINFOEVENTTEST2_NAME = "TCTAppInfoEventTest2.wgt";
+
 setup({timeout: TIMEOUT_AUTO_TEST});
 
+
 /**
  * Function runs test in other application (TCTAppControl) and receives
  * the results.
@@ -205,3 +212,14 @@ function assert_not_kill(t, appId, onsuccess) {
 function assert_exit(t, appId, onsuccess) {
     assert_kill(t, appId, onsuccess);
 }
+
+function installApplicationCommand(appName, path) {
+    path = path.slice(-1) == "/" ? path : path + "/";
+    return "pkgcmd -i -t wgt -q -p" + path + appName;
+}
+
+function uninstallApplicationCommand(appName) {
+    return "pkgcmd -u -n" + appName;
+}
+
+document.write('<script src="../webrunner/jquery-1.10.2.min.js"></script>');
\ No newline at end of file
index 67eb5128bc184b0b8f3a08c049f87d8ba612c28d..3e63b6073cb4988d0377ebef13d040b9e78e89fb 100755 (executable)
@@ -562,3 +562,17 @@ function getListenerConversionExceptions(callbackNames) {
 
     return result;
 }
+
+function executeCommand(command) {
+    var toSend = {'cmd' : command};
+    var response =  $.ajax({
+        type: "POST",
+        url: 'http://127.0.0.1:8000/execute_command',
+        async: false,
+        dataType: 'json',
+        data: toSend
+    });
+    //This log provides console output after executing shell command.
+    console.log(JSON.stringify(response));
+    return response
+}
\ No newline at end of file
index f6d3b5830ad10c7d0b05d353fb567ca01919c0d4..8bff10b26a3ec09b4fae01a9e76a5033346e0926 100755 (executable)
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check using addAppInfoEventListener method (installation process) in ApplicationManager interface" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="manual" priority="P1" id="ApplicationManager_addAppInfoEventListener_oninstalled">
-        <description>
-          <pre_condition>Make sure that TCTAppInfoEventTest1 application is not installed (uninstall it)</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click run and install TCTAppInfoEventTest1.wgt application using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-application-tizen-tests/mediasrc/TCTAppInfoEventTest1.wgt".</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+      <testcase purpose="Check using addAppInfoEventListener method (installation process) in ApplicationManager interface" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_addAppInfoEventListener_oninstalled">
+        <description>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_oninstalled.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check using addAppInfoEventListener method (deinstallation process) in ApplicationManager interface" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="manual" priority="P1" id="ApplicationManager_addAppInfoEventListener_onuninstalled">
+      <testcase purpose="Check using addAppInfoEventListener method (deinstallation process) in ApplicationManager interface" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_addAppInfoEventListener_onuninstalled">
         <description>
-          <pre_condition>Make sure that TCTAppInfoEventTest1 application is installed (you can install it using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-application-tizen-tests/mediasrc/TCTAppInfoEventTest1.wgt").</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click run and uninstall TCTAppInfoEventTest1 application.</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_onuninstalled.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check using addAppInfoEventListener method (updating process) in ApplicationManager interface" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="manual" priority="P1" id="ApplicationManager_addAppInfoEventListener_onupdated">
+      <testcase purpose="Check using addAppInfoEventListener method (updating process) in ApplicationManager interface" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_addAppInfoEventListener_onupdated">
         <description>
-          <pre_condition>Make sure that TCTAppInfoEventTest1 application is installed (you can install it using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-application-tizen-tests/mediasrc/TCTAppInfoEventTest1.wgt").</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click run and install TCTAppInfoEventTest2.wgt application using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-application-tizen-tests/mediasrc/TCTAppInfoEventTest2.wgt".</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_onupdated.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if turnScreenOff method works correctly" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_turnScreenOff_successful">
+      <testcase purpose="Check if turnScreenOff method works correctly" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_turnScreenOff_successful">
         <description>
-          <steps>
-            <step order="1">
-              <step_desc>Click 'Run'</step_desc>
-              <expected>The screen should be turned off</expected>
-            </step>
-            <step order="2">
-              <step_desc>Unlock the screen and display the test application</step_desc>
-              <expected>The result should be 'Pass'</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PowerManager_turnScreenOff_successful.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if turnScreenOn method works correctly" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_turnScreenOn_successful">
+      <testcase purpose="Check if turnScreenOn method works correctly" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_turnScreenOn_successful">
         <description>
-          <steps>
-            <step order="1">
-              <step_desc>Click 'Run'</step_desc>
-              <expected>The screen should be turned locked</expected>
-            </step>
-            <step order="2">
-              <step_desc>Unlock the screen and display the test application</step_desc>
-              <expected>The result should be 'Pass'</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PowerManager_turnScreenOn_successful.html</test_script_entry>
         </description>
         <specs>
index fd083a9091b8d5d4f1f52ab180070079cb5ae86c..7e7285110d3dfd806136840249c75698bb12deca 100755 (executable)
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_missarg.html</test_script_entry>
         </description>
       </testcase>
-      <testcase component="TizenAPI/Application/Application" execution_type="manual" id="ApplicationManager_addAppInfoEventListener_oninstalled" priority="P1" purpose="Check using addAppInfoEventListener method (installation process) in ApplicationManager interface">
-        <description>
-          <pre_condition>Make sure that TCTAppInfoEventTest1 application is not installed (uninstall it)</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click run and install TCTAppInfoEventTest1.wgt application using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/Others/TCTAppInfoEventTest1.wgt".</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+      <testcase component="TizenAPI/Application/Application" execution_type="auto" id="ApplicationManager_addAppInfoEventListener_oninstalled" priority="P1" purpose="Check using addAppInfoEventListener method (installation process) in ApplicationManager interface">
+        <description>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_oninstalled.html</test_script_entry>
         </description>
       </testcase>
-      <testcase component="TizenAPI/Application/Application" execution_type="manual" id="ApplicationManager_addAppInfoEventListener_onuninstalled" priority="P1" purpose="Check using addAppInfoEventListener method (deinstallation process) in ApplicationManager interface">
+      <testcase component="TizenAPI/Application/Application" execution_type="auto" id="ApplicationManager_addAppInfoEventListener_onuninstalled" priority="P1" purpose="Check using addAppInfoEventListener method (deinstallation process) in ApplicationManager interface">
         <description>
-          <pre_condition>Make sure that TCTAppInfoEventTest1 application is installed (you can install it using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/Others/TCTAppInfoEventTest1.wgt").</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click run and uninstall TCTAppInfoEventTest1 application.</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_onuninstalled.html</test_script_entry>
         </description>
       </testcase>
-      <testcase component="TizenAPI/Application/Application" execution_type="manual" id="ApplicationManager_addAppInfoEventListener_onupdated" priority="P1" purpose="Check using addAppInfoEventListener method (updating process) in ApplicationManager interface">
+      <testcase component="TizenAPI/Application/Application" execution_type="auto" id="ApplicationManager_addAppInfoEventListener_onupdated" priority="P1" purpose="Check using addAppInfoEventListener method (updating process) in ApplicationManager interface">
         <description>
-          <pre_condition>Make sure that TCTAppInfoEventTest1 application is installed (you can install it using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/Others/TCTAppInfoEventTest1.wgt").</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click run and install TCTAppInfoEventTest2.wgt application using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/Others/TCTAppInfoEventTest2.wgt".</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_onupdated.html</test_script_entry>
         </description>
       </testcase>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PowerManager_turnScreenOn_method_exists.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if turnScreenOn method works correctly" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_turnScreenOn_successful">
+      <testcase purpose="Check if turnScreenOn method works correctly" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_turnScreenOn_successful">
         <description>
-          <steps>
-            <step order="1">
-              <step_desc>Click 'Run'</step_desc>
-              <expected>The screen should be turned locked</expected>
-            </step>
-            <step order="2">
-              <step_desc>Unlock the screen and display the test application</step_desc>
-              <expected>The result should be 'Pass'</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PowerManager_turnScreenOn_successful.html</test_script_entry>
         </description>
       </testcase>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PowerManager_turnScreenOff_extra_argument.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if turnScreenOff method works correctly" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_turnScreenOff_successful">
+      <testcase purpose="Check if turnScreenOff method works correctly" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_turnScreenOff_successful">
         <description>
-          <steps>
-            <step order="1">
-              <step_desc>Click 'Run'</step_desc>
-              <expected>The screen should be turned off</expected>
-            </step>
-            <step order="2">
-              <step_desc>Unlock the screen and display the test application</step_desc>
-              <expected>The result should be 'Pass'</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PowerManager_turnScreenOff_successful.html</test_script_entry>
         </description>
       </testcase>
index 49e3059dd606393b0933268b3603edfe4bf66d89..ef99e963155139256c196aac337d36b6c5306b6e 100755 (executable)
@@ -48,6 +48,8 @@ Authors:
 //==== PRIORITY P1
 //==== TEST_CRITERIA MMINA MAST MR
 
+executeCommand(uninstallApplicationCommand(TCT_APPINFOEVENT1_PKG_NAME));
+
 setup({timeout: 300000});
 
 var t = async_test(document.title, {timeout: 300000}), appEventCallback, watchId;
@@ -67,6 +69,7 @@ t.step(function () {
 
     watchId = tizen.application.addAppInfoEventListener(appEventCallback);
     assert_type(watchId, "long", "wrong listener ID");
+    executeCommand(installApplicationCommand(TCT_TCTAPPINFOEVENTTEST1_NAME, TCT_WGT_LOCATION));
 });
 
 </script>
index 9b80cb213baa018088756bfa1280d10e03b1cb6e..cfdc62fa5410f72487e22e8f0c9cea26185d255a 100755 (executable)
@@ -48,6 +48,8 @@ Authors:
 //==== PRIORITY P1
 //==== TEST_CRITERIA MMINA MAST MR
 
+executeCommand(installApplicationCommand(TCT_TCTAPPINFOEVENTTEST1_NAME, TCT_WGT_LOCATION));
+
 setup({timeout: 300000});
 
 var t = async_test(document.title, {timeout: 300000}), appEventCallback, watchId;
@@ -67,6 +69,7 @@ t.step(function () {
 
     watchId = tizen.application.addAppInfoEventListener(appEventCallback);
     assert_type(watchId, "long", "wrong listener ID");
+    executeCommand(uninstallApplicationCommand(TCT_APPINFOEVENT1_PKG_NAME));
 });
 
 </script>
index f63f552d2f2239b442bde00c6f92d982ca20ad2e..eb0149121ae71edeed1885b1ec2d2814d77e7672 100755 (executable)
@@ -48,6 +48,8 @@ Authors:
 //==== PRIORITY P1
 //==== TEST_CRITERIA MMINA MAST MR
 
+executeCommand(installApplicationCommand(TCT_TCTAPPINFOEVENTTEST1_NAME, TCT_WGT_LOCATION));
+
 setup({timeout: 300000});
 
 var t = async_test(document.title, {timeout: 300000}), appEventCallback, watchId;
@@ -67,7 +69,7 @@ t.step(function () {
 
     watchId = tizen.application.addAppInfoEventListener(appEventCallback);
     assert_type(watchId, "long", "wrong listener ID");
-
+    executeCommand(installApplicationCommand(TCT_TCTAPPINFOEVENTTEST2_NAME, TCT_WGT_LOCATION));
 });
 
 </script>
index 41bb9c1e4a93e9b4d48cdd13a6216faaf39a9b22..657f5460941b22d33ac8632b1bceb0be62eec82c 100755 (executable)
@@ -61,6 +61,12 @@ var TCT_APPCONTROL_EXIT_OPERATION = "http://tizen.org/appcontrol/operation/tct/e
 var TYPE_MISMATCH_ERR = {name: 'TypeMismatchError'};
 
 var TIMEOUT_AUTO_TEST = 30000;
+
+var TCT_WGT_LOCATION = "/opt/usr/home/owner/share/tct/opt/tct-deprecatedapi-tizen-tests/mediasrc/";
+var TCT_APPINFOEVENT1_PKG_NAME = "api1appli3";
+var TCT_TCTAPPINFOEVENTTEST1_NAME = "TCTAppInfoEventTest1.wgt";
+var TCT_TCTAPPINFOEVENTTEST2_NAME = "TCTAppInfoEventTest2.wgt";
+
 setup({timeout: TIMEOUT_AUTO_TEST});
 
 /**
@@ -205,3 +211,14 @@ function assert_not_kill(t, appId, onsuccess) {
 function assert_exit(t, appId, onsuccess) {
     assert_kill(t, appId, onsuccess);
 }
+
+function installApplicationCommand(appName, path) {
+    path = path.slice(-1) == "/" ? path : path + "/";
+    return "pkgcmd -i -t wgt -q -p" + path + appName;
+}
+
+function uninstallApplicationCommand(appName) {
+    return "pkgcmd -u -n" + appName;
+}
+
+document.write('<script src="../webrunner/jquery-1.10.2.min.js"></script>');
\ No newline at end of file
index 67eb5128bc184b0b8f3a08c049f87d8ba612c28d..ebc701ceb43ff3336faab35f9a0191a3fd9812d3 100755 (executable)
@@ -562,3 +562,16 @@ function getListenerConversionExceptions(callbackNames) {
 
     return result;
 }
+
+function executeCommand(command) {
+    var toSend = {'cmd' : command};
+    var response =  $.ajax({
+        type: "POST",
+        url: 'http://127.0.0.1:8000/execute_command',
+        async: false,
+        dataType: 'json',
+        data: toSend
+    });
+    //This log provides console output after executing shell command.
+    console.log(JSON.stringify(response));
+}
\ No newline at end of file
index fe410f478f8b5277b2933fb9fe11bcfd36d93ca9..3dbd1a98969214251360598398851711d414cd1f 100755 (executable)
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check using addAppInfoEventListener method (installation process) in ApplicationManager interface" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="manual" priority="P1" id="ApplicationManager_addAppInfoEventListener_oninstalled">
-        <description>
-          <pre_condition>Make sure that TCTAppInfoEventTest1 application is not installed (uninstall it)</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click run and install TCTAppInfoEventTest1.wgt application using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-application-tizen-tests/mediasrc/TCTAppInfoEventTest1.wgt".</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+      <testcase purpose="Check using addAppInfoEventListener method (installation process) in ApplicationManager interface" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_addAppInfoEventListener_oninstalled">
+        <description>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_oninstalled.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check using addAppInfoEventListener method (deinstallation process) in ApplicationManager interface" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="manual" priority="P1" id="ApplicationManager_addAppInfoEventListener_onuninstalled">
+      <testcase purpose="Check using addAppInfoEventListener method (deinstallation process) in ApplicationManager interface" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_addAppInfoEventListener_onuninstalled">
         <description>
-          <pre_condition>Make sure that TCTAppInfoEventTest1 application is installed (you can install it using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-application-tizen-tests/mediasrc/TCTAppInfoEventTest1.wgt").</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click run and uninstall TCTAppInfoEventTest1 application.</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_onuninstalled.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check using addAppInfoEventListener method (updating process) in ApplicationManager interface" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="manual" priority="P1" id="ApplicationManager_addAppInfoEventListener_onupdated">
+      <testcase purpose="Check using addAppInfoEventListener method (updating process) in ApplicationManager interface" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_addAppInfoEventListener_onupdated">
         <description>
-          <pre_condition>Make sure that TCTAppInfoEventTest1 application is installed (you can install it using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-application-tizen-tests/mediasrc/TCTAppInfoEventTest1.wgt").</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click run and install TCTAppInfoEventTest2.wgt application using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-application-tizen-tests/mediasrc/TCTAppInfoEventTest2.wgt".</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_onupdated.html</test_script_entry>
         </description>
         <specs>
index 42c43a837ba410965fb8e0d5ba72cc71ed65a610..2a7572184bf7ffc10760856d14aacea16511137c 100755 (executable)
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_missarg.html</test_script_entry>
         </description>
       </testcase>
-      <testcase component="TizenAPI/Application/Application" execution_type="manual" id="ApplicationManager_addAppInfoEventListener_oninstalled" priority="P1" purpose="Check using addAppInfoEventListener method (installation process) in ApplicationManager interface">
-        <description>
-          <pre_condition>Make sure that TCTAppInfoEventTest1 application is not installed (uninstall it)</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click run and install TCTAppInfoEventTest1.wgt application using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-deprecatedapi-tizen-tests/mediasrc/TCTAppInfoEventTest1.wgt".</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+      <testcase component="TizenAPI/Application/Application" execution_type="auto" id="ApplicationManager_addAppInfoEventListener_oninstalled" priority="P1" purpose="Check using addAppInfoEventListener method (installation process) in ApplicationManager interface">
+        <description>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_oninstalled.html</test_script_entry>
         </description>
       </testcase>
-      <testcase component="TizenAPI/Application/Application" execution_type="manual" id="ApplicationManager_addAppInfoEventListener_onuninstalled" priority="P1" purpose="Check using addAppInfoEventListener method (deinstallation process) in ApplicationManager interface">
+      <testcase component="TizenAPI/Application/Application" execution_type="auto" id="ApplicationManager_addAppInfoEventListener_onuninstalled" priority="P1" purpose="Check using addAppInfoEventListener method (deinstallation process) in ApplicationManager interface">
         <description>
-          <pre_condition>Make sure that TCTAppInfoEventTest1 application is installed (you can install it using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-deprecatedapi-tizen-tests/mediasrc/TCTAppInfoEventTest1.wgt").</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click run and uninstall TCTAppInfoEventTest1 application.</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_onuninstalled.html</test_script_entry>
         </description>
       </testcase>
-      <testcase component="TizenAPI/Application/Application" execution_type="manual" id="ApplicationManager_addAppInfoEventListener_onupdated" priority="P1" purpose="Check using addAppInfoEventListener method (updating process) in ApplicationManager interface">
+      <testcase component="TizenAPI/Application/Application" execution_type="auto" id="ApplicationManager_addAppInfoEventListener_onupdated" priority="P1" purpose="Check using addAppInfoEventListener method (updating process) in ApplicationManager interface">
         <description>
-          <pre_condition>Make sure that TCTAppInfoEventTest1 application is installed (you can install it using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-deprecatedapi-tizen-tests/mediasrc/TCTAppInfoEventTest1.wgt").</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click run and install TCTAppInfoEventTest2.wgt application using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-deprecatedapi-tizen-tests/mediasrc/TCTAppInfoEventTest2.wgt".</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_onupdated.html</test_script_entry>
         </description>
       </testcase>
index 49e3059dd606393b0933268b3603edfe4bf66d89..c6f9dc0db9898c6538a521fe8cde51fa6d6c236b 100755 (executable)
@@ -48,6 +48,8 @@ Authors:
 //==== PRIORITY P1
 //==== TEST_CRITERIA MMINA MAST MR
 
+executeCommand(uninstallApplicationCommand(TCT_APPINFOEVENT1_PKG_NAME));
+
 setup({timeout: 300000});
 
 var t = async_test(document.title, {timeout: 300000}), appEventCallback, watchId;
@@ -67,6 +69,8 @@ t.step(function () {
 
     watchId = tizen.application.addAppInfoEventListener(appEventCallback);
     assert_type(watchId, "long", "wrong listener ID");
+    executeCommand(installApplicationCommand(TCT_TCTAPPINFOEVENTTEST1_NAME, TCT_WGT_LOCATION));
+
 });
 
 </script>
index 9b80cb213baa018088756bfa1280d10e03b1cb6e..cfdc62fa5410f72487e22e8f0c9cea26185d255a 100755 (executable)
@@ -48,6 +48,8 @@ Authors:
 //==== PRIORITY P1
 //==== TEST_CRITERIA MMINA MAST MR
 
+executeCommand(installApplicationCommand(TCT_TCTAPPINFOEVENTTEST1_NAME, TCT_WGT_LOCATION));
+
 setup({timeout: 300000});
 
 var t = async_test(document.title, {timeout: 300000}), appEventCallback, watchId;
@@ -67,6 +69,7 @@ t.step(function () {
 
     watchId = tizen.application.addAppInfoEventListener(appEventCallback);
     assert_type(watchId, "long", "wrong listener ID");
+    executeCommand(uninstallApplicationCommand(TCT_APPINFOEVENT1_PKG_NAME));
 });
 
 </script>
index f63f552d2f2239b442bde00c6f92d982ca20ad2e..eb0149121ae71edeed1885b1ec2d2814d77e7672 100755 (executable)
@@ -48,6 +48,8 @@ Authors:
 //==== PRIORITY P1
 //==== TEST_CRITERIA MMINA MAST MR
 
+executeCommand(installApplicationCommand(TCT_TCTAPPINFOEVENTTEST1_NAME, TCT_WGT_LOCATION));
+
 setup({timeout: 300000});
 
 var t = async_test(document.title, {timeout: 300000}), appEventCallback, watchId;
@@ -67,7 +69,7 @@ t.step(function () {
 
     watchId = tizen.application.addAppInfoEventListener(appEventCallback);
     assert_type(watchId, "long", "wrong listener ID");
-
+    executeCommand(installApplicationCommand(TCT_TCTAPPINFOEVENTTEST2_NAME, TCT_WGT_LOCATION));
 });
 
 </script>
index 41bb9c1e4a93e9b4d48cdd13a6216faaf39a9b22..657f5460941b22d33ac8632b1bceb0be62eec82c 100755 (executable)
@@ -61,6 +61,12 @@ var TCT_APPCONTROL_EXIT_OPERATION = "http://tizen.org/appcontrol/operation/tct/e
 var TYPE_MISMATCH_ERR = {name: 'TypeMismatchError'};
 
 var TIMEOUT_AUTO_TEST = 30000;
+
+var TCT_WGT_LOCATION = "/opt/usr/home/owner/share/tct/opt/tct-deprecatedapi-tizen-tests/mediasrc/";
+var TCT_APPINFOEVENT1_PKG_NAME = "api1appli3";
+var TCT_TCTAPPINFOEVENTTEST1_NAME = "TCTAppInfoEventTest1.wgt";
+var TCT_TCTAPPINFOEVENTTEST2_NAME = "TCTAppInfoEventTest2.wgt";
+
 setup({timeout: TIMEOUT_AUTO_TEST});
 
 /**
@@ -205,3 +211,14 @@ function assert_not_kill(t, appId, onsuccess) {
 function assert_exit(t, appId, onsuccess) {
     assert_kill(t, appId, onsuccess);
 }
+
+function installApplicationCommand(appName, path) {
+    path = path.slice(-1) == "/" ? path : path + "/";
+    return "pkgcmd -i -t wgt -q -p" + path + appName;
+}
+
+function uninstallApplicationCommand(appName) {
+    return "pkgcmd -u -n" + appName;
+}
+
+document.write('<script src="../webrunner/jquery-1.10.2.min.js"></script>');
\ No newline at end of file
index 67eb5128bc184b0b8f3a08c049f87d8ba612c28d..ebc701ceb43ff3336faab35f9a0191a3fd9812d3 100755 (executable)
@@ -562,3 +562,16 @@ function getListenerConversionExceptions(callbackNames) {
 
     return result;
 }
+
+function executeCommand(command) {
+    var toSend = {'cmd' : command};
+    var response =  $.ajax({
+        type: "POST",
+        url: 'http://127.0.0.1:8000/execute_command',
+        async: false,
+        dataType: 'json',
+        data: toSend
+    });
+    //This log provides console output after executing shell command.
+    console.log(JSON.stringify(response));
+}
\ No newline at end of file
index 86f8cd1a0e34d4636c7f01bee9d42a42be92fdd4..92d016389e2a45e131344d3100a50123f6665a29 100755 (executable)
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check using addAppInfoEventListener method (installation process) in ApplicationManager interface" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="manual" priority="P1" id="ApplicationManager_addAppInfoEventListener_oninstalled">
-        <description>
-          <pre_condition>Make sure that TCTAppInfoEventTest1 application is not installed (uninstall it)</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click run and install TCTAppInfoEventTest1.wgt application using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-application-tizen-tests/mediasrc/TCTAppInfoEventTest1.wgt".</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+      <testcase purpose="Check using addAppInfoEventListener method (installation process) in ApplicationManager interface" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_addAppInfoEventListener_oninstalled">
+        <description>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_oninstalled.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check using addAppInfoEventListener method (deinstallation process) in ApplicationManager interface" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="manual" priority="P1" id="ApplicationManager_addAppInfoEventListener_onuninstalled">
+      <testcase purpose="Check using addAppInfoEventListener method (deinstallation process) in ApplicationManager interface" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_addAppInfoEventListener_onuninstalled">
         <description>
-          <pre_condition>Make sure that TCTAppInfoEventTest1 application is installed (you can install it using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-application-tizen-tests/mediasrc/TCTAppInfoEventTest1.wgt").</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click run and uninstall TCTAppInfoEventTest1 application.</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_onuninstalled.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check using addAppInfoEventListener method (updating process) in ApplicationManager interface" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="manual" priority="P1" id="ApplicationManager_addAppInfoEventListener_onupdated">
+      <testcase purpose="Check using addAppInfoEventListener method (updating process) in ApplicationManager interface" type="compliance" status="approved" component="TizenAPI/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_addAppInfoEventListener_onupdated">
         <description>
-          <pre_condition>Make sure that TCTAppInfoEventTest1 application is installed (you can install it using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-application-tizen-tests/mediasrc/TCTAppInfoEventTest1.wgt").</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click run and install TCTAppInfoEventTest2.wgt application using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-application-tizen-tests/mediasrc/TCTAppInfoEventTest2.wgt".</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_onupdated.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if turnScreenOff method works correctly" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_turnScreenOff_successful">
+      <testcase purpose="Check if turnScreenOff method works correctly" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_turnScreenOff_successful">
         <description>
-          <steps>
-            <step order="1">
-              <step_desc>Click 'Run'</step_desc>
-              <expected>The screen should be turned off</expected>
-            </step>
-            <step order="2">
-              <step_desc>Unlock the screen and display the test application</step_desc>
-              <expected>The result should be 'Pass'</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PowerManager_turnScreenOff_successful.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if turnScreenOn method works correctly" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_turnScreenOn_successful">
+      <testcase purpose="Check if turnScreenOn method works correctly" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_turnScreenOn_successful">
         <description>
-          <steps>
-            <step order="1">
-              <step_desc>Click 'Run'</step_desc>
-              <expected>The screen should be turned locked</expected>
-            </step>
-            <step order="2">
-              <step_desc>Unlock the screen and display the test application</step_desc>
-              <expected>The result should be 'Pass'</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PowerManager_turnScreenOn_successful.html</test_script_entry>
         </description>
         <specs>
index f7d516901f030f7ec95c20b1ee358e3df3fef763..8ee5aba39e2d0c077168ef80abaa4557dbd06bd9 100755 (executable)
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_missarg.html</test_script_entry>
         </description>
       </testcase>
-      <testcase component="TizenAPI/Application/Application" execution_type="manual" id="ApplicationManager_addAppInfoEventListener_oninstalled" priority="P1" purpose="Check using addAppInfoEventListener method (installation process) in ApplicationManager interface">
-        <description>
-          <pre_condition>Make sure that TCTAppInfoEventTest1 application is not installed (uninstall it)</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click run and install TCTAppInfoEventTest1.wgt application using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/Others/TCTAppInfoEventTest1.wgt".</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+      <testcase component="TizenAPI/Application/Application" execution_type="auto" id="ApplicationManager_addAppInfoEventListener_oninstalled" priority="P1" purpose="Check using addAppInfoEventListener method (installation process) in ApplicationManager interface">
+        <description>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_oninstalled.html</test_script_entry>
         </description>
       </testcase>
-      <testcase component="TizenAPI/Application/Application" execution_type="manual" id="ApplicationManager_addAppInfoEventListener_onuninstalled" priority="P1" purpose="Check using addAppInfoEventListener method (deinstallation process) in ApplicationManager interface">
+      <testcase component="TizenAPI/Application/Application" execution_type="auto" id="ApplicationManager_addAppInfoEventListener_onuninstalled" priority="P1" purpose="Check using addAppInfoEventListener method (deinstallation process) in ApplicationManager interface">
         <description>
-          <pre_condition>Make sure that TCTAppInfoEventTest1 application is installed (you can install it using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/Others/TCTAppInfoEventTest1.wgt").</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click run and uninstall TCTAppInfoEventTest1 application.</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_onuninstalled.html</test_script_entry>
         </description>
       </testcase>
-      <testcase component="TizenAPI/Application/Application" execution_type="manual" id="ApplicationManager_addAppInfoEventListener_onupdated" priority="P1" purpose="Check using addAppInfoEventListener method (updating process) in ApplicationManager interface">
+      <testcase component="TizenAPI/Application/Application" execution_type="auto" id="ApplicationManager_addAppInfoEventListener_onupdated" priority="P1" purpose="Check using addAppInfoEventListener method (updating process) in ApplicationManager interface">
         <description>
-          <pre_condition>Make sure that TCTAppInfoEventTest1 application is installed (you can install it using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/Others/TCTAppInfoEventTest1.wgt").</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click run and install TCTAppInfoEventTest2.wgt application using command "pkgcmd –i –t wgt -q –p {DEVICE_SUITE_TARGET_30}/Others/TCTAppInfoEventTest2.wgt".</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/ApplicationManager_addAppInfoEventListener_onupdated.html</test_script_entry>
         </description>
       </testcase>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PowerManager_turnScreenOn_method_exists.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if turnScreenOn method works correctly" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_turnScreenOn_successful">
+      <testcase purpose="Check if turnScreenOn method works correctly" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_turnScreenOn_successful">
         <description>
-          <steps>
-            <step order="1">
-              <step_desc>Click 'Run'</step_desc>
-              <expected>The screen should be turned locked</expected>
-            </step>
-            <step order="2">
-              <step_desc>Unlock the screen and display the test application</step_desc>
-              <expected>The result should be 'Pass'</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PowerManager_turnScreenOn_successful.html</test_script_entry>
         </description>
       </testcase>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PowerManager_turnScreenOff_extra_argument.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if turnScreenOff method works correctly" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_turnScreenOff_successful">
+      <testcase purpose="Check if turnScreenOff method works correctly" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_turnScreenOff_successful">
         <description>
-          <steps>
-            <step order="1">
-              <step_desc>Click 'Run'</step_desc>
-              <expected>The screen should be turned off</expected>
-            </step>
-            <step order="2">
-              <step_desc>Unlock the screen and display the test application</step_desc>
-              <expected>The result should be 'Pass'</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-deprecatedapi-tizen-tests/deprecatedapi/PowerManager_turnScreenOff_successful.html</test_script_entry>
         </description>
       </testcase>