Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-4676482

JTreg doesn't call validate() on applet-type tests.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • jtreg3.2.2
    • jt2.1.5, jt2.1.6
    • tools
    • None
    • fcs
    • generic, sparc
    • generic, solaris_7

      When JTreg starts applet test it calls Applet.init() then
      Applet.start(). It doesn't call Applet.validate(). This call is very
      desirable for the automatic tests - these kind of tests should contain
      all the logic (including GUI) inside of start() method and so after
      the exit from start() applet is considered finished its work. If
      validate() wasn't called before start() then sometimes the GUI is not
      visible.

      Note that JTreg behaves differently than AppletViewer does which calls
      validate() after init() and after start() and while applet tests are
      not guaranteed to run similiarly on both AppletViewer and JTreg it is
      desirable behavior.

      Generally speaking JTreg's AppletWrapper doesn't to conform to
      AppletViewer's logic in some aspects and it would be useful if it will
      be made to conform to AppletViewer as much as possible.

            jjg Jonathan Gibbons
            peterz Peter Zhelezniakov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: