Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » Error when I execute test (ERROR main-o.e.j.client.internal.impl.AUTImpl.execute:192 - null)
Error when I execute test [message #1775067] Tue, 24 October 2017 09:58 Go to next message
Rdg Kentin is currently offline Rdg KentinFriend
Messages: 6
Registered: September 2017
Junior Member
Hey ! I have write a test just for menu bar.

    @Test
    public void runMenuBarTest() {
        logger.info("Test starting...");
        try {
            menuBar = SwingComponents.createJMenuBar();
            aut.execute(menuBar.selectMenuEntryByTextpath("File/Exit", Operator.equals), null);
            Assert.assertTrue(true);
        } catch (Exception e) {
            logger.debug("Problem with run test : ", e);
            Assert.assertTrue(false);
        }
    }


I don't understand why it return this message error :
11:47:37.890 ERROR main-o.e.j.client.internal.impl.AUTImpl.execute:192 - null
java.lang.InterruptedException: null
	at java.util.concurrent.Exchanger.exchange(Exchanger.java:628)
	at org.eclipse.jubula.client.internal.impl.AUTImpl.execute(AUTImpl.java:172)
	at fr.soleil.jubulaapi.RunMenuBarTest.runMenuBarTest(RunMenuBarTest.java:88)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:105)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:94)
	at fr.soleil.jubulaapi.LaunchTest.<init>(LaunchTest.java:80)
	at fr.soleil.jubulaapi.LaunchTest.main(LaunchTest.java:118)
11:47:37.893 DEBUG main-fr.soleil.jubulaapi.RunMenuBarTest.runMenuBarTest:91 - Problem with run test : 
org.eclipse.jubula.client.exceptions.CommunicationException: java.lang.InterruptedException
	at org.eclipse.jubula.client.internal.impl.AUTImpl.execute(AUTImpl.java:193)
	at fr.soleil.jubulaapi.RunMenuBarTest.runMenuBarTest(RunMenuBarTest.java:88)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:105)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:94)
	at fr.soleil.jubulaapi.LaunchTest.<init>(LaunchTest.java:80)
	at fr.soleil.jubulaapi.LaunchTest.main(LaunchTest.java:118)
Caused by: java.lang.InterruptedException: null
	at java.util.concurrent.Exchanger.exchange(Exchanger.java:628)
	at org.eclipse.jubula.client.internal.impl.AUTImpl.execute(AUTImpl.java:172)
	... 33 common frames omitted
E
Time: 13,798
There was 1 failure:


Need help please ! Thanks, best regards
Re: Error when I execute test [message #1776054 is a reply to message #1775067] Fri, 10 November 2017 07:51 Go to previous message
Marvin Mueller is currently offline Marvin MuellerFriend
Messages: 114
Registered: March 2012
Senior Member
Hello,

It might be that no connection to the AUT is made. Do you have any @BeforeTest or something similar which is startinc/connection to the AUT?

with regards Marvin Müller
Previous Topic:Updating AUT to oxygen failed
Next Topic:Jubula API JAVA Swing "Timeout received" & "ActionException"
Goto Forum:
  


Current Time: Sat Sep 22 17:48:08 GMT 2018

Powered by FUDForum. Page generated in 0.01762 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top