Menu

Parallel tests

2005-01-17
2013-04-09
  • Johan Witters

    Johan Witters - 2005-01-17

    Hi,

    hope someone can help me with this... One of the added values of jfcunit is that it provides the ability to interact with the swing application using the swing event queue. I concluded that with this feature, I can create parallel tests. However, when I run multiple jfcunit test cases in parallel, in some case, at some random moment, the test fails. I think that the reason for this is because there is some intervention of the tests between each other: some windows receive focus, lose focus and this (I think) has an impact on the behaviour of the application. (By the way, I'm trying to test an application built by an external company). Is there a way to lock the event queue from other influences then the testcase? Is there another possibility? Thanks in advance.

    regards,

    Johan

     
    • Kevin L Wilson

      Kevin L Wilson - 2005-03-18

      This is a unsupported configuration. Swing can only handle a single input stream. When you are dealing with menu's the events comming into the components will most likely collide causing menus to be unposted before they are clicked.

      You should not be running more than a single swing test at a time.

      kevin

       

Log in to post a comment.