[common][widgetpolicy][change path for supporting global user] 82/111182/1
authorzy123.yuan <zy123.yuan@samsung.com>
Fri, 20 Jan 2017 02:01:45 +0000 (10:01 +0800)
committerzy123.yuan <zy123.yuan@samsung.com>
Fri, 20 Jan 2017 02:01:51 +0000 (10:01 +0800)
Change-Id: Ieec1693950a9d6031f82eabc3ff71ca56ba0286c
Signed-off-by: zy123.yuan <zy123.yuan@samsung.com>
common/tct-widgetpolicy-w3c-tests/inst.wgt.py
common/tct-widgetpolicy-w3c-tests/tests.full.xml
common/tct-widgetpolicy-w3c-tests/tests.xml

index 28b1eb42a8050b6e383212dd04fd0aec51784495..6d00172cdbcff1093f2c9f2469e8b346bf1c4a71 100755 (executable)
@@ -7,7 +7,7 @@ import time
 import sys
 import subprocess
 import string
-from optparse import OptionParser, make_option\r
+from optparse import OptionParser, make_option
 import ConfigParser
 
 
@@ -20,6 +20,15 @@ tct_parser = ConfigParser.ConfigParser()
 tct_parser.read(TCT_CONFIG_FILE)
 SRC_DIR = tct_parser.get('DEVICE', 'DEVICE_SUITE_TARGET_30')
 PKG_SRC_DIR = "%s/tct/opt/%s" % (SRC_DIR, PKG_NAME)
+EXECUTION_MODE_30 = tct_parser.get('DEVICE', 'DEVICE_EXECUTION_MODE_30')
+ADMIN_USER_30 = tct_parser.get('DEVICE', 'DEVICE_ADMIN_USER_30')
+
+def userCheck():
+    global GLOVAL_OPT
+    if ADMIN_USER_30 == EXECUTION_MODE_30:
+        GLOVAL_OPT="--global"
+    else:
+        GLOVAL_OPT=""
 
 
 def doCMD(cmd):
@@ -41,7 +50,6 @@ def doCMD(cmd):
 
     return (cmd_return_code, output)
 
-
 def updateCMD(cmd=None):
     if "pkgcmd" in cmd:
         cmd = "su - %s -c '%s;%s'" % (PARAMETERS.user, XW_ENV, cmd)
@@ -56,8 +64,6 @@ def getUSERID():
     return doCMD(cmd)
 
 
-
-
 def getPKGID(pkg_name=None):
     if PARAMETERS.mode == "SDB":
         cmd = "sdb -s %s shell %s" % (
@@ -107,6 +113,9 @@ def doRemoteCopy(src=None, dest=None):
 def uninstPKGs():
     action_status = True
     for root, dirs, files in os.walk(SCRIPT_DIR):
+        if root.endswith("mediasrc"):
+            continue
+
         for file in files:
             if file.endswith(".wgt"):
                 pkg_id = getPKGID(os.path.basename(os.path.splitext(file)[0]))
@@ -114,7 +123,7 @@ def uninstPKGs():
                     action_status = False
                     continue
                 (return_code, output) = doRemoteCMD(
-                    "pkgcmd -u -t wgt -q -n %s" % pkg_id)
+                    "pkgcmd %s -q -u -n %s" % (GLOVAL_OPT, pkg_id))
                 for line in output:
                     if "Failure" in line:
                         action_status = False
@@ -135,12 +144,15 @@ def instPKGs():
     if return_code != 0:
         action_status = False
     for root, dirs, files in os.walk(SCRIPT_DIR):
+        if root.endswith("mediasrc"):
+            continue
+
         for file in files:
             if file.endswith("%s.wgt" % PKG_NAME):
                 if not doRemoteCopy(os.path.join(root, file), "%s/%s" % (SRC_DIR, file)):
                     action_status = False
                 (return_code, output) = doRemoteCMD(
-                    "pkgcmd -i -t wgt -q -p %s/%s" % (SRC_DIR, file))
+                    "pkgcmd %s -i -t wgt -q -p %s/%s" % (GLOVAL_OPT, SRC_DIR, file))
                 doRemoteCMD("rm -rf %s/%s" % (SRC_DIR, file))
                 for line in output:
                     if "Failure" in line:
@@ -181,7 +193,7 @@ def main():
         sys.exit(1)
 
     if not PARAMETERS.user:
-        PARAMETERS.user = "owner"
+        PARAMETERS.user = EXECUTION_MODE_30
     if not PARAMETERS.mode:
         PARAMETERS.mode = "SDB"
 
@@ -199,6 +211,8 @@ def main():
         print "No device provided"
         sys.exit(1)
 
+    userCheck()
+
     user_info = getUSERID()
     re_code = user_info[0]
     if re_code == 0 :
index 1ef72e3ede7e2f4864681c4343db28e1f883343f..dcdc814c87d5c767104d1ae148f02381a293a398 100755 (executable)
@@ -5,7 +5,7 @@
     <set name="WidgetPolicy">
       <testcase purpose="According to the default policy, a user agent must deny to access the external network image." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_do_not_load_image">
         <description>
-          <pre_condition>Make sure do_not_load_image.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/do_not_load_image.wgt</pre_condition>
+          <pre_condition>Make sure do_not_load_image.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/do_not_load_image.wgt</pre_condition>
           <post_condition>Get the 'application id' of do_not_load_image.wgt with the command : wrt-launcher -l, then uninstall the do_not_load_image.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
@@ -24,7 +24,7 @@
       </testcase>
       <testcase purpose="According to the default policy, a user agent must deny to access the external network script." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_do_not_load_script">
         <description>
-          <pre_condition>Make sure do_not_load_script.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/do_not_load_script.wgt</pre_condition>
+          <pre_condition>Make sure do_not_load_script.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/do_not_load_script.wgt</pre_condition>
           <post_condition>Get the 'application id' of do_not_load_script.wgt with the command : wrt-launcher -l, then uninstall the do_not_load_script.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
@@ -43,7 +43,7 @@
       </testcase>
       <testcase purpose="A user agent should grant access to network image resources listed in the access-request list." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_load_image">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure load_image.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_image.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure load_image.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_image.wgt</pre_condition>
           <post_condition>Get the 'application id' of load_image.wgt with the command : wrt-launcher -l, then uninstall the load_image.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
@@ -62,7 +62,7 @@
       </testcase>
       <testcase purpose="A user agent should grant access to network frame resources listed in the access-request list." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_load_iframe">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure load_iframe.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_iframe.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure load_iframe.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_iframe.wgt</pre_condition>
           <post_condition>Get the 'application id' of load_iframe.wgt with the command : wrt-launcher -l, then uninstall the load_iframe.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
@@ -81,7 +81,7 @@
       </testcase>
       <testcase purpose="When a user agent grants access to a given set of network resources, it must do equally for APIs and markup." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_load_image_and_script">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure load_image_and_script.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_image_and_script.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure load_image_and_script.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_image_and_script.wgt</pre_condition>
           <post_condition>Get the 'application id' of load_image_and_script.wgt with the command : wrt-launcher -l, then uninstall the load_image_and_script.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase purpose="When a user agent grants access to a given set of network text resources, it must do equally for APIs and markup." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_load_text_over_xhr">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure load_text_over_xhr.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_text_over_xhr.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure load_text_over_xhr.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_text_over_xhr.wgt</pre_condition>
           <post_condition>Get the 'application id' of load_text_over_xhr.wgt with the command : wrt-launcher -l, then uninstall the load_text_over_xhr.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase purpose="When a user agent is not grant access to network resources, it should deny access requests." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_block_loading_text_over_xhr">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure block_loading_text_over_xhr.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/block_loading_text_over_xhr.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure block_loading_text_over_xhr.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/block_loading_text_over_xhr.wgt</pre_condition>
           <post_condition>Get the 'application id' of block_loading_text_over_xhr.wgt with the command : wrt-launcher -l, then uninstall the block_loading_text_over_xhr.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase purpose="When a user agent using the ToASCII algorithm as defined in RFC3490." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_HTTP_ToASCII">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure HTTP_ToASCII.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/HTTP_ToASCII.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure HTTP_ToASCII.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/HTTP_ToASCII.wgt</pre_condition>
           <post_condition>Get the 'application id' of HTTP_ToASCII.wgt with the command : wrt-launcher -l, then uninstall the HTTP_ToASCII.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase purpose="Test that the user agent ignores &lt;access&gt; elements with no origin attribute." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_with_missing_origin">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_with_missing_origin.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_with_missing_origin.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_with_missing_origin.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_with_missing_origin.wgt</pre_condition>
           <post_condition>Get the 'application id' of ignore_access_with_missing_origin.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_with_missing_origin.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase purpose="Test that the user agent can process and support a &lt;access&gt; element with a wildcard ('*') origin." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_wildcard_support">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure wildcard_support.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/wildcard_support.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure wildcard_support.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/wildcard_support.wgt</pre_condition>
           <post_condition>Get the 'application id' of wildcard_support.wgt with the command : wrt-launcher -l, then uninstall the wildcard_support.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an origin containing an invalid IRI." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_invalid_uri_1">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_invalid_uri_1.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_1.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_invalid_uri_1.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_1.wgt</pre_condition>
           <post_condition>Get the 'application id' of ignore_access_element_with_invalid_uri_1.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_invalid_uri_1.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an origin that uses the HTTP scheme and invalid host component." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_invalid_uri_2">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_invalid_uri_2.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_2.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_invalid_uri_2.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_2.wgt</pre_condition>
           <post_condition>Get the 'application id' of ignore_access_element_with_invalid_uri_2.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_invalid_uri_2.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase purpose="Test that the user agent ignores an invalid origin attribute value." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_invalid_uri_3">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_invalid_uri_3.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_3.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_invalid_uri_3.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_3.wgt</pre_condition>
           <post_condition>Get the 'application id' of ignore_access_element_with_invalid_uri_3.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_invalid_uri_3.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an origin that does not contain an authority component." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_no_authority">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_no_authority.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_authority.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_no_authority.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_authority.wgt</pre_condition>
           <post_condition>Get the 'application id' of ignore_access_element_with_no_authority.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_no_authority.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an origin that contains an iuserinfo component." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_iuserinfo">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_iuserinfo.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_iuserinfo.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_iuserinfo.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_iuserinfo.wgt</pre_condition>
           <post_condition>Get the 'application id' of ignore_access_element_with_iuserinfo.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_iuserinfo.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an origin that contains a path component." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_path_component_1">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_path_component_1.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_path_component_1.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_path_component_1.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_path_component_1.wgt</pre_condition>
           <post_condition>Get the 'application id' of ignore_access_element_with_path_component_1.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_path_component_1.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an origin that has no host component." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_no_host">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_no_host.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_host.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_no_host.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_host.wgt</pre_condition>
           <post_condition>Get the 'application id' of ignore_access_element_with_no_host.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_no_host.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an origin that contains a query component." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_query_component">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_query_component.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_query_component.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_query_component.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_query_component.wgt</pre_condition>
           <post_condition>Get the 'application id' of ignore_access_element_with_query_component.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_query_component.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an origin that has a fragment component." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_fragment">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_fragment.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_fragment.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_fragment.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_fragment.wgt</pre_condition>
           <post_condition>Get the 'application id' of ignore_access_element_with_fragment.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_fragment.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an origin that uses the HTTP scheme and has no host component." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_element_with_http_no_host">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_http_no_host.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_http_no_host.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_http_no_host.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_http_no_host.wgt</pre_condition>
           <post_condition>Get the 'application id' of ignore_access_element_with_http_no_host.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_element_with_http_no_host.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase purpose="Test that the user agent processes &lt;access&gt; element when subdomains attribute is true." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_load_image_from_subdomain1">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure load_image_from_subdomain1.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_image_from_subdomain1.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure load_image_from_subdomain1.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_image_from_subdomain1.wgt</pre_condition>
           <post_condition>Get the 'application id' of load_image_from_subdomain1.wgt with the command : wrt-launcher -l, then uninstall the load_image_from_subdomain1.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase purpose="Test that the user agent ignores &lt;access&gt; element with an unsupported scheme." type="compliance" status="approved" component="WebAPI/Widget/Widget Access Request Policy" execution_type="manual" priority="P3" id="WidgetPolicy_ignore_access_with_unsupported_scheme">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_with_unsupported_scheme.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_with_unsupported_scheme.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_with_unsupported_scheme.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_with_unsupported_scheme.wgt</pre_condition>
           <post_condition>Get the 'application id' of ignore_access_with_unsupported_scheme.wgt with the command : wrt-launcher -l, then uninstall the ignore_access_with_unsupported_scheme.wgt with the command : pkgcmd -u -q -t wgt -n 'package id'</post_condition>
           <steps>
             <step order="1">
index e109118e9e5d728719a1785bfe8ab973a9e4fa13..2b2dd68f450bb3692e62713e9914406a4f11deec 100755 (executable)
@@ -5,7 +5,7 @@
     <set name="WidgetPolicy" type="js">
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_do_not_load_image" purpose="According to the default policy, a user agent must deny to access the external network image.">
         <description>
-          <pre_condition>Make sure do_not_load_image.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/do_not_load_image.wgt</pre_condition>
+          <pre_condition>Make sure do_not_load_image.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/do_not_load_image.wgt</pre_condition>
           <post_condition>Get the $pkgid of do_not_load_image.wgt with the command : pkgcmd -l, then uninstall the do_not_load_image.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
@@ -18,7 +18,7 @@
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_do_not_load_script" purpose="According to the default policy, a user agent must deny to access the external network script.">
         <description>
-          <pre_condition>Make sure do_not_load_script.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/do_not_load_script.wgt</pre_condition>
+          <pre_condition>Make sure do_not_load_script.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/do_not_load_script.wgt</pre_condition>
           <post_condition>Get the $pkgid of do_not_load_script.wgt with the command : pkgcmd -l, then uninstall the do_not_load_script.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
@@ -31,7 +31,7 @@
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_load_image" purpose="A user agent should grant access to network image resources listed in the access-request list.">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure load_image.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_image.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure load_image.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_image.wgt</pre_condition>
           <post_condition>Get the $pkgid of load_image.wgt with the command : pkgcmd -l, then uninstall the load_image.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
@@ -44,7 +44,7 @@
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_load_iframe" purpose="A user agent should grant access to network frame resources listed in the access-request list.">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure load_iframe.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_iframe.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure load_iframe.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_iframe.wgt</pre_condition>
           <post_condition>Get the $pkgid of load_iframe.wgt with the command : pkgcmd -l, then uninstall the load_iframe.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
@@ -57,7 +57,7 @@
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_load_image_and_script" purpose="When a user agent grants access to a given set of network resources, it must do equally for APIs and markup.">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure load_image_and_script.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_image_and_script.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure load_image_and_script.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_image_and_script.wgt</pre_condition>
           <post_condition>Get the $pkgid of load_image_and_script.wgt with the command : pkgcmd -l, then uninstall the load_image_and_script.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
@@ -70,7 +70,7 @@
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_load_text_over_xhr" purpose="When a user agent grants access to a given set of network text resources, it must do equally for APIs and markup.">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure load_text_over_xhr.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_text_over_xhr.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure load_text_over_xhr.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_text_over_xhr.wgt</pre_condition>
           <post_condition>Get the $pkgid of load_text_over_xhr.wgt with the command : pkgcmd -l, then uninstall the load_text_over_xhr.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
@@ -83,7 +83,7 @@
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_block_loading_text_over_xhr" purpose="When a user agent is not grant access to network resources, it should deny access requests.">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure block_loading_text_over_xhr.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/block_loading_text_over_xhr.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure block_loading_text_over_xhr.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/block_loading_text_over_xhr.wgt</pre_condition>
           <post_condition>Get the $pkgid of block_loading_text_over_xhr.wgt with the command : pkgcmd -l, then uninstall the block_loading_text_over_xhr.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
@@ -96,7 +96,7 @@
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_ignore_access_with_missing_origin" purpose="Test that the user agent ignores &lt;access&gt; elements with no origin attribute.">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_with_missing_origin.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_with_missing_origin.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_with_missing_origin.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_with_missing_origin.wgt</pre_condition>
           <post_condition>Get the $pkgid of ignore_access_with_missing_origin.wgt with the command : pkgcmd -l, then uninstall the ignore_access_with_missing_origin.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_wildcard_support" purpose="Test that the user agent can process and support a &lt;access&gt; element with a wildcard ('*') origin.">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure wildcard_support.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/wildcard_support.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure wildcard_support.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/wildcard_support.wgt</pre_condition>
           <post_condition>Get the $pkgid of wildcard_support.wgt with the command : pkgcmd -l, then uninstall the wildcard_support.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_HTTP_ToASCII" purpose="When a user agent using the ToASCII algorithm as defined in RFC3490">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure HTTP_ToASCII.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/HTTP_ToASCII.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure HTTP_ToASCII.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/HTTP_ToASCII.wgt</pre_condition>
           <steps>
             <step order="1">
               <step_desc>Launch HTTP_ToASCII.wgt with the command : wrt-launcher -s 'application id'</step_desc>
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_ignore_access_element_with_invalid_uri_1" purpose="Test that the user agent ignores &lt;access&gt; element with an origin containing an invalid IRI.">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_invalid_uri_1.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_1.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_invalid_uri_1.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_1.wgt</pre_condition>
           <post_condition>Get the $pkgid of ignore_access_element_with_invalid_uri_1.wgt with the command : pkgcmd -l, then uninstall the ignore_access_element_with_invalid_uri_1.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_ignore_access_element_with_invalid_uri_2" purpose="Test that the user agent ignores &lt;access&gt; element with an origin that uses the HTTP scheme and invalid host component.">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_invalid_uri_2.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_2.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_invalid_uri_2.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_2.wgt</pre_condition>
           <post_condition>Get the $pkgid of ignore_access_element_with_invalid_uri_2.wgt with the command : pkgcmd -l, then uninstall the ignore_access_element_with_invalid_uri_2.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_ignore_access_element_with_invalid_uri_3" purpose="Test that the user agent ignores an invalid origin attribute value.">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_invalid_uri_3.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_3.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_invalid_uri_3.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_invalid_uri_3.wgt</pre_condition>
           <post_condition>Get the $pkgid of ignore_access_element_with_invalid_uri_3.wgt with the command : pkgcmd -l, then uninstall the ignore_access_element_with_invalid_uri_3.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_ignore_access_element_with_no_authority" purpose="Test that the user agent ignores &lt;access&gt; element with an origin that does not contain an authority component.">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_no_authority.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_authority.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_no_authority.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_authority.wgt</pre_condition>
           <post_condition>Get the $pkgid of ignore_access_element_with_no_authority.wgt with the command : pkgcmd -l, then uninstall the ignore_access_element_with_no_authority.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_ignore_access_element_with_iuserinfo" purpose="Test that the user agent ignores &lt;access&gt; element with an origin that contains an iuserinfo component.">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_iuserinfo.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_iuserinfo.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_iuserinfo.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_iuserinfo.wgt</pre_condition>
           <post_condition>Get the $pkgid of ignore_access_element_with_iuserinfo.wgt with the command : pkgcmd -l, then uninstall the ignore_access_element_with_iuserinfo.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_ignore_access_element_with_path_component_1" purpose="Test that the user agent ignores &lt;access&gt; element with an origin that contains a path component.">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_path_component_1.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_path_component_1.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_path_component_1.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_path_component_1.wgt</pre_condition>
           <post_condition>Get the $pkgid of ignore_access_element_with_path_component_1.wgt with the command : pkgcmd -l, then uninstall the ignore_access_element_with_path_component_1.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_ignore_access_element_with_no_host" purpose="Test that the user agent ignores &lt;access&gt; element with an origin that has no host component.">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_no_host.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_host.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_no_host.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_no_host.wgt</pre_condition>
           <post_condition>Get the $pkgid of ignore_access_element_with_no_host.wgt with the command : pkgcmd -l, then uninstall the ignore_access_element_with_no_host.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_ignore_access_element_with_query_component" purpose="Test that the user agent ignores &lt;access&gt; element with an origin that contains a query component.">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_query_component.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_query_component.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_query_component.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_query_component.wgt</pre_condition>
           <post_condition>Get the $pkgid of ignore_access_element_with_query_component.wgt with the command : pkgcmd -l, then uninstall the ignore_access_element_with_query_component.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_ignore_access_element_with_fragment" purpose="Test that the user agent ignores &lt;access&gt; element with an origin that has a fragment component.">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_fragment.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_fragment.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_fragment.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_fragment.wgt</pre_condition>
           <post_condition>Get the $pkgid of ignore_access_element_with_fragment.wgt with the command : pkgcmd -l, then uninstall the ignore_access_element_with_fragment.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_ignore_access_element_with_http_no_host" purpose="Test that the user agent ignores &lt;access&gt; element with an origin that uses the HTTP scheme and has no host component.">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_http_no_host.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_http_no_host.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_element_with_http_no_host.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_element_with_http_no_host.wgt</pre_condition>
           <post_condition>Get the $pkgid of ignore_access_element_with_http_no_host.wgt with the command : pkgcmd -l, then uninstall the ignore_access_element_with_http_no_host.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_load_image_from_subdomain1" purpose="Test that the user agent processes &lt;access&gt; element when subdomains attribute is true.">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure load_image_from_subdomain1.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_image_from_subdomain1.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure load_image_from_subdomain1.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/load_image_from_subdomain1.wgt</pre_condition>
           <post_condition>Get the $pkgid of load_image_from_subdomain1.wgt with the command : pkgcmd -l, then uninstall the load_image_from_subdomain1.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
       </testcase>
       <testcase component="W3C_HTML5 APIs/Widget/Widget Access Request Policy" execution_type="manual" id="WidgetPolicy_ignore_access_with_unsupported_scheme" purpose="Test that the user agent ignores &lt;access&gt; element with an unsupported scheme.">
         <description>
-          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_with_unsupported_scheme.wgt is installed with the command : pkgcmd -i -t wgt -q -p /home/owner/share/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_with_unsupported_scheme.wgt</pre_condition>
+          <pre_condition>Make sure the device can access to the network; Make sure ignore_access_with_unsupported_scheme.wgt is installed with the command : pkgcmd -i -t wgt -q -p {DEVICE_SUITE_TARGET_30}/tct/opt/tct-widgetpolicy-w3c-tests/widgetpolicy/w3c/ignore_access_with_unsupported_scheme.wgt</pre_condition>
           <post_condition>Get the $pkgid of ignore_access_with_unsupported_scheme.wgt with the command : pkgcmd -l, then uninstall the ignore_access_with_unsupported_scheme.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">