Posts

Showing posts from December, 2009

Groovy and Jemmy

In this demo, we have opportunities 1. To Bind your Java application with groovy console. 2. To Automate manual steps in groovy console. 1. Bind your Java application with groovy console. //BindJavaApplication.groovy import org.netbeans.jemmy.*; import org.netbeans.jemmy.explorer.*; import org.netbeans.jemmy.operators.*; // Fire up the SwingSet2 Application new ClassReference("SwingSet2").startApplication(); // Get a reference to the SwingSet JFrame and put it into the console's script binding. mainFrame = new JFrameOperator("SwingSet") def bind = new Binding() bind.setProperty("testScript",this) bind.setProperty("mainFrame",mainFrame) // Fire up the Groovy console. def console = new groovy.ui.Console(this.class.classLoader,bind) console.run() Thread.sleep(700000) 2 . Automate manual steps in console. import org.netbeans.jemmy.*; import org.netbeans.jemmy.explorer.*; import org.netbeans.jemmy.operators.*; // Get first butt...

Popular posts from this blog

Testing Shifts with agile automation #RPA #ML

Need > Want

Bots and What Not !!

Automate your everyday tedious tasks and free up time for higher-value work (with Microsoft free RPA solution)

Respect is not earned, It is given ⚘ 🙏