Questions tagged [fest]

FEST (Fixtures for Easy Software Testing) is a collection of APIs to facilitate Java software testing. FEST contains a fluent API for reflection, assertion and interacting with SWING GUI Components. It can be used within JUnit and TestNG.

See the FEST home page.

91 questions
0
votes
1 answer

Instantiating a new instance of the RobotFixture to pass into a constructor

I'm trying to create a new JPopupMenuFixture by passing a JPopupMenu (testJPopupMenu) to it as below: JPopupMenuFixture jpopupMenuFixture = new JPopupMenuFixture(new RobotFixture, testJPopupMenu); though i'm unsure how to instantiate a new instance…
van
  • 9,159
  • 19
  • 60
  • 93
0
votes
1 answer

FESTassertThat() method incorrect behavior

I'm running the assertThat() method in the FEST library. But don't understand the runtime behaviour for the code below which runs in a while loop. assertThat(Priority >= nextPriority); At runtime Priority = 1 and nextPriority = 2, but when I debug…
van
  • 9,159
  • 19
  • 60
  • 93
0
votes
1 answer

Java Fest consuming console output

I'm trying out testing Java Swing with Fest. My problem is that closing the frame fixture ( frameFixture.close() ) as a part of @After tearDown() method of my tests somehow blocks/hides/consumes (don't know which one) the console output from the…
Puchatek
  • 1,477
  • 3
  • 15
  • 33
0
votes
1 answer

Can automated GUI test cases written for project without entry point (without main class)?

I am working on a project where there is no necessity of having an entry point (without a main class). I have been thinking about implementing few GUI test cases using FEST or Jemmy (using NetBeans IDE). Is it possible to automate GUI tests without…
0
votes
1 answer

Java: Runtime.getRuntime().exec() - how to get reference to launched programs JFrame?

When launching a Java program like this (or equivalent): Runtime.getRuntime().exec("java -jar someJar.jar") Is it possible to get a reference to the JFrame of the launched program so it can be automated with libraries like FEST (e.g in tests)? It's…
johnrl
  • 583
  • 6
  • 17
0
votes
2 answers

Android Test - With FEST - isEquals result

I would like to know how would be the implementation to compare 2 equal results (int). I looked for FEST documentation, but I just could find a few tutorials. When implementing with assertThat, I cannot find the right implementation to compare same…
0
votes
2 answers

how to express this special array assertion in code?

I am currently using FEST or AssertJ for assertion. and I run into a knot that I want to assert the flowing array: [1,2,2,2,2,2,2] So how do I write the assertion like assertThat(arr).contains(1,atIndex(0)).containsTheOthers(2) I don't see…
WeiChing 林煒清
  • 4,452
  • 3
  • 30
  • 65
0
votes
1 answer

Failing to run FEST Swing tests on Jenkins

I'm trying to run FEST Swing tests on Jenkins as a service on Windows 7. I have already allowed the service to interect with the desktop with the necessary permission to do so. It was no use, though. Most of what I found on the internet either shows…
0
votes
1 answer

Why this code from Fest showing error?

I am trying to learn Java Fest. I took the piece of code from : http://docs.codehaus.org/display/FEST/Getting+Started import org.testng.annotations.*; import org.fest.swing.fixture.FrameFixture; public class FirstGUITest { private FrameFixture…
narayanpatra
  • 5,627
  • 13
  • 51
  • 60
0
votes
1 answer

How to use FEST tests with Groovy's GMock framework

I'm trying to use FEST swing test suite to write test for different interface responses. In single class situations it works very well. However, now I have a situation where I have am using GMockTestCase. I set up all the mocked method calls with…
TroyB
  • 195
  • 1
  • 14
0
votes
1 answer

Maven and FEST-Swing Tests

I have some FEST-Swing test and I would like to run it with Maven under linux. I tried using xvfb like this: xvfb-run mvn -Dtest=e2e.MateriePrimeE2eTest test But I have this error: Running e2e.MateriePrimeE2eTest Jan 18, 2013 10:26:58 AM…
devmao
  • 670
  • 8
  • 18
0
votes
1 answer

AWT - testing existing applet

I need to test Java Applet written in AWT for browsers, but I don't know how to connect to existing frame/dialog/button. Is any option to get list of existing AWT object in system, and do something with them? I tried with FEST-AWT, but if I…
Son
  • 960
  • 2
  • 14
  • 25
0
votes
1 answer

FEST Test hangs on new FrameFixture()

I tried to create a swing test using FEST, which simply clicks a button. Unfortunately, the test hangs while executing new FrameFixture(...). I'm instantiating a controller, which internally creates a view, which extends from JFrame. The method…
Daniel
  • 834
  • 1
  • 9
  • 25
0
votes
1 answer

FEST: Retrieving a cell value when cell is under a JTable with CellRenderPane

I have code like this: //(...) JTableFixture myTreeTable = frame.table(matcher); If I try to obtain JCellFixtures or values or contents, everything is null. I am only obtaining the number of rows or columns. JTable internally uses a…
Whimusical
  • 6,401
  • 11
  • 62
  • 105
-1
votes
1 answer

Can I prevent application test with Java FEST from doing System.exit?

I try to test my application with FEST. Like in most other applications I have a System.exit() command in there. When I do nothing and run all tests, the test run is aborted when the System.exit() method is called for the first time. I searched and…
Yggdrasil
  • 1,377
  • 2
  • 13
  • 27