![]() | Sikuli as a Testing Tool |
|
19 Aug 2012, 12:17
Dean Cornish (5 posts) |
Hi All, love your work- you have a great recipe book and I cant wait to see it in its completed state. I find the inclusion of Sikuli as a testing tool an intriguing one. The challenge I see is, that just because Sikuli can do something doesn’t mean it should be used to do that thing. From what I read about the MIT work on this, it was never intended as a testing tool, it was just intended to automate simple UI operations, the fact that the jar’s were there seem to have lead to it becoming a testing tool by de facto but perhaps (I would argue) in error. While its relatively easy to write the scripts, deploying the dev environment into a CI box and subsequent stages in the pipeline is very frequently a cow, also the need for interactive user account interaction also adds to the complexity. I would also argue, if the Application Under Test is so complex that Sikuli seems like a good fit, then they need to simplify the app, or solve the blockers that stop native libraries from working before Sikuli turns their test automation stack on its head. Regards, Dean |
|
21 Aug 2012, 04:44
Ian Dees (192 posts) |
Hi, Dean. Totally agreed that a native toolkit is the easiest and most reliable thing to get started with. I like your idea of adding a note to this effect. How about something like this?
Would something like that work? |
|
27 Aug 2012, 02:52
Dean Cornish (5 posts) |
Very good- thanks Ian!- you’re saving me severe heartburn down the line when someone brings me in and says “We need you to help fix our Sikuli testing suite” ;-) |
|
28 Aug 2012, 21:34
Matt Wynne (83 posts) |
How about if we get a horror story from Dean included in the book? |
|
29 Aug 2012, 23:32
Ian Dees (192 posts) |
Ooh, I like that. Dean, would you be willing to write a couple of paragraphs (with the characters sufficiently anonymized) about a rough experience with Sikuli? We could include it as a story inside the recipe with your name on the byline. |
|
31 Aug 2012, 05:12
Ian Dees (192 posts) |
Hi, gb. The Good find on the Sikuli gems. I’ll give them a shot and see how they compare to the roll-our-own approach. Sincerely, Ian |
|
03 Sep 2012, 05:18
Dean Cornish (5 posts) |
Happy to write up something- just might need some help from Ian and co to turn it into something fit for consumption.. ;) |
|
03 Sep 2012, 07:35
Dean Cornish (5 posts) |
Hi Ian, I wrote way way too much, please feel free to edit/reword/chop to your hearts content. If the example isn’t strong enough I’m happy to pick another.. PS. turns out about 9 months ago I added a hybrid example using Watir-WebDriver and Sikuli onto github- Some contexts where I’ve used Sikuli and found it to be helpful:
One particular horror story was a Delphi app that was in a bit of a mess- it was implementing win32 controls, as well as custom ones that had been bought from a vendor, both had been abstracted many times, with the parent control behaviours being concealed through the abstraction process. Interrogating the UI via COM returned next to nothing, and using .NET to walk the UI would cause .NET to throw and exception and give up! This eliminated using .NET’s UI.Automation and therefore Project White as options. My first step, was to communicate to the team that building automation for an app that was clearly never intended to be automated wasnt working. They needed to take responsibility for it and start refactoring the code, fix the lack of testability and add unit tests as they went as the test automation wouldnt be sustainable even with Sikuli as a work around. Meanwhile I’d build a small test suite using Sikuli just to get them past it and to give them some coverage while they re-factored.
|
|
05 Sep 2012, 21:11
Ian Dees (192 posts) |
Dean, this is fantastic, thank you! Can you write to me off-list at undees@gmail.com, so that we can send you a permission form to use your story? —Ian |
| You must be logged in to comment |

