[mobile, wearable][behavior][CSP]change test precondition and steps 50/150950/1
authorGu Weiyi <w.gu@samsung.com>
Tue, 19 Sep 2017 06:59:12 +0000 (14:59 +0800)
committerGu Weiyi <w.gu@samsung.com>
Tue, 19 Sep 2017 06:59:17 +0000 (14:59 +0800)
Change-Id: I6d7ab4c71d030b411d5fc542a442e6f589a0bb68
Signed-off-by: Gu Weiyi <w.gu@samsung.com>
16 files changed:
mobile/tct-behavior-tests/tests/CSP/index.html
mobile/tct-behavior-tests/tests/CSP/res/csp-asterisk.html
mobile/tct-behavior-tests/tests/CSP/res/csp-cross-origin.html
mobile/tct-behavior-tests/tests/CSP/res/default-policy-by-directives-csp.html
mobile/tct-behavior-tests/tests/CSP/res/default-policy-by-directives-report-only.html
mobile/tct-behavior-tests/tests/CSP/res/default-src_asterisk.html
mobile/tct-behavior-tests/tests/CSP/res/default-src_cross_origin.html
mobile/tct-behavior-tests/tests/CSP/res/sandbox-same-origin-allow-scripts.html
wearable/tct-behavior-tests/tests/CSP/index.html
wearable/tct-behavior-tests/tests/CSP/res/csp-asterisk.html
wearable/tct-behavior-tests/tests/CSP/res/csp-cross-origin.html
wearable/tct-behavior-tests/tests/CSP/res/default-policy-by-directives-csp.html
wearable/tct-behavior-tests/tests/CSP/res/default-policy-by-directives-report-only.html
wearable/tct-behavior-tests/tests/CSP/res/default-src_asterisk.html
wearable/tct-behavior-tests/tests/CSP/res/default-src_cross_origin.html
wearable/tct-behavior-tests/tests/CSP/res/sandbox-same-origin-allow-scripts.html

index afb641c..a518d3a 100755 (executable)
@@ -215,7 +215,7 @@ Authors:
             <p>Test Note: </p>
             <p>Verifies the functionality of CSP worked well.</p>
             <p>Test Pre-condition: </p>
-            <p>Tinyweb server launched with the command: "tinyweb -ssl_certificate /usr/share/tinyweb/server.pem -document_root / -listening_ports 80,8080,8081,8082,8083,8443s".</p>
+            <p>Tinyweb server launched with the command: "$cd 'web-tct-path'; python ./scripts/tct-config-device.py --check proc=tinyweb".</p>
             <p>Test Purpose: </p>
             <p>Verifies the functionality of CSP worked well when script-src, object-src, style-src, img-src, media-src, frame-src, font-src, connect-src directives set different values.</p>
             <p>Expected Result: </p>
index ea1eed6..5b31bd5 100755 (executable)
@@ -69,8 +69,9 @@ Authors:
           <font class="fontSize">
             <p>Test Step: </p>
             <ol>
-               <li>$ web-tct_2.3/tools/python tct-config-device.py --check proc=tinyweb</li>
               <li>Click the "Install" button to install the widget.</li>
+              <li>In sdb shell: su root; password: tizen; echo "User::Shell User::Pkg::beh1csp001 rwx" | smackload
+echo "User::Pkg::beh1csp001 User::Shell rwx" | smackload</li>
               <li>Click the "Launch" button to launch the widget.</li>
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
index 15baea4..70680a4 100755 (executable)
@@ -70,6 +70,8 @@ Authors:
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
+              <li>In sdb shell: su root; password: tizen; echo "User::Shell User::Pkg::beh1csp002 rwx" | smackload
+echo "User::Pkg::beh1csp002 User::Shell rwx" | smackload</li>
               <li>Click the "Launch" button to launch the widget.</li>
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
index 2aa72e7..a3ff77e 100755 (executable)
@@ -70,6 +70,8 @@ Authors:
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
+              <li>In sdb shell: su root; password: tizen; echo "User::Shell User::Pkg::beh1csp016 rwx" | smackload
+echo "User::Pkg::beh1csp016 User::Shell rwx" | smackload</li>
               <li>Click the "Launch" button to launch the widget.</li>
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
index 9a0f395..b5eb15d 100755 (executable)
@@ -70,6 +70,8 @@ Authors:
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
+              <li>In sdb shell: su root; password :tizen; echo "User::Shell User::Pkg::beh1csp017 rwx" | smackload
+echo "User::Pkg::beh1csp017 User::Shell rwx" | smackload</li>
               <li>Click the "Launch" button to launch the widget.</li>
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
index 9365374..6091561 100755 (executable)
@@ -70,6 +70,8 @@ Authors:
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
+              <li>In sdb shell: su root; password :tizen; echo "User::Shell User::Pkg::beh1csp015 rwx" | smackload
+echo "User::Pkg::beh1csp015 User::Shell rwx" | smackload</li>
               <li>Click the "Launch" button to launch the widget.</li>
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
index ebe5e6e..2170c5b 100755 (executable)
@@ -70,6 +70,8 @@ Authors:
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
+              <li>In sdb shell: su root; password :tizen; echo "User::Shell User::Pkg::beh1csp014 rwx" | smackload
+echo "User::Pkg::beh1csp014 User::Shell rwx" | smackload</li>
               <li>Click the "Launch" button to launch the widget.</li>
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
index f2b474f..b206326 100755 (executable)
@@ -70,6 +70,8 @@ Authors:
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
+              <li>In sdb shell: su root; password :tizen; echo "User::Shell User::Pkg::beh1csp008 rwx" | smackload
+echo "User::Pkg::beh1csp008 User::Shell rwx" | smackload</li>
               <li>Click the "Launch" button to launch the widget.</li>
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
index 66efe17..2f30afe 100755 (executable)
@@ -150,7 +150,7 @@ Authors:
                     <p>Test Note: </p>
                     <p>Verifies the functionality of CSP worked well.</p>
                     <p>Test Pre-condition: </p>
-                    <p>Tinyweb server launched with the command: "tinyweb -ssl_certificate /usr/share/tinyweb/server.pem -document_root / -listening_ports 80,8080,8081,8082,8083,8443s".</p>
+                    <p>Tinyweb server launched with the command: "$cd 'web-tct-path'; python ./scripts/tct-config-device.py --check proc=tinyweb".</p>
                     <p>Test Purpose: </p>
                     <p>Verifies the functionality of CSP worked well when script-src, object-src, style-src, img-src, media-src, frame-src, font-src, connect-src directives set different values.</p>
                     <p>Expected Result: </p>
index cb0d909..3105eed 100755 (executable)
@@ -69,8 +69,9 @@ Authors:
           <font class="fontSize">
             <p>Test Step: </p>
             <ol>
-              <li>$ web-tct_2.3/tools/python tct-config-device.py --check proc=tinyweb</li>
               <li>Click the "Install" button to install the widget.</li>
+              <li>In sdb shell: su root; password: tizen; echo "User::Shell User::Pkg::beh1csp001 rwx" | smackload
+echo "User::Pkg::beh1csp001 User::Shell rwx" | smackload</li>
               <li>Click the "Launch" button to launch the widget.</li>
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
index ee39244..4450862 100755 (executable)
@@ -70,6 +70,8 @@ Authors:
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
+              <li>In sdb shell: su root; password: tizen; echo "User::Shell User::Pkg::beh1csp002 rwx" | smackload
+echo "User::Pkg::beh1csp002 User::Shell rwx" | smackload</li>
               <li>Click the "Launch" button to launch the widget.</li>
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
index 056e2aa..07eaf2b 100755 (executable)
@@ -70,6 +70,8 @@ Authors:
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
+              <li>In sdb shell: su root; password: tizen; echo "User::Shell User::Pkg::beh1csp016 rwx" | smackload
+echo "User::Pkg::beh1csp016 User::Shell rwx" | smackload</li>
               <li>Click the "Launch" button to launch the widget.</li>
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
index 210de3f..d31c247 100755 (executable)
@@ -70,6 +70,8 @@ Authors:
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
+              <li>In sdb shell: su root; password :tizen; echo "User::Shell User::Pkg::beh1csp017 rwx" | smackload
+echo "User::Pkg::beh1csp017 User::Shell rwx" | smackload</li>
               <li>Click the "Launch" button to launch the widget.</li>
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
index 21b20d3..b9e96a7 100755 (executable)
@@ -70,6 +70,8 @@ Authors:
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
+              <li>In sdb shell: su root; password :tizen; echo "User::Shell User::Pkg::beh1csp015 rwx" | smackload
+echo "User::Pkg::beh1csp015 User::Shell rwx" | smackload</li>
               <li>Click the "Launch" button to launch the widget.</li>
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
index 8d87ec4..acc8b97 100755 (executable)
@@ -70,6 +70,8 @@ Authors:
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
+              <li>In sdb shell: su root; password :tizen; echo "User::Shell User::Pkg::beh1csp014 rwx" | smackload
+echo "User::Pkg::beh1csp014 User::Shell rwx" | smackload</li>
               <li>Click the "Launch" button to launch the widget.</li>
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>
index ed7b809..0e4ddd2 100755 (executable)
@@ -70,6 +70,8 @@ Authors:
             <p>Test Step: </p>
             <ol>
               <li>Click the "Install" button to install the widget.</li>
+              <li>In sdb shell: su root; password :tizen; echo "User::Shell User::Pkg::beh1csp008 rwx" | smackload
+echo "User::Pkg::beh1csp008 User::Shell rwx" | smackload</li>
               <li>Click the "Launch" button to launch the widget.</li>
               <li>Click the "Uninstall" button to uninstall the widget.</li>
             </ol>