//==== PRIORITY P1
//==== TEST_CRITERIA CBT CBOA
+executeCommand(TCT_APPINFO_UNINSTALL_COMMAND);
+
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(TCT_APPINFOv1_INSTALL_COMMAND);
});
</script>
//==== PRIORITY P1
//==== TEST_CRITERIA CBT CBOA
+executeCommand(TCT_APPINFOv1_INSTALL_COMMAND);
+
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(TCT_APPINFO_UNINSTALL_COMMAND);
+
});
</script>
//==== PRIORITY P1
//==== TEST_CRITERIA CBT CBOA
+executeCommand(TCT_APPINFO_UNINSTALL_COMMAND);
+executeCommand(TCT_APPINFOv1_INSTALL_COMMAND);
+
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(TCT_APPINFOv2_INSTALL_COMMAND);
+
});
</script>
//==== PRIORITY P1
//==== TEST_CRITERIA MMINA MAST MR
+executeCommand(TCT_APPINFO_UNINSTALL_COMMAND);
+
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(TCT_APPINFOv1_INSTALL_COMMAND);
});
</script>
//==== PRIORITY P1
//==== TEST_CRITERIA MMINA MAST MR
+executeCommand(TCT_APPINFOv1_INSTALL_COMMAND);
+
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(TCT_APPINFO_UNINSTALL_COMMAND);
});
</script>
//==== PRIORITY P1
//==== TEST_CRITERIA MMINA MAST MR
+executeCommand(TCT_APPINFO_UNINSTALL_COMMAND);
+executeCommand(TCT_APPINFOv1_INSTALL_COMMAND);
+
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(TCT_APPINFOv2_INSTALL_COMMAND);
});
</script>
//==== PRIORITY P1
//==== TEST_CRITERIA MMINA MR
+executeCommand(TCT_DEACTIVATE_APP_COMMAND);
+
setup({timeout: 300000});
var t = async_test(document.title, {timeout: 300000}), statusEventCallback, watchId;
watchId = tizen.application.addAppStatusChangeListener(statusEventCallback);
assert_type(watchId, "long", "wrong listener ID");
+
+ executeCommand(TCT_ACTIVATE_APP_COMMAND);
+
});
</script>
//==== PRIORITY P1
//==== TEST_CRITERIA MOA MR
+executeCommand(TCT_DEACTIVATE_APP_COMMAND);
+
setup({timeout: 300000});
var t = async_test(document.title, {timeout: 300000}), statusEventCallback, watchId;
watchId = tizen.application.addAppStatusChangeListener(statusEventCallback, "api1appli1.TCTAppControl");
assert_type(watchId, "long", "wrong listener ID");
+
+ executeCommand(TCT_ACTIVATE_APP_COMMAND);
});
</script>
//==== PRIORITY P1
//==== TEST_CRITERIA CBT CBOA
+executeCommand(TCT_DEACTIVATE_APP_COMMAND);
+
setup({timeout: 300000});
var t = async_test(document.title, {timeout: 300000}), appEventCallback, watchId;
watchId = tizen.application.addAppStatusChangeListener(appEventCallback);
+ executeCommand(TCT_ACTIVATE_APP_COMMAND);
});
</script>
var TYPE_MISMATCH_ERR = {name: 'TypeMismatchError'};
+var TCT_APPINFO_WGT_LOCATION = "/home/owner/share/Others/";
+var TCT_APPINFOv1_WGT_PATH = TCT_APPINFO_WGT_LOCATION + "TCTAppInfoEventTest1.wgt";
+var TCT_APPINFOv2_WGT_PATH = TCT_APPINFO_WGT_LOCATION + "TCTAppInfoEventTest2.wgt";
+var TCT_APPINFOv1_INSTALL_COMMAND = "pkgcmd -i -t wgt -p " + TCT_APPINFOv1_WGT_PATH;
+var TCT_APPINFOv2_INSTALL_COMMAND = "pkgcmd -i -t wgt -p " + TCT_APPINFOv2_WGT_PATH;
+
+var TCT_APPINFO_PACKAGE_ID = "api1appli3";
+var TCT_APPINFO_UNINSTALL_COMMAND = "pkgcmd -u -n " + TCT_APPINFO_PACKAGE_ID;
+
+var TCT_ACTIVATE_APP_COMMAND = "pkgcmd -A -t app -n api1appli1.TCTAppControl --global";
+var TCT_DEACTIVATE_APP_COMMAND = "pkgcmd -D -t app -n api1appli1.TCTAppControl --global";
+
var TIMEOUT_AUTO_TEST = 30000;
setup({timeout: TIMEOUT_AUTO_TEST});
function assert_exit(t, appId, onsuccess) {
assert_kill(t, appId, onsuccess);
}
+
+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
<test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationInformationArraySuccessCallback_onsuccess.html</test_script_entry>
</description>
</testcase>
- <testcase component="TizenAPI/Application/Application" execution_type="manual" id="ApplicationInformationEventCallback_oninstalled" priority="P1" purpose="Check argument passed into method which is oninstalled listener in ApplicationInformationEventCallback">
+ <testcase component="TizenAPI/Application/Application" execution_type="auto" id="ApplicationInformationEventCallback_oninstalled" priority="P1" purpose="Check argument passed into method which is oninstalled listener in ApplicationInformationEventCallback">
<description>
<pre_condition>Make sure that TCTAppInfoEventTest1 application is not installed (uninstall it)</pre_condition>
<steps>
<test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationInformationEventCallback_oninstalled.html</test_script_entry>
</description>
</testcase>
- <testcase component="TizenAPI/Application/Application" execution_type="manual" id="ApplicationInformationEventCallback_onuninstalled" priority="P1" purpose="Check argument passed into method which is onuninstalled listener in ApplicationInformationEventCallback">
+ <testcase component="TizenAPI/Application/Application" execution_type="auto" id="ApplicationInformationEventCallback_onuninstalled" priority="P1" purpose="Check argument passed into method which is onuninstalled listener in ApplicationInformationEventCallback">
<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>
<test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationInformationEventCallback_onuninstalled.html</test_script_entry>
</description>
</testcase>
- <testcase component="TizenAPI/Application/Application" execution_type="manual" id="ApplicationInformationEventCallback_onupdated" priority="P1" purpose="Check argument passed into method which is onupdated listener in ApplicationInformationEventCallback">
+ <testcase component="TizenAPI/Application/Application" execution_type="auto" id="ApplicationInformationEventCallback_onupdated" priority="P1" purpose="Check argument passed into method which is onupdated listener in ApplicationInformationEventCallback">
<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>
<test_script_entry>/opt/tct-application-tizen-tests/application/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">
+ <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>
<pre_condition>Make sure that TCTAppInfoEventTest1 application is not installed (uninstall it)</pre_condition>
<steps>
<test_script_entry>/opt/tct-application-tizen-tests/application/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>
<test_script_entry>/opt/tct-application-tizen-tests/application/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>
<test_script_entry>/opt/tct-application-tizen-tests/application/EventCallback_notexist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check using addAppStatusChangeListener method (installation process) in ApplicationManager interface" component="Tizen Device APIs/Application/Application" execution_type="manual" priority="P1" id="ApplicationManager_addAppStatusChangeListener">
+ <testcase purpose="Check using addAppStatusChangeListener method (installation process) in ApplicationManager interface" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_addAppStatusChangeListener">
<description>
<steps>
<step order="1">
<test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_misarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check using addAppStatusChangeListener method (installation process) in ApplicationManager interface" component="Tizen Device APIs/Application/Application" execution_type="manual" priority="P1" id="ApplicationManager_addAppStatusChangeListener_with_appId">
+ <testcase purpose="Check using addAppStatusChangeListener method (installation process) in ApplicationManager interface" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_addAppStatusChangeListener_with_appId">
<description>
<steps>
<step order="1">
<test_script_entry>/opt/tct-application-tizen-tests/application/StatusEventCallback_notexist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check argument passed into method which is oninstalled listener in StatusEventCallback" component="Tizen Device APIs/Application/Application" execution_type="manual" priority="P1" id="StatusEventCallback_onchange">
+ <testcase purpose="Check argument passed into method which is oninstalled listener in StatusEventCallback" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="StatusEventCallback_onchange">
<description>
<steps>
<step order="1">