Forum Discussion

Brandon_Tucker's avatar
Brandon_Tucker
Occasional Contributor
16 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?

3 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hello,

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

    robert
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    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