2013-01-10

How to perform Load testing in JMeter

In this article we are going to see very simple steps to perform load test on a site. For basic idea about jmeter, please see my this post.

Step 1 : Download latest JMeter from this link 
Step 2 : Extract and Run jmeter.bat from bin(my case, C:\apache-jmeter-2.8\bin)
Step 3: Add thread group and provide some user , time and loop counter(I use 10 user, 2 second and loop count 3). Here we have to use as for requirement. Suppose, Client want the load 1000 user. So, for that if we have very fast PC, we can use 1000 user in 1 second. But it is better to increase the number of user with little more time which creates less load to the PC. In this case , 1000 users in 10 seconds.

 
Step 4 : Right click on Thread group and add a sampler "HTTP Request"
Step 5 : Provide the link of your site.( I use www.kaz.com.bd for test) as server name
Step 6: Right click on Thread group and add some Listeners (to view report).
 
I have added
View Results Tree
View Results in Table
Graph Results
Monitor Results
Aggregate Report
Comparison Assertion Visualizer
Response Time Graph
Summary Report

Step 7 : Run the test. 
You can see/save the report and get you test done

Thanks...:)

2013-01-04

What is L10N testing(Localization)? How to do it

Introduction NUnit


In this article we are going to see the NUnit User Interface with its functionality. I am writing this for invoice person who are new for NUnit, spatially for new selenium webdriver user who run selenium tests with C#(VS2010) with NUnit.

NUnit is a open source unit test framework like as JUnit. NUnit can run any type of assembly either it is DLL or an EXE. NUnit can run the test functions that is written for NUnit. That means, the functions which takes the NUnit framework attributes, they can be recognize by NUnit. We can run NUnit with GUI or from command prompt. Lets start.
Step 1: Download latest NUnit from this link.
Step 2: See my this post for setting up NUnit Unit Test environment. (“Including Unit Test framework in the project “) this part.
Step 3: Run NUnit from start menu. We can see the GUI.
Step 4: Open an demo project(This is optional, I use an anonymous project, you can use my this code and build a DLL for NUnit)
After loading we can see a GUI like this.
Screen Shot 1
We can run NUnit with different Framework with different versions. 
Screen shot 2
We can open a saved NUnit project/a DLL or an EXE. 

Screen shot 3
We can run NUnit in mini GUI or Full GUI 
 Screen Shot4
We can change fonts, size , style for GUI and fixed are(result showing area) 
Screen Shot5
Screen Shot6 
We can add multiple Assembly(DLL/EXE/NUnit Project) with current project . This is important when ever any test case failed, we might need to test those failed test case associate assembly. 
Screen Shot7
All project are saved with some configuration. We can change the configurations . We can change the project settings also. 
Screen Shot8
We can partially run NUnit test cases
Screen Shot9.
We can check for assemblies, change the settings for GUI and Run Time.
Screen Shot10
We can see installed Addins. Some useful addin link from WIKI

…Thanks…... you may ask questions in comment.