<rdf:RDF
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xml:base='http://wiki.marandcustomsolutions.com/rdf'>
    <s:Snip rdf:about='http://wiki.marandcustomsolutions.com/rdf#Development/Selenium'
         s:name='Development/Selenium'
         s:cUser='mpecher'
         s:oUser=''
         s:mUser='mpecher'>
        <s:content>Selenium is a test tool for web applications. \\&#xD;&#xA;Selenium tests run directly in a browsers, just as real users do. And they run in Internet Explorer, Mozilla and Firefox on Windows, Linux and Macintosh. \\&#xD;&#xA;&#xD;&#xA;Taken from a Selenium doco site: http://www.openqa.org/selenium/index.html.\\&#xD;&#xA;&#xD;&#xA;Playing around with it a bit here at work. Seems quite good.&#xD;&#xA;Once set up, to write a test, you place the thing you&apos;re testing for in a HTML row:\\&#xD;&#xA;eg.:&#xD;&#xA;{code:html}&#xD;&#xA;&lt;tr&gt;&lt;td&gt;clickAndWait&lt;/td&gt;&lt;td&gt;//input[@value=&apos;Modify&apos;]&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&#xD;&#xA;&lt;tr&gt;&lt;td&gt;assertTextNotPresent&lt;/td&gt; &lt;td&gt;Previous  Page&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&#xD;&#xA;{code}&#xD;&#xA;This is best place inside a jsp. If using jsp, this can include other jsp for common functionality such as login etc.\\&#xD;&#xA;&#xD;&#xA;eg: an example login jsp:&#xD;&#xA;{code:html}&#xD;&#xA;&lt;tr&gt;&#xD;&#xA;  &lt;td&gt;open&lt;/td&gt;&#xD;&#xA;  &lt;td&gt;http://localhost:8080index.jsp&lt;/td&gt;&#xD;&#xA;  &lt;td&gt;&amp;nbsp;&lt;/td&gt;&#xD;&#xA;&lt;/tr&gt;&#xD;&#xA;&lt;tr&gt;&lt;td&gt;assertTextPresent&lt;/td&gt; &lt;td&gt;Login Portlet&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&#xD;&#xA;&lt;tr&gt;&lt;td&gt;type&lt;/td&gt; &lt;td&gt;userID&lt;/td&gt;&lt;td&gt;wpsadmin&lt;/td&gt;&lt;/tr&gt;&#xD;&#xA;&lt;tr&gt;&lt;td&gt;type&lt;/td&gt; &lt;td&gt;password&lt;/td&gt;&lt;td&gt;wpsadmin&lt;/td&gt;&lt;/tr&gt;&#xD;&#xA;&lt;tr&gt;&lt;td&gt;clickAndWait&lt;/td&gt; &lt;td&gt;//input[@value=&apos;Log in&apos;]&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;This could then simply be included by the calling jsp as:\\&#xD;&#xA;{code:html}&#xD;&#xA;&lt;jsp:include page=&quot;../shared/login.jsp&quot; /&gt;&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;One could even pass params if needed such as:&#xD;&#xA;{code:html}&#xD;&#xA;&lt;jsp:include page=&quot;../shared/selectWar.jsp&quot;&gt;&#xD;&#xA;  &lt;jsp:param name=&quot;warName&quot; value=&quot;identityManagement&quot; /&gt;&#xD;&#xA;&lt;/jsp:include&gt;&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Where the selectWar.jsp called would be able to access the variable with:\\ &#xD;&#xA;{code}&#xD;&#xA;String warName = request.getParameter(&quot;warName&quot;);&#xD;&#xA;{code}&#xD;&#xA;All standard jsp stuff.&#xD;&#xA;</s:content>
        <s:mTime>2006-01-03 13:10:08.0</s:mTime>
        <s:cTime>2005-12-09 15:59:54.0</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='#Development'/>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='#snipsnap-search'/>
                <rdf:li rdf:resource='http://wiki.marandcustomsolutions.com/rdf#Development/Java &amp; J2EE/Spring'/>
                <rdf:li rdf:resource='#Siteminder'/>
            </rdf:Bag>
        </s:snipLinks>
        <s:attachments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
    </s:Snip>
</rdf:RDF>

