Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8059212

Modify sun/security/smartcardio manual regression tests so that they do not just fail if no cardreader found

    Details

      Backports

        Description

        Now manual regtest in sun/security/smartcardio just fail if there is no cardreader exists in the tested system.
        The person who runs manual tests cannot see any instructions how to run these tests.

        If these tests are JTREG manual, they should have graphical instructions for the tester.

        Please, implement graphical instructions for these tests. You can take java classes with graphical instructions implementation from JTREG manual client tests (java/awt or javax/swing or javax/sound).

        Another variant is to make them just pass if no cardreader is found in the system.

          Issue Links

            Activity

            Hide
            kshefov Konstantin Shefov added a comment -
            Affected tests:

            runner starting test: sun/security/smartcardio/TestChannel.java
            runner finished test: sun/security/smartcardio/TestChannel.java
            Failed. Execution failed: `main' threw exception: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: PC/SC, provider: SunPCSC, class: sun.security.smartcardio.SunPCSC$Factory)
            runner starting test: sun/security/smartcardio/TestConnect.java
            runner finished test: sun/security/smartcardio/TestConnect.java
            Failed. Execution failed: `main' threw exception: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: PC/SC, provider: SunPCSC, class: sun.security.smartcardio.SunPCSC$Factory)
            runner starting test: sun/security/smartcardio/TestConnectAgain.java
            runner finished test: sun/security/smartcardio/TestConnectAgain.java
            Failed. Execution failed: `main' threw exception: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: PC/SC, provider: SunPCSC, class: sun.security.smartcardio.SunPCSC$Factory)
            runner starting test: sun/security/smartcardio/TestControl.java
            runner finished test: sun/security/smartcardio/TestControl.java
            Failed. Execution failed: `main' threw exception: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: PC/SC, provider: SunPCSC, class: sun.security.smartcardio.SunPCSC$Factory)
            runner starting test: sun/security/smartcardio/TestDefault.java
            runner finished test: sun/security/smartcardio/TestDefault.java
            Failed. Execution failed: `main' threw exception: java.lang.Exception: no terminals
            runner starting test: sun/security/smartcardio/TestDirect.java
            runner finished test: sun/security/smartcardio/TestDirect.java
            Failed. Execution failed: `main' threw exception: java.lang.Exception: No card terminals available
            runner starting test: sun/security/smartcardio/TestExclusive.java
            runner finished test: sun/security/smartcardio/TestExclusive.java
            Failed. Execution failed: `main' threw exception: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: PC/SC, provider: SunPCSC, class: sun.security.smartcardio.SunPCSC$Factory)
            runner starting test: sun/security/smartcardio/TestMultiplePresent.java
            runner finished test: sun/security/smartcardio/TestMultiplePresent.java
            Failed. Execution failed: `main' threw exception: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: PC/SC, provider: SunPCSC, class: sun.security.smartcardio.SunPCSC$Factory)
            runner starting test: sun/security/smartcardio/TestPresent.java
            runner finished test: sun/security/smartcardio/TestPresent.java
            Failed. Execution failed: `main' threw exception: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: PC/SC, provider: SunPCSC, class: sun.security.smartcardio.SunPCSC$Factory)
            runner starting test: sun/security/smartcardio/TestTransmit.java
            runner finished test: sun/security/smartcardio/TestTransmit.java
            Failed. Execution failed: `main' threw exception: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: PC/SC, provider: SunPCSC, class: sun.security.smartcardio.SunPCSC$Factory)
            Test results: failed: 10
            Show
            kshefov Konstantin Shefov added a comment - Affected tests: runner starting test: sun/security/smartcardio/TestChannel.java runner finished test: sun/security/smartcardio/TestChannel.java Failed. Execution failed: `main' threw exception: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: PC/SC, provider: SunPCSC, class: sun.security.smartcardio.SunPCSC$Factory) runner starting test: sun/security/smartcardio/TestConnect.java runner finished test: sun/security/smartcardio/TestConnect.java Failed. Execution failed: `main' threw exception: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: PC/SC, provider: SunPCSC, class: sun.security.smartcardio.SunPCSC$Factory) runner starting test: sun/security/smartcardio/TestConnectAgain.java runner finished test: sun/security/smartcardio/TestConnectAgain.java Failed. Execution failed: `main' threw exception: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: PC/SC, provider: SunPCSC, class: sun.security.smartcardio.SunPCSC$Factory) runner starting test: sun/security/smartcardio/TestControl.java runner finished test: sun/security/smartcardio/TestControl.java Failed. Execution failed: `main' threw exception: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: PC/SC, provider: SunPCSC, class: sun.security.smartcardio.SunPCSC$Factory) runner starting test: sun/security/smartcardio/TestDefault.java runner finished test: sun/security/smartcardio/TestDefault.java Failed. Execution failed: `main' threw exception: java.lang.Exception: no terminals runner starting test: sun/security/smartcardio/TestDirect.java runner finished test: sun/security/smartcardio/TestDirect.java Failed. Execution failed: `main' threw exception: java.lang.Exception: No card terminals available runner starting test: sun/security/smartcardio/TestExclusive.java runner finished test: sun/security/smartcardio/TestExclusive.java Failed. Execution failed: `main' threw exception: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: PC/SC, provider: SunPCSC, class: sun.security.smartcardio.SunPCSC$Factory) runner starting test: sun/security/smartcardio/TestMultiplePresent.java runner finished test: sun/security/smartcardio/TestMultiplePresent.java Failed. Execution failed: `main' threw exception: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: PC/SC, provider: SunPCSC, class: sun.security.smartcardio.SunPCSC$Factory) runner starting test: sun/security/smartcardio/TestPresent.java runner finished test: sun/security/smartcardio/TestPresent.java Failed. Execution failed: `main' threw exception: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: PC/SC, provider: SunPCSC, class: sun.security.smartcardio.SunPCSC$Factory) runner starting test: sun/security/smartcardio/TestTransmit.java runner finished test: sun/security/smartcardio/TestTransmit.java Failed. Execution failed: `main' threw exception: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: PC/SC, provider: SunPCSC, class: sun.security.smartcardio.SunPCSC$Factory) Test results: failed: 10
            Hide
            kshefov Konstantin Shefov added a comment - - edited
            RULE sun/security/smartcardio/TestDirect.java Exception java.lang.Exception: No card terminals available
            Show
            kshefov Konstantin Shefov added a comment - - edited RULE sun/security/smartcardio/TestDirect.java Exception java.lang.Exception: No card terminals available
            Hide
            pchopra Pooja Chopra (Inactive) added a comment -
            RULE sun/security/smartcardio/TestDirect.java Exception javax.smartcardio.CardException: list() failed

            RULE sun/security/smartcardio/TestDirect.java Exception sun.security.smartcardio.PCSCException: SCARD_E_NO_READERS_AVAILABLE
            Show
            pchopra Pooja Chopra (Inactive) added a comment - RULE sun/security/smartcardio/TestDirect.java Exception javax.smartcardio.CardException: list() failed RULE sun/security/smartcardio/TestDirect.java Exception sun.security.smartcardio.PCSCException: SCARD_E_NO_READERS_AVAILABLE
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/f106f8f0a7b0
            User: igerasim
            Date: 2016-02-11 21:22:51 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/f106f8f0a7b0 User: igerasim Date: 2016-02-11 21:22:51 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/f106f8f0a7b0
            User: lana
            Date: 2016-02-17 20:42:45 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/f106f8f0a7b0 User: lana Date: 2016-02-17 20:42:45 +0000

              People

              • Assignee:
                igerasim Ivan Gerasimov
                Reporter:
                kshefov Konstantin Shefov
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: