import sys
import subprocess
import string
-from optparse import OptionParser, make_option\r
+from optparse import OptionParser, make_option
import 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):
return (cmd_return_code, output)
-
def updateCMD(cmd=None):
if "pkgcmd" in cmd:
cmd = "su - %s -c '%s;%s'" % (PARAMETERS.user, XW_ENV, cmd)
return doCMD(cmd)
-
-
def getPKGID(pkg_name=None):
if PARAMETERS.mode == "SDB":
cmd = "sdb -s %s shell %s" % (
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]))
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
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:
sys.exit(1)
if not PARAMETERS.user:
- PARAMETERS.user = "owner"
+ PARAMETERS.user = EXECUTION_MODE_30
if not PARAMETERS.mode:
PARAMETERS.mode = "SDB"
print "No device provided"
sys.exit(1)
+ userCheck()
+
user_info = getUSERID()
re_code = user_info[0]
if re_code == 0 :
<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">
</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">
</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">
</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">
</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 <access> 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 <access> 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 <access> 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 <access> 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 <access> 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 <access> 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 <access> 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 <access> 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 <access> 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 <access> 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 <access> 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 <access> 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 <access> 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">
<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">
</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">
</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">
</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">
</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">
</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">
</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">
</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 <access> 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 <access> 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 <access> 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 <access> 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 <access> 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 <access> 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 <access> 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 <access> 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 <access> 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 <access> 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 <access> 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 <access> 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 <access> 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">