Forum Discussion

Brandon_Tucker's avatar
Brandon_Tucker
Occasional Contributor
17 years ago

Frozen ui when running teststeps within groovy

If I do testRunner.runTestStepByName(testStep) from within a groovy script the ui is frozen as if it has to wait until the request is finished to update the swing components, logs, and etc.

Is there any way around this without having to spawn off a new testRunner class and all?
  • Hello,

    You could use SwingUtils.invokeAndCall(..) to run test step. Let me know if that helps.

    robert
  • Hi!

    sorry.. I think robert means

    javax.swing.SwingUtilities.invokeAndWait( .. )

    specify a Runnable that does the call which should run it in the event thread!?

    regards,

    /Ole
    eviware.com