JDK-8059212 : Modify sun/security/smartcardio manual regression tests so that they do not just fail if no cardreader found
  • Type: Enhancement
  • Component: security-libs
  • Sub-Component: javax.smartcardio
  • Affected Version: 7u80,8,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2014-09-26
  • Updated: 2017-11-29
  • Resolved: 2016-02-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 JDK 9 Other
7u131Fixed 8u121Fixed 9 b106Fixed openjdk7uFixed
Related Reports
Duplicate :  
Relates :  
Relates :  
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.
Comments
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
29-10-2014

RULE sun/security/smartcardio/TestDirect.java Exception java.lang.Exception: No card terminals available
26-09-2014

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
26-09-2014