pabramowitsch
15 years agoOccasional Contributor
Playback very erratic on desktop application
My problem is similar to some others that have mentioned it relative to their web testing, but mine is a java swing application. When I playback a script often it repeatedly fails to recognize the very first window. Other times it will run without any problem. It is unrelated to what other applications are running on my system. The object browser shows the first window with exactly the same name and path (in my name map) as it is referred to in the script. Installing TC and tested app on another computer shows the same problem. The way I wait for the window to be ready after launching the application is this:
function WaitForDesigner()
{
Sys["Process"]("java")["SwingObject"]["WaitChild"]("EditModalDialog", 30000)
}
Funny thing is is that it doesn't wait for 30 seconds, instead it waits 0 time and then moves ahead into the script reporting object after object not found. Other days it is fine. This is seriously disturbing our work with the product.
- P
function WaitForDesigner()
{
Sys["Process"]("java")["SwingObject"]["WaitChild"]("EditModalDialog", 30000)
}
Funny thing is is that it doesn't wait for 30 seconds, instead it waits 0 time and then moves ahead into the script reporting object after object not found. Other days it is fine. This is seriously disturbing our work with the product.
- P