Create a Load Test project using Visual Studio 2013 – Part 6

In this post, let’s create a “Load Test” artifact, to test against the ASP.NET MVC sample application (created in the previous post – Creating a sample ASP.NET MVC application for Web Performance Testing – Part 2).  Before proceeding, make sure that you have created a new “Web Performance and Load Test Project” by following the steps outlined in this post (Creating a New “Web Performance and Load Testing Project” – Part 3.)

Continue reading

9,156 total views, 2 views today

Using MVVM frameworks such as Knockout to achieve clean JS implementation in client side.

In today’s world, when building websites (be it enterprise or not), JavaScript frameworks (such as JQUERY) & tools play a prominent role in providing better UI experience by eliminating frequent server side post back to refresh the page content.   This is achieved by using a combination of ASP.NET WEB API RESTful services and AJAX calls to facilitate modular updates to specific portions of the page (a.k.a web parts or portlets) to provide the same experience to the end user as like a windows application.

Continue reading

2,584 total views, no views today

Creating “Reusable” Tests / Parts in WebTest (using Visual Studio 2013 Web Performance and Load Testing project) – Part 5

Reusable” Components/Parts in software development practice had always been the suggested approach to reduce the time taken to build applications and help reduce the overall duration to market it.

The same concept is applicable even in the case of “Load Testing” where often, large applications are broken into parts for rolling out Load Tests on targeted features/sections of the application to obtain more insights on the behavior of those “critical” sections of the application during load testing.

Continue reading

3,522 total views, 3 views today

Additional properties to be configured for “Web Performance Test Editor (WebTest)” for Visual Studio 2013 – Part 4

In the previous post, we looked at recording a new test and in this post will explain some of the most important configuration settings options, provided by the Web Performance Test Editor that can help enhance the load testing capabilities, to get better information/ statistics, when running load tests on real-world web sites.

Continue reading

4,346 total views, 1 views today

Creating a New Web Performance and Load Testing Project using VS 2013 – Part 3

In continuation to the previous post, we will look into the steps involved in creating a new “Web Performance and Load Testing” project.

(Note: Before you continue with the post, please make sure that you have downloaded and installed the Visual Studio 2013 Ultimate edition as the “Web Performance and Load Testing Project” is available only in Ultimate edition. You can download the Trial edition from this link –

Continue reading

4,764 total views, 2 views today

Creating a sample ASP.NET MVC application for Web Performance Testing – Part 2


In this blog let’s create a sample MVC web application to be used for load testing using the “Web and Performance Testing” project in Visual Studio. This step is not mandatory as you can very well use any website to record your test against (though I would advise trying against sites such as Google or Yahoo, which can sense such testing and perceive them as Denial of Service attacks, which in turn would lead to blacklisting of your outgoing IP and would force you to enter a CAPTCHA every time you try Google or Yahoo, then after).So, it’s better to create our own simple application which can be always extended to accommodate some of the advanced concepts which require mimicking real-world scenarios.

Continue reading

3,429 total views, no views today

Introduction to Performance and Load Testing using Visual Studio 2013 “Web Performance Tests” – Part 1


The new Visual Studio 2013 comes packed with a “Web Performance and Load Test Project” to perform load testing on websites which earlier required installation of specialized tools (such as LoadRunner for high end major projects, or use of Apache Bench, httpperf, OpenLoad etc., that can be used for targeted load testing against small projects).  The new “Web Performance Test” available in Visual Studio 2013 can be compared to the “stelwarts” such as LoadRunner (except for the flexiblility in terms of supporting a wide variety of scripting languages), but it does offer some cool features that are worth considering, especially the huge cost associated with the “virtual user” licensing adopted by “LoadRunner”.

Continue reading

3,534 total views, 1 views today

Use of Composition Root Pattern in DI

NInject as a DI framework helps to deal with the common scenario of avoiding creation of concrete objects by providing the basic infrastructure to inject the required objects (using Constructor Injection technique). 

Use of Composition Root Pattern:  Composition Root is a pattern where the “object graph” definitions are handled in a centralized area.  For instance in the case of an ASP.NET MVC (that uses NInject.MVC3) application, the RegisterServices(Ikernel kernel) is considered as the entry point for the application where all dependencies are defined by binding the respective interfaces to the concrete objects (using the Bind API).

Hence by way of maintaining the construction of objects in a single location, the core components will live independent of any dependencies and the DI framework will inject the required interfaces, on-demand.

836 total views, 1 views today

Binding Multiple Interfaces using Ninject in ASP.NET MVC4

This post is in continuation to the earlier post on NInject and assumes that the reader has knowledge about NInject and DI concepts.  For those, who stumbled upon this link accidentally, read my previous blog about using NInject with ASP.NET MVC4 to get a better idea about NInject.

NInject  3.0 offers a fluent syntax that helps to bind multiple interfaces with a concrete implementation.

Continue reading

2,834 total views, 1 views today