test/sun/security/tools/policytool/i18n.html
Print this page
rev 7201 : 8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound.
8015276: TEST_BUG: The 'ptool.test' can't be saved in the 'tmp' folder.
*** 13,26 ****
(you can read all the english text fine).
If at any time an exception is thrown, or if any message
is incomprehensible, then the test failed. Otherwise,
the test passed.
<p>
Press "Pass" if ... press "Fail" otherwise.
<p>
<ol start="0">
! <li> If testing on Windows, create a temporary directory. (Example: C:\foo\tmp)
<li> Pull down the 'File' and 'KeyStore' menus and check values
<li> Pull down 'File' menu and select 'View Warning Log'. Confirm FileNotFound.
<li> Pull down 'File' menu and select 'New'.
<li> Pull down 'File' menu and select 'View Warning Log'. Confirm empty.
<li> Click on 'Add Policy Entry' and check pop-up window
--- 13,31 ----
(you can read all the english text fine).
If at any time an exception is thrown, or if any message
is incomprehensible, then the test failed. Otherwise,
the test passed.
<p>
+ <b>Attention</b>: This test would fail if there is a ".java.policy"
+ file in your home direcory. If you have one there, please remove it
+ and restart the test.
+ <p>
Press "Pass" if ... press "Fail" otherwise.
<p>
<ol start="0">
! <li> Find (or create) a temporary directory that you have write access to.
! (Example: 'C:\foo\tmp' on Windows or '/tmp' on other systems)
<li> Pull down the 'File' and 'KeyStore' menus and check values
<li> Pull down 'File' menu and select 'View Warning Log'. Confirm FileNotFound.
<li> Pull down 'File' menu and select 'New'.
<li> Pull down 'File' menu and select 'View Warning Log'. Confirm empty.
<li> Click on 'Add Policy Entry' and check pop-up window
*** 54,73 ****
and check pop-up window
<li> Do not remove the entry, click 'Cancel'.
<li> Pull down 'File' menu and select 'Exit'. Confirm Save option.
Click 'Cancel'.
<li> Select 'File' menu value 'Save' and enter "/tmp/policy1" as the filename.<br>
! If testing on Windows, use the temporary directory created in Step 0.
! (Example: Save as "C:\foo\tmp\policy1")<br>
Check status message.
<li> Select 'File' menu value 'New'
<li> Click 'Add Policy Entry', type in "hello" for 'SignedBy' field,
click 'Done'. Confirm warning.
<li> Select 'File' menu value 'Open' and confirm save option
(do not save changes)
! <li> Type "/tmp/policy1" (if Windows, "C:\foo\tmp\policy1") for the filename
! and confirm warning message<br>
<li> Pull down 'File' menu, select 'View Warning Log'
and confirm KeyStore alias warning
<li> Pull down 'KeyStore' menu and select 'Edit'
<li> Enter 'foo' as KeyStore URL and check error
<li> Using keytool create JKS keystore
--- 59,79 ----
and check pop-up window
<li> Do not remove the entry, click 'Cancel'.
<li> Pull down 'File' menu and select 'Exit'. Confirm Save option.
Click 'Cancel'.
<li> Select 'File' menu value 'Save' and enter "/tmp/policy1" as the filename.<br>
! (Or use the temporary directory mentioned in Step 0 if it's not '/tmp'.
! For example, "C:\foo\tmp\policy1" on Windows)<br>
Check status message.
<li> Select 'File' menu value 'New'
<li> Click 'Add Policy Entry', type in "hello" for 'SignedBy' field,
click 'Done'. Confirm warning.
<li> Select 'File' menu value 'Open' and confirm save option
(do not save changes)
! <li> Type "/tmp/policy1" (Or use the temporary directory mentioned in Step 0
! if it's not '/tmp'. For example, "C:\foo\tmp\policy1" on Windows)
! for the filename and confirm warning message<br>
<li> Pull down 'File' menu, select 'View Warning Log'
and confirm KeyStore alias warning
<li> Pull down 'KeyStore' menu and select 'Edit'
<li> Enter 'foo' as KeyStore URL and check error
<li> Using keytool create JKS keystore
*** 83,97 ****
<li> Enter URL with good password. Should succeed.
<li> Pull down 'KeyStore' menu and select 'Edit'
<li> Confirm URL, Type, Provider, and Password URL values.
<li> Click OK
<li> Pull down 'File' menu and select 'Save As'. Enter "/tmp/policy2"
! (if Windows, "C:\foo\tmp\policy2").
Confirm status message.<br>
<li> Pull down 'File' menu and select 'New'.
<li> Pull down 'File' menu and select 'Open'. Enter "/tmp/policy2"
! (if Windows, "C:\foo\tmp\policy2").
Confirm warning message.<br>
<li> Click on 'Add Policy Entry', enter Codebase 'http://foo',
SignedBy 'bar'. Click on 'Done' and confirm alias warning.
<li> Double-Click on just created policy entry, confirm edit window appears.
<li> Change SignedBy to an alias in previously created keystore.
--- 89,105 ----
<li> Enter URL with good password. Should succeed.
<li> Pull down 'KeyStore' menu and select 'Edit'
<li> Confirm URL, Type, Provider, and Password URL values.
<li> Click OK
<li> Pull down 'File' menu and select 'Save As'. Enter "/tmp/policy2"
! (Or use the temporary directory mentioned in Step 0 if it's not '/tmp'.
! For example, "C:\foo\tmp\policy2" on Windows).
Confirm status message.<br>
<li> Pull down 'File' menu and select 'New'.
<li> Pull down 'File' menu and select 'Open'. Enter "/tmp/policy2"
! (Or use the temporary directory mentioned in Step 0 if it's not '/tmp'.
! For example, "C:\foo\tmp\policy2" on Windows).
Confirm warning message.<br>
<li> Click on 'Add Policy Entry', enter Codebase 'http://foo',
SignedBy 'bar'. Click on 'Done' and confirm alias warning.
<li> Double-Click on just created policy entry, confirm edit window appears.
<li> Change SignedBy to an alias in previously created keystore.
*** 119,130 ****
<li> Click on 'Add Permission', and add any FilePermission.
<li> Click on 'Done' in Policy Entry window. Confirm alias warning.
<li> Confirm entries in main window listing.
<li> Select 'File' menu value 'Exit'
<li> Save Changes, confirm status message.
! <li> If testing on Windows, delete the temporary directory and its contents
! created during this test.
! </ol>
<p>
</body>
</html>
--- 127,137 ----
<li> Click on 'Add Permission', and add any FilePermission.
<li> Click on 'Done' in Policy Entry window. Confirm alias warning.
<li> Confirm entries in main window listing.
<li> Select 'File' menu value 'Exit'
<li> Save Changes, confirm status message.
! <li> Delete the files created during this test. If the temporary directory
! is also newly created, empty and delete it.</ol>
<p>
</body>
</html>