<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8380166143013541484</id><updated>2012-02-16T07:43:57.478-08:00</updated><title type='text'>StupidBox Screw-ups</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://raghu-stupidboxscrewups.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380166143013541484/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://raghu-stupidboxscrewups.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>rags</name><uri>http://www.blogger.com/profile/09687727614907227950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8380166143013541484.post-633456549649734218</id><published>2009-01-08T01:13:00.001-08:00</published><updated>2009-02-12T00:37:53.008-08:00</updated><title type='text'>WebTest - Open source functional testing tool</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_FIQWxI0RYLs/SWXGkoNpdBI/AAAAAAAAAAk/bthtfO0ENig/s1600-h/header.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5288851669988766738" style="margin: 0px 10px 10px 0px; float: left; width: 320px; height: 30px;" alt="" src="http://3.bp.blogspot.com/_FIQWxI0RYLs/SWXGkoNpdBI/AAAAAAAAAAk/bthtfO0ENig/s320/header.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;&lt;span style="font-weight: bold;"&gt;Site URL&lt;/span&gt; : &lt;a href="http://webtest.canoo.com/webtest/manual/WebTestHome.html"&gt;http://webtest.canoo.com/webtest/manual/WebTestHome.html&lt;/a&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="color: rgb(102, 102, 102);font-size:100%;" &gt;       &lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:100%;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;Be aware of XPath, ANT, Groovy scripting, Regex&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Installation :&lt;br /&gt;&lt;ol&gt;&lt;li&gt;   Install &lt;span style="font-weight: bold;"&gt;JDK 5&lt;/span&gt; or Higher version&lt;br /&gt;&lt;/li&gt;&lt;li&gt;  Download &lt;a href="http://webtest.canoo.com/webtest/build.zip"&gt;&lt;span style="font-weight: bold;"&gt;build.zip&lt;/span&gt;&lt;/a&gt; file of Webtest &lt;/li&gt;&lt;li&gt;Unzip &lt;span style="font-weight: bold;"&gt;build.zip file&lt;/span&gt; to  a folder to the location which do you wish&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Add the &lt;span style="font-weight: bold;" class="example"&gt;bin/&lt;/span&gt; directory of your &lt;span style="font-weight: bold;"&gt;WebTest&lt;/span&gt;      to your path, by opening up the System Properties (&lt;span&gt;press keys &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;WinKey + Pause&lt;/span&gt;), selecting the      &lt;span style="font-weight: bold;"&gt;Advanced&lt;/span&gt;      tab, and the      &lt;span style="font-weight: bold;"&gt;Environment Variables      button&lt;/span&gt;, then editing the      &lt;span style="font-weight: bold;" class="example"&gt;PATH&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;      &lt;/span&gt;variable in the &lt;span style="font-weight: bold;"&gt;user variables&lt;/span&gt;.&lt;br /&gt;For example:&lt;br /&gt;&lt;span class="example"&gt;"D:\Webtest\bin";%PATH%&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;     Running Webtest:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Unzip&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;span&gt;&lt;span style="font-weight: bold;"&gt;build.zip&lt;/span&gt; file to a folder for example&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; ---&gt; D:\Webtest\&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;Open a &lt;span style="font-weight: bold;"&gt;cmd prompt&lt;/span&gt; &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;Type&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;   cd "D:\&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;Webtest\"&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Type &lt;span style="font-weight: bold;"&gt;webtest -f  webtest.xml wt.createProject&lt;/span&gt;&lt;/li&gt;&lt;li&gt;You will be asked to type the project name -- Enter for example&lt;span style="font-weight: bold;"&gt; sampleProject&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;ul&gt;&lt;li&gt;     Now the project &lt;span style="font-weight: bold;"&gt;D:\Webtest\ sampleProject&lt;/span&gt;\ will be created&lt;/li&gt;&lt;li&gt;     Steps 1 through 5 are to be done &lt;span style="font-weight: bold;"&gt;only one time&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;        6. Type &lt;span style="font-weight: bold;"&gt;cd &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;"D:\Webtest\ sampleProject&lt;/span&gt;\"&lt;br /&gt;7.  Type &lt;span style="font-weight: bold;"&gt;webtest&lt;br /&gt;&lt;br /&gt;That's it.... You will see the webtest will be running .....&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;If you want &lt;span style="font-weight: bold; font-style: italic;"&gt;add more Webtest testcases&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;8. Create and save more testcases in location&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;span style="font-weight: bold;"&gt;D:\Webtest\ sampleProject\tests&lt;/span&gt;\&lt;br /&gt;9. To run again&lt;span style="font-weight: bold;"&gt; repeat Setps 6 and 7&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 255);"&gt;Video tutorials:&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span&gt;Installation &amp;amp; Runing : &lt;a href="http://opensource.basehaus.com/webtest/screencasts/creating-a-first-webtest-project.htm"&gt;http://opensource.basehaus.com/webtest/screencasts/creating-a-first-webtest-project.htm&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;span&gt;Data driven Test : &lt;a href="http://opensource.basehaus.com/webtest/screencasts/data-driven-webtest.htm"&gt;http://opensource.basehaus.com/webtest/screencasts/data-driven-webtest.htm&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt; Webtest PPT : &lt;a href="http://mguillem.wordpress.com/2008/08/26/webtest-jug-cologne-slides/"&gt;http://mguillem.wordpress.com/2008/08/26/webtest-jug-cologne-slides/&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-weight: bold;"&gt;HTTPS site testing&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Toughtest method&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;ol type="1"&gt;&lt;li&gt;&lt;p class="line862"&gt;To set up SSL for a new host, first you need to import the cert into the keystore so Java can get at it.  If you have &lt;tt&gt;openssl&lt;/tt&gt;, you can also use that, e.g. check this one out: &lt;span class="anchor" id="line-18"&gt;&lt;/span&gt;&lt;span class="anchor" id="line-19"&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt; echo | openssl s_client -connect sc24.sjc.collab.net:443 | openssl x509 -inform PEM -outform DER -trustout  -out outfile.crt&lt;br /&gt;&lt;span class="anchor" id="line-20"&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;&lt;span style="font-style: italic;"&gt;(this is for Linux systems)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;IE, click on the cert, then go to Cert Details and "copy cert" to a DER&lt;br /&gt;encoded file.&lt;span style="font-style: italic; font-weight: bold;"&gt;(for Windows Systems)&lt;/span&gt;&lt;/pre&gt;&lt;span class="anchor" id="line-21"&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;p class="line862"&gt;Then once you have the cert in hand, import it into the keystore in the &lt;tt&gt;webtest/cubit/&lt;/tt&gt; directory. &lt;span class="anchor" id="line-22"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p class="line867"&gt;&lt;span class="anchor" id="line-23"&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;    $ keytool -import -storepass together -file /tmp/outfile.crt -keystore trust.keystore -alias cubitstore&lt;br /&gt;     Owner: EMAILADDRESS=hostmaster@collab.net, CN=mgr.cubit.example.com, O="CollabNet, Inc.", L=Brisbane, ST=California, C=US&lt;br /&gt;     Issuer: EMAILADDRESS=hostmaster@collab.net, CN=mgr.cubit.example.com, O="CollabNet, Inc.", L=Brisbane, ST=California, C=US&lt;br /&gt;     Serial number: 0&lt;br /&gt;     Valid from: Mon Oct 29 15:46:22 PDT 2007 until: Tue Oct 28 15:46:22 PDT 2008&lt;br /&gt;     Certificate fingerprints:&lt;br /&gt;     MD5:  F7:B1:A8:C6:C6:CE:A1:88:00:EC:F3:7A:5B:63:79:49&lt;br /&gt;     SHA1: 1F:44:88:BE:32:97:A9:28:6F:C5:8C:D7:A0:9B:18:1A:3D:BD:4E:9E&lt;br /&gt; Trust this certificate? [no]:  yes&lt;br /&gt; Certificate was added to keystore&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Easiest Method&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Just setting useInsecureSSL="true" in the &lt;a href="http://webtest.canoo.com/webtest/manual/config.html"&gt;config&lt;/a&gt; tag ... That's it&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;h3 style="text-align: center;" id="head-63a24ec41cbb3f8e4031e1b4b38eec2c2272b603"&gt;step.context.webClient.throwExceptionOnFailingStatusCode&lt;/h3&gt;&lt;h3 style="text-align: center;" id="head-63a24ec41cbb3f8e4031e1b4b38eec2c2272b603"&gt;property&lt;/h3&gt;&lt;pre style="font-family: georgia;"&gt;&lt;span style="font-size:85%;"&gt;The webtest is designed to verify a valid HTTP response 200 OK. In certain cases, we are required to verify the error response. For instance, while testing the PBL Access priv/ area for an unauthorized user, we should verify if &lt;em&gt;Authorization Required&lt;/em&gt; message is displayed. In this case, the server returns 401 response code.  &lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:georgia;"&gt;In order to verify this response, we override&lt;/span&gt; &lt;tt style="font-weight: bold;"&gt;step.context.webClient.throwExceptionOnFailingStatusCode&lt;/tt&gt; webtest property. The following code snippet is added in the beginning of that module:&lt;/span&gt;&lt;pre&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_FIQWxI0RYLs/SZPPdTt5ydI/AAAAAAAAACM/MqFCHwwj3cg/s1600-h/error.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 30px;" src="http://4.bp.blogspot.com/_FIQWxI0RYLs/SZPPdTt5ydI/AAAAAAAAACM/MqFCHwwj3cg/s320/error.png" alt="" id="BLOGGER_PHOTO_ID_5301809288761166290" border="0" /&gt;&lt;/a&gt;&lt;/pre&gt; &lt;pre style="font-weight: bold;"&gt;&lt;br /&gt;&lt;span style="font-weight: normal; font-family: georgia;font-size:85%;" &gt;In the end of the module, this property should be reverted back. The following code snippet to&lt;br /&gt;revert this behavior:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_FIQWxI0RYLs/SZPfYIpa97I/AAAAAAAAACk/HOiRaNcVIig/s1600-h/untitled3.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 225px;" src="http://4.bp.blogspot.com/_FIQWxI0RYLs/SZPfYIpa97I/AAAAAAAAACk/HOiRaNcVIig/s320/untitled3.png" alt="" id="BLOGGER_PHOTO_ID_5301826792076277682" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;pre style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Testing Ajax base application&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-size:100%;"&gt;The below code should be added at the beginning of  your testcase&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_FIQWxI0RYLs/SZPTucUsrYI/AAAAAAAAACc/YSbdn7GOf9c/s1600-h/untitled2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 188px;" src="http://3.bp.blogspot.com/_FIQWxI0RYLs/SZPTucUsrYI/AAAAAAAAACc/YSbdn7GOf9c/s320/untitled2.png" alt="" id="BLOGGER_PHOTO_ID_5301813981175655810" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380166143013541484-633456549649734218?l=raghu-stupidboxscrewups.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://raghu-stupidboxscrewups.blogspot.com/feeds/633456549649734218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380166143013541484&amp;postID=633456549649734218&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380166143013541484/posts/default/633456549649734218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380166143013541484/posts/default/633456549649734218'/><link rel='alternate' type='text/html' href='http://raghu-stupidboxscrewups.blogspot.com/2009/01/webtest-open-source-functional-testing.html' title='WebTest - Open source functional testing tool'/><author><name>rags</name><uri>http://www.blogger.com/profile/09687727614907227950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_FIQWxI0RYLs/SWXGkoNpdBI/AAAAAAAAAAk/bthtfO0ENig/s72-c/header.gif' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8380166143013541484.post-6412415014110928814</id><published>2009-01-08T00:42:00.000-08:00</published><updated>2009-01-08T02:04:47.971-08:00</updated><title type='text'>Software stuck up Buster</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_FIQWxI0RYLs/SWXPfBzbBcI/AAAAAAAAABs/ZQ6I1CzbZuo/s1600-h/pcrf008662.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 112px; height: 168px;" src="http://3.bp.blogspot.com/_FIQWxI0RYLs/SWXPfBzbBcI/AAAAAAAAABs/ZQ6I1CzbZuo/s320/pcrf008662.jpg" alt="" id="BLOGGER_PHOTO_ID_5288861469383525826" border="0" /&gt;&lt;/a&gt;                 &lt;em&gt;&lt;/em&gt;                                This blog is repo of my day-to-day Soft-ware knowledge&lt;em&gt; acquisitions&lt;/em&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;em&gt;&lt;/em&gt;&lt;br /&gt;&lt;div&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380166143013541484-6412415014110928814?l=raghu-stupidboxscrewups.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://raghu-stupidboxscrewups.blogspot.com/feeds/6412415014110928814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380166143013541484&amp;postID=6412415014110928814&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380166143013541484/posts/default/6412415014110928814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380166143013541484/posts/default/6412415014110928814'/><link rel='alternate' type='text/html' href='http://raghu-stupidboxscrewups.blogspot.com/2009/01/hi-folks-this-blog-is-repo-of-my-day-to.html' title='Software stuck up Buster'/><author><name>rags</name><uri>http://www.blogger.com/profile/09687727614907227950</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_FIQWxI0RYLs/SWXPfBzbBcI/AAAAAAAAABs/ZQ6I1CzbZuo/s72-c/pcrf008662.jpg' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
