Feb 7, 2014

GUI validation with SoapUI and Sikuli


Actually I was not really interested in this feature, but just wanted to prove that it is possible.
Works with SoapUI free and Pro (but only x32 version so far for me).

 So what you would need to make it work:
1) Download latest Sikuli distribution. (I used SikuliX-1.0.1)
2) Grab sikuli-java.jar from there and copy it to SoapUI\bin\ext folder.
3) The most important part - stat soapUI with .bat file, not .exe file.
4) Insert groovy script into your project. Basic one to test if it works should be:

 import org.sikuli.script.*;  
 def s = new Screen();  
 s.click("D:/Non-exising.png", 0);  

You would get some error message like FindFailed - which is ok.
Now try to record something more complex in SikuliIDE, save project and use grabbed images and actions in your groovy code.










No comments:

Post a Comment