[mobile, wearable][behavior][CSP]change test precondition and steps 48/150948/1
authorGu Weiyi <w.gu@samsung.com>
Tue, 19 Sep 2017 06:53:22 +0000 (14:53 +0800)
committerGu Weiyi <w.gu@samsung.com>
Tue, 19 Sep 2017 06:53:27 +0000 (14:53 +0800)
Change-Id: I662ae2ecca32ce9e439d8a85a4d4bc5221979da6
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 afb641c670e6d1d5e2aa05e8644c7f55175d2839..a518d3a3fdbfd3e2c1c9d7bd0ccec28ffc30736d 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 ea1eed660f374ba51a7a22416af950583d5f0120..5b31bd57b3c8cda4826082127187ccba505ceb41 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 15baea43a83a746f1144d6e105466099ce9d5b20..70680a41975c6d1703af621419c1bc1b96f5d161 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 2aa72e73a211943923e3c550ccb5858ca69b6dd0..a3ff77e758575f3912e46f65545140b819ffce09 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 9a0f395dd0d443148f038476a867fcfbeca4d6e7..b5eb15d90815280e4205bd0e5edefac3d806d69d 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 93653745af3562f0fb523a62bc7bf0e722b5bb02..60915617f73fe1558ff53dcd70da23322e9df96e 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 ebe5e6e483c386391e61563f8b1d492d1e840005..2170c5bcc246c64e297a985c1d5657c2d06d8f19 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 f2b474feb100022c25092b48e9f94463796b0a8f..b206326fb02853ff16889835825164d07267966b 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 66efe1705b5155e369e26001f4cf35bb3398c492..2f30afe7ef7b449adc30f31c4c7d7392c62cb3e0 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 cb0d909ac199baf11bc717bc6b1fa4207c029257..3105eed471b0d86cc87c09fcda33a34a23515499 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 ee392446a9ba1667d7c54fa9b2248bbf78b6ab09..445086233bcff618dc52134398cdff789f4bb9e6 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 056e2aa929b91c386ea9804ad7ec6bc35bb18068..07eaf2b0570c30ad42ff2819512b0006cb4a0be4 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 210de3fd4631b976fd35ffdcd73aa2b2d352533e..d31c247e088bdc58dc1bbf7bc129fa18c3962dee 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 21b20d38fd873011a15091053184170e8c6daf36..b9e96a764b5e7ea65f7dff7ca7c76085e168b00a 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 8d87ec430e2dbbf283aabd55607c58cc80189ff5..acc8b9741b7841f5f1200c78fb99984061c5d4c4 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 ed7b809b1c04c8572bb93811e81546e322199823..0e4ddd28b4769b070ae3a469eac63741f669ae8a 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>