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

JTReg is hiding real failure message when testNG test is running

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • None
    • tools
    • None

      When my testng test fails, I'm getting the following non-specific error message:

      java.lang.Exception: failures: 1
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:223)
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:184)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.lang.Thread.run(Thread.java:747)

      JavaTest Message: Test threw exception: java.lang.Exception: failures: 1
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.Exception: failures: 1


      This very inconvenient as it is hiding the real cause of the failure. Automated tools such as Aurora won't be able to distinguish different failures because of this happening.

            jjg Jonathan Gibbons
            mrkam Alexander Kuznetcov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: