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

Make PrintNullString.java semi-automatic

XMLWordPrintable

      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] for JDK-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

            rkannathpari Renjith Kannath Pariyangad
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: