[TCT-Power]Automating manual tests 51/190151/9
authorMateusz Plesinski <m.plesinski@samsung.com>
Thu, 27 Sep 2018 07:30:17 +0000 (09:30 +0200)
committerMateusz Plesinski <m.plesinski@samsung.com>
Tue, 2 Oct 2018 09:24:35 +0000 (11:24 +0200)
Changed implementation of manual tests to fully automate them.
Tests that has been changed:
+ PowerManager_isScreenOn_check_change
+ PowerManager_release_correct_check
+ PowerManager_request
+ PowerManager_turnScreenOff
+ PowerManager_unsetScreenStateStateChangeListener
Tests that were already automatic just changed their execution type:
+ PowerManager_restoreScreenBrightness
+ PowerManager_restoreScreenBrightness_check_effect

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

Change-Id: I942d46399f4c248d9ad473d0158e375037221f8c
Signed-off-by: Mateusz Plesinski <m.plesinski@samsung.com>
common/tct-power-tizen-tests/power/PowerManager_isScreenOn_check_change.html
common/tct-power-tizen-tests/power/PowerManager_release_correct_check.html
common/tct-power-tizen-tests/power/PowerManager_request.html
common/tct-power-tizen-tests/power/PowerManager_restoreScreenBrightness_check_effect.html
common/tct-power-tizen-tests/power/PowerManager_turnScreenOff_successful.html
common/tct-power-tizen-tests/power/PowerManager_unsetScreenStateChangeListener_successful.html
common/tct-power-tizen-tests/power/support/power_common.js
common/tct-power-tizen-tests/power/support/unitcommon.js
common/tct-power-tizen-tests/tests.full.xml
common/tct-power-tizen-tests/tests.xml

index 191be2e5acde3955a1b3b93256ffe592d07d5582..743f6572e5f1dab09ae4872052138cb5c07fca61 100755 (executable)
@@ -49,6 +49,8 @@ function sleep(numberMillis) {
 //==== PRIORITY P1
 //==== TEST_CRITERIA MNA MR
 
+executeCommand(screenTimeoutCommand(15));
+
 test(function () {
     var isScreenOn;
 
index b45bd8251105e2c2cf038acddf2aecbc4bc50d2b..d5641c7026aa09cb5fd735d079a4daa8a5b7669d 100755 (executable)
@@ -37,22 +37,21 @@ Authors:
 <meta name="flags" content="" />
 <meta name="assert" content="Check if PowerManager's release method works" />
 <script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/power_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: PowerManager_release_correct_check
 //==== LABEL Check if release() method does what it should
-//==== EXECUTION_TYPE manual
-//==== STEP Click 'Run', do not touch the screen, wait until the screen is changed
-//==== EXPECT Pass
-//==== PRE Please set backlight time to 15 seconds
+//==== EXECUTION_TYPE auto
 //==== SPEC Tizen Web API:System:Power:PowerManager:release M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/power.html
 //==== PRIORITY P1
 //==== TEST_CRITERIA MMINA MAST
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000});
+
+setup({timeout: 300000});
+var t = async_test(document.title, {timeout: 300000});
 t.step(function () {
     function onScreenStateChanged(previousState, changedState) {
         assert_not_equals(previousState, changedState, "Screen state should be changed.");
@@ -60,19 +59,23 @@ t.step(function () {
         t.done();
     }
 
+    //in case any request has been set before
     tizen.power.release("SCREEN");
     tizen.power.release("CPU");
 
-    tizen.power.turnScreenOn();
-    tizen.power.request("SCREEN", "SCREEN_DIM");
+    tizen.power.request("SCREEN", "SCREEN_NORMAL");
     tizen.power.setScreenStateChangeListener(onScreenStateChanged);
     tizen.power.release("SCREEN");
+    executeCommand(screenTimeoutCommand(5));
+
     setTimeout(function () {
         t.step(function () {
             assert_unreached("tizen.power.release failure, " +
                     "screen state change has not been detected!");
         });
-    }, 20000);
+    }, 10000);
+
+    executeCommand(screenTimeoutCommand(15));
 });
 
 </script>
index e52752a3e109a7a61e7819e73b8a1ef36d2c8948..8e67dcd969514dfb5e1389a336e7bcf85196e53c 100755 (executable)
@@ -37,22 +37,21 @@ Authors:
 <title>PowerManager_request</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/power_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: PowerManager_request
 //==== LABEL Check whether request() method with proper arguments does what it should do
-//==== EXECUTION_TYPE manual
-//==== STEP Check whether screen do not turn off
-//==== EXPECT Pass
-//==== PRE Please set backlight time to 15 seconds
+//==== EXECUTION_TYPE auto
 //==== SPEC Tizen Web API:System:Power:PowerManager:request M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/power.html
 //==== PRIORITY P1
 //==== TEST_CRITERIA MMINA MAST MR
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), timeout, retValue = null;
+
+setup({timeout: 900000});
+var t = async_test(document.title, {timeout: 900000}), timeout, retValue = null;
 
 t.step(function () {
     tizen.power.release("SCREEN");
@@ -61,15 +60,17 @@ t.step(function () {
     tizen.power.turnScreenOn();
     retValue = tizen.power.request("SCREEN", "SCREEN_DIM");
     assert_equals(retValue, undefined, "request returns wrong value");
+    executeCommand(screenTimeoutCommand(2));
 
     timeout = t.step_func(function () {
         assert_true(tizen.power.isScreenOn(), "Screen should not be off - power.request() failed." );
-        alert("The screen is switched on");
         tizen.power.release("SCREEN");
-
         t.done();
     });
-    setTimeout(timeout, 20000);
+
+    setTimeout(timeout, 3000);
+
+    executeCommand(screenTimeoutCommand(15));
 });
 
 </script>
index 3eabe1eb9ecb10bdcedb8d8541942ad5d940e3bd..eb794db9bb1c98be8900555a2ba82140480ae6d0 100755 (executable)
@@ -40,7 +40,7 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/power.html
 //==== STEP Check if restoreScreenBrightness method called with non-optional arguments does what it should
 //==== EXPECT method does what it should to do
-//==== EXECUTION_TYPE manual
+//==== EXECUTION_TYPE auto
 //==== PRIORITY P1
 //==== TEST_CRITERIA MNA MNAST
 var initialValue, defaultValue, currentValue, restoredValue;
index 4f712bc6212e45d779535f7fba384003e3cb5fb3..85bba8ab78a41777971a8d90a2fb9122449a8d82 100755 (executable)
@@ -38,6 +38,8 @@ Authors:
 <meta name="assert" content="Check if PowerManager's turnScreenOff method works" />
 <script src="../resources/testharness.js"></script>
 <script src="../resources/testharnessreport.js"></script>
+<script src="support/unitcommon.js"></script>
+<script src="support/power_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -48,6 +50,7 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/power.html
 //==== PRIORITY P1
 //==== TEST_CRITERIA MNA MNAST
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}), powerMgr = tizen.power, isScreenOn, changeCallback;
@@ -60,8 +63,9 @@ t.step(function () {
     });
 
     powerMgr.turnScreenOn();
+    powerMgr.setScreenStateChangeListener(changeCallback);
+
     setTimeout(t.step_func(function () {
-        powerMgr.setScreenStateChangeListener(changeCallback);
         powerMgr.turnScreenOff();
     }), 500);
 });
index 8497339d25d45bfae9070c3dba4d24023eb9564a..5e362b5f451ef1bcaa24f7cb607d800367a04872 100755 (executable)
@@ -39,26 +39,23 @@ Authors:
 <meta name="assert" content="Check if PowerManager unsetScreenStateChangeListener succeeds" />
 <script src="../resources/testharness.js"></script>
 <script src="../resources/testharnessreport.js"></script>
+<script src="support/unitcommon.js"></script>
+<script src="support/power_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: PowerManager_unsetScreenStateChangeListener_successful
 //==== LABEL Check if unsetScreenStateChangeListener method works correctly
-//==== EXECUTION_TYPE manual
-//==== STEP Make sure that backlight time is 15 seconds (Settings, Display).
-//==== EXPECT (None)
-//==== STEP Click 'Run', do not touch the screen, wait until the screen is locked
-//==== EXPECT The screen should be locked
-//==== STEP Unlock the screen and display the test application
-//==== EXPECT The result should be 'Pass'
+//==== EXECUTION_TYPE auto
 //==== SPEC Tizen Web API:System:Power:PowerManager:unsetScreenStateChangeListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/power.html
 //==== PRIORITY P1
 //==== TEST_CRITERIA MNA MNAST
+
 setup({timeout: 90000});
 
-var t = async_test(document.title, {timeout: 90000}), changeDetected = false;
+var t = async_test(document.title, {timeout: 90000}), timeout, changeDetected = false;
 t.step(function () {
     function onScreenStateChanged(previousState, changedState) {
         t.step(function () {
@@ -72,14 +69,17 @@ t.step(function () {
     tizen.power.release("CPU");
     tizen.power.setScreenStateChangeListener(onScreenStateChanged);
     tizen.power.unsetScreenStateChangeListener();
+
     tizen.power.turnScreenOn();
-    setTimeout(function () {
-        t.step(function () {
-            assert_false(changeDetected, "screen state change shouldn't be " +
-                "detected.");
-        });
+    tizen.power.turnScreenOff();
+
+    timeout = t.step(function () {
+        assert_false(changeDetected, "screen state change shouldn't be " +
+            "detected.");
         t.done();
-    }, 20000);
+    });
+
+    setTimeout(timeout, 20000);
 });
 
 </script>
index 5234d13b4cbc7735f26218d0a4b5508d58cb578f..19e96b270ddbe61514a644e0bfc7d862036f3048 100755 (executable)
@@ -27,3 +27,10 @@ var NOT_FOUND_ERR = 'NotFoundError';
 
 var PowerScreenStates = [ "SCREEN_OFF", "SCREEN_DIM", "SCREEN_NORMAL" ];
 
+var TCT_SET_SCREEN_TIMEOUT_COMMAND = "vconftool set -f -t int  db/setting/lcd_backlight_normal ";
+
+function screenTimeoutCommand(time){
+    return TCT_SET_SCREEN_TIMEOUT_COMMAND + time;
+}
+
+document.write('<script src="../webrunner/jquery-1.10.2.min.js"></script>');
\ No newline at end of file
index 8651d3469ae7cdba74bb2a24d15cd023d5587cc0..e729a0371e94ed87b77584626f2b70afc6ebe000 100755 (executable)
@@ -553,4 +553,19 @@ 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 974a55e10438d9cdaf2ea7149170e6b8a6b42afb..959a44ee8e49a0d07411f8df6977b7eb5b165c71 100755 (executable)
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if release() method does what it should" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_release_correct_check">
+      <testcase purpose="Check if release() method does what it should" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_release_correct_check">
         <description>
-          <pre_condition>Please set backlight time to 15 seconds</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click 'Run', do not touch the screen, wait until the screen is changed</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_release_correct_check.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check whether request() method with proper arguments does what it should do" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_request">
+      <testcase purpose="Check whether request() method with proper arguments does what it should do" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_request">
         <description>
-          <pre_condition>Please set backlight time to 15 seconds</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check whether screen do not turn off</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_request.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if restoreScreenBrightness() method restores the screen brightness to the system default setting value" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_restoreScreenBrightness_check_effect">
+      <testcase purpose="Check if restoreScreenBrightness() method restores the screen brightness to the system default setting value" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_restoreScreenBrightness_check_effect">
         <description>
-          <steps>
-            <step order="1">
-              <step_desc>Check if restoreScreenBrightness method called with non-optional arguments does what it should</step_desc>
-              <expected>method does what it should to do</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_restoreScreenBrightness_check_effect.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-power-tizen-tests/power/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-power-tizen-tests/power/PowerManager_turnScreenOn_successful.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if unsetScreenStateChangeListener method works correctly" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_unsetScreenStateChangeListener_successful">
+      <testcase purpose="Check if unsetScreenStateChangeListener method works correctly" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_unsetScreenStateChangeListener_successful">
         <description>
-          <steps>
-            <step order="1">
-              <step_desc>Make sure that backlight time is 15 seconds (Settings, Display).</step_desc>
-              <expected>(None)</expected>
-            </step>
-            <step order="2">
-              <step_desc>Click 'Run', do not touch the screen, wait until the screen is locked</step_desc>
-              <expected>The screen should be locked</expected>
-            </step>
-            <step order="3">
-              <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-power-tizen-tests/power/PowerManager_unsetScreenStateChangeListener_successful.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if release() method does what it should" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_release_correct_check">
+      <testcase purpose="Check if release() method does what it should" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_release_correct_check">
         <description>
-          <pre_condition>Please set backlight time to 15 seconds</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click 'Run', do not touch the screen, wait until the screen is changed</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_release_correct_check.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check whether request() method with proper arguments does what it should do" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_request">
+      <testcase purpose="Check whether request() method with proper arguments does what it should do" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_request">
         <description>
-          <pre_condition>Please set backlight time to 15 seconds</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check whether screen do not turn off</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_request.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if restoreScreenBrightness() method restores the screen brightness to the system default setting value" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_restoreScreenBrightness_check_effect">
+      <testcase purpose="Check if restoreScreenBrightness() method restores the screen brightness to the system default setting value" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_restoreScreenBrightness_check_effect">
         <description>
-          <steps>
-            <step order="1">
-              <step_desc>Check if restoreScreenBrightness method called with non-optional arguments does what it should</step_desc>
-              <expected>method does what it should to do</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_restoreScreenBrightness_check_effect.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if unsetScreenStateChangeListener method works correctly" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_unsetScreenStateChangeListener_successful">
+      <testcase purpose="Check if unsetScreenStateChangeListener method works correctly" type="compliance" status="approved" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_unsetScreenStateChangeListener_successful">
         <description>
-          <steps>
-            <step order="1">
-              <step_desc>Make sure that backlight time is 15 seconds (Settings, Display).</step_desc>
-              <expected>(None)</expected>
-            </step>
-            <step order="2">
-              <step_desc>Click 'Run', do not touch the screen, wait until the screen is locked</step_desc>
-              <expected>The screen should be locked</expected>
-            </step>
-            <step order="3">
-              <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-power-tizen-tests/power/PowerManager_unsetScreenStateChangeListener_successful.html</test_script_entry>
         </description>
         <specs>
index e378a874e3f0fb9291c0ee1e0839542f9bd11827..915efb3723ffcb928c685a5f860fb354fb613379 100755 (executable)
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_release_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if release() method does what it should" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_release_correct_check">
-        <description>
-          <pre_condition>Please set backlight time to 15 seconds</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click 'Run', do not touch the screen, wait until the screen is changed</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+      <testcase purpose="Check if release() method does what it should" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_release_correct_check">
+        <description>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_release_correct_check.html</test_script_entry>
         </description>
       </testcase>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_release_resource_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check whether request() method with proper arguments does what it should do" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_request">
+      <testcase purpose="Check whether request() method with proper arguments does what it should do" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_request">
         <description>
-          <pre_condition>Please set backlight time to 15 seconds</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check whether screen do not turn off</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_request.html</test_script_entry>
         </description>
       </testcase>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_restoreScreenBrightness.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if restoreScreenBrightness() method restores the screen brightness to the system default setting value" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_restoreScreenBrightness_check_effect">
+      <testcase purpose="Check if restoreScreenBrightness() method restores the screen brightness to the system default setting value" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_restoreScreenBrightness_check_effect">
         <description>
-          <steps>
-            <step order="1">
-              <step_desc>Check if restoreScreenBrightness method called with non-optional arguments does what it should</step_desc>
-              <expected>method does what it should to do</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_restoreScreenBrightness_check_effect.html</test_script_entry>
         </description>
       </testcase>
           <test_script_entry>/opt/tct-power-tizen-tests/power/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-power-tizen-tests/power/PowerManager_turnScreenOff_successful.html</test_script_entry>
         </description>
       </testcase>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_unsetScreenStateChangeListener_extra_argument.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if unsetScreenStateChangeListener method works correctly" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_unsetScreenStateChangeListener_successful">
-        <description>
-          <steps>
-            <step order="1">
-              <step_desc>Make sure that backlight time is 15 seconds (Settings, Display).</step_desc>
-              <expected>(None)</expected>
-            </step>
-            <step order="2">
-              <step_desc>Click 'Run', do not touch the screen, wait until the screen is locked</step_desc>
-              <expected>The screen should be locked</expected>
-            </step>
-            <step order="3">
-              <step_desc>Unlock the screen and display the test application</step_desc>
-              <expected>The result should be 'Pass'</expected>
-            </step>
-          </steps>
+      <testcase purpose="Check if unsetScreenStateChangeListener method works correctly" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_unsetScreenStateChangeListener_successful">
+        <description>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_unsetScreenStateChangeListener_successful.html</test_script_entry>
         </description>
       </testcase>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_release_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if release() method does what it should" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_release_correct_check">
+      <testcase purpose="Check if release() method does what it should" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_release_correct_check">
         <description>
-          <pre_condition>Please set backlight time to 15 seconds</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Click 'Run', do not touch the screen, wait until the screen is changed</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_release_correct_check.html</test_script_entry>
         </description>
       </testcase>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_release_resource_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check whether request() method with proper arguments does what it should do" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_request">
+      <testcase purpose="Check whether request() method with proper arguments does what it should do" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_request">
         <description>
-          <pre_condition>Please set backlight time to 15 seconds</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check whether screen do not turn off</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_request.html</test_script_entry>
         </description>
       </testcase>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_restoreScreenBrightness.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if restoreScreenBrightness() method restores the screen brightness to the system default setting value" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_restoreScreenBrightness_check_effect">
+      <testcase purpose="Check if restoreScreenBrightness() method restores the screen brightness to the system default setting value" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_restoreScreenBrightness_check_effect">
         <description>
-          <steps>
-            <step order="1">
-              <step_desc>Check if restoreScreenBrightness method called with non-optional arguments does what it should</step_desc>
-              <expected>method does what it should to do</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_restoreScreenBrightness_check_effect.html</test_script_entry>
         </description>
       </testcase>
           <test_script_entry>/opt/tct-power-tizen-tests/power/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-power-tizen-tests/power/PowerManager_turnScreenOn_successful.html</test_script_entry>
         </description>
       </testcase>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_unsetScreenStateChangeListener_extra_argument.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if unsetScreenStateChangeListener method works correctly" component="Tizen Device APIs/System/Power" execution_type="manual" priority="P1" id="PowerManager_unsetScreenStateChangeListener_successful">
-        <description>
-          <steps>
-            <step order="1">
-              <step_desc>Make sure that backlight time is 15 seconds (Settings, Display).</step_desc>
-              <expected>(None)</expected>
-            </step>
-            <step order="2">
-              <step_desc>Click 'Run', do not touch the screen, wait until the screen is locked</step_desc>
-              <expected>The screen should be locked</expected>
-            </step>
-            <step order="3">
-              <step_desc>Unlock the screen and display the test application</step_desc>
-              <expected>The result should be 'Pass'</expected>
-            </step>
-          </steps>
+      <testcase purpose="Check if unsetScreenStateChangeListener method works correctly" component="Tizen Device APIs/System/Power" execution_type="auto" priority="P1" id="PowerManager_unsetScreenStateChangeListener_successful">
+        <description>
           <test_script_entry>/opt/tct-power-tizen-tests/power/PowerManager_unsetScreenStateChangeListener_successful.html</test_script_entry>
         </description>
       </testcase>