code review: fixed TTS-1795 Update the description and code format for sp02 module
authorYue jianhui <jianhuix.a.yue@intel.com>
Tue, 23 Jul 2013 07:03:50 +0000 (00:03 -0700)
committerYue jianhui <jianhuix.a.yue@intel.com>
Tue, 23 Jul 2013 07:03:50 +0000 (00:03 -0700)
Signed-off-by: Yue jianhui <jianhuix.a.yue@intel.com>
20 files changed:
tct-sp02-wrt-tests/config-default-header-null/config.xml
tct-sp02-wrt-tests/config-default-header-null/index.html
tct-sp02-wrt-tests/config-default-header-null/pass.js
tct-sp02-wrt-tests/config-normal-header-null/config.xml
tct-sp02-wrt-tests/config-normal-header-null/index.html
tct-sp02-wrt-tests/config-xml-with-csp/config.xml
tct-sp02-wrt-tests/config-xml-with-csp/index.html
tct-sp02-wrt-tests/config-xml-with-report-only/config.xml
tct-sp02-wrt-tests/config-xml-with-report-only/index.html
tct-sp02-wrt-tests/default-policy-by-directives-csp/config.xml
tct-sp02-wrt-tests/default-policy-by-directives-csp/index.html
tct-sp02-wrt-tests/default-policy-by-directives-report-only/config.xml
tct-sp02-wrt-tests/default-policy-by-directives-report-only/index.html
tct-sp02-wrt-tests/private_localstorage_check/index.html
tct-sp02-wrt-tests/protection-encryption-check/css/style.css
tct-sp02-wrt-tests/protection-encryption-check/index.html
tct-sp02-wrt-tests/protection-encryption-check/js/main.js
tct-sp02-wrt-tests/security-permission/index.html
tct-sp02-wrt-tests/security-policy/index.html
tct-sp02-wrt-tests/tests.xml

index ace0553..18d8e48 100644 (file)
@@ -5,4 +5,4 @@
   <content src="index.html"/>
   <name>config-default-header-null</name>
   <tizen:application id="wrt5cdh102.configDefaultHeaderNull" package="wrt5cdh102" required_version="2.2"/>
-</widget>
+</widget>
\ No newline at end of file
index 5a4b49f..a61af9f 100644 (file)
@@ -67,4 +67,4 @@ Authors:
     <p style="color:blue">Three:Test passes if text "PASS" appears below.</p>
     <div id="log">FAIL</div>
  </body>
-</html>
+</html>
\ No newline at end of file
index 85c6236..653b0f3 100644 (file)
@@ -1,4 +1,3 @@
 function show_fail() {
   document.getElementById("log").innerHTML = "PASS";
-}
-
+}
\ No newline at end of file
index 47907f4..36299b8 100644 (file)
@@ -5,4 +5,4 @@
   <content src="index.html"/>
   <name>config-normal-header-null</name>
   <tizen:application id="wrt5cnh101.configNormalHeaderNull" package="wrt5cnh101" required_version="2.2"/>
-</widget>
+</widget>
\ No newline at end of file
index 5adbcc3..986d137 100644 (file)
@@ -70,4 +70,4 @@ Authors:
     <p style="color:blue">Three:Test passes if text "PASS" appears below.</p>
     <div id="log">PASS</div>
  </body>
-</html>
+</html>
\ No newline at end of file
index c1c7ad9..2cb36d0 100644 (file)
@@ -6,4 +6,4 @@
     <icon src="custom.png"/>
     <name>config-xml-with-csp</name>
     <tizen:setting install-location="auto"/>
-</widget>
+</widget>
\ No newline at end of file
index 694da8e..e462085 100644 (file)
@@ -33,10 +33,10 @@ Authors:
 <html>
   <head>
     <title>WRT Test: config-xml-with-csp</title>
-    <link rel="author" title="Intel" href="http://www.intel.com" />
-    <link rel="help" href="http://www.w3.org/TR/CSP" />
-    <meta name="flags" content="" />
-    <meta name="assert" content="Check that WRT MUST enforce CSP policy in content-security-policy tag in config.xml" />
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href="http://www.w3.org/TR/CSP"/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="Check that WRT MUST enforce CSP policy in content-security-policy tag in config.xml"/>
     <meta charset="utf-8">
     <style>body{ background:red }</style>
   </head>
@@ -45,36 +45,35 @@ Authors:
     <p id="reason">Test did not run.</p>
     <script src="support/csp.js"></script>
     <script language="javascript" type="text/javascript">
-      var id = "config-xml-with-csp";
-      var reason  = document.getElementById("reason");
-      var body    = document.getElementById("body");
-      var verdict = document.getElementById("verdict");
+        var id = "config-xml-with-csp";
+        var reason  = document.getElementById("reason");
+        var body    = document.getElementById("body");
+        var verdict = document.getElementById("verdict");
 
-      /* Called if the test passed */
-      function pass(excuse) {
-        body.style.backgroundColor = "green";
-        verdict.innerHTML = "PASS";
-        reason.innerHTML  = excuse;
-      }
+        /* Called if the test passed */
+        function pass(excuse) {
+            body.style.backgroundColor = "green";
+            verdict.innerHTML = "PASS";
+            reason.innerHTML  = excuse;
+        }
 
-      /* Called if the test failed */
-      function fail(excuse) {
-        reason.innerHTML = excuse;
-      }
+        /* Called if the test failed */
+        function fail(excuse) {
+            reason.innerHTML = excuse;
+        }
 
-      /*Called to perform the test */
-      function test() {
-        try {
-          var xhr = new XMLHttpRequest();
-          xhr.open("GET", "support/csp.js");
-          why = "Test "+ id +" passed because WRT MUST enforce CSP policy in content-security-policy tag in config.xml";
-          pass(why);
-        } catch(e) {
-          why = "Test "+ id +" failed by throwing the following exception: " + e;
-          fail(why);
+        /*Called to perform the test */
+        function test() {
+            try {
+                var xhr = new XMLHttpRequest();
+                xhr.open("GET", "support/csp.js");
+                why = "Test "+ id +" passed because WRT must enforce CSP policy when the content-security-policy label is set in config.xml";
+                pass(why);
+            } catch(e) {
+                why = "Test "+ id +" failed by throwing the following exception: " + e;
+                fail(why);
+            }
         }
-      }
     </script>
   </body>
-</html>
-
+</html>
\ No newline at end of file
index adc8231..fa766f8 100644 (file)
@@ -6,4 +6,4 @@
     <icon src="custom.png"/>
     <name>config-xml-with-report-only</name>
     <tizen:setting install-location="auto"/>
-</widget>
+</widget>
\ No newline at end of file
index 07f64e0..957f303 100644 (file)
@@ -79,5 +79,4 @@ Authors:
       }
     </script>
   </body>
-</html>
-
+</html>
\ No newline at end of file
index 438a2dc..9a3c72a 100644 (file)
@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://tizen.org/default-policy-by-directives-csp" version="1.0.0" viewmodes="maximized">
-    <tizen:content-security-policy></tizen:content-security-policy>
-    <tizen:application id="wrt8dpb004.DefaultPolicyByDirectivesCsp" package="wrt8dpb004" required_version="2.2"/>
-    <content src="index.html"/>
-    <icon src="custom.png"/>
-    <name>default-policy-by-directives-csp</name>
-    <tizen:setting install-location="auto"/>
-</widget>
+  <tizen:content-security-policy></tizen:content-security-policy>
+  <tizen:application id="wrt8dpb004.DefaultPolicyByDirectivesCsp" package="wrt8dpb004" required_version="2.2"/>
+  <content src="index.html"/>
+  <icon src="custom.png"/>
+  <name>default-policy-by-directives-csp</name>
+  <tizen:setting install-location="auto"/>
+</widget>
\ No newline at end of file
index 077bb30..3cd4262 100644 (file)
@@ -56,9 +56,12 @@ Authors:
     </style>
   </head>
   <body>
+    <p style="color:blue">One:Test passes if text "PASS" appears below.</p>
     <div id="test_result"></div>
+    <p style="color:blue">Two:Font of "1234 ABCD" decorated by canvas is differnet from itself.</p>
     <div id="test">1234 ABCD</div>
     <div>1234 ABCD</div>
+    <p style="color:blue">Three:The screen shows a blue square.</p>
     <div id="test-green"></div>
     <div id="test-blue"></div>
     <h3></h3>
@@ -88,13 +91,16 @@ Authors:
             document.getElementById("test_result").innerHTML = "PASS";
         }
     </script>
+    <p style="color:blue">Four:The screen shows two green squares in two frames,respectively.</p>
     <div><iframe src="support/green-100x100.png"></iframe></div>
     <div><iframe src="http://127.0.0.1:8081/opt/tct-sp02-wrt-tests/support/green-100x100.png"></iframe></div>
+    <p style="color:blue">Five:The screen shows two green squares.</p>
     <div><img src="support/green-100x100.png" /></div>
     <div><img src="http://127.0.0.1:8081/opt/tct-sp02-wrt-tests/support/green-100x100.png"/></div>
+    <p style="color:blue">Six: The screen shows two videos and no red square.</p>
     <div><video src="support/red-green.theora.ogv" /></div>
     <div><video src="http://127.0.0.1:8081/opt/tct-sp02-wrt-tests/support/red-green.theora.ogv"/></div>
     <div><object data="support/red-100x100.png"></object></div>
     <div><object data="http://127.0.0.1:8081/opt/tct-sp02-wrt-tests/support/red-100x100.png"></object></div>
   </body>
-</html>
+</html>
\ No newline at end of file
index aee31ab..a003a92 100644 (file)
@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://tizen.org/default-policy-by-directives-report-only" version="1.0.0" viewmodes="maximized">
-    <tizen:content-security-policy-report-only></tizen:content-security-policy-report-only>
-    <tizen:application id="wrt8dpb005.DefaultPolicyByDirectivesReportOnly" package="wrt8dpb005" required_version="2.2"/>
-    <content src="index.html"/>
-    <icon src="custom.png"/>
-    <name>default-policy-by-directives-report-only</name>
-    <tizen:setting install-location="auto"/>
-</widget>
+  <tizen:content-security-policy-report-only></tizen:content-security-policy-report-only>
+  <tizen:application id="wrt8dpb005.DefaultPolicyByDirectivesReportOnly" package="wrt8dpb005" required_version="2.2"/>
+  <content src="index.html"/>
+  <icon src="custom.png"/>
+  <name>default-policy-by-directives-report-only</name>
+  <tizen:setting install-location="auto"/>
+</widget>
\ No newline at end of file
index 9f03f73..b7cae2f 100644 (file)
@@ -56,9 +56,12 @@ Authors:
     </style>
   </head>
   <body>
+    <p style="color:blue">One:Test passes if text "PASS" appears below.</p>
     <div id="test_result"></div>
+    <p style="color:blue">Two:Font of "1234 ABCD" decorated by canvas is differnet from itself.</p>
     <div id="test">1234 ABCD</div>
     <div>1234 ABCD</div>
+    <p style="color:blue">Three:The screen shows a blue square.</p>
     <div id="test-green"></div>
     <div id="test-blue"></div>
     <h3></h3>
@@ -88,13 +91,16 @@ Authors:
             document.getElementById("test_result").innerHTML = "PASS";
         }
     </script>
+    <p style="color:blue">Four:The screen shows two green squares in two frames,respectively.</p>
     <div><iframe src="support/green-100x100.png"></iframe></div>
     <div><iframe src="http://127.0.0.1:8081/opt/tct-sp02-wrt-tests/support/green-100x100.png"></iframe></div>
+    <p style="color:blue">Five:The screen shows two green squares.</p>
     <div><img src="support/green-100x100.png" /></div>
     <div><img src="http://127.0.0.1:8081/opt/tct-sp02-wrt-tests/support/green-100x100.png"/></div>
+    <p style="color:blue">Six: The screen shows two videos and no red square.</p>
     <div><video src="support/red-green.theora.ogv" /></div>
     <div><video src="http://127.0.0.1:8081/opt/tct-sp02-wrt-tests/support/red-green.theora.ogv"/></div>
     <div><object data="support/red-100x100.png"></object></div>
     <div><object data="http://127.0.0.1:8081/opt/tct-sp02-wrt-tests/support/red-100x100.png"></object></div>
   </body>
-</html>
+</html>
\ No newline at end of file
index 884316c..1a34357 100644 (file)
@@ -33,14 +33,13 @@ Authors:
 <html>
   <head>
     <title>WRT Test: private_localstorage_check</title>
-    <link rel="author" title="Intel" href="http://www.intel.com" />
-    <link rel="help" href="" />
-    <meta name="flags" content="" />
-    <meta name="assert" content="Check if Application have its own localStorage space" />
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href=""/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="Check if Application have its own localStorage space"/>
     <meta charset="utf-8">
   </head>
-</head>
-<body>
<p>1.Install private_localstorage_check.wgt<br>Expected:widget application is able to install successfully<br>2.Confirm Application have its own localStorage space<br>Expected: The application must be stored in its own storage space which must not be accessible to other applications</p>
-</body>
-</html>
+  <body>
+    <p>1.Install private_localstorage_check.wgt<br>Expected:widget application is able to install successfully<br>2.Confirm Application have its own localStorage space<br>Expected: The application must be stored in its own storage space which must not be accessible to other applications</p>
 </body>
+</html>
\ No newline at end of file
index 547136c..038d11d 100644 (file)
@@ -30,18 +30,18 @@ Authors:
 
 -->
 <html>
- <head>
-  <title>WRT Test: protection-encryption-check</title>
-  <link rel="author" title="Intel" href="http://www.intel.com" />
-  <link rel="help" href="" />
-  <meta name="flags" content="" />
-  <meta name="assert" content="Check if the WRT encrypt all resources of the Application storage." />
-  <meta charset="utf-8" />
-  <link rel="stylesheet" type="text/css" href="./css/style.css"/>
-  <script src ="./js/main.js" ></script>
- </head>
- <body>
-  <br><br>
-  <input type="button" onclick="clickButton()" value="click"/>
- </body>
 <head>
+    <title>WRT Test: protection-encryption-check</title>
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href=""/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="Check if the WRT encrypt all resources of the Application storage."/>
+    <meta charset="utf-8"/>
+    <link rel="stylesheet" type="text/css" href="./css/style.css"/>
+    <script src ="./js/main.js" ></script>
 </head>
 <body>
+    <br><br>
+    <input type="button" onclick="clickButton()" value="click"/>
 </body>
 </html>
\ No newline at end of file
index e7c31bc..fb420c4 100644 (file)
@@ -1,6 +1,6 @@
 function clickButton(){
-  document.write("<br><br>");
-  document.write("js code ok");
-  document.write("<br><br>");
-  document.write("<img src ='custom.png'/>");
-}
+    document.write("<br><br>");
+    document.write("js code ok");
+    document.write("<br><br>");
+    document.write("<img src ='custom.png'/>");
+}
\ No newline at end of file
index e7829e3..92adbbe 100644 (file)
@@ -33,24 +33,24 @@ Authors:
 <html>
   <head>
     <title>WRT Test: security-permission</title>
-    <link rel="author" title="Intel" href="http://www.intel.com" />
-    <link rel="help" href="" />
-    <meta name="flags" content="" />
-    <meta name="assert" content="Check if WRT allow the user to elevate permissions set by the security policy." />
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href=""/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="Check if WRT allow the user to elevate permissions set by the security policy."/>
     <meta charset="utf-8">
   </head>
- <body>
-  <script type="text/javascript">
 <body>
+    <script type="text/javascript">
 
-    document.write("<br><br><br>");
-    try{
-        var alarm = new tizen.AlarmAbsolute(new Date(2012, 10, 4, 8, 0));
-        var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view", "http://www.tizen.org");
-        tizen.alarm.add(alarm, "org.tizen.browser", appControl);
-        document.write("FAIL");
-    }catch(e){
-        document.write("PASS");
-    }
-</script>
- </body>
-</html>
+        document.write("<br><br><br>");
+        try{
+            var alarm = new tizen.AlarmAbsolute(new Date(2012, 10, 4, 8, 0));
+            var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view", "http://www.tizen.org");
+            tizen.alarm.add(alarm, "org.tizen.browser", appControl);
+            document.write("FAIL");
+        }catch(e){
+            document.write("PASS");
+        }
+    </script>
+  </body>
+</html>
\ No newline at end of file
index 8ecc4cd..1cb9f16 100644 (file)
@@ -33,24 +33,24 @@ Authors:
 <html>
   <head>
     <title>WRT Test: security-policy</title>
-    <link rel="author" title="Intel" href="http://www.intel.com" />
-    <link rel="help" href="" />
-    <meta name="flags" content="" />
-    <meta name="assert" content="Check if WRT include mechanism disabling the security policy checks" />
+    <link rel="author" title="Intel" href="http://www.intel.com"/>
+    <link rel="help" href=""/>
+    <meta name="flags" content=""/>
+    <meta name="assert" content="Check if WRT include mechanism disabling the security policy checks"/>
     <meta charset="utf-8">
   </head>
- <body>
-  <script type="text/javascript">
 <body>
+    <script type="text/javascript">
 
-    document.write("<br><br><br>");
-    try{
-        var alarm = new tizen.AlarmAbsolute(new Date(2012, 10, 4, 8, 0));
-        var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view", "http://www.tizen.org");
-        tizen.alarm.add(alarm, "org.tizen.browser", appControl);
-        document.write("PASS");
-    }catch(e){
-        document.write("FAIL");
-    }
-</script>
- </body>
-</html>
+        document.write("<br><br><br>");
+        try{
+            var alarm = new tizen.AlarmAbsolute(new Date(2012, 10, 4, 8, 0));
+            var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view", "http://www.tizen.org");
+            tizen.alarm.add(alarm, "org.tizen.browser", appControl);
+            document.write("PASS");
+        }catch(e){
+            document.write("FAIL");
+        }
+    </script>
+  </body>
+</html>
\ No newline at end of file
index a89e328..b58ed50 100644 (file)
@@ -57,7 +57,7 @@
         </spec>
       </specs>
     </testcase>
-    <testcase purpose="Check if WRT includes the mechanism disabling the security policy checks." type="user_experience" status="approved" component="Web/Runtime/SecurityPrivacy" execution_type="manual" priority="P1" id="security-policy">
+    <testcase purpose="Check if WRT not includes the mechanism disabling the security policy checks." type="user_experience" status="approved" component="Web/Runtime/SecurityPrivacy" execution_type="manual" priority="P1" id="security-policy">
       <description>
         <pre_condition>Make sure the security-policy.wgt is installed: Install security-policy.wgt with the command :"wrt-installer -i /opt/tct-sp02-wrt-tests/security-policy.wgt"</pre_condition>
         <post_condition>Get the 'application id' of security-policy.wgt with the command :"wrt-launcher -l" and uninstall the security-policy.wgt with the command :"wrt-installer -un 'application id'"</post_condition>
             <expected>The screen shows "PASS".</expected>
           </step>
           <step order="2">
-            <step_desc>Get into the resources folder which is the security-policy widget storage.</step_desc>
+            <step_desc>Get into the resources folder with command "cd /opt/apps/wrt5pec119/res/wgt".</step_desc>
             <expected>Access to the widget application storage.</expected>
           </step>
           <step order="3">
+            <step_desc>Get the 'application id' of security-policy.wgt with the command :"wrt-launcher -l" and close the security-policy.wgt with the command :"wrt-launcher -k 'application id'".</step_desc>
+            <expected>The widget is closed successfully.</expected>
+          </step>
+          <step order="4">
             <step_desc>Del the config.xml file.</step_desc>
             <expected>The config.xml file is deleted.</expected>
           </step>
-          <step order="4">
+          <step order="5">
             <step_desc>Get the 'application id' of security-policy.wgt with the command :"wrt-launcher -l" and launch the security-policy.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
             <expected>The screen shows "PASS"</expected>
           </step>
             <expected>The screen shows "Pass".</expected>
           </step>
           <step order="3">
-            <step_desc>Edit config.xml in the resources folder which is the security-permission widget storage.</step_desc>
-            <expected>Access to the widget application storage and the config file is opened.</expected>
+            <step_desc>Get the 'application id' of security-permission.wgt with the command :"wrt-launcher -l" and close the security-permission.wgt with the command :"wrt-launcher -k 'application id'".</step_desc>
+            <expected>The widget is closed successfully.</expected>
           </step>
           <step order="4">
+            <step_desc>Get into the resources folder with command "cd /opt/apps/wrt5pec120/res/wgt".Edit config.xml in the resources folder.</step_desc>
+            <expected>Access to the widget application storage and the config file is opened.</expected>
+          </step>
+          <step order="5">
             <step_desc>Del the annotation symbol in config.xml file.</step_desc>
             <expected>The config.xml file is changed.</expected>
           </step>
-          <step order="5">
+          <step order="6">
             <step_desc>Get the 'application id' of security-permission.wgt with the command :"wrt-launcher -l" and launch the security-permission.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
             <expected>The screen shows "Pass"</expected>
           </step>
         </spec>
       </specs>
     </testcase>
-    <testcase purpose="Check that WRT MUST enforce CSP policy in content-security-policy tag in config.xml." type="user_experience" status="approved" component="Web/Runtime/SecurityPrivacy" execution_type="manual" priority="P1" id="config-xml-with-csp">
+    <testcase purpose="Check that WRT must enforce CSP policy when the content-security-policy label is set in config.xml." type="user_experience" status="approved" component="Web/Runtime/SecurityPrivacy" execution_type="manual" priority="P1" id="config-xml-with-csp">
       <description>
-        <pre_condition>Make sure config-xml-with-csp.wgt is installed with the command : wrt-installer -i /opt/tct-sp02-wrt-tests/config-xml-with-csp.wgt</pre_condition>
+        <pre_condition></pre_condition>
         <post_condition>Get the 'application id' of config-xml-with-csp.wgt with the command : wrt-launcher -l, then uninstall the config-xml-with-csp.wgt with the command : wrt-installer -un 'application id'</post_condition>
         <steps>
           <step order="1">
             <expected>The screen shows "PASS" on green background.</expected>
           </step>
         </steps>
-        <test_script_entry timeout="90">/opt/tct-sp02-wrt-tests/config-xml-with-csp.wgt</test_script_entry>
+        <test_script_entry timeout="90"></test_script_entry>
         <notes></notes>
       </description>
       <specs>
         </spec>
       </specs>
     </testcase>
-    <testcase purpose="Check that default CSP policy enforced by WRT is default-src *; script-src self; style-src self; object-src none with content-security-policy." type="user_experience" status="approved" component="Web/Runtime/SecurityPrivacy" execution_type="manual" priority="P1" id="default-policy-by-directives-csp">
+    <testcase purpose="Check that default CSP policy enforced by WRT is 'default-src *; script-src self; style-src self; object-src none' when the content-security-policy label is set in config file." type="user_experience" status="approved" component="Web/Runtime/SecurityPrivacy" execution_type="manual" priority="P1" id="default-policy-by-directives-csp">
       <description>
-        <pre_condition>Make sure default-policy-by-directives-csp.wgt is installed with the command : wrt-installer -i /opt/tct-sp02-wrt-tests/default-policy-by-directives-csp.wgt</pre_condition>
+        <pre_condition></pre_condition>
         <post_condition>Get the 'application id' of default-policy-by-directives-csp.wgt with the command : wrt-launcher -l, then uninstall the default-policy-by-directives-csp.wgt with the command : wrt-installer -un 'application id'</post_condition>
         <steps>
           <step order="1">
           </step>
           <step order="2">
             <step_desc>Get the 'application id' of default-policy-by-directives-csp.wgt with the command :"wrt-launcher -l" and launch the default-policy-by-directives-csp.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
-            <expected>The screen shows "PASS" on the first line.
-              Font of "1234 ABCD" decorated by canvas is differnet from itself.
-              The screen shows a blue square, two frames, two green squares, two videos and no red square.
+            <expected>For Test One,The screen shows "PASS" on the first line.For Test Two,Font of "1234 ABCD" decorated by canvas is differnet from itself.For Test Three,The screen shows a blue square.For Test Four, The screen shows two green squares in two frames,respectively.For Test Five,The screen shows two green squares.For Test Six,The screen shows two videos and no red square.
             </expected>
           </step>
         </steps>
-        <test_script_entry timeout="90">/opt/tct-sp02-wrt-tests/default-policy-by-directives-csp.wgt</test_script_entry>
+        <test_script_entry timeout="90"></test_script_entry>
         <notes></notes>
       </description>
       <specs>
         </spec>
       </specs>
     </testcase>
-    <testcase purpose="Check that default CSP policy enforced by WRT is default-src *; script-src self; style-src self; object-src none with content-security-policy-report-only." type="user_experience" status="approved" component="Web/Runtime/SecurityPrivacy" execution_type="manual" priority="P1" id="default-policy-by-directives-report-only">
+    <testcase purpose="Check that default CSP policy enforced by WRT is 'default-src *; script-src self; style-src self; object-src none' when the content-security-policy-report-only label is set in config file." type="user_experience" status="approved" component="Web/Runtime/SecurityPrivacy" execution_type="manual" priority="P1" id="default-policy-by-directives-report-only">
       <description>
-        <pre_condition>Make sure default-policy-by-directives-report-only.wgt is installed with the command : wrt-installer -i /opt/tct-sp02-wrt-tests/default-policy-by-directives-report-only.wgt</pre_condition>
+        <pre_condition></pre_condition>
         <post_condition>Get the 'application id' of default-policy-by-directives-report-only.wgt with the command : wrt-launcher -l, then uninstall the default-policy-by-directives-report-only.wgt with the command : wrt-installer -un 'application id'</post_condition>
         <steps>
           <step order="1">
           </step>
           <step order="2">
             <step_desc>Get the 'application id' of default-policy-by-directives-report-only.wgt with the command :"wrt-launcher -l" and launch the default-policy-by-directives-report-only.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
-            <expected>The screen shows "PASS" on the first line.
-              Font of "1234 ABCD" decorated by canvas is differnet from itself.
-              The screen shows a blue square, two frames, two green squares, two videos and two red squares.
+            <expected>For Test One,The screen shows "PASS" on the first line.For Test Two,Font of "1234 ABCD" decorated by canvas is differnet from itself.For Test Three,The screen shows a blue square.For Test Four, The screen shows two green squares in two frames,respectively.For Test Five,The screen shows two green squares.For Test Six,The screen shows two videos and no red square.
             </expected>
           </step>
         </steps>
-        <test_script_entry timeout="90">/opt/tct-sp02-wrt-tests/default-policy-by-directives-report-only.wgt</test_script_entry>
+        <test_script_entry timeout="90"></test_script_entry>
         <notes></notes>
       </description>
       <specs>