WYSIWYG

http://kufli.blogspot.com
http://github.com/karthik20522

Tuesday, February 19, 2013

JMeter - Posting JSON

Apache JMeter is probably one of the most comprehensive Load/Stress testing tool out in the market that is free! One of the tasks that I recently was to load test a WebApi service with production data to simulate real world data. Unfortunately there were not many articles that discussed about a simple way of using jMeter to post data. Following is a step by step procedure to post JSON to a URI:

Step 1: Assuming you already have your root setup (thread group)



Step 2: Add a HTTP Request "Config Element" and fill up the "Server Name or IP" with your server address and port number i.e. if you have one and change the Http Request Protocol to http and Method to POST. Update the Http Request Path with the URI. In the Http Request Parameters, add a new row with the Value as "${somename}"



Step 3: Add "CSV Data Set Config" [Config Element] and add your Filename with the relative path and provide the same variable name "somename" as mentioned above. If you are not using a comma as the delimiter then add the delimiter. The options, "Recycle at EOF" when set to True would start back from the beginning of the file if the test reached the end of file.



Step 4: Add a Http Header Manager and set the content-type to application/json



Done.. Hit Start (ctl + R) and it should start posting JSON to your service.

Labels:

Monday, February 18, 2013

Wat.. Funny language behaviours

Friday, February 15, 2013

Evolution of my Resume - Karthik Srinivasan

My Resume over the years:

NOTE: I AM ONLY DISPLAYING PAGE 1 OF MY RESUMES

First there was this: college days



Then there was this: while looking to move from first job (Albany International)



Then there was this: while looking to move from second job (Travelocity)


Single page resume

Two page resume (second page isn't shown)


Now there is this coded resume as a full time programmer (not planning to move anymore thou, but keeping resume updated is probably good)


Page 2 is not shown

Labels: ,

Thursday, February 14, 2013

NLog - Custom Target

Nlog similar to log4net is quite a powerful logging library. Though out of the box it provides logging to text files, windows event log, database, Sentinal etc but how about about custom logging? Extending NLog to write to your own custom target is as quite simple as follows:

Create the target class:
Register the target class:
Add to nlog configuration to assign log level:
Example: Note that the example above is specific to my custom logger.

Labels: , ,

Friday, February 1, 2013

Beers in my belly - XIV






Dale's Pale Ale

Labels: