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
11
votes
5 answers

How do I read pixels from a PNG file?

I know how to capture a screenshot by using Robot, Windowtester or FEST. I also know how to read a pixel from the screen by using robot. int x = 10; int y = 10; Color px = getPixelColor(int x, int y); However, I don't know how to read a pixel from…
user793623
10
votes
3 answers

how to make gui test without displaying in FEST-SWING

In my project, we are using FEST for GUI testing. We have been persuaded that FEST is powerful, however displaying frames every time is a waste of time. Also we are using continuum and FEST doesn't work with continuum because continuum's maven can't…
ibrahimyilmaz
  • 18,331
  • 13
  • 61
  • 80
9
votes
1 answer

What is the difference between isSameAs() and isEqualTo() in FEST?

What is the difference between the two methods isSameAs() and isEqualTo() ? The documentation says: Verifies that the actual value is equal to the given one. and Verifies that the actual value is the same as the given…
Roger C S Wernersson
  • 6,362
  • 6
  • 34
  • 45
8
votes
8 answers

Get the VK int from an arbitrary char in java

How do you get the VK code from a char that is a letter? It seems like you should be able to do something like javax.swing.KeyStroke.getKeyStroke('c').getKeyCode(), but that doesn't work (the result is zero). Everyone knows how to get the key code…
Myer
  • 3,670
  • 2
  • 39
  • 51
6
votes
2 answers

Using WindowFinder to find a modal dialog

I am using FEST to test my Java dialogs and I need to test that a new modal dialog is created. @Before public void setUp() throws Exception { TestFrame testFrame = GuiActionRunner.execute(new GuiQuery() { @Override …
glenneroo
  • 1,908
  • 5
  • 30
  • 49
5
votes
2 answers

How to assert that a list does not contain something, with FEST?

I'm using FEST to write assertions in JUnit. It's easy to assert that a list is containing some elements: assertThat(list).contains(2,4); But how to assert that the list is not containing something? Like: assertThat(list).doesnotContain(3); // !!!…
Freewind
  • 193,756
  • 157
  • 432
  • 708
4
votes
2 answers

Making FEST to wait for the application to load

I am new to FEST based GUI Testing. MyFrame is the root class for my application. @Before public void onSetUp() { MyFrame frame = GuiActionRunner.execute(new GuiQuery() { protected MyFrame executeInEDT() { …
Athiruban
  • 616
  • 1
  • 5
  • 17
4
votes
1 answer

Using FEST-Swing with a Java applet

I found that FEST-Swing has the capability to automate UI actions on Java applets. FEST-Swing can also test desktop applications as well as applets (in a viewer and in-browser.) I tried to prepare a script to see its capabilities, but I could…
Bhima
  • 41
  • 3
4
votes
1 answer

FEST: Unable to find component using matcher org.fest.swing.core.NameMatcher

I'm trying to run a simple test with FEST and it fails. Here is my Swing app: public final class App extends JFrame { public App() { super(); JButton button = new JButton("start!"); button.setName("start"); …
Ed Limonov
  • 105
  • 1
  • 6
4
votes
1 answer

FEST: start/stop external SWING program which uses System.exit() without affecting VM

In my Cucumber-jvm scenarios I need to run an external jar program before each scenario, interact with it using the FEST library in the steps, and finally shut the program down to clean the slate for the next scenario. The particular external…
johnrl
  • 583
  • 6
  • 17
4
votes
2 answers

Fest slows down while testing with swingx jxtreetable

I am not sure how to explain this. But I'll try.. Fest slows down to crawl while working with JXTreeTable of swingx. It doesn't slow down initially. It works fine for a while, but after a while when the same actions are repeated it slows down…
sethu
  • 8,181
  • 7
  • 39
  • 65
4
votes
2 answers

Should GUI tests run with the default look and feel?

I'm working on an application that has a custom look and feel. For GUI testing, I am using FEST-Swing. Currently, the GUI tests are running with the default java look and feel. Because of this, some tests are failing, but should I consider this to…
Radu Pluta
  • 131
  • 4
3
votes
1 answer

Safe way to replace AWT EventQueue in running Swing application

Various sporadic problems in the Swing application I maintain appear to be caused by the way it replaces the default AWT event queue with its own custom version using Toolkit.getDefaultToolkit().getSystemEventQueue().push(new AEventQueue()). See…
Ben
  • 2,348
  • 2
  • 19
  • 28
3
votes
1 answer

When is the right time to call robot.cleanUp()

I'm using JUnit and FEST for Swing integration testing of our app that I start and stop, multiple times in the test case. Should @after include a call to robot.cleanUp()?
Dennis S
  • 627
  • 1
  • 6
  • 13
3
votes
1 answer

How use Roboelectric and Fest to test an android app with native binaries?

I'm trying to setup roboelectric and fest in my own project. However when I try to run ./gradlew clean test in the command line I get the following errors in the test report: http://pastebin.com/5gaJgftf My project does build the app without errors…
user3837683
  • 325
  • 1
  • 3
  • 6
1
2 3 4 5 6 7