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>
//==== PRIORITY P1
//==== TEST_CRITERIA MNA MR
+executeCommand(screenTimeoutCommand(15));
+
test(function () {
var isScreenOn;
<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.");
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>
<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");
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>
//==== 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;
<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>
//==== 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;
});
powerMgr.turnScreenOn();
+ powerMgr.setScreenStateChangeListener(changeCallback);
+
setTimeout(t.step_func(function () {
- powerMgr.setScreenStateChangeListener(changeCallback);
powerMgr.turnScreenOff();
}), 500);
});
<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 () {
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>
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
}
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
</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>
<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>