jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Jenkins and tests
Date Fri, 18 Nov 2011 22:18:51 GMT
On 18 November 2011 20:59, Philippe Mouawad <philippe.mouawad@gmail.com> wrote:
> Ok I understood due to
>
> -Djava.awt.headless=true

Yes, this is because some tests require a system that provides GUI
support, even if the tests don't actually create a GUI.

> But when I add it on my computer I get this:

Not sure why you get the error on your system.

The test runs fine on mine (WinXP/Java 1.6.0_29).

>  [java] Time: 24.26
>     [java] There was 1 error:
>     [java] 1) testMenu(org.apache.jmeter.gui.util.TestMenuFactory)java.lang.ExceptionInInitializerError
>     [java]     at
> org.apache.jmeter.gui.util.TestMenuFactory.testMenu(TestMenuFactory.java:38)
>     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     [java]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     [java]     at org.apache.jorphan.test.AllTests.main(AllTests.java:232)
>     [java] Caused by: java.awt.HeadlessException
>     [java]     at java.awt.dnd.DropTarget.<init>(DropTarget.java:79)
>     [java]     at java.awt.dnd.DropTarget.<init>(DropTarget.java:125)
>     [java]     at
> com.apple.laf.AquaFileChooserUI.installListeners(AquaFileChooserUI.java:165)
>     [java]     at
> com.apple.laf.AquaFileChooserUI.installUI(AquaFileChooserUI.java:122)
>     [java]     at javax.swing.JComponent.setUI(JComponent.java:662)
>     [java]     at javax.swing.JFileChooser.updateUI(JFileChooser.java:1798)
>     [java]     at javax.swing.JFileChooser.setup(JFileChooser.java:360)
>     [java]     at javax.swing.JFileChooser.<init>(JFileChooser.java:333)
>     [java]     at javax.swing.JFileChooser.<init>(JFileChooser.java:286)
>     [java]     at
> org.apache.jmeter.protocol.smtp.sampler.gui.SmtpPanel.initComponents(SmtpPanel.java:539)
>     [java]     at
> org.apache.jmeter.protocol.smtp.sampler.gui.SmtpPanel.<init>(SmtpPanel.java:112)
>     [java]     at
> org.apache.jmeter.protocol.smtp.sampler.gui.SmtpSamplerGui.makeDataPanel(SmtpSamplerGui.java:183)
>     [java]     at
> org.apache.jmeter.protocol.smtp.sampler.gui.SmtpSamplerGui.init(SmtpSamplerGui.java:163)
>     [java]     at
> org.apache.jmeter.protocol.smtp.sampler.gui.SmtpSamplerGui.<init>(SmtpSamplerGui.java:47)
>     [java]     at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>     [java]     at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>     [java]     at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>     [java]     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>     [java]     at java.lang.Class.newInstance0(Class.java:355)
>     [java]     at java.lang.Class.newInstance(Class.java:308)
>     [java]     at
> org.apache.jmeter.gui.util.MenuFactory.initializeMenus(MenuFactory.java:450)
>     [java]     at
> org.apache.jmeter.gui.util.MenuFactory.<clinit>(MenuFactory.java:157)
>     [java]     ... 19 more
>     [java] FAILURES!!!
>
>
> Regards
> Philippe
>
>
>
> On Fri, Nov 18, 2011 at 9:50 PM, Philippe Mouawad <
> philippe.mouawad@gmail.com> wrote:
>
>> Hello Sebb,
>> There is something I don't understand in Jenkins console output.
>>
>> It says it has run :
>>
>> [java] Creating test suite
>>      [java] Scanning build/test for test cases
>>      [java] ClassFinder found: 87 TestCase classes
>>      [java] o.a.j.junit.JMeterTest INFO: JMeterGUIComponent: skipping some tests
org.apache.jmeter.testbeans.gui.TestBeanGUI
>>      [java] o.a.j.junit.JMeterTest Error creating org.apache.jmeter.functions.gui.FunctionHelper
java.awt.HeadlessException
>>      [java] o.a.j.junit.JMeterTest Error creating org.apache.jmeter.gui.MainFrame
java.awt.HeadlessException
>>      [java] o.a.j.junit.JMeterTest Error creating org.apache.jmeter.gui.ReportMainFrame
java.awt.HeadlessException
>>      [java] o.a.j.junit.JMeterTest Error creating org.apache.jmeter.gui.SavePropertyDialog
java.awt.HeadlessException
>>      [java] o.a.j.junit.JMeterTest Error creating org.apache.jmeter.gui.action.SearchTreeDialog
java.awt.HeadlessException
>>      [java] Last class=org.apache.jmeter.gui.util.JMeterMenuBar
>>      [java] objects.size=104
>>      [java] Last error=java.awt.HeadlessException
>>      [java] Error adding test for class org.apache.jmeter.junit.JMeterTest java.lang.reflect.InvocationTargetException
>>      [java] Created: 86 tests including 7 suites
>>      [java] Starting test run, test count = 1202
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .........................................
>>      [java] .............
>>      [java] Time: 21.835
>>      [java]
>>      [java] OK (1202 tests)
>>
>>
>>
>>
>> And when I run it on my computer:
>>      [java] Time: 27,569
>>      [java] OK (2105 tests)
>>
>>
>> Is there some issue in the configuration ?
>>
>> Thanks
>>
>> --
>> Regards.
>> Philippe .
>>
>>
>>
>>
>
>
> --
> Cordialement.
> Philippe Mouawad.
>

Mime
View raw message