Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focus change failed #26

Open
Humbone opened this issue Jul 18, 2014 · 0 comments
Open

Focus change failed #26

Humbone opened this issue Jul 18, 2014 · 0 comments

Comments

@Humbone
Copy link

Humbone commented Jul 18, 2014

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant