assertj-swing icon indicating copy to clipboard operation
assertj-swing copied to clipboard

Test stability issues when using Fest-Swing under Linux

Open croesch opened this issue 11 years ago • 13 comments

Issue by Tanguy De Waele from Fri, 30 Apr 2010 06:58:20 -0500 Originally opened as http://jira.codehaus.org/browse/FEST-333


Hello,

While running our test suites (more than 900 functional GUI tests) under Redhat Linux, tests get blocked at some (random) point with no exceptions thrown on the console.

We had a look at the stacktrace and figured out that is related to ScreenLock class. See attached file: FestStack02.txt.

We are also running these tests under Windows XP and got no problems.

Note: our application is multi-threaded.

Seems to be similar to FEST-98.


votes (original issue): 3 watches (original issue): 4

croesch avatar Feb 08 '14 12:02 croesch

Comment by festuser from Fri, 30 Apr 2010 06:58:20 -0500


Attachment FestStack02.txt (size=10791)

croesch avatar Feb 08 '14 12:02 croesch

Comment by theoamonteiro from Wed, 16 May 2012 07:20:26 -0500


Is there any news on the subject? It isn't clear where the bug is fixed. How do I get the bug fixed version? is there any workaround?

We are experiencing FEST just stuck under a SUSE with Xvfb. We use Jenkins to CI and x11vnc to follow the execution status. Very often FEST gets stuck before executing something like clicking a button and the test just hangs. Using jconsole shows some thread just blocks. Repeated executions crash in different test suites.

Our environment is a SUSE Linux Enterprise Server 11 (x86_64):
Linux 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/Linux
Jenkins 1.445
java version "1.6.0_14" Java(TM) SE Runtime Environment (build 1.6.0_14-b08) from jdk-6u14-linux-i586-rpm.bin
And Xvfb provided from the package xorg-x11-server-extra-7.5_1.8.0-9.4.x86_64
Apache Maven 3.0.4 (r1232337; 2012-01-17 05:44:56-0300)

P.S.: Sorry for any language mistake. No native English speaker.

croesch avatar Feb 08 '14 12:02 croesch

Comment by rkennke from Wed, 16 May 2012 09:50:34 -0500


You might want to give Cacio a try. http://rkennke.wordpress.com/2012/05/08/how-to-use-cacio-tta-with-fest-for-java-gui-testing/

croesch avatar Feb 08 '14 12:02 croesch

Comment by theoamonteiro from Thu, 17 May 2012 14:08:05 -0500


I would like, but I am stuck with java 1.6u14.

croesch avatar Feb 08 '14 12:02 croesch

Comment by gschrader from Fri, 19 Oct 2012 14:41:22 -0500


I've hit this using Cacio as well. It gets blocked at ScreenLock.acquire as well. This might be a pain to track down as the test in question works fine if run standalone or part of a small test suite but fails sometimes on a large suite.

croesch avatar Feb 08 '14 12:02 croesch

Comment by gschrader from Mon, 22 Oct 2012 18:10:54 -0500


Disregard my previous comment, it turned out we had a test that caused the robot.cleanUp() not to be called. Not sure if that might be the case for Theo or not as well.

croesch avatar Feb 08 '14 12:02 croesch

I also face same issue..were you able to resolve this issue? I face this problem in Linux with VNC

rkaliyug avatar Jan 26 '16 17:01 rkaliyug

Not yet worked on this issue. These comments were generated automatically by importing the issue. So is it the exact same problem? Tests block without exception?

croesch avatar Feb 15 '16 09:02 croesch

Yes. same issue. VNC session where Fest test running is hanging

rkaliyug avatar Feb 15 '16 10:02 rkaliyug

This is happening intermittetly not always

rkaliyug avatar Feb 15 '16 10:02 rkaliyug

Could you provide some thread dumps?

croesch avatar Feb 15 '16 12:02 croesch

Facing similar issue when executing more than one testcases, where at the end of each testcase a dialog box is opened and one of the button is clicked. Issue is random.

DialogFixture saveChangesDialog = WindowFinder.findDialog(SAVE).using(robot);
String buttonText = saveChanges ? "Yes" : "No"; saveChangesDialog.button(JButtonMatcher.withText(buttonText)).click();

and assert condition is: assertThat(ComponentVisibleQuery.isVisible(target)).isFalse();

aks02aks-aashish avatar Sep 20 '17 23:09 aks02aks-aashish

I'm having the same issue when running large test suites under linux. Usually the problem arises when I'm testing a view which opens a dialog with some buttons and my testcode tries to click them. No exceptions are thrown, and screenshot from UI shows that everything shouls be ok.

timoheinonen avatar Sep 29 '17 09:09 timoheinonen