<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Anand M Muranal</title>
	<atom:link href="http://anandmuranal.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://anandmuranal.wordpress.com</link>
	<description>knowing is half the battle</description>
	<lastBuildDate>Thu, 17 Sep 2009 04:55:55 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='anandmuranal.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/462f96a74a1c4a39cdb01ef852e4abcc?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Anand M Muranal</title>
		<link>http://anandmuranal.wordpress.com</link>
	</image>
			<item>
		<title>Export Crystal Report to PDF by using Java Program</title>
		<link>http://anandmuranal.wordpress.com/2009/08/20/crystal-report-java/</link>
		<comments>http://anandmuranal.wordpress.com/2009/08/20/crystal-report-java/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 11:23:58 +0000</pubDate>
		<dc:creator>Anand Muranal</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Crystal report]]></category>
		<category><![CDATA[export to pdf]]></category>

		<guid isPermaLink="false">http://anandmuranal.wordpress.com/?p=584</guid>
		<description><![CDATA[Here I am using some crystal report which will connect to database and fetch the data to create report.
It will expect username and password from the calling function.
Also it will expect some parameter(Name) from the calling function. Below is the code
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.util.Date;
import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;
import com.crystaldecisions.*;
import com.crystaldecisions.sdk.occa.report.data.Connections;
import com.crystaldecisions.sdk.occa.report.data.Fields;
import com.crystaldecisions.sdk.occa.report.data.IConnection;
import com.crystaldecisions.sdk.occa.report.data.ParameterField;
import com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat;
public [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandmuranal.wordpress.com&blog=791775&post=584&subd=anandmuranal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Here I am using some crystal report which will connect to database and fetch the data to create report.<br />
It will expect username and password from the calling function.<br />
Also it will expect some parameter(Name) from the calling function. Below is the code</p>
<p>import java.io.ByteArrayInputStream;<br />
import java.io.ByteArrayOutputStream;<br />
import java.io.File;<br />
import java.io.FileOutputStream;<br />
import java.sql.Connection;<br />
import java.sql.DriverManager;<br />
import java.util.Date;<br />
import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;<br />
import com.crystaldecisions.*;<br />
import com.crystaldecisions.sdk.occa.report.data.Connections;<br />
import com.crystaldecisions.sdk.occa.report.data.Fields;<br />
import com.crystaldecisions.sdk.occa.report.data.IConnection;<br />
import com.crystaldecisions.sdk.occa.report.data.ParameterField;<br />
import com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat;</p>
<p>public class ReportExport {</p>
<p style="padding-left:30px;">public static void main(String[] args) {<br />
try {</p>
<p style="padding-left:60px;">String report_name = &#8220;D://path/crystalReportName.rpt&#8221;;<br />
String exportFileName = &#8220;D://path/outputFileName.pdf&#8221;;</p>
<p style="padding-left:60px;">ReportClientDocument clientDoc =  new ReportClientDocument();<br />
clientDoc.open(report_name, ReportExportFormat._PDF);</p>
<p style="padding-left:60px;">//Connecting Database through crystal report<br />
clientDoc.getDatabaseController().logon(&#8220;user_name&#8221;, &#8220;password&#8221;);</p>
<p style="padding-left:60px;">//Passing Parameter(Name) to Crystal Report<br />
clientDoc.getDataDefController().getParameterFieldController().setCurrentValue(&#8220;&#8221;, &#8220;Name&#8221;,&#8221;anand&#8221;);</p>
<p style="padding-left:60px;">//Writing into PDF file<br />
ByteArrayInputStream bais = (ByteArrayInputStream) clientDoc.getPrintOutputController().export(ReportExportFormat.PDF);<br />
int size = bais.available();<br />
byte[] barray = new byte[size];<br />
FileOutputStream fos = new FileOutputStream(new File(exportFileName));<br />
ByteArrayOutputStream baos = new ByteArrayOutputStream(size);<br />
int bytes = bais.read(barray, 0, size);<br />
baos.write(barray, 0, bytes);<br />
baos.writeTo(fos);</p>
<p style="padding-left:60px;">clientDoc.close();<br />
bais.close();<br />
baos.close();<br />
fos.close();<br />
dbConn.close();</p>
<p style="padding-left:30px;">} catch (Exception e) {<br />
e.printStackTrace();<br />
}</p>
<p>}<br />
}</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anandmuranal.wordpress.com/584/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anandmuranal.wordpress.com/584/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anandmuranal.wordpress.com/584/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anandmuranal.wordpress.com/584/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anandmuranal.wordpress.com/584/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anandmuranal.wordpress.com/584/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anandmuranal.wordpress.com/584/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anandmuranal.wordpress.com/584/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anandmuranal.wordpress.com/584/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anandmuranal.wordpress.com/584/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandmuranal.wordpress.com&blog=791775&post=584&subd=anandmuranal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://anandmuranal.wordpress.com/2009/08/20/crystal-report-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Anand M</media:title>
		</media:content>
	</item>
		<item>
		<title>Difference between Struts and Spring Framework,</title>
		<link>http://anandmuranal.wordpress.com/2009/07/24/difference-between-struts-and-spring-framework/</link>
		<comments>http://anandmuranal.wordpress.com/2009/07/24/difference-between-struts-and-spring-framework/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 10:15:44 +0000</pubDate>
		<dc:creator>Anand Muranal</dc:creator>
				<category><![CDATA[Spring]]></category>
		<category><![CDATA[difference between struts and spring framework]]></category>

		<guid isPermaLink="false">http://anandmuranal.wordpress.com/?p=565</guid>
		<description><![CDATA[



Sl. No


Struts


Spring




1


Struts is a web framework


Spring is an application
framework




2


Using MVC pattern


spring MVC is one of the
modules




3


Hard code to use applications
like hibernate, JDBC


Inbuilt hibernate, JDBC etc




4


Struts allows only JSP


Support JSPs, Velocity,
Free maker etc.,




5


Struts is heavy weight


Spring is light weight




6


Struts is tightly coupled


Spring is loosely coupled.




7


Excellent support for
Tag Library


Not that Much




8


Easy to integrate with other
client side technologies


Not [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandmuranal.wordpress.com&blog=791775&post=565&subd=anandmuranal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="60" valign="top">
<pre><strong>Sl. No</strong></pre>
</td>
<td width="228" valign="top">
<pre><strong>Struts</strong></pre>
</td>
<td width="216" valign="top">
<pre><strong>Spring</strong></pre>
</td>
</tr>
<tr>
<td width="60" valign="top">
<pre>1</pre>
</td>
<td width="228" valign="top">
<pre>Struts is a web framework</pre>
</td>
<td width="216" valign="top">
<pre>Spring is an application
framework</pre>
</td>
</tr>
<tr>
<td width="60" valign="top">
<pre>2</pre>
</td>
<td width="228" valign="top">
<pre>Using MVC pattern</pre>
</td>
<td width="216" valign="top">
<pre>spring MVC is one of the
modules</pre>
</td>
</tr>
<tr>
<td width="60" valign="top">
<pre>3</pre>
</td>
<td width="228" valign="top">
<pre>Hard code to use applications
like hibernate, JDBC</pre>
</td>
<td width="216" valign="top">
<pre>Inbuilt hibernate, JDBC etc</pre>
</td>
</tr>
<tr>
<td width="60" valign="top">
<pre>4</pre>
</td>
<td width="228" valign="top">
<pre>Struts allows only JSP</pre>
</td>
<td width="216" valign="top">
<pre>Support JSPs, Velocity,
Free maker etc.,</pre>
</td>
</tr>
<tr>
<td width="60" valign="top">
<pre>5</pre>
</td>
<td width="228" valign="top">
<pre>Struts is heavy weight</pre>
</td>
<td width="216" valign="top">
<pre>Spring is light weight</pre>
</td>
</tr>
<tr>
<td width="60" valign="top">
<pre>6</pre>
</td>
<td width="228" valign="top">
<pre>Struts is tightly coupled</pre>
</td>
<td width="216" valign="top">
<pre>Spring is loosely coupled.</pre>
</td>
</tr>
<tr>
<td width="60" valign="top">
<pre>7</pre>
</td>
<td width="228" valign="top">
<pre>Excellent support for
Tag Library</pre>
</td>
<td width="216" valign="top">
<pre>Not that Much</pre>
</td>
</tr>
<tr>
<td width="60" valign="top">
<pre>8</pre>
</td>
<td width="228" valign="top">
<pre>Easy to integrate with other
client side technologies</pre>
</td>
<td width="216" valign="top">
<pre>Not Easy.</pre>
</td>
</tr>
</tbody>
</table>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anandmuranal.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anandmuranal.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anandmuranal.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anandmuranal.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anandmuranal.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anandmuranal.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anandmuranal.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anandmuranal.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anandmuranal.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anandmuranal.wordpress.com/565/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandmuranal.wordpress.com&blog=791775&post=565&subd=anandmuranal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://anandmuranal.wordpress.com/2009/07/24/difference-between-struts-and-spring-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Anand M</media:title>
		</media:content>
	</item>
		<item>
		<title>Spring Framework</title>
		<link>http://anandmuranal.wordpress.com/2009/07/24/spring-framework/</link>
		<comments>http://anandmuranal.wordpress.com/2009/07/24/spring-framework/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 09:51:42 +0000</pubDate>
		<dc:creator>Anand Muranal</dc:creator>
				<category><![CDATA[Spring]]></category>
		<category><![CDATA[AOP]]></category>
		<category><![CDATA[IOC]]></category>
		<category><![CDATA[POJO]]></category>
		<category><![CDATA[Spring DAO]]></category>
		<category><![CDATA[Spring Framework]]></category>
		<category><![CDATA[Spring ORM]]></category>

		<guid isPermaLink="false">http://anandmuranal.wordpress.com/?p=553</guid>
		<description><![CDATA[Spring is standard in lightweight enterprise application framework. Layered architecture, which allows you to be selective about which of its components you use there are seven modules in Spring Frame work
I&#62;  Spring Core:
Uses IOC pattern to separate the application configuration with dependency specification from the actual application code.
IOC (Inversion of control)

No creation of object but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandmuranal.wordpress.com&blog=791775&post=553&subd=anandmuranal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Spring is standard in lightweight enterprise application framework. Layered architecture, which allows you to be selective about which of its components you use there are seven modules in Spring Frame work</p>
<p><strong>I&gt;  Spring Core:</strong></p>
<p>Uses IOC pattern to separate the application configuration with dependency specification from the actual application code.</p>
<p><strong>IOC (Inversion of control)</strong></p>
<ul>
<li>No creation of object but describe how to create</li>
<li>Not connect direct to components</li>
<li>Mention in conf file for which service which component</li>
<li><code>org.springframework.beans</code></li>
</ul>
<p><code>Bean Factory</code></p>
<ul>
<li><code>org.springframework.beans.factory.BeanFactory</code></li>
<li>Singletone mode: Shared instance</li>
<li>Prototype Mode: each retrieval result new object</li>
<li>Take care when to create objects and when to invoke the method</li>
</ul>
<p>Java Beans -  <strong>POJO ()</strong></p>
<ul>
<li>No creation of object but describe how to create</li>
</ul>
<p><strong>II&gt;  Spring Context: </strong></p>
<ul>
<li>Context Information</li>
<li>EJB, e-mail, internalization,      validation, and scheduling functionality.</li>
</ul>
<p><strong>III&gt;  Spring AOP (Aspect Oriented Programming):</strong></p>
<ul>
<li>Provides transaction      management services for objects</li>
<li>Logging (declaratively to the      components that required logging.)</li>
</ul>
<p><strong>IV&gt; </strong><strong>Spring DAO (Data Access Object):</strong></p>
<ul>
<li>managing      the exception handling</li>
<li>error      messages</li>
<li>opening      and closing connections</li>
</ul>
<p><strong>V &gt; Spring ORM<br />
</strong></p>
<ul>
<li>Including      JDO, Hibernate, and iBatis SQL Maps.</li>
</ul>
<p><strong>VI&gt;  Spring Web Module</strong></p>
<ul>
<li>The      Web module also eases the tasks of handling multi-part requests and      binding request parameters to domain objects.</li>
</ul>
<p><strong>VII &gt; Spring MVC framework</strong>:</p>
<ul>
<li>Numerous      view technologies including JSP, Velocity, Tiles</li>
</ul>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anandmuranal.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anandmuranal.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anandmuranal.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anandmuranal.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anandmuranal.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anandmuranal.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anandmuranal.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anandmuranal.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anandmuranal.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anandmuranal.wordpress.com/553/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandmuranal.wordpress.com&blog=791775&post=553&subd=anandmuranal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://anandmuranal.wordpress.com/2009/07/24/spring-framework/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Anand M</media:title>
		</media:content>
	</item>
		<item>
		<title>Groovy and Grails</title>
		<link>http://anandmuranal.wordpress.com/2009/06/29/groovy-and-grails/</link>
		<comments>http://anandmuranal.wordpress.com/2009/06/29/groovy-and-grails/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 12:50:25 +0000</pubDate>
		<dc:creator>Anand Muranal</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://anandmuranal.wordpress.com/?p=544</guid>
		<description><![CDATA[Groovy&#8230;

is an agile and dynamic      language for the Java Virtual Machine
builds upon the strengths of      Java but has additional power features inspired by languages like      Python, Ruby and Smalltalk
makes modern programming      features available to Java [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandmuranal.wordpress.com&blog=791775&post=544&subd=anandmuranal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h3>Groovy&#8230;</h3>
<ul>
<li>is an agile and <strong>dynamic      language</strong> for the <strong>Java Virtual Machine</strong></li>
<li>builds upon the strengths of      Java but has <strong>additional power features</strong> inspired by languages like      Python, Ruby and Smalltalk</li>
<li>makes <strong>modern programming      features</strong> available to Java developers with <strong>almost-zero learning      curve</strong></li>
<li>supports <strong>Domain-Specific      Languages</strong> and other compact syntax so your code becomes <strong>easy to      read and maintain</strong></li>
<li>makes writing shell and build      scripts easy with its <strong>powerful processing primitives</strong>, OO abilities      and an Ant DSL</li>
<li>increases developer      productivity by <strong>reducing scaffolding code</strong> when developing web, GUI,      database or console applications</li>
<li><strong>simplifies testing</strong> by      supporting unit testing and mocking out-of-the-box</li>
<li>seamlessly <strong>integrates with      all existing Java objects and libraries</strong></li>
<li>compiles straight to Java      bytecode so you can use it anywhere you can use Java</li>
</ul>
<p><strong>Grails</strong> is an open source web application framework which leverages the Groovy programming language (which is in turn based on the Java platform). It is intended to be a high-productivity framework by following the &#8220;coding by convention&#8221; paradigm, providing a stand-alone development environment and hiding much of the configuration detail from the developer.</p>
<p>Grails has been developed with a number of goals in mind:</p>
<ul>
<li>Provide a high-productivity      web framework for the Java platform.</li>
<li>Re-use proven Java      technologies such as Hibernate and Spring under a simple, consistent      interface</li>
<li>Offer a consistent framework      which reduces confusion and is easy to learn.</li>
<li>Offer documentation for those      parts of the framework which matter for its users.</li>
<li>Provide what users expect in      areas which are often complex and inconsistent:
<ul>
<li>Powerful and       consistent persistence framework.</li>
<li>Powerful and easy to       use view templates using GSP (Groovy Server Pages).</li>
<li>Dynamic tag libraries       to easily create web page components.</li>
<li>Good Ajax support which is easy to extend       and customize.</li>
</ul>
</li>
<li>Provide sample applications which      demonstrate the power of the framework.</li>
<li>Provide a complete      development mode, including web server and automatic reload of resources.</li>
</ul>
<p>Grails has been designed to be easy to learn, easy to develop applications and extensible. It attempts to offer the right balance between consistency and powerful features.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anandmuranal.wordpress.com/544/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anandmuranal.wordpress.com/544/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anandmuranal.wordpress.com/544/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anandmuranal.wordpress.com/544/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anandmuranal.wordpress.com/544/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anandmuranal.wordpress.com/544/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anandmuranal.wordpress.com/544/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anandmuranal.wordpress.com/544/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anandmuranal.wordpress.com/544/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anandmuranal.wordpress.com/544/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandmuranal.wordpress.com&blog=791775&post=544&subd=anandmuranal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://anandmuranal.wordpress.com/2009/06/29/groovy-and-grails/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Anand M</media:title>
		</media:content>
	</item>
		<item>
		<title>WATIR</title>
		<link>http://anandmuranal.wordpress.com/2009/06/29/watir/</link>
		<comments>http://anandmuranal.wordpress.com/2009/06/29/watir/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 12:44:48 +0000</pubDate>
		<dc:creator>Anand Muranal</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://anandmuranal.wordpress.com/2009/06/29/watir/</guid>
		<description><![CDATA[WATIR, pronounced &#8220;Water&#8221;, is an acronym standing for &#8220;Web Application Testing in Ruby&#8221;. Watir is a toolkit used to automate browser-based tests during web application development. This automated test tool uses the Ruby scripting language to drive the Internet Explorer web browser, and is available as a Ruby Gem.
Examples
The google example
# Here we see a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandmuranal.wordpress.com&blog=791775&post=543&subd=anandmuranal&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>WATIR, pronounced &#8220;Water&#8221;, is an acronym standing for &#8220;Web Application Testing in Ruby&#8221;. Watir is a toolkit used to automate browser-based tests during web application development. This automated test tool uses the Ruby scripting language to drive the Internet Explorer web browser, and is available as a Ruby Gem.</p>
<p>Examples</p>
<p>The google example</p>
<p># Here we see a very simple WATIR script to drive to google and validate a page</p>
<p>require &#8216;watir&#8217;                                                    # use watir gem</p>
<p>test_site = &#8216;http://www.google.com&#8217;             # set a variable</p>
<p>ie = Watir::IE.new                                           # open the IE browser</p>
<p>ie.goto(test_site)                                             # load url, go to site</p>
<p>ie.text_field(:name, &#8220;q&#8221;).set(&#8220;pickaxe&#8221;)          # load text &#8220;pickaxe&#8221; into search field named &#8220;q&#8221;</p>
<p>ie.button(:name, &#8220;btnG&#8221;).click                         # &#8220;btnG&#8221; is the name of the</p>
<p># Search button, click it</p>
<p>if ie.text.include?(&#8220;Programming Ruby&#8221;)</p>
<p>puts &#8220;Test Passed. Found the test string: &#8216;Programming Ruby&#8217;.&#8221;</p>
<p>else</p>
<p>puts &#8220;Test Failed! Could not find: &#8216;Programming Ruby&#8217;&#8221;</p>
<p>end</p>
<p>The previous commands can be executed in the Interactive Ruby Shell (irb), or in a Ruby IDE such as FreeRIDE that is installed when Ruby is installed with the once click installer.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anandmuranal.wordpress.com/543/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anandmuranal.wordpress.com/543/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anandmuranal.wordpress.com/543/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anandmuranal.wordpress.com/543/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anandmuranal.wordpress.com/543/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anandmuranal.wordpress.com/543/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anandmuranal.wordpress.com/543/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anandmuranal.wordpress.com/543/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anandmuranal.wordpress.com/543/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anandmuranal.wordpress.com/543/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anandmuranal.wordpress.com&blog=791775&post=543&subd=anandmuranal&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://anandmuranal.wordpress.com/2009/06/29/watir/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Anand M</media:title>
		</media:content>
	</item>
	</channel>
</rss>