Steps:
1. Access to the device----Terminal: sdb shell
-2. Install-----Terminal: wrt-installer -i **.wgt
-3. Uninstall-----Terminal: wrt-installer -un <application id>
+2. Install-----Terminal: pkgcmd -i -t wgt -q -p **.wgt
+3. Uninstall-----Terminal: pkgcmd -u -q -t wgt -n <application id>
4. Check if the widget have been installed/uninstalled-----Teminal:wrt-launcher -l
----------------------------------------------
function existbh()
{
echo $1
- wrt-installer -un wrt6app001.appwidgetsample
+ pkgcmd -u -q -t wgt -n wrt6app001
exit $2
}
-$(dirname $0)/wrt_appwgt_installer.sh app-widget-sample.wgt wrt6app001.appwidgetsample
+$(dirname $0)/wrt_appwgt_installer.sh app-widget-sample.wgt wrt6app001
if [ $? -ne 0 ]
then
exit 1
fi
-path=$(dirname $(dirname $(dirname $0)))
-widgetpath="$path/usr/apps/wrt6app001/res/wgt/"
+widgetpath="/opt/usr/apps/wrt6app001/res/wgt/"
if [ ! -d $widgetpath ]
then
existbh "The path of the application does not exist." 1
PACKAGENAME="$path/$1"
p_name=$1
APP_NAME=${p_name%%.wgt}
-WIDGETNAME=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $NF}'`
+WIDGETNAME=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $(NF-1)}'`
if [ ! -z "$WIDGETNAME" ]
then
- wrt-installer -un $WIDGETNAME
- WIDGETNAME=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $NF}'`
+ pkgcmd -u -q -t wgt -n $WIDGETNAME
+ WIDGETNAME=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $(NF-1)}'`
if [ ! -z "$WIDGETNAME" ]
then
echo -e "Fail to uninstall the existed widget!"
exit 1
fi
fi
-wrt-installer -i $PACKAGENAME
-WIDGETNAME=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $NF}'`
+pkgcmd -i -t wgt -q -p $PACKAGENAME
+WIDGETNAME=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $(NF-1)}'`
if [ "$WIDGETNAME" = "$2" ]
then
echo -e "The widget is installed successfully!"
PACKAGENAME="$path/$1"
p_name=$1
APP_NAME=${p_name%%.wgt}
-WIDGETNAME=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $NF}'`
+WIDGETNAME=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $(NF-1)}'`
if [ ! -z "$WIDGETNAME" ]
then
- wrt-installer -un $WIDGETNAME
- WIDGETNAME=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $NF}'`
+ pkgcmd -u -q -t wgt -n $WIDGETNAME
+ WIDGETNAME=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $(NF-1)}'`
if [ ! -z "$WIDGETNAME" ]
then
echo -e "Fail to uninstall the existed widget!"
exit 1
fi
fi
-wrt-installer -i $PACKAGENAME
-WIDGETNAME=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $NF}'`
+pkgcmd -i -t wgt -q -p $PACKAGENAME
+WIDGETNAME=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $(NF-1)}'`
if [ -z "$WIDGETNAME" ]
then
echo -e "Fail to install the widget!"
echo $1
exit $2
}
-$(dirname $0)/wrt_appwgt_installer.sh app-widget-sample.wgt wrt6app001.appwidgetsample
+$(dirname $0)/wrt_appwgt_installer.sh app-widget-sample.wgt wrt6app001
if [ $? -ne 0 ]
then
exit 1
fi
-path=$(dirname $(dirname $(dirname $0)))
-widgetpath="$path/usr/apps/wrt6app001/res/wgt/"
+widgetpath="/opt/usr/apps/wrt6app001/res/wgt/"
if [ ! -d $widgetpath ]
then
- wrt-installer -un wrt6app001.appwidgetsample
+ pkgcmd -u -q -t wgt -n wrt6app001
existbh "The path of the application does not exist." 1
fi
-$(dirname $0)/wrt_appwgt_uninstaller.sh app-widget-sample.wgt wrt6app001.appwidgetsample
+$(dirname $0)/wrt_appwgt_uninstaller.sh app-widget-sample.wgt wrt6app001
if [ $? -ne 0 ]
then
exit 1
PACKAGENAME="$path/$1"
p_name=$1
APP_NAME=${p_name%%.wgt}
-APPID=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $NF}'`
+APPID=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $(NF-1)}'`
if [ -z "$APPID" ]
then
- wrt-installer -i $PACKAGENAME
- APPID=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $NF}'`
+ pkgcmd -i -t wgt -q -p $PACKAGENAME
+ APPID=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $(NF-1)}'`
if [ -z "$APPID" ]
then
echo -e "Fail to install the widget."
exit 1
fi
fi
-wrt-installer -un $APPID
-APPID=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $NF}'`
+pkgcmd -u -q -t wgt -n $APPID
+APPID=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $(NF-1)}'`
if [ -z "$APPID" ]
then
echo -e "The widget is uninstalled successfully!"
<set name="WebAppWidget">
<testcase component="Web/Runtime/WebAppWidget" execution_type="auto" id="app-widget-install" purpose="Check that WRT must support Web AppWidget installation.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-appwgt-wrt-tests/scripts/wrt_appwgt_install.sh</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-appwgt-wrt-tests/scripts/wrt_appwgt_install.sh</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/WebAppWidget" execution_type="auto" id="app-widget-uninstall" purpose="Check that the WRT must support Web AppWidget uninstallation.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-appwgt-wrt-tests/scripts/wrt_appwgt_uninstall.sh</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-appwgt-wrt-tests/scripts/wrt_appwgt_uninstall.sh</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/WebAppWidget" execution_type="auto" id="app-widget-signature-invalid" purpose="Check that WRT does not allow Web AppWidget which is signed with an invalid signature to be installed.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-appwgt-wrt-tests/scripts/wrt_appwgt_installfail.sh app-widget-signature-invalid.wgt</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-appwgt-wrt-tests/scripts/wrt_appwgt_installfail.sh app-widget-signature-invalid.wgt</test_script_entry>
</description>
</testcase>
</set>
</suite>
-</test_definition>
\ No newline at end of file
+</test_definition>
4. Prepare to install widget application on the device:
cd /opt/tct-ext02-wrt-tests/
5. Install WGT on the test device:
- wrt-installer -i **.wgt
+ pkgcmd -i -t wgt -q -p **.wgt
6. Check the widget info when it has been installed completely:
wrt-launcher -l
7. Launch the widget:
wrt-launcher -s <Application id>
8. Uninstall WGT from the test device:
- wrt-installer -un <application id>
+ pkgcmd -u -q -t wgt -n <application id>
----------------------------------------------
PACKAGENAME="$path/$1"
p_name=$1
APP_NAME=${p_name%.*}
- wrt-installer -i $PACKAGENAME
+ pkgcmd -i -t wgt -q -p $PACKAGENAME
App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
if [ -z $App_ID ];then
echo "The installation is failed"
PACKAGENAME="$path/$1"
p_name=$1
APP_NAME=${p_name%.*}
- App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
- if [ -z $App_ID ];then
+ PKG_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $(NF-1)}'`
+ if [ -z $PKG_ID ];then
echo "The widget is not installed"
return 1
fi
- wrt-installer -un $App_ID
+ pkgcmd -u -q -t wgt -n $PKG_ID
WIDGETNAME=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
if [ -z $WIDGETNAME ];then
echo "The widget is uninstalled successfully"
echo "usage $0 + packagename"
fi
-PACKAGENAME="/opt/tct-ext02-wrt-tests/$1"
+PACKAGENAME="/opt/usr/media/tct/opt/tct-ext02-wrt-tests/$1"
p_name=$1
APP_NAME=${p_name%.*}
-WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+PKG_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $(NF-1)}'`
-if [ -n $WIDGETNAME ];then
- wrt-installer -un $WIDGETNAME 1>/tmp/uninstaller.log 2>&1
+if [ -n $PKG_ID ];then
+ pkgcmd -u -q -t wgt -n $PKG_ID
sleep 5
fi
-wrt-installer -i $PACKAGENAME 1>/tmp/installer.log 2>&1
-sleep 5
-WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
-
-RET=`grep "installation was successful" /tmp/installer.log `
-if [ -z "$RET" ]; then
- echo -e "wrt-installer install widget failed!"
- rm -f /tmp/installer.log
- rm -f /tmp/uninstaller.log
- exit 1
-else
- echo -e " wrt-installer install widget successfully!"
- wrt-installer -un $WIDGETNAME 1>/dev/null 2>&1
- rm -f /tmp/installer.log
- rm -f /tmp/uninstaller.log
+pkgcmd -i -t wgt -q -p $PACKAGENAME
+if [ $? -eq 0 ];then
+ echo -e " pkgcmd install widget successfully!"
+ PKG_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $(NF-1)}'`
+ pkgcmd -u -q -t wgt -n $PKG_ID
exit 0
+else
+ echo -e "pkgcmd install widget failed!"
+ exit 1
fi
<set name="ConfigExtension">
<testcase component="Web/Runtime/ConfigExtension" execution_type="auto" id="application-id-exist" purpose="Check that the web runtime is able to identify a valid application id.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-ext02-wrt-tests/scripts/wrt_ext_application-id-exist.sh</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-ext02-wrt-tests/scripts/wrt_ext_application-id-exist.sh</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/ConfigExtension" execution_type="auto" id="application-required-version-support" purpose="Check that the web runtime can install the app which has a required valid version successfully.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-ext02-wrt-tests/scripts/WRTInstaller application-required-version-support.wgt</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-ext02-wrt-tests/scripts/WRTInstaller application-required-version-support.wgt</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/ConfigExtension" execution_type="auto" id="setting-install-location-internal-only-no-card" purpose="Check that the widget can be installed when install-location is set at 'internal-only' and external storage is not available.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-ext02-wrt-tests/scripts/WRTInstaller setting-install-location-internal-only-no-card.wgt</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-ext02-wrt-tests/scripts/WRTInstaller setting-install-location-internal-only-no-card.wgt</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/ConfigExtension" execution_type="auto" id="web-applications-with-namespace-xmlns-enable" purpose="Check that the WRT support Web Applications with namespace declared in configuration file.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-ext02-wrt-tests/scripts/WRTInstaller web-applications-with-namespace-xmlns-enable.wgt</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-ext02-wrt-tests/scripts/WRTInstaller web-applications-with-namespace-xmlns-enable.wgt</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/ConfigExtension" execution_type="auto" id="tizen-application-id-is-one-bytes" purpose="Check that web application can be installed when the length of application id is 1 byte.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-ext02-wrt-tests/scripts/WRTInstaller tizen-application-id-is-one-bytes.wgt</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-ext02-wrt-tests/scripts/WRTInstaller tizen-application-id-is-one-bytes.wgt</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/ConfigExtension" execution_type="auto" id="tizen-application-id-is-rightful" purpose="Check that web application with valid id can be installed.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-ext02-wrt-tests/scripts/WRTInstaller tizen-application-id-is-rightful.wgt</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-ext02-wrt-tests/scripts/WRTInstaller tizen-application-id-is-rightful.wgt</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/ConfigExtension" execution_type="auto" id="tizen-application-id-is-all-right" purpose="Check web application which the length of application id is valid can be installed.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-ext02-wrt-tests/scripts/WRTInstaller tizen-application-id-is-all-right.wgt</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-ext02-wrt-tests/scripts/WRTInstaller tizen-application-id-is-all-right.wgt</test_script_entry>
</description>
</testcase>
</set>
</suite>
-</test_definition>
\ No newline at end of file
+</test_definition>
4. Prepare to install widget application on the device:
cd /opt/tct-pm-wrt-tests/
5. Install WGT on the test device:
- wrt-installer -i **.wgt
+ pkgcmd -i -t wgt -q -p **.wgt
6. Check the widget info when the widget has been installed completely:
wrt-launcher -l
7. Launch the widget:
wrt-launcher -s <Application id>
8. Uninstall WGT from the test device:
- wrt-installer -un <application id>
+ pkgcmd -u -q -t wgt -n <application id>
----------------------------------------------
PACKAGENAME="$path/$1"
p_name=$1
APP_NAME=${p_name%.*}
- wrt-installer -i $PACKAGENAME
- App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
+ pkgcmd -i -t wgt -q -p $PACKAGENAME
+ App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $(NF-1)}'`
if [ -z $App_ID ];then
echo "The installation is failed"
return 1
PACKAGENAME="$path/$1"
p_name=$1
APP_NAME=${p_name%.*}
- App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
+ App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $(NF-1)}'`
if [ -z $App_ID ];then
echo "The widget is not installed"
- wrt-installer -i $PACKAGENAME
- App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
+ pkgcmd -i -t wgt -q -p $PACKAGENAME
+ App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $(NF-1)}'`
if [ -z $App_ID ];then
echo "The installation is failed"
return 1
fi
fi
- WIDGETNAME=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
- wrt-installer -un $WIDGETNAME
- App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
+ WIDGETNAME=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $(NF-1)}'`
+ pkgcmd -u -q -t wgt -n $WIDGETNAME
+ App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $(NF-1)}'`
if [ -z $App_ID ];then
echo "The widget is uninstalled successfully"
return 0
elif [ "$APP_NAME" = "WIdgetIDAppID-same1" -o "$APP_NAME" = "WIdgetIDAppID-same2" -o "$APP_NAME" = "WIdgetIDAppID-different" ];then
APP_NAME="WIdgetIDAppID"
fi
- wrt-installer -i $PACKAGENAME
- App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
+ pkgcmd -i -t wgt -q -p $PACKAGENAME
+ App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $(NF-1)}'`
if [ -z $App_ID ];then
echo "The installation is failed"
return 1
App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
if [ -z $App_ID ];then
echo "The widget is not installed"
- wrt-installer -i $PACKAGENAME
+ pkgcmd -i -t wgt -q -p $PACKAGENAME
App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
if [ -z $App_ID ];then
echo "The installation is failed"
return 1
fi
fi
- WIDGETNAME=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
- wrt-installer -un $WIDGETNAME
+ PKG_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $(NF-1)}'`
+ pkgcmd -u -q -t wgt -n $PKG_ID
App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
if [ -z $App_ID ];then
echo "The widget is uninstalled successfully"
# Yue, jianhui <jianhuix.a.yue@intel.com>
source $(dirname $0)/Common
-origin_name=/opt/tct-pm-wrt-tests/Sample-widget.wgt
-change_name=/opt/tct-pm-wrt-tests/Sample-widget.EXE
+origin_name=/opt/usr/media/tct/opt/tct-pm-wrt-tests/Sample-widget.wgt
+change_name=/opt/usr/media/tct/opt/tct-pm-wrt-tests/Sample-widget.EXE
if [ -f $origin_name ];then
mv $origin_name $change_name
else
# Yue, jianhui <jianhuix.a.yue@intel.com>
source $(dirname $0)/Common
-origin_name=/opt/tct-pm-wrt-tests/test-widget.wgt
-change_name=/opt/tct-pm-wrt-tests/test-widget-testing.wgt
+origin_name=/opt/usr/media/tct/opt/tct-pm-wrt-tests/test-widget.wgt
+change_name=/opt/usr/media/tct/opt/tct-pm-wrt-tests/test-widget-testing.wgt
if [ -f $origin_name ];then
mv $origin_name $change_name
else
PACKAGENAME="$path/$1"
p_name=$1
APP_NAME=${p_name%.*}
-WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $(NF-1)}'`
if [ ! -z "$WIDGETNAME" ];then
- wrt-installer -un $WIDGETNAME
- WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+ pkgcmd -u -q -t wgt -n $WIDGETNAME
+ WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $(NF-1)}'`
if [ ! -z "$WIDGETNAME" ];then
echo "fail to uninstall widget"
exit 1
fi
fi
-wrt-installer -i $PACKAGENAME
-WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+pkgcmd -i -t wgt -q -p $PACKAGENAME
+WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $(NF-1)}'`
if [ ! -z "$WIDGETNAME" ];then
echo "The widget should not be installed"
- wrt-installer -un $WIDGETNAME
+ pkgcmd -u -q -t wgt -n $WIDGETNAME
exit 1
else
echo "The widget is not installed successfully"
exit 1
fi
-APP_ID="wrt1smt007.Samplewidget"
-wrt-installer -un $APP_ID 1>/tmp/uninstaller.log 2>&1
+PKG_ID="wrt1smt007"
+pkgcmd -u -q -t wgt -n $PKG_ID 1>/tmp/uninstaller.log 2>&1
-RET3=`grep "uninstallation failed" /tmp/uninstaller.log `
+RET3=`grep "failed" /tmp/uninstaller.log `
if [ -z "$RET3" ]; then
echo -e "informed failure of uninstallation failed!"
rm -f /tmp/uninstaller.log
PACKAGENAME="$path/$1"
p_name=$1
APP_NAME=${p_name%.*}
-WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $(NF-1)}'`
if [ -z "$WIDGETNAME" ];then
- wrt-installer -i $PACKAGENAME
- WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+ pkgcmd -i -t wgt -q -p $PACKAGENAME
+ WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $(NF-1)}'`
if [ -z "$WIDGETNAME" ];then
echo "fail to install widget"
exit 1
fi
fi
-wrt-installer -un $WIDGETNAME
-WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+pkgcmd -u -q -t wgt -n $WIDGETNAME
+WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $(NF-1)}'`
if [ ! -z "$WIDGETNAME" ];then
echo "The widget can not be uninstalled"
exit 1
PACKAGENAME="$path/$1"
p_name=$1
APP_NAME=${p_name%.*}
-WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $(NF-1)}'`
if [ ! -z "$WIDGETNAME" ];then
- wrt-installer -un $WIDGETNAME
- WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+ pkgcmd -u -q -t wgt -n $WIDGETNAME
+ WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $(NF-1)}'`
if [ ! -z "$WIDGETNAME" ];then
echo "fail to uninstall widget"
exit 1
fi
fi
-wrt-installer -i $PACKAGENAME
-WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+pkgcmd -i -t wgt -q -p $PACKAGENAME
+WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $(NF-1)}'`
if [ -z "$WIDGETNAME" ];then
echo "The installation is failed"
exit 1
else
echo "The widget is installed successfully"
- wrt-installer -un $WIDGETNAME
+ pkgcmd -u -q -t wgt -n $WIDGETNAME
exit 0
fi
<set name="PackageManagement">
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="PKManagement_PackagedAPP_Install" purpose="Check if Packaged Web Application can be installed successfully.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_WRTInstaller.sh Sample-widget.wgt</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_WRTInstaller.sh Sample-widget.wgt</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="PKManagement_local_HostedAPP_Install" purpose="Check if local hosted Web Application can be installed successfully.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_WRTInstaller.sh test-hosted-widget.wgt</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_WRTInstaller.sh test-hosted-widget.wgt</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="PKManagement_LocalAPP_Install" purpose="Check if Web Application can be installed successfully by using command.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_WRTInstaller.sh Sample-widget.wgt</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_WRTInstaller.sh Sample-widget.wgt</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="PKManagement_APP_WithW3CFormat_Install" purpose="Check if Web Application which is packed with WGT format can be installed successfully.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_WRTInstaller.sh Sample-widget.wgt</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_WRTInstaller.sh Sample-widget.wgt</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="PKManagement_PackagedWGTFile_without_WGT_extention_Install" purpose="Check if the widget renamed extension from 'WGT' to 'EXE' can be installed successfully.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_Install_EXE.sh</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_Install_EXE.sh</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="PKManagement_PackagedZIPFile_with_WGT_extention_Install" purpose="Check if the widget that is renamed with the same extension 'WGT' can be installed successfully.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_Install_changename.sh</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_Install_changename.sh</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="PKManagement_InstallFailed_Inform" purpose="Check if user is informed when the Web Application cannot be installed.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_InstallerFail.sh test-broken-widget.wgt</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_InstallerFail.sh test-broken-widget.wgt</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="PKManagement_WRTVersionLower_Install_1" purpose="Check if WRT can update the widget when the widget has been installed.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_Install_TwoWidget.sh</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_Install_TwoWidget.sh</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="PKManagement_sidedLoaded_Update_AppId" purpose="Check if Web Applications with same Tizen AppID and Widget ID can be updated successfully.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_Install_Update_Widget.sh</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_Install_Update_Widget.sh</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="PKManagement_DifferentWidgetID_Update" purpose="Check if Web Applications with same Tizen AppID and different Widget IDs can be updated successfully.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_WidgetID_Update.sh</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_WidgetID_Update.sh</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="PKManagement_dataStored_Update" purpose="Check if Web Application resources inside of widget are erased after updated.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_dataStored_Update.sh</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_dataStored_Update.sh</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="PKManagement_WebApp_Uninstall" purpose="Check if Web Application can be un-installed successfully.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_Uninstaller.sh Sample-widget.wgt</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_Uninstaller.sh Sample-widget.wgt</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="uninstallation-application-erased" purpose="Check if all Web Application resources and data (Tizen settings, widget preferences, cookies, local storage) should be erased after uninstalled.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_uninstallation_application_erased.sh</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_uninstallation_application_erased.sh</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="PKManagement_OfflineInstall_uninstalling" purpose="Check if UA can install and uninstall different applications offline at the same time.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_OfflineInstall_uninstalling.sh</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_OfflineInstall_uninstalling.sh</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="PKManagement_OfflineInstall_updating" purpose="Check if UA can install and update different applications offline at the same time.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_OfflineInstall_updating.sh</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_OfflineInstall_updating.sh</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="PKManagement_Inform_Uninstall_Running" purpose="Check if the WebApp can be uninstalled during running.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_Uninstall_Running.sh Sample-widget.wgt</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_Uninstall_Running.sh Sample-widget.wgt</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="PKManagement_Uninstall_Inform" purpose="Check if user will be informed failure of uninstallation when the WebApp has been uninstalled.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_Uninstall_Inform.sh</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_Uninstall_Inform.sh</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="WebApp_OfflineUpdate_ReUpdate" purpose="Check if application could be updated when the application is running.">
<description>
- <test_script_entry timeout="90">/opt/tct-pm-wrt-tests/scripts/wrt_pm_OfflineUpdate_ReUpdate.sh</test_script_entry>
+ <test_script_entry timeout="90">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_OfflineUpdate_ReUpdate.sh</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="WebApp_OfflineUpdate_TwoApp" purpose="Check if package management can upgrade(offline) two webapps respectively.">
<description>
- <test_script_entry timeout="90">/opt/tct-pm-wrt-tests/scripts/wrt_pm_OfflineUpdate_TwoApp.sh</test_script_entry>
+ <test_script_entry timeout="90">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_OfflineUpdate_TwoApp.sh</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="PKManagement_OfflineUpdate_MultiApp" purpose="Check if package management can upgrade(offline) multiple webapps respectively.">
<description>
- <test_script_entry timeout="90">/opt/tct-pm-wrt-tests/scripts/wrt_pm_OfflineUpdate_MultiApp.sh</test_script_entry>
+ <test_script_entry timeout="90">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_OfflineUpdate_MultiApp.sh</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="widget-distributor-sig-dsp" purpose="Check if the WRT cannot install the widget which contains distributor signature without a dsp:Role signature property.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_InstallerFail.sh 11a.wgt</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_InstallerFail.sh 11a.wgt</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="widget-distributor-sig-uri" purpose="Check if the WRT cannot install the widget which contains distributor signature with a dsp:Role signature property that does not contain an URI for a distributor role.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_InstallerFail.sh 11b.wgt</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_InstallerFail.sh 11b.wgt</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="widget-partner-privilege" purpose="Check if the WRT cannot install the widget which is announced with one or more partner API privileges in configuration file.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-pm-wrt-tests/scripts/wrt_pm_InstallerFail.sh widget-partner-privilege.wgt</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_InstallerFail.sh widget-partner-privilege.wgt</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="feature-element-be-ignored" purpose="Check if the 'feature' element should be ignored during installation process.">
<description>
- <test_script_entry timeout="90">/opt/tct-pm-wrt-tests/scripts/wrt_pm_WRTInstaller.sh feature-element-be-ignored.wgt</test_script_entry>
+ <test_script_entry timeout="90">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_WRTInstaller.sh feature-element-be-ignored.wgt</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/PackageManagement" execution_type="auto" id="web-api-version" purpose="Check if WRT should abort installation when the version of Tizen Web API supported by the WRT is lower than the minimum version required by the Web Application.">
<description>
- <test_script_entry timeout="90">/opt/tct-pm-wrt-tests/scripts/wrt_pm_InstallerFail.sh web-api-version.wgt</test_script_entry>
+ <test_script_entry timeout="90">/opt/usr/media/tct/opt/tct-pm-wrt-tests/scripts/wrt_pm_InstallerFail.sh web-api-version.wgt</test_script_entry>
</description>
</testcase>
</set>
</suite>
-</test_definition>
\ No newline at end of file
+</test_definition>
4. Prepare to install widget application on the device:
cd /opt/tct-rt02-wrt-tests/
5. Install WGT on the test device:
- wrt-installer -i **.wgt
+ pkgcmd -i -t wgt -q -p **.wgt
6. Download and push the required resource files into device.
1) image
[1]. Download 2304x1296 PNG image to local machine such as "c:/".
8. Launch the widget:
wrt-launcher -s <Application id>
9. Uninstall WGT from the test device:
- wrt-installer -un <application id>
+ pkgcmd -u -q -t wgt -n <application id>
----------------------------------------------
PACKAGENAME="$path/$1"
p_name=$1
APP_NAME=${p_name%.*}
- wrt-installer -i $PACKAGENAME
+ pkgcmd -i -t wgt -q -p $PACKAGENAME
App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
if [ -z $App_ID ];then
echo "The installation is failed"
PACKAGENAME="$path/$1"
p_name=$1
APP_NAME=${p_name%.*}
- App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
- if [ -z $App_ID ];then
+ PKG_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $(NF-1)}'`
+ if [ -z $PKG_ID ];then
echo "The widget is not installed"
return 1
fi
- wrt-installer -un $App_ID
+ pkgcmd -u -q -t wgt -n $PKG_ID
WIDGETNAME=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
if [ -z $WIDGETNAME ];then
echo "The widget is uninstalled successfully"
echo "The widget is not launched"
return 1
fi
-}
\ No newline at end of file
+}
<post_condition></post_condition>
<steps>
<step order="1">
- <step_desc>Install the widget with the command : wrt-installer -i /opt/tct-rt02-wrt-tests/lifecycle-exit-running-app.wgt</step_desc>
+ <step_desc>Install the widget with the command : pkgcmd -i -t wgt -q -p /opt/tct-rt02-wrt-tests/lifecycle-exit-running-app.wgt</step_desc>
<expected>The widget package is installed successfully. Its icon appears on screen.</expected>
</step>
</steps>
<set name="WebApplicationRuntime">
<testcase component="Web/Runtime/WebApplicationRuntime" execution_type="auto" id="lifecycle-launch-installed-app" purpose="Check if WRT is able to launch an installed application">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-rt02-wrt-tests/scripts/wrt_rt_launch-removed-app.sh</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-rt02-wrt-tests/scripts/wrt_rt_launch-removed-app.sh</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/WebApplicationRuntime" execution_type="auto" id="lifecycle-launch-removed-app" purpose="Check if WRT is unable to launch a removed application">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-rt02-wrt-tests/scripts/wrt_rt_launch-installed-app.sh</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-rt02-wrt-tests/scripts/wrt_rt_launch-installed-app.sh</test_script_entry>
</description>
</testcase>
<testcase component="Web/Runtime/WebApplicationRuntime" execution_type="auto" id="lifecycle-exit-running-app" purpose="Check if WRT is able to exit a running application safely.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-rt02-wrt-tests/scripts/wrt_rt_exit-running-app.sh</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-rt02-wrt-tests/scripts/wrt_rt_exit-running-app.sh</test_script_entry>
</description>
</testcase>
</set>
</suite>
-</test_definition>
\ No newline at end of file
+</test_definition>
<link rel="stylesheet" type="text/css" href="./css/style.css"/>
<script src="resources/testharness.js"></script>
<script src="resources/testharnessreport.js"></script>
- <script src="jquery.js"></script>
+ <script src="jquery-1.10.2.min.js"></script>
</head>
<body>
<div id="log"></div>
}, "The WRT can decrypt css resources of widget Application successfully.");
</script>
</body>
-</html>
\ No newline at end of file
+</html>
4. Prepare to install widget application on the device:
cd /opt/tct-sp02-wrt-tests/
5. Install WGT on the test device:
- wrt-installer -i **.wgt
+ pkgcmd -i -t wgt -q -p **.wgt
6. Check the widget info when the widget has been installed:
wrt-launcher -l
7. Launch the widget:
wrt-launcher -s <Application id>
8. Uninstall WGT from the test device:
- wrt-installer -un <application id>
+ pkgcmd -u -q -t wgt -n <application id>
----------------------------------------------
PACKAGENAME="$path/$1"
p_name=$1
APP_NAME=${p_name%%.wgt}
-WIDGETNAME=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $NF}'`
-if [ ! -z "$WIDGETNAME" ]
+PKG_ID=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $(NF-1)}'`
+if [ ! -z "$PKG_ID" ]
then
- wrt-installer -un $WIDGETNAME
- WIDGETNAME=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $NF}'`
- if [ ! -z "$WIDGETNAME" ]
+ pkgcmd -u -q -t wgt -n $PKG_ID
+ PKG_ID=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $(NF-1)}'`
+ if [ ! -z "$PKG_ID" ]
then
echo -e "Fail to uninstall the existed widget."
exit 1
fi
fi
-wrt-installer -i $PACKAGENAME
-WIDGETNAME=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $NF}'`
-if [ "$WIDGETNAME" = "$2" ]
+pkgcmd -i -t wgt -q -p $PACKAGENAME
+PKG_ID=`wrt-launcher -l|grep "$APP_NAME"|awk '{print $(NF-1)}'`
+if [ "$PKG_ID" = "$2" ]
then
echo -e "The widget is installed successfully!"
exit 0
function existbh()
{
echo $1
- wrt-installer -un wrt5plc001.privatelocalstoragecheck
+ pkgcmd -u -q -t wgt -n wrt5plc001
exit $2
}
-$(dirname $0)/wrt_sp02_installer.sh private_localstorage_check.wgt wrt5plc001.privatelocalstoragecheck
+$(dirname $0)/wrt_sp02_installer.sh private_localstorage_check.wgt wrt5plc001
if [ $? -ne 0 ]
then
exit 1
fi
-path=$(dirname $(dirname $(dirname $0)))
-widgetpath="$path/usr/apps/wrt5plc001/res/wgt/"
+widgetpath="/opt/usr/apps/wrt5plc001/res/wgt/"
if [ ! -d $widgetpath ]
then
existbh "The path of the application does not exist." 1
<set name="SecurityPrivacy">
<testcase component="Web/Runtime/SecurityPrivacy" execution_type="auto" id="private_localstorage_check" purpose="Check that Application has its own localStorage space.">
<description>
- <test_script_entry test_script_expected_result="0">/opt/tct-sp02-wrt-tests/scripts/wrt_sp02_localstorage_check.sh</test_script_entry>
+ <test_script_entry test_script_expected_result="0">/opt/usr/media/tct/opt/tct-sp02-wrt-tests/scripts/wrt_sp02_localstorage_check.sh</test_script_entry>
</description>
</testcase>
</set>
</suite>
-</test_definition>
\ No newline at end of file
+</test_definition>
4. Prepare to install widget application on the device:
cd /opt/tct-stab-wrt-tests/
5. Install WGT on the test device:
- wrt-installer -i **.wgt
+ pkgcmd -i -t wgt -q -p **.wgt
6. Download and push the required resource files into device.
1) image
[1]. Download 2304x1296 PNG image to local device such as "c:/".
8. Launch the widget:
wrt-launcher -s <Application id>
9. Uninstall WGT from the test device:
- wrt-installer -un <application id>
+ pkgcmd -u -q -t wgt -n <application id>
----------------------------------------------
PACKAGENAME="$path/$1"
p_name=$1
APP_NAME=${p_name%.*}
-WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $(NF-1)}'`
for i in `seq 100`;do
if [ ! -z "$WIDGETNAME" ];then
- wrt-installer -un $WIDGETNAME
- WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+ pkgcmd -u -q -t wgt -n $WIDGETNAME
+ WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $(NF-1)}'`
if [ ! -z "$WIDGETNAME" ];then
echo "fail to uninstall widget"
exit 1
fi
fi
- wrt-installer -i $PACKAGENAME
- WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+ pkgcmd -i -t wgt -q -p $PACKAGENAME
+ WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $(NF-1)}'`
if [ -z "$WIDGETNAME" ];then
echo "The installation is failed"
exit 1
else
echo "The widget is installed successfully"
if [ $i -eq 30 ];then
- wrt-installer -un $WIDGETNAME
+ pkgcmd -u -q -t wgt -n $WIDGETNAME
exit 0
fi
fi
<set name="StabilityTest">
<testcase component="Web/Runtime/StabilityTest" execution_type="auto" id="wrt-repeat-install-uninstall" purpose="Check that WRT can install and uninstall webapp roundly.">
<description>
- <test_script_entry test_script_expected_result="0" timeout="9000">/opt/tct-stab-wrt-tests/scripts/wrt_pm_WRTInstaller.sh setting-bs-enable.wgt</test_script_entry>
+ <test_script_entry test_script_expected_result="0" timeout="9000">/opt/usr/media/tct/opt/tct-stab-wrt-tests/scripts/wrt_pm_WRTInstaller.sh setting-bs-enable.wgt</test_script_entry>
</description>
</testcase>
</set>
</suite>
-</test_definition>
\ No newline at end of file
+</test_definition>
4. Prepare to install widget application on the device:
cd /opt/tct-ui01-wrt-tests/
5. Install WGT on the test device:
- wrt-installer -i **.wgt
+ pkgcmd -i -t wgt -q -p **.wgt
6. Check the widget info when the widget has been installed:
wrt-launcher -l
7. Launch the widget:
wrt-launcher -s <Application id>
8. Uninstall WGT from the test device:
- wrt-installer -un <application id>
+ pkgcmd -u -q -t wgt -n <application id>
----------------------------------------------