JDK-8317116 : Provide layouts for multiple test UI in PassFailJFrame
  • Type: Enhancement
  • Component: client-libs
  • Affected Version: 22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-09-27
  • Updated: 2024-11-04
  • Resolved: 2024-10-02
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 11 JDK 17 JDK 21 JDK 23 JDK 24 JDK 8
11.0.26-oracleFixed 17.0.14-oracleFixed 21.0.6-oracleFixed 23.0.2Fixed 24 b18Fixed 8u441Fixed
Related Reports
Blocks :  
Blocks :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
JDK-8294156 allows creating and adding multiple test UI frames as part of PassFailJFrame. As mentioned in the code review [1], the framework should provide a few simple layout managers to position the test UI.

The demos [2] for the testUI feature provide implementations which need to be refined.

A quote from the demo layouts [3]:

“I didn't even think about not providing any default implementations of positionTestUI — that's the idea! The framework should support simple layouts.

“Implementing common layouts each time they're used would be a waste of time.

“A method reference to an implementation in PassFailJFrame could be passed. Alternatively, we can add helper methods to builder which selects the Position and positionTestUI.

“The code in TwoWindowsHH.java and TwoWindowsHV.java needs refining. Yet it's a great foundation.”


[1] https://github.com/openjdk/jdk/pull/15665#discussion_r1323491246
[2] https://github.com/openjdk/jdk/pull/15721
[3] https://github.com/openjdk/jdk/pull/15721#discussion_r1326082796
Comments
Fix request [17u,21u] I backport this for parity with 17.0.14-oracle,21.0.6-oracle. No risk, only a test change Clean backport. Executed a test using PassFailJFrame to check. SAP nightly testing passed.
02-11-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/3019 Date: 2024-10-31 19:33:43 +0000
31-10-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/1114 Date: 2024-10-31 19:31:08 +0000
31-10-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk23u/pull/172 Date: 2024-10-14 20:07:31 +0000
14-10-2024

Fix Request for 23u Allows convenient positioning of multiple test UI windows in manual tests which use the PassFailJFrame framework. Risk: Low
07-10-2024

Changeset: 85f04427 Branch: master Author: Alexey Ivanov <aivanov@openjdk.org> Date: 2024-10-02 15:16:32 +0000 URL: https://git.openjdk.org/jdk/commit/85f0442727201e0d36ed0a71d2199e602501c98d
02-10-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/21207 Date: 2024-09-26 12:58:34 +0000
26-09-2024