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
1
vote
0 answers

how to use fest for android

I am trying to use FEST with an android app testing I want to check if some views in the activity got created and initialized correctly @Test public void testSplashScreenActivity() throws Exception{ SplashScreenActivity activity =…
Lena Bru
  • 13,521
  • 11
  • 61
  • 126
1
vote
2 answers

Can't create FrameFixture with Fest + Swing

I am trying to make a simple test after the Fest Tutorial for a JFrame, JButton. Here's my code: private FrameFixture window; @Before public void setUp() { MyMainFrame myMainFrame = GuiActionRunner.execute(new…
Gobliins
  • 3,848
  • 16
  • 67
  • 122
1
vote
0 answers

Fest assertThat List partially matches another List

Is there a simple way of using fest assertions to check that a list of string partially contains it's value in another list of strings. For example, I'm able to use the following code to check that the values in one list match exactly to the values…
shreyansp
  • 723
  • 1
  • 7
  • 16
1
vote
2 answers

How can I run FEST Swing tests in 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…
1
vote
1 answer

cucumber-jvm: how to use the same window instance across all the tests

I am using cucumber-jvm with groovy and fest to test a Swing application. Every time a scenario is run the main window app is created (and destroyed at the end). How can I avoid it? How can I run the same instance of the window across all the…
Randomize
  • 8,651
  • 18
  • 78
  • 133
1
vote
1 answer

strange AssertError when using fest regexp assert

I am getting this error - but the regex should imho match the string - would love to know what is the problem here java.lang.AssertionError: <'0 I: bar 1 I: foo '> should match the regular expression:<'.*bar.*'> at…
ligi
  • 39,001
  • 44
  • 144
  • 244
1
vote
0 answers

Netbeans Generics Bug using FEST, Java?

I have the following non-generic method for getting a JListFixture using FEST: public static JListFixture getJListFixtureNonGeneric(final FrameFixture frame) { return frame.list(new GenericTypeMatcher(MyClass.class) { @Override …
user973479
  • 1,629
  • 5
  • 26
  • 48
1
vote
0 answers

Get text color from with Fest framework, within a JTableFixture

I'm inspecting a JTableFixture, with several lines filled with texts. Lines may have different colors. How can i access the displayed text's color using Fest Framework ? Here is what i tryed for now JTableFixture eventTable = getTable(); // Get the…
Bertrand
  • 251
  • 1
  • 3
  • 12
1
vote
1 answer

FEST: How to use the NoExitSecurityManager properly?

I starting to use FEST to help me to perform unit test on my Java Swing GUI. For now, I managed to get through the documentation (mostly deprecated) and help me by looking at the Javadoc and the code. Right now I am stuck on a problem while using…
perror
  • 7,071
  • 16
  • 58
  • 85
1
vote
1 answer

fest-swing and wrappers for swing/awt components

I'd like to test GUI client with fest-swing but... The client based on custom layer which wrapps swing components. The problem is that my custom gui components do not inherite from swing components but are composed from them (the author of the layer…
Marcin Sanecki
  • 1,324
  • 3
  • 19
  • 35
1
vote
1 answer

get JLabel from JTree Using (or not) Fest framework

I'm using Fest in order to check if two entries have the same icon. I'm actually having a JTreeFixture, from what i can access a specific entry with its path. JTreeFixture tree = getTreeFromWindow(); JLabel label = (JLabel)…
Bertrand
  • 251
  • 1
  • 3
  • 12
1
vote
1 answer

how do I remotely call a function of an applet that is just being debugged in Eclipse?

When I call a certain function of my applet in the browser via javascript I get an exception. However, I don't want to debug that applet while it runs in the browser, I want to start it via Debug as... in Eclipse, and then somehow remotely call that…
rwst
  • 2,515
  • 2
  • 30
  • 36
1
vote
2 answers

Block mouse input in Java Swing

I have a testing FEST app which uses an AWT robot for simulating certain actions over a Swing interface. My problem is that it seems like moving the mouse pointer during the robot-test execution cancels some of the programatic actions, like pressing…
Whimusical
  • 6,401
  • 11
  • 62
  • 105
1
vote
1 answer

FEST: Getting a component by his class (inherited from a basic component)

I have this code: //FrameFixture frame = (...got it from window, main frame...) JTableFixture table = frame.table(new GenericTypeMatcher(JTable.class) { @Override protected boolean isMatching(JTable table) { return…
Whimusical
  • 6,401
  • 11
  • 62
  • 105
0
votes
1 answer

IllegalThreadStateException while using BasicRobot

I'm getting the following while trying to use BasicRobot (FEST). I don't know how to fix this. [ConditionalEventPump] Exception occurred during event dispatching: java.lang.IllegalThreadStateException: Cannot call method from the event dispatcher…
user793623