Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Screen issue

Help
anandkand
2012-05-18
2013-05-20
  • anandkand
    anandkand
    2012-05-18

    Consider the script generated below:
    Once the Choose Site 3 screen shows up, K% is eneterd in to a textfield and search is formed.
    After the results shows up ,a record is selected.  And the edit button is pressed. As soon , the edit button is pressed, the screen Choose Site 3 closes. When it was recorded using abbot, the following script was generated. Now look at the last step generated. When I try to run this script, it fails on the last step giving the following stacktrace :
    10000ms exceeded, Wait for !ComponentShowing(Choose Site 3)

    abbot.WaitTimedOutError: 10000ms exceeded, Wait for !ComponentShowing(Choose Site 3)
    at abbot.script.Assert.runStep(Assert.java:318)
    at abbot.script.Step.run(Step.java:92)
    at abbot.script.StepRunner.runStep(StepRunner.java:277)
    at abbot.script.Sequence.runStep(Sequence.java:110)
    at abbot.script.StepRunner.runStep(StepRunner.java:274)
    at abbot.script.Sequence.runStep(Sequence.java:110)
    at abbot.script.Script.runStep(Script.java:545)
    at abbot.script.StepRunner.runStep(StepRunner.java:274)
    at abbot.script.StepRunner.run(StepRunner.java:194)
    at junit.extensions.abbot.ScriptFixture.runTest(ScriptFixture.java:60)
    A PART OF THE GENERATED SCRIPT:

    <wait args="Choose Site 3" class="abbot.tester.ComponentTester" method="assertComponentShowing" />
        <action args=".edSTName,K%" method="actionKeyString" />
        <action args=".btSelektieren" class="javax.swing.AbstractButton" method="actionClick" />
        <wait args="Info :  3" class="abbot.tester.ComponentTester" method="assertComponentShowing" />
        <action args="OptionPane.button" class="javax.swing.AbstractButton" method="actionClick" />
        <wait args="Info :  3" class="abbot.tester.ComponentTester" invert="true" method="assertComponentShowing" />
        <action args=".Edit" class="javax.swing.AbstractButton" method="actionClick" />
        <wait args="Choose Site 3" class="abbot.tester.ComponentTester" invert="true" method="assertComponentShowing" />

    how to get around this problem ?

     
  • Gerard Davison
    Gerard Davison
    2012-05-18

    Can you please re-post this to the abbot-users mailing list as noted on the forums page?

    Gerard