PDA

View Full Version : Automate the installation.



ssudan
03-22-2006, 07:24 AM
Hi,
I would like to automate the installation process for testing purpose. Is there any means by which I could achieve this. I tried using the java Robot class to do mouse click events on the buttons provided in the dialog boxes. This click event works well at times when the next dialog box is shown but it is not consistent. It doesnt work the same always. The code I have written inside the event entered is

java.awt.Robot r = new java.awt.Robot();
r.delay(2000);
r.mouseMove((207*2)+192, (176*2)+200);

r.mousePress(java.awt.event.InputEvent.BUTTON1_MASK );
r.delay(2000);
r.mouseRelease(java.awt.event.InputEvent.BUTTON1_MASK );

Is there any other way by which I could sent mouse click events so that I could automate the installation process ?

Thanks,
Sudan

MotoJason
03-22-2006, 10:12 AM
If it's an install script you can just make different silent install/uninstall files and run the setup against each one seperately.