Update path in xml and scripts for zip package
authorjiehua.xiong <jiehuax.xiong@intel.com>
Tue, 17 Sep 2013 09:54:28 +0000 (17:54 +0800)
committerjiehua.xiong <jiehuax.xiong@intel.com>
Fri, 11 Oct 2013 06:33:38 +0000 (14:33 +0800)
Change-Id: Ib09123286dfc1140787f47669c61ba7f2e1af019

33 files changed:
tct-appwgt-wrt-tests/README
tct-appwgt-wrt-tests/scripts/wrt_appwgt_install.sh
tct-appwgt-wrt-tests/scripts/wrt_appwgt_installer.sh
tct-appwgt-wrt-tests/scripts/wrt_appwgt_installfail.sh
tct-appwgt-wrt-tests/scripts/wrt_appwgt_uninstall.sh
tct-appwgt-wrt-tests/scripts/wrt_appwgt_uninstaller.sh
tct-appwgt-wrt-tests/tests.xml
tct-ext02-wrt-tests/README
tct-ext02-wrt-tests/scripts/Common
tct-ext02-wrt-tests/scripts/WRTInstaller
tct-ext02-wrt-tests/tests.xml
tct-pm-wrt-tests/README
tct-pm-wrt-tests/scripts/Common
tct-pm-wrt-tests/scripts/wrt_pm_Install_EXE.sh
tct-pm-wrt-tests/scripts/wrt_pm_Install_changename.sh
tct-pm-wrt-tests/scripts/wrt_pm_InstallerFail.sh
tct-pm-wrt-tests/scripts/wrt_pm_Uninstall_Inform.sh
tct-pm-wrt-tests/scripts/wrt_pm_Uninstaller.sh
tct-pm-wrt-tests/scripts/wrt_pm_WRTInstaller.sh
tct-pm-wrt-tests/tests.xml
tct-rt02-wrt-tests/README
tct-rt02-wrt-tests/scripts/Common
tct-rt02-wrt-tests/tests.full.xml
tct-rt02-wrt-tests/tests.xml
tct-sp01-wrt-tests/protection-decrypt-css/test_index.html
tct-sp02-wrt-tests/README
tct-sp02-wrt-tests/scripts/wrt_sp02_installer.sh
tct-sp02-wrt-tests/scripts/wrt_sp02_localstorage_check.sh
tct-sp02-wrt-tests/tests.xml
tct-stab-wrt-tests/README
tct-stab-wrt-tests/scripts/wrt_pm_WRTInstaller.sh
tct-stab-wrt-tests/tests.xml
tct-ui01-wrt-tests/README

index efa44d2..b765607 100644 (file)
@@ -58,8 +58,8 @@ Build and Run
 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
 
 ----------------------------------------------
index 13a9a9b..5d3827f 100755 (executable)
 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
index adad4ce..b4657b9 100755 (executable)
@@ -27,19 +27,19 @@ path=$(dirname $(dirname $0))
 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!"
index a5e2101..20877cd 100644 (file)
@@ -28,19 +28,19 @@ path=$(dirname $(dirname $0))
 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!"
index 16cea84..09ded1f 100755 (executable)
@@ -24,19 +24,18 @@ function existbh()
   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
index ad8145c..0e11402 100644 (file)
@@ -27,19 +27,19 @@ path=$(dirname $(dirname $0))
 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!"
index 3a51a5b..7b93ab4 100644 (file)
@@ -5,19 +5,19 @@
     <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>
index bf3843b..0e77430 100644 (file)
@@ -66,13 +66,13 @@ Steps:
     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>
 
 
 ----------------------------------------------
index 45c3990..15c6182 100644 (file)
@@ -30,7 +30,7 @@ function func_install()
     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"
@@ -51,12 +51,12 @@ function func_uninstall()
     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"
index 300ff6d..af20ddb 100644 (file)
@@ -24,29 +24,22 @@ if [ $# != 1 ];then
     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
index 73ddf0e..1951f22 100644 (file)
@@ -5,39 +5,39 @@
     <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>
index 386cecd..d7016e4 100644 (file)
@@ -66,13 +66,13 @@ Steps:
     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>
 
 
 ----------------------------------------------
index 6e91e3b..271bcb7 100644 (file)
@@ -30,8 +30,8 @@ function func_install()
     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
@@ -51,19 +51,19 @@ function func_uninstall()
     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
@@ -116,8 +116,8 @@ function func_install_changename()
     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
@@ -151,15 +151,15 @@ function func_uninstall_changename()
     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"
index 9f2f3f9..09e05b7 100644 (file)
@@ -20,8 +20,8 @@
 #        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
index 3bf4766..6268458 100644 (file)
@@ -20,8 +20,8 @@
 #        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
index d059fda..65d8b74 100644 (file)
@@ -28,21 +28,21 @@ path=$(dirname $(dirname $0))
 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"
index a7c321e..26d51fc 100644 (file)
@@ -33,10 +33,10 @@ if [ $? -eq 1 ];then
   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
index 7e2197d..7c4e3aa 100644 (file)
@@ -24,18 +24,18 @@ path=$(dirname $(dirname $0))
 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
index 1cb0795..7dce944 100644 (file)
@@ -28,23 +28,23 @@ path=$(dirname $(dirname $0))
 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
index 42f118f..cc29207 100644 (file)
     <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>
index 7ddbfb1..486c5bf 100644 (file)
@@ -67,7 +67,7 @@ Steps:
     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:/".
@@ -91,7 +91,7 @@ Steps:
     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>
 
 
 ----------------------------------------------
index 3f1771c..33ebeab 100644 (file)
@@ -30,7 +30,7 @@ function func_install()
     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"
@@ -51,12 +51,12 @@ function func_uninstall()
     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"
@@ -117,4 +117,4 @@ function func_launch_other()
       echo "The widget is not launched"
       return 1
     fi
-}
\ No newline at end of file
+}
index 1834b2a..c3b6f8a 100644 (file)
@@ -51,7 +51,7 @@
           <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>
index 798799f..e5522dc 100644 (file)
@@ -5,19 +5,19 @@
     <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>
index 64a757f..b9efbe0 100644 (file)
@@ -40,7 +40,7 @@ Authors:
     <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>
@@ -52,4 +52,4 @@ Authors:
         }, "The WRT can decrypt css resources of widget Application successfully.");
     </script>
   </body>
-</html>
\ No newline at end of file
+</html>
index a1441fe..4cd7911 100644 (file)
@@ -66,13 +66,13 @@ Steps:
     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>
 
 
 ----------------------------------------------
index 7b4b973..e1d5620 100755 (executable)
@@ -27,20 +27,20 @@ path=$(dirname $(dirname $0))
 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
index 559d23b..b67e17f 100644 (file)
 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
index b170b23..91c0ec6 100644 (file)
@@ -5,9 +5,9 @@
   <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>
index 622edd1..47b4dd9 100644 (file)
@@ -71,7 +71,7 @@ Steps:
     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:/".
@@ -90,7 +90,7 @@ Steps:
     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>
 
 
 ----------------------------------------------
index e0d6e05..20a1fa5 100644 (file)
@@ -28,25 +28,25 @@ path=$(dirname $(dirname $0))
 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
index a416db0..e4f5e8c 100644 (file)
@@ -5,9 +5,9 @@
   <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>
index c312189..4418666 100644 (file)
@@ -67,13 +67,13 @@ Steps:
     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>
 
 
 ----------------------------------------------