-
Bug
-
Resolution: Unresolved
-
P4
-
8, 11, 23, 24
The java/awt/print/PrinterJob/PrintNullString.java tests Graphics2D.drawString API and it displays the result of test on the screen and on printer.
As it was noted during code review [1][2] forJDK-8333360, the test can be automated to some extent.
The PrintNullString.java can't be automated completely: the tester has to click Print / OK button in the Print dialog.
Other aspects of the test can be automated. The test code already detects a failure and reports it on the screen or on paper, thus the test can fail automatically if a failure condition is found.
However, the first part where it paints on the screen can be fully automated. It could be moved to an independent test.
These improvements to the test can be combined with fixing JDK-8333026, or the test can be updated separately.
When adding automatic features, pay attention to the tester too, let them know the test is going to fail automatically because a failure is detected.
[1] https://github.com/openjdk/jdk/pull/19540#pullrequestreview-2108672182
[2] https://github.com/openjdk/jdk/pull/19540#issuecomment-2159232777
As it was noted during code review [1][2] for
The PrintNullString.java can't be automated completely: the tester has to click Print / OK button in the Print dialog.
Other aspects of the test can be automated. The test code already detects a failure and reports it on the screen or on paper, thus the test can fail automatically if a failure condition is found.
However, the first part where it paints on the screen can be fully automated. It could be moved to an independent test.
These improvements to the test can be combined with fixing JDK-8333026, or the test can be updated separately.
When adding automatic features, pay attention to the tester too, let them know the test is going to fail automatically because a failure is detected.
[1] https://github.com/openjdk/jdk/pull/19540#pullrequestreview-2108672182
[2] https://github.com/openjdk/jdk/pull/19540#issuecomment-2159232777
- relates to
-
JDK-8333026 java/awt/print/PrinterJob/PrintNullString.java failed: FAILURE: No IAE for empty iterator, int
- Open
-
JDK-8333360 PrintNullString.java doesn't use float arguments
- Resolved