Re: [Sikuli-driver] [Question #254965]: Any testing frameworks using Sikuli?
Question #254965 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/254965 topa...@gmail.com posted a new comment: I found a couple of cobbled together solutions with other tech similar to what I got. I've also encountered a half dozen companies that rolled their own either with a lot of scripts or just importing the jar like I did over the past couple years. Back in the test automation game so I might just be able to convince folk to use it and even open source it this time around. We'll see. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #254965]: Any testing frameworks using Sikuli?
New question #254965 on Sikuli: https://answers.launchpad.net/sikuli/+question/254965 I hacked together some Sikuli into a couple automation frameworks years ago, and I still don't know a lot of good ways to automate mobile/consoles natively. Just curious in the past 2-3 years I've been gone anyone has gone and shoved Sikuli into an automated testing suite. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #143226]: Is there any interest in an Open Source Java Automation Framework that uses Sikuli?
Question #143226 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/143226 Status: Answered = Solved topa...@gmail.com confirmed that the question is solved: Wow this is an old one. Already done though. My previous employer (Zynga) uses Sikuli as a wrapper for an automation framework they license. I wrote a new one for the employer I'm working for now. My company sadly doesn't want to make it open source. Typical -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Bug 711129] Re: X 1.0rc1: [Java] using setROI() a match's region is reported relative to ROI top left, not screen's top left
Hey guys, been using an old Sikuli for 7-8 months due to this bug. Did it ever get fixed? -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/711129 Title: X 1.0rc1: [Java] using setROI() a match's region is reported relative to ROI top left, not screen's top left Status in Sikuli: New Bug description: based on the related question (thanks topagae (https://launchpad.net/~topagae)), confirmed on Mac. To confirm, I set the ROI to the app window. The m.highlight only shows the expected match region, when the Safaris window top left is at the screens top left. In all other cases it is offset with the offset of the window relative to the screen. --- Java snippet Screen scr = new Screen(); App aS = new App(Safari); ImageLocator.addImagePath(/Users/rhocke/Desktop); aS.focus(); scr.setRect(aS.window()); aS.window().highlight(2); Match m = scr.exists(wiki.png, 0); m.highlight(2); To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/711129/+subscriptions ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Bug 751069] [NEW] [Request] Ability to scroll targetting offset screen after matching an image in the IDE
Public bug reported: Right now it's only possible to zoom in and out, which limits the targeting potential of a click ** Affects: sikuli Importance: Undecided Status: New -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/751069 Title: [Request] Ability to scroll targetting offset screen after matching an image in the IDE Status in Sikuli: New Bug description: Right now it's only possible to zoom in and out, which limits the targeting potential of a click ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #151656]: Way to scroll the target offset screen
New question #151656 on Sikuli: https://answers.launchpad.net/sikuli/+question/151656 Once you've matched an image by clicking it in the IDE and you goto the Target Offset Tab is there a way to scroll the window so I can pick a better place to pick my target? Right now I can only zoom in and out and it prevents me often times from seeing the whole screen which artificially limits my targeting choices. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #149502]: Is there a way to set a screen to search when clicking on pictures in the IDE?
Question #149502 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/149502 topa...@gmail.com posted a new comment: Darn, it'd be awful nice. Though the whole Able to use rectangles in Java would be nicer ;) -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #149502]: Is there a way to set a screen to search when clicking on pictures in the IDE?
New question #149502 on Sikuli: https://answers.launchpad.net/sikuli/+question/149502 I use the IDE A lot to take pictures and determine click points but using it with two screens often makes the searching process when clicking on a picture take a VERY long time. I'd like to be able to set which screen(s) the automatic search looks at when clicking the image. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #143850]: Can you change debugging behavior of Sikuli in Java?
Question #143850 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/143850 Status: Answered = Solved topa...@gmail.com confirmed that the question is solved: Wow I'm sorry, I had no idea I was being impolite, thought it was just casual to me. I'll try that out later. Didn't see that in the release doc of RC2, not sure how I missed it.. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #143850]: Can you change debugging behavior of Sikuli in Java?
Question #143850 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/143850 Status: Expired = Open topa...@gmail.com is still having a problem: =( But I still need an answer. Lame sauce -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Bug 712724] [NEW] Loading an image from hard drive in Sikuli IDE throws error when you try to use analytic tools on image.
Public bug reported: Summary: If a user loads an image from their hard drive using the appropriate button in the Sikuli IDE, then clicks on it to try and get matching/offset/pattern data it will not work. Using RC1 Sikuli, on 64 bit Windows 7. Steps: 1. Use IDE button to load image into IDE window. 2. Click on image. Thrown error: debug] ImageButton.getFilename: someFile blah.sikuli/ [error] Can't read file: Can't read input file! Exception in thread AWT-EventQueue-0 java.lang.IllegalArgumentException: im == null! at javax.imageio.ImageIO.write(Unknown Source) at javax.imageio.ImageIO.write(Unknown Source) at org.sikuli.ide.Utils.saveTmpImage(Utils.java:135) at org.sikuli.ide.ImageButton.createThumbnail(ImageButton.java:106) at org.sikuli.ide.ImageButton.createThumbnail(ImageButton.java:111) at org.sikuli.ide.ImageButton.setFilename(ImageButton.java:59) at org.sikuli.ide.ImageButton.getFilename(ImageButton.java:53) at org.sikuli.ide.PatternWindow.createTargetPanel(PatternWindow.java:84) at org.sikuli.ide.PatternWindow.init(PatternWindow.java:51) at org.sikuli.ide.ImageButton.actionPerformed(ImageButton.java:200) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) ** Affects: sikuli Importance: Undecided Status: New -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/712724 Title: Loading an image from hard drive in Sikuli IDE throws error when you try to use analytic tools on image. Status in Sikuli: New Bug description: Summary: If a user loads an image from their hard drive using the appropriate button in the Sikuli IDE, then clicks on it to try and get matching/offset/pattern data it will not work. Using RC1 Sikuli, on 64 bit Windows 7. Steps: 1. Use IDE button to load image into IDE window. 2. Click on image. Thrown error: debug] ImageButton.getFilename: someFile blah.sikuli/ [error] Can't read file: Can't read input file! Exception in thread AWT-EventQueue-0 java.lang.IllegalArgumentException: im == null! at javax.imageio.ImageIO.write(Unknown Source) at javax.imageio.ImageIO.write(Unknown Source) at org.sikuli.ide.Utils.saveTmpImage(Utils.java:135) at org.sikuli.ide.ImageButton.createThumbnail(ImageButton.java:106) at org.sikuli.ide.ImageButton.createThumbnail(ImageButton.java:111) at org.sikuli.ide.ImageButton.setFilename(ImageButton.java:59) at org.sikuli.ide.ImageButton.getFilename(ImageButton.java:53) at org.sikuli.ide.PatternWindow.createTargetPanel(PatternWindow.java:84) at org.sikuli.ide.PatternWindow.init(PatternWindow.java:51) at org.sikuli.ide.ImageButton.actionPerformed(ImageButton.java:200) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
[Sikuli-driver] [Question #143850]: Can you change debugging behavior of Sikuli in Java?
New question #143850 on Sikuli: https://answers.launchpad.net/sikuli/+question/143850 I'm writing my own logging for a Java application using Sikuli and wanted to mute the debug messages always printing to the console. I was looking a the Debug section on the Java docs at http://sikuli.org/doc/java-x/ and it said Change the value of the DEBUG_LEVEL constant using a system property: sikuli.Debug which seems to me like I should be able to set the level of debugging messages. When I try directly trying to change this parameter it throws a Field not visible error. And there are no functions to set this parameter that I can find in the Debug section of the Java docs. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #143611]: X 1.0rc1: [Java] using setROI() a match's region is reported relative to ROI top left, not screen's top left
Question #143611 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/143611 topa...@gmail.com gave more information on the question: Checked again, this does seem to be what's happening. Thanks Raiman! -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Bug 711129] Re: X 1.0rc1: [Java] using setROI() a match's region is reported relative to ROI top left, not screen's top left
Thanks Raiman! -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/711129 Title: X 1.0rc1: [Java] using setROI() a match's region is reported relative to ROI top left, not screen's top left Status in Sikuli: New Bug description: based on the related question (thanks topagae (https://launchpad.net/~topagae)), confirmed on Mac. To confirm, I set the ROI to the app window. The m.highlight only shows the expected match region, when the Safaris window top left is at the screens top left. In all other cases it is offset with the offset of the window relative to the screen. --- Java snippet Screen scr = new Screen(); App aS = new App(Safari); ImageLocator.addImagePath(/Users/rhocke/Desktop); aS.focus(); scr.setRect(aS.window()); aS.window().highlight(2); Match m = scr.exists(wiki.png, 0); m.highlight(2); ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #143611]: Setting rectangles not working in Sikuli.jar?
New question #143611 on Sikuli: https://answers.launchpad.net/sikuli/+question/143611 This took me a while to debug, but whenever I try to set a rectangle on my screen object in Java code, it will skew where it finds the match/where it clicks. For example: Here's some sikuli script code with equivalent Java code. Screen(1).setROI(Region(-1300,81,924,784)) Screen(1).click(Pattern(lowerLeftHUD.png).targetOffset(70,0)) currentScreen.setROI(-1300,81,924,784); //Same thing happens with setRect, though I doubt this matters currentScreen.click(/lowerLeftHUD.png, 0); //The offset in the java code has already been set. Here's what they both find. IDE: [info] click on (-893,686), MOD: 0 [debug] showTarget -933 646 80 80 Java [info] click on (-753,766), MOD: 0 [debug] showTarget -793 726 80 80 It seems if I mess with the Region in Java slightly, I was able to get it to click a little bit elsewhere. Which seems to me that the Region is affecting the match/click point which is kinda scary. The current work-around is to just not restrict the search area in Java. The bug seems to not occur when I just search the whole screen but this sorta takes away a very helpful feature for Java Sikuli. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #143226]: Interest in an Open Source Java Automation Framework
New question #143226 on Sikuli: https://answers.launchpad.net/sikuli/+question/143226 Heya Sikuli people! Just gotta say, Sikuli has saved my bacon quite a bit in the past. I helped leveraged it as the image search part of an automation framework that was able to automate flash games and it just made things work beautifully. I left that job and just acquired another where they want me to basically do the same thing. I've always felt pretty indebted to Sikuli, it's developers, and it's users (Especially Raiman who helped me out on the job more times then he knows). So I asked my bosses if it'd be possible to open source the automation framework that I'm writing and they were actually pretty warm to the idea. It may have to be for non-commercial uses to cover our butts but that's still pretty awesome right? I've only done a few lazy research days designing and hacking at it since it's not the only thing I have to do at work, but to give you a taste of what I've coded up before and what this framework will need to do here's a little overview. The general goal of the framework is to use allow us to generically automate the test cases for any of our games. Using Sikuli's image searching I've been able to arbitrarily automate just about any game or product so that's obviously not too much of a problem. You can really do all that in the IDE, this framework is really just going to be a lot of nice features to build/maintain/test large amounts of scripts like this that someone who needs to automate a big product would need. It needs to be pretty easy to run tests across lots of platforms so it's going to have a lot of logic about that, once again going to use different directories of images to intelligently navigate around with logic to pop open Virtual Machines with configurations we want to run tests on. It's going to eventually need some good logging, currently I have a Take a screenshot and shove in log folders! function which is okay for seeing what's going on for now, but we're thinking of shoving some video recording functionality into the framework and just making videos of every script as it runs on the computer. Besides the video logging and grabbing images from the web I've already made up a framework that does all this, and I'm doing it again now. But what else could it do? That's part of the reason I'd like to get it into the hands of ya'll. Anyhow, to go a bit deeper here's some packages I've got currently in the prototype to explain some high level structure ideas. images: I've currently got a nice organized directory file for storing all the images, but an interesting feature might be later to hook all images up to things on live webservers. Doing that we could link images in scripts to web files, and when that file gets updated, so does the script! This could reduce image maintenance a whole lot. Library: The crux of the framework will be how useful all these nice little functions will be. I found that I could automate my games with almost all my calls (90%+) with JUST wait() and click(). Also going to be putting the bells and whistles here, like navigating to the right product to test, making sure you're on the right test configuration, recovery from errors or popups/abnormal behavior, logging and error handling. I'm also having product-specific library files that extend the main library file so you can have product-specific functions that don't bloat up the main file. You could then run your tests like this: OS:windows/browser:firefox/suite:someTestSuite/game:Awesomegame100/scriptname products: a package that contains packages for all your product test suites and test cases products.someproduct.suites: I'm using JUnit to organize my scripts and tests in the hopes that it'll simplify organizing and test case reporting. So far it's looking pretty good. Anyhow, at this level you could have a collection of all your test suites for your product that you could run at any time. products.someproduct.testscripts: this package contains a bunch of java files that all have JUnit test cases in them. Each test case is really just a bunch of sikuli calls that automate a piece of functionality, in my case for a game. So I certainly haven't gotten too far, but I've built it before and I'm going to build it either way. I'd just much rather have it in the hands of others because I really believe in Open Source. I know for a fact lots of big companies have all reinvented the wheel and done all of this for themselves, I helped one of them. I think that's a damned shame and this might be a good opportunity to give a powerful tool to everyone. As for next steps I don't know. I asked a knowledgeable person who said a github/opensource organization project like launchpad or sourceforge would work. I could also maybe have a little branch here on the Sikuli launchpad if the Sikuli developers are okay with this little mini-project. I'm not too entirely
Re: [Sikuli-driver] [Question #143226]: Interest in an Open Source Java Automation Framework
Question #143226 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/143226 topa...@gmail.com posted a new comment: Wow I'm a ditz. I guess the QUESTION is: Would people be interested in having an open source automation framework in Java that integrates Sikuli with the features and description above? And if so, can I get some advice/help on how to go about doing that? -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #143226]: Is there any interest in an Open Source Java Automation Framework?
Question #143226 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/143226 Summary changed to: Is there any interest in an Open Source Java Automation Framework? -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #143226]: Interest in an Open Source Java Automation Framework
Question #143226 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/143226 topa...@gmail.com gave more information on the question: Ah yes, the feature I mentioned wasn't going to be implemented I mentioned it because it's awesome and the framework could use it (In reference to the web images thing). What I'm building probably won't be a part of sikuli core, it'll just use that sexy little jar that lets me use Sikuli in the java code. It would itself be a lightweight framework for organizing, making, running, and maintaining the type of automation tests I described. If you want I'd be happy to send you a very very minimal prototype I've built in my free time the last few days. I'm sure it'd answer more questions pretty quick. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #143226]: Interest in an Open Source Java Automation Framework
Question #143226 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/143226 topa...@gmail.com gave more information on the question: Cool. Here's a ridiculously minimal prototype with a few library functions, exploratory code, and general package structure. It requires you to follow the guide on the Sikuli site to making Sikuli available in your Java code. If you wanna try and use it I'd suggest making a new project in eclipse with Java as the root directory and linking the Sikuli.jar as an external Jar. Should boot it right up. Might not be enough to be impressive yet, if so I'll just hammer on it til it's getting as good as the last one I helped build. Enjoy: https://docs.google.com/leaf?id=0BwZ6aoCy8tbrNWQwYzhhZTMtNjc0ZC00NTAzLWEzYTMtYTkyMDUyNTBhOTAzhl=enauthkey =CLGA-Rw -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp