//==== STEP Run the test and install TCTPackageManagerTest1.1.1.wgt application from My files app (Phone/Others directory).
//==== EXPECT Pass.
//==== TEST_CRITERIA CBT CBOA
+
+executeCommand(TCT_PACKAGE_MANAGER_TESTv1_UNINSTALL_COMMAND);
+
setup({timeout: 90000});
var packageInformationEventCallback,
};
tizen.package.unsetPackageInfoEventListener();
tizen.package.setPackageInfoEventListener(packageInformationEventCallback);
+ executeCommand(TCT_PACKAGE_MANAGER_TESTv1_INSTALL_COMMAND);
});
</script>
//==== STEP Run the test and uninstall TCTPackageManagerTest1.1.1.wgt application.
//==== EXPECT Pass.
//==== TEST_CRITERIA CBT CBOA
+
+executeCommand(TCT_PACKAGE_MANAGER_TESTv1_INSTALL_COMMAND);
+
setup({timeout: 90000});
var packageInformationEventCallback,
};
tizen.package.unsetPackageInfoEventListener();
tizen.package.setPackageInfoEventListener(packageInformationEventCallback);
+ executeCommand(TCT_PACKAGE_MANAGER_TESTv1_UNINSTALL_COMMAND);
});
</script>
//==== STEP Run the test and install TCTPackageManagerTest2.2.2.wgt application from My files app (Phone/Others directory).
//==== EXPECT Pass.
//==== TEST_CRITERIA CBT CBOA
+
+executeCommand(TCT_PACKAGE_MANAGER_TESTv1_UNINSTALL_COMMAND);
+executeCommand(TCT_PACKAGE_MANAGER_TESTv1_INSTALL_COMMAND);
+
setup({timeout: 90000});
var packageInformationEventCallback,
};
tizen.package.unsetPackageInfoEventListener();
tizen.package.setPackageInfoEventListener(packageInformationEventCallback);
+ executeCommand(TCT_PACKAGE_MANAGER_TESTv2_INSTALL_COMMAND);
});
</script>
//==== STEP Run the test.
//==== EXPECT Pass.
//==== TEST_CRITERIA MOA MR MAST
+
+executeCommand(TCT_PACKAGE_MANAGER_TESTv1_UNINSTALL_COMMAND);
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}), wasInProgress = false, installProgressCallback, installError,
//==== STEP Run the test.
//==== EXPECT Pass.
//==== TEST_CRITERIA MMINA MR MAST
+
+executeCommand(TCT_PACKAGE_MANAGER_TESTv1_UNINSTALL_COMMAND);
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}), wasInProgress = false, installProgressCallback,
//==== STEP Run the test.
//==== EXPECT Pass.
//==== TEST_CRITERIA MOA MR MAST
+
+executeCommand(TCT_PACKAGE_MANAGER_TESTv1_INSTALL_COMMAND);
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}), wasInProgress = false,
//==== STEP Run the test.
//==== EXPECT Pass.
//==== TEST_CRITERIA MMINA MR MAST
+
+executeCommand(TCT_PACKAGE_MANAGER_TESTv1_INSTALL_COMMAND);
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}), wasInProgress = false,
//==== STEP Run the test and when you see communicate install TCTPackageManagerTest1.1.1.wgt application from My files app (Phone/Others directory).
//==== EXPECT Pass.
//==== TEST_CRITERIA MNA MNAST MR
+
+executeCommand(TCT_PACKAGE_MANAGER_TESTv1_UNINSTALL_COMMAND);
+
setup({timeout: 90000});
var packageInformationEventCallback, returnedValue = null,
tizen.package.setPackageInfoEventListener(packageInformationEventCallback);
returnedValue = tizen.package.unsetPackageInfoEventListener();
assert_equals(returnedValue, undefined, "Incorrect returned value from unsetPackageInfoEventListener method");
- confirm("Please install TCTPackageManagerTest1.1.1.wgt application from: Others directory.");
+ executeCommand(TCT_PACKAGE_MANAGER_TESTv1_INSTALL_COMMAND);
setTimeout(t.step_func(function () {
t.done();
}), 1000);
//==== STEP Run the test.
//==== EXPECT Pass.
//==== TEST_CRITERIA CBT CBOA
+
+executeCommand(TCT_PACKAGE_MANAGER_TESTv1_UNINSTALL_COMMAND);
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}), installProgressCallback, installError;
//==== STEP Run the test.
//==== EXPECT Pass.
//==== TEST_CRITERIA CBT CBOA
+
+executeCommand(TCT_PACKAGE_MANAGER_TESTv1_INSTALL_COMMAND);
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}),
//==== STEP Run the test.
//==== EXPECT Pass.
//==== TEST_CRITERIA CBT CBOA
+
+executeCommand(TCT_PACKAGE_MANAGER_TESTv1_UNINSTALL_COMMAND);
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}), wasInProgress = false,
//==== STEP Run the test.
//==== EXPECT Pass.
//==== TEST_CRITERIA CBT CBOA
+
+executeCommand(TCT_PACKAGE_MANAGER_TESTv1_INSTALL_COMMAND);
+
setup({timeout: 90000});
var t = async_test(document.title, {timeout: 90000}), wasInProgress = false,
var TCT_PACKAGE_INFO_TEST_PACKAGE_DESCRIPTION = "The description of TCTPackageInfoTest";
var TCT_PACKAGE_INFO_TEST_PACKAGE_APP_ID = "api1pack20.TCTPackageInfoTest";
+var TCT_WGT_LOCATION = "/opt/usr/home/owner/share/Others/";
+var TCT_PACKAGE_MANAGER_TESTv1_UNINSTALL_COMMAND = "pkgcmd -u -n api1pack10";
+var TCT_PACKAGE_MANAGER_TESTv1_INSTALL_COMMAND = "pkgcmd -i -t wgt -p " + TCT_WGT_LOCATION + "TCTPackageManagerTest1.1.1.wgt";
+
+var TCT_PACKAGE_MANAGER_TESTv2_UNINSTALL_COMMAND = "pkgcmd -u -n api1pack20";
+var TCT_PACKAGE_MANAGER_TESTv2_INSTALL_COMMAND = "pkgcmd -i -t wgt -p " + TCT_WGT_LOCATION + "TCTPackageManagerTest2.2.2.wgt";
+
var NOT_EXISTING_PACKAGE_ID = "api1dummy0";
document.write('<script src="../webrunner/jquery-1.10.2.min.js"></script>');
document.write('<script src="support/getJsonConf.js"></script>');
\ No newline at end of file
typeArr.push(null);
}
return typeArr;
+}
+
+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 if PackageInformationEventCallback.oninstalled works properly" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="manual" priority="P1" id="PackageInformationEventCallback_oninstalled">
+ <testcase purpose="Check if PackageInformationEventCallback.oninstalled works properly" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="auto" priority="P1" id="PackageInformationEventCallback_oninstalled">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is not installed.</pre_condition>
<steps>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if PackageInformationEventCallback.onuninstalled works properly" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="manual" priority="P1" id="PackageInformationEventCallback_onuninstalled">
+ <testcase purpose="Check if PackageInformationEventCallback.onuninstalled works properly" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="auto" priority="P1" id="PackageInformationEventCallback_onuninstalled">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is installed (You can install it use command "pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/Others/TCTPackageManagerTest1.1.1.wgt").</pre_condition>
<steps>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if method unsetPackageInfoEventListener works correctly" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="manual" priority="P1" id="PackageManager_unsetPackageInfoEventListener">
+ <testcase purpose="Check if method unsetPackageInfoEventListener works correctly" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="auto" priority="P1" id="PackageManager_unsetPackageInfoEventListener">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is not installed.</pre_condition>
<steps>
</spec>
</specs>
</testcase>
- <testcase purpose="Check install method of package" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="manual" priority="P1" id="PackageManager_install">
+ <testcase purpose="Check install method of package" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="auto" priority="P1" id="PackageManager_install">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is NOT installed.</pre_condition>
<steps>
</spec>
</specs>
</testcase>
- <testcase purpose="Check install method without errorCallback" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="manual" priority="P1" id="PackageManager_install_without_errorCallback">
+ <testcase purpose="Check install method without errorCallback" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="auto" priority="P1" id="PackageManager_install_without_errorCallback">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is NOT installed.</pre_condition>
<steps>
</spec>
</specs>
</testcase>
- <testcase purpose="Check uninstall method of package" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="manual" priority="P1" id="PackageManager_uninstall">
+ <testcase purpose="Check uninstall method of package" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="auto" priority="P1" id="PackageManager_uninstall">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is installed (You can install it use command "pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/Others/TCTPackageManagerTest1.1.1.wgt").</pre_condition>
<steps>
</spec>
</specs>
</testcase>
- <testcase purpose="Check uninstall method without errorCallback" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="manual" priority="P1" id="PackageManager_uninstall_without_errorCallback">
+ <testcase purpose="Check uninstall method without errorCallback" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="auto" priority="P1" id="PackageManager_uninstall_without_errorCallback">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is installed (You can install it use command "pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/Others/TCTPackageManagerTest1.1.1.wgt").</pre_condition>
<steps>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if PackageProgressCallback.oncomplete - install" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="manual" priority="P1" id="PackageProgressCallback_oncomplete_install">
+ <testcase purpose="Check if PackageProgressCallback.oncomplete - install" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="auto" priority="P1" id="PackageProgressCallback_oncomplete_install">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is NOT installed.</pre_condition>
<steps>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if PackageProgressCallback.onprogress - install" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="manual" priority="P1" id="PackageProgressCallback_onprogress_install">
+ <testcase purpose="Check if PackageProgressCallback.onprogress - install" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="auto" priority="P1" id="PackageProgressCallback_onprogress_install">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is NOT installed.</pre_condition>
<steps>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if PackageProgressCallback.oncomplete - uninstall" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="manual" priority="P1" id="PackageProgressCallback_oncomplete_uninstall">
+ <testcase purpose="Check if PackageProgressCallback.oncomplete - uninstall" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="auto" priority="P1" id="PackageProgressCallback_oncomplete_uninstall">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is installed (You can install it use command "pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/Others/TCTPackageManagerTest1.1.1.wgt").</pre_condition>
<steps>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if PackageProgressCallback.onprogress - uninstall" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="manual" priority="P1" id="PackageProgressCallback_onprogress_uninstall">
+ <testcase purpose="Check if PackageProgressCallback.onprogress - uninstall" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="auto" priority="P1" id="PackageProgressCallback_onprogress_uninstall">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is installed (You can install it use command "pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/Others/TCTPackageManagerTest1.1.1.wgt").</pre_condition>
<steps>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if PackageInformationEventCallback.onupdated works properly" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="manual" priority="P1" id="PackageInformationEventCallback_onupdated">
+ <testcase purpose="Check if PackageInformationEventCallback.onupdated works properly" type="compliance" status="approved" component="Tizen Device APIs/Application/Package" execution_type="auto" priority="P1" id="PackageInformationEventCallback_onupdated">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is installed (you can install it use command "pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/Others/TCTPackageManagerTest1.1.1.wgt").</pre_condition>
<steps>
<test_script_entry>/opt/tct-package-tizen-tests/package/PackageProgressCallback_notexist.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Application/Package" execution_type="manual" id="PackageInformationEventCallback_oninstalled" priority="P1" purpose="Check if PackageInformationEventCallback.oninstalled works properly">
+ <testcase component="Tizen Device APIs/Application/Package" execution_type="auto" id="PackageInformationEventCallback_oninstalled" priority="P1" purpose="Check if PackageInformationEventCallback.oninstalled works properly">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is not installed.</pre_condition>
<steps>
<test_script_entry>/opt/tct-package-tizen-tests/package/PackageInformationEventCallback_oninstalled.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Application/Package" execution_type="manual" id="PackageInformationEventCallback_onuninstalled" priority="P1" purpose="Check if PackageInformationEventCallback.onuninstalled works properly">
+ <testcase component="Tizen Device APIs/Application/Package" execution_type="auto" id="PackageInformationEventCallback_onuninstalled" priority="P1" purpose="Check if PackageInformationEventCallback.onuninstalled works properly">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is installed (You can install it use command "pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/Others/TCTPackageManagerTest1.1.1.wgt").</pre_condition>
<steps>
<test_script_entry>/opt/tct-package-tizen-tests/package/PackageManager_setPackageInfoEventListener.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Application/Package" execution_type="manual" id="PackageManager_unsetPackageInfoEventListener" priority="P1" purpose="Check if method unsetPackageInfoEventListener works correctly">
+ <testcase component="Tizen Device APIs/Application/Package" execution_type="auto" id="PackageManager_unsetPackageInfoEventListener" priority="P1" purpose="Check if method unsetPackageInfoEventListener works correctly">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is not installed.</pre_condition>
<steps>
<test_script_entry>/opt/tct-package-tizen-tests/package/PackageManager_unsetPackageInfoEventListener.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Application/Package" execution_type="manual" id="PackageManager_install" priority="P1" purpose="Check install method of package">
+ <testcase component="Tizen Device APIs/Application/Package" execution_type="auto" id="PackageManager_install" priority="P1" purpose="Check install method of package">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is NOT installed.</pre_condition>
<steps>
<test_script_entry>/opt/tct-package-tizen-tests/package/PackageManager_install_missarg.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Application/Package" execution_type="manual" id="PackageManager_install_without_errorCallback" priority="P1" purpose="Check install method without errorCallback">
+ <testcase component="Tizen Device APIs/Application/Package" execution_type="auto" id="PackageManager_install_without_errorCallback" priority="P1" purpose="Check install method without errorCallback">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is NOT installed.</pre_condition>
<steps>
<test_script_entry>/opt/tct-package-tizen-tests/package/PackageManager_install_without_errorCallback.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Application/Package" execution_type="manual" id="PackageManager_uninstall" priority="P1" purpose="Check uninstall method of package">
+ <testcase component="Tizen Device APIs/Application/Package" execution_type="auto" id="PackageManager_uninstall" priority="P1" purpose="Check uninstall method of package">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is installed (You can install it use command "pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/Others/TCTPackageManagerTest1.1.1.wgt").</pre_condition>
<steps>
<test_script_entry>/opt/tct-package-tizen-tests/package/PackageManager_uninstall.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Application/Package" execution_type="manual" id="PackageManager_uninstall_without_errorCallback" priority="P1" purpose="Check uninstall method without errorCallback">
+ <testcase component="Tizen Device APIs/Application/Package" execution_type="auto" id="PackageManager_uninstall_without_errorCallback" priority="P1" purpose="Check uninstall method without errorCallback">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is installed (You can install it use command "pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/Others/TCTPackageManagerTest1.1.1.wgt").</pre_condition>
<steps>
<test_script_entry>/opt/tct-package-tizen-tests/package/PackageManager_uninstall_missarg.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Application/Package" execution_type="manual" id="PackageProgressCallback_oncomplete_install" priority="P1" purpose="Check if PackageProgressCallback.oncomplete - install">
+ <testcase component="Tizen Device APIs/Application/Package" execution_type="auto" id="PackageProgressCallback_oncomplete_install" priority="P1" purpose="Check if PackageProgressCallback.oncomplete - install">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is NOT installed.</pre_condition>
<steps>
<test_script_entry>/opt/tct-package-tizen-tests/package/PackageProgressCallback_oncomplete_install.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Application/Package" execution_type="manual" id="PackageProgressCallback_onprogress_install" priority="P1" purpose="Check if PackageProgressCallback.onprogress - install">
+ <testcase component="Tizen Device APIs/Application/Package" execution_type="auto" id="PackageProgressCallback_onprogress_install" priority="P1" purpose="Check if PackageProgressCallback.onprogress - install">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is NOT installed.</pre_condition>
<steps>
<test_script_entry>/opt/tct-package-tizen-tests/package/PackageProgressCallback_onprogress_install.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Application/Package" execution_type="manual" id="PackageProgressCallback_oncomplete_uninstall" priority="P1" purpose="Check if PackageProgressCallback.oncomplete - uninstall">
+ <testcase component="Tizen Device APIs/Application/Package" execution_type="auto" id="PackageProgressCallback_oncomplete_uninstall" priority="P1" purpose="Check if PackageProgressCallback.oncomplete - uninstall">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is installed (You can install it use command "pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/Others/TCTPackageManagerTest1.1.1.wgt").</pre_condition>
<steps>
<test_script_entry>/opt/tct-package-tizen-tests/package/PackageProgressCallback_oncomplete_uninstall.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Application/Package" execution_type="manual" id="PackageProgressCallback_onprogress_uninstall" priority="P1" purpose="Check if PackageProgressCallback.onprogress - uninstall">
+ <testcase component="Tizen Device APIs/Application/Package" execution_type="auto" id="PackageProgressCallback_onprogress_uninstall" priority="P1" purpose="Check if PackageProgressCallback.onprogress - uninstall">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is installed (You can install it use command "pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/Others/TCTPackageManagerTest1.1.1.wgt").</pre_condition>
<steps>
<test_script_entry>/opt/tct-package-tizen-tests/package/PackageManager_uninstall_progressCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase component="Tizen Device APIs/Application/Package" execution_type="manual" id="PackageInformationEventCallback_onupdated" priority="P1" purpose="Check if PackageInformationEventCallback.onupdated works properly">
+ <testcase component="Tizen Device APIs/Application/Package" execution_type="auto" id="PackageInformationEventCallback_onupdated" priority="P1" purpose="Check if PackageInformationEventCallback.onupdated works properly">
<description>
<pre_condition>Make sure that TCTPackageManagerTest1.1.1.wgt application is installed (you can install it use command "pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/Others/TCTPackageManagerTest1.1.1.wgt").</pre_condition>
<steps>