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>
//==== 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;
watchId = tizen.application.addAppInfoEventListener(appEventCallback);
assert_type(watchId, "long", "wrong listener ID");
+ executeCommand(installApplicationCommand(TCT_TCTAPPINFOEVENTTEST1_NAME, TCT_WGT_LOCATION));
});
</script>
//==== 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;
watchId = tizen.application.addAppInfoEventListener(appEventCallback);
assert_type(watchId, "long", "wrong listener ID");
+ executeCommand(uninstallApplicationCommand(TCT_APPINFOEVENT1_PKG_NAME));
});
</script>
//==== 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;
watchId = tizen.application.addAppInfoEventListener(appEventCallback);
assert_type(watchId, "long", "wrong listener ID");
-
+ executeCommand(installApplicationCommand(TCT_TCTAPPINFOEVENTTEST2_NAME, TCT_WGT_LOCATION));
});
</script>
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.
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
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 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>
<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>
//==== 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;
watchId = tizen.application.addAppInfoEventListener(appEventCallback);
assert_type(watchId, "long", "wrong listener ID");
+ executeCommand(installApplicationCommand(TCT_TCTAPPINFOEVENTTEST1_NAME, TCT_WGT_LOCATION));
});
</script>
//==== 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;
watchId = tizen.application.addAppInfoEventListener(appEventCallback);
assert_type(watchId, "long", "wrong listener ID");
+ executeCommand(uninstallApplicationCommand(TCT_APPINFOEVENT1_PKG_NAME));
});
</script>
//==== 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;
watchId = tizen.application.addAppInfoEventListener(appEventCallback);
assert_type(watchId, "long", "wrong listener ID");
-
+ executeCommand(installApplicationCommand(TCT_TCTAPPINFOEVENTTEST2_NAME, TCT_WGT_LOCATION));
});
</script>
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 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
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
</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>
<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>
//==== 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;
watchId = tizen.application.addAppInfoEventListener(appEventCallback);
assert_type(watchId, "long", "wrong listener ID");
+ executeCommand(installApplicationCommand(TCT_TCTAPPINFOEVENTTEST1_NAME, TCT_WGT_LOCATION));
+
});
</script>
//==== 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;
watchId = tizen.application.addAppInfoEventListener(appEventCallback);
assert_type(watchId, "long", "wrong listener ID");
+ executeCommand(uninstallApplicationCommand(TCT_APPINFOEVENT1_PKG_NAME));
});
</script>
//==== 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;
watchId = tizen.application.addAppInfoEventListener(appEventCallback);
assert_type(watchId, "long", "wrong listener ID");
-
+ executeCommand(installApplicationCommand(TCT_TCTAPPINFOEVENTTEST2_NAME, TCT_WGT_LOCATION));
});
</script>
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 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
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
</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>
<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>