question

Gerkman avatar image
Gerkman asked lakshminarayana answered

Problem with java swing and waiting for component to be active or visible

Hi,

I had some problems with my java swing program because sometimes some component (window, button, tableCell, etc.) was still loading and then my test failed.

I have tried with different timeouts using:

  • sleep command,
  • increasing Start options in Step properties-->Timing,
  • increasing Maximum time to wait for target option in Step properties-->Swing Properties-->Target,
  • increasing Default step timeout option in General tab,
  • I have also checked the Wait for target to bi visible and enabled options,

but sometimes iTest still has problems with finding the component.

I have laso had a case where I saw the component but iTest didn't and failed.

How do you guys check if some component is visible or not? Is there anything like try and catch for some exception in case when component is not found?

Is there any other option that I have missed?

Thank you for your answers.

Regards,

Ales

iTestGUI Testing(Web-Java Swing-etc)timeoutsstep time
1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Gerkman avatar image Gerkman commented ·

Hi all,

Has anybody had some similar problems? I would realy appreciate if anybody has any advice.

I forgot to mention that I am using iTest 4.3.

Regards,

Ales

0 Likes 0 ·

1 Answer

·
lakshminarayana avatar image
lakshminarayana answered

There could be some issue with iTest or from your Swing application. As you are using older version of iTest, try with the latest iTest 5.1 and see the results.

Or, please send an email to support@spirent.com to further assistance.

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.