tag:blogger.com,1999:blog-28019847.post4022859926283394283..comments2023-10-24T15:57:58.247+05:30Comments on << Java Forever >>: Robot ClassVaibhav Choudharyhttp://www.blogger.com/profile/11145353943937580111noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-28019847.post-18317091524631380442009-07-30T20:27:37.510+05:302009-07-30T20:27:37.510+05:30thank you !thank you !Vaibhav Choudharyhttps://www.blogger.com/profile/11145353943937580111noreply@blogger.comtag:blogger.com,1999:blog-28019847.post-87081353481174167962009-07-30T19:09:46.237+05:302009-07-30T19:09:46.237+05:30> Using Robot directly to create automated test...> Using Robot directly to create automated test can be a pain every time the windows layout change.<br /><br />Are you even Java programmers?<br /><br />Implement UITestable on your components, and have a method that returns, or executes, a UI test on that component, taking a robot instance (or using a static call).<br /><br />Each button could not only create a test for itself (knowing its coords) but could call a factory method to generate an interpolated series of events (using multiple square / linear algorithms for smoothness) to make the pointer move and click... this allows scripted training manuals that use the interface!<br /><br />How do I know? Because I did it, and it was very little work... stop complaining!<br /><br />MenuItems were fun, you can get the JMenu and popups and with one call it shows itself in a tree of menus, and selects itself. Very nice.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-28019847.post-88249330173321206922008-04-11T09:24:00.000+05:302008-04-11T09:24:00.000+05:30Ya there is little pain and I guess thats the reas...Ya there is little pain and I guess thats the reason why Robot class is not a big hit in Java. <BR/><BR/>Thanks for the information !Vaibhav Choudharyhttps://www.blogger.com/profile/11145353943937580111noreply@blogger.comtag:blogger.com,1999:blog-28019847.post-51446499837736698262008-04-10T23:30:00.000+05:302008-04-10T23:30:00.000+05:30Using Robot directly to create automated test can ...Using Robot directly to create automated test can be a pain every time the windows layout change.<BR/>We use the Fest Swing library to do such test.Andrea Franciahttps://www.blogger.com/profile/16706534930714066247noreply@blogger.comtag:blogger.com,1999:blog-28019847.post-38377336867015131222008-01-02T10:57:00.000+05:302008-01-02T10:57:00.000+05:30Thanks Himanshu,That will not go tough. MousePress...Thanks Himanshu,<BR/><BR/>That will not go tough. MousePress Event on Alt and then MousePress on M and then MouseRelease on Alt, will do what you want. <BR/>And if you want something to be visual(not in this case) then give a delay.Vaibhav Choudharyhttps://www.blogger.com/profile/11145353943937580111noreply@blogger.comtag:blogger.com,1999:blog-28019847.post-5227211674211029262008-01-02T10:45:00.000+05:302008-01-02T10:45:00.000+05:30nice article. I have a question how do I press com...nice article. I have a question how do I press combination key like Alt+M?Anonymoushttps://www.blogger.com/profile/15544811657896402166noreply@blogger.com