Need some help or suggests about programming some groovy script for SoapUI tests

Im working with SoapUI less 1 months. Today Im got a task related with a cheking image size, which we get in RSS from server. And I must to check all image size in accordance with requirements. What can I do to make sure that I was able to enter the some sizes of images in the script, and he could verify the conformity of these sizes with a sizes of which we gave from the server? For example, I have a requirement, that the image size must have 200x200 size, and I want to check that the size of some image have this size really. I'll be very grateful for some help. Thanks.

Answers


Your question does not have much information to go on, but here is the basic outline.

Get the <url/> sub-element of the <image/> element from RSS, and use:

def img = ImageIO.read(url)

Now you can call img.height and img.width to get the size of the image, which you can compare against the expected value (or the values specified in the <width/> and <height/> sub-elements in the RSS file).


Need Your Help

Throw a custom 401 HTTP Exception in Kohana

php kohana http-status-code-401 kohana-3.3 www-authenticate

When I throw a HTTP_Exception_401 in Kohana 3.3 I get the following error:

How to prevent a text from appearing up in firebug or View Source of browser

javascript jquery jsp firebug chromebug

I have a simple Pan card no : xxxxxxx7654 , which i am showing using jsp in the browser. Now , if i use the view source functionality of the browser or the firebug tool or chrome bug tool, then i w...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.