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

Respect is not earned, It is given ⚘ 🙏

Need > Want

Bots and What Not !!