Our gui tests fail every now and then due to the below error. They are executed in the early morning ours on a jenkins. Our code seems to be ok since it on some days the tests pass just ok.
We use version 1.2.1 of fest-swing and 1.1.6 of fest-util. We first thought it is a matter of the versions used since we first have been using 1.2 fest-swing. However, still after the upgrade the tests fail.
What could be the reason for the failures?
Focus change to com.glady.tanon.air.client.common.component.DoubleTextField[name='percentDTF', text='0', enabled=true, visible=true, showing=true] failed
Stacktrace
org.fest.swing.exception.ActionFailedException: Focus change to com.glady.tanon.air.client.common.component.DoubleTextField[name='percentDTF', text='0', enabled=true, visible=true, showing=true] failed
at org.fest.swing.exception.ActionFailedException.actionFailure(ActionFailedException.java:33)
at org.fest.swing.core.BasicRobot.focus(BasicRobot.java:271)
at org.fest.swing.core.BasicRobot.focusAndWaitForFocusGain(BasicRobot.java:248)
at org.fest.swing.driver.ComponentDriver.focusAndWaitForFocusGain(ComponentDriver.java:363)
at org.fest.swing.driver.JTextComponentDriver.setText(JTextComponentDriver.java:143)
at org.fest.swing.fixture.JTextComponentFixture.setText(JTextComponentFixture.java:225)
at com.glady.tanon.air.client.swing.guiapi.common.GuiTester.setText(GuiTester.java:193)
at com.glady.tanon.air.client.swing.guiapi.dialogues.deal.pricingrequest.PricingRequestairPzSubDialogue.fillDataForPricezonePercent(PricingRequestairPzSubDialogue.java:79)
at com.glady.tanon.air.client.swing.guiapi.dialogues.deal.pricingrequest.PricingRequestairDialogue.setPricezones(PricingRequestairDialogue.java:199)
at com.glady.tanon.air.client.swing.guiapi.dialogues.deal.pricingrequest.PricingRequestairDialogue.setCompleteData(PricingRequestairDialogue.java:242)
at com.glady.tanon.air.client.swing.guitests.acceptance.TrancheAcceptanceTestImpl.createSignedContract(TrancheAcceptanceTestImpl.java:101)
at com.glady.tanon.air.client.swing.guitests.acceptance.TrancheAcceptanceTestImpl.testCosting(TrancheAcceptanceTestImpl.java:37)
at com.glady.tanon.air.client.swing.guitests.acceptance.TestSuiteAcceptanceTestGuiNoDataset.testTranches(TestSuiteAcceptanceTestGuiNoDataset.java:35)
at com.glady.tanon.air.client.swing.guitests.acceptance.TestSuiteAcceptanceTestGui.testTranches(TestSuiteAcceptanceTestGui.java:32)
Our gui tests fail every now and then due to the below error. They are executed in the early morning ours on a jenkins. Our code seems to be ok since it on some days the tests pass just ok.
We use version 1.2.1 of fest-swing and 1.1.6 of fest-util. We first thought it is a matter of the versions used since we first have been using 1.2 fest-swing. However, still after the upgrade the tests fail.
What could be the reason for the failures?