Posts

Showing posts with the label http tests

Ever tried adding 2K+ comments to an article?

Image
A few days back I encountered a strange behavior while working on an issue which I feel worth sharing.  The test case is to check comments section when number of comments for an article are ‘n-1’, ‘n’ and ‘n+1’ (where n = 2000,  3000, etc.). My goal is to identify the point where the comment section breaks in lower environment with ‘n’ comments. I queried QA database and didn’t find much data to check all scenarios. Now my challenge is to quickly create dummy data in QA environment to identify the point where comment section breaks.  How to quickly add bulk comments to an article? To do this there are several approaches … some of them are a)   Add entries (comments) manually till required number of comments were added. Cons: Clumsy and time taking process. b)   Write DB scripts to populate numerous records on one go. Pros: Quick and efficient. Cons: This approach works in most of the cases but not always. Also, it doesn’t seem...

Rock & Roll With Http Level Testing

Article written by   Sreenivas Mothukuru In continuation to my previous topic (My approach towards automation) There are many tools available on web to test at http level. However, I explored Web Inject tool and found the tool very handy & simple to impliment http level testing. Follow below steps to run http level tests to check form validations and apache redirections for  http://www.blogger.com/ web site. 1) Download “webinject-1.41.win32.zip - MS Windows Executable + Source Code” from http://www.webinject.org/download.html location). 2) Un-zip “webinject-1.41.win32.zip” and copy folder to some drive/location. 3) In Config.xml (within Web Inject folder), replace entire content with ******************************************************** <testcasefile>sampleTest.xml</testcasefile> ******************************************************** 4) Create a file named “sampleTest.xml” (within Web...