Forum Discussion

s1's avatar
14 years ago

Java/Swing dialogs

Hi,


I'm testing Java/Swing application and I've created a keyword test like the one in DDT video where orders are added in loops.


When I run my project first loop goes well but the second got stuck at dialog window, error is saying that "The window is disabled" but it is not. Test is pressing a button to show the dialog and it's choosing data from it. If i did something wrong even the first loop should fail.



Thanks,


Wojtek


1 Reply

  • Hello Wojtek,




    Make sure your test refers to the proper object on the second loop. A common problem with such tests is that the application's state before the first loop is different from the application's state before the second loop. As a result, the first loop works fine, but the second one fails.


    If you fail to determine the reason, please send us your project suite along with the results of the failed test execution (zip the entire project suite folder).