? QA Design Gurus: Load tesing
Showing posts with label Load tesing. Show all posts
Showing posts with label Load tesing. Show all posts

May 12, 2016

Load Testing using Telerik Test Studio

How many concurrent users can the web site handle?

What response time your users will experience?
How frequently users will see errors and need to reconnect?

To address these concerns, Load testing on an application is performed.

The Load Testing in Telerik Test studio is a standalone feature, which enables the QA Engineer to assess how the web application meets the business needs for availability and User satisfaction.
This article provides brief information on how to setup the requirements for the Load Testing in the Telerik Test Studio.

Prerequisites to use Test Studio as a Load testing tool:


·         The Execution Server must be running before Test Studio connects it for monitoring.

How to run the Execution Server?

  • Click  on  …\Start Menu\Programs\Telerik\Test Studio Runtime 2016.1\Start Execution Server
  •  In the Windows task bar, right click on the Test Studio icon and click on Show

Show

  •  The Test Studio Runner dialog appears. The address for the Scheduling Server that the Execution Server is connected to appears under Scheduling Connection. 


    Now, the Setup is ready for using the Test Studio as a Load Testing Tool

   Designing your Load Test: 

    There are 5 steps to create and completely define a Load Test
1.       Open any existing Test Studio Project
2.        Click on Record -> Load Test.
3.       Click on the Capture User Profile button
                             

4.       The test script is executed once the browser is selected.
5.       The next step is to configure the various parameters like Workload, no. of Virtual Users

   

         Once the configurations are ready, Click on the Run button. Click on “Run this test”.
         After the completion of the execution, the results are displayed on the “Analyze” menu


  

Oct 17, 2015

REST APIs Performance Testing using JMeter


JMeter allows us to test performance of both static and dynamic resources (web services like SOAP and REST APIs).
In this post, we will provide steps to test the performance of REST APIs

Installing and Running JMeter:

  • Download the JMeter apache-jmeter-2.13.zip from http://jmeter.apache.org/download_jmeter.cgi
  • Extract to any directory location (Ex: C:\). Note: Make sure that Java 6 or later version should be available)
  • Go to JMeter installation location -> bin directory and start 'jmeter.bat' file
  • Observe that JMeter user interface will launched successfully

Steps to write JMeter script for REST API test:


  • The first step is to create a Thread Group under Test Plan.
  • Thread Group is a placeholder for all other elements like Samplers, Controllers, and Listeners. We need one so we can configure number of users to simulate.
  • Right click on Test Plan -> Add -> Threads (Users) -> Thread Group. Name it.It has the options to provide 'Number of Users', 'Ramp-Up Time' and 'Loop Count'. Right now, provided 1 for all fields as shown in below image


  • Right click on Thread Group -> Add -> Sampler -> HTTP Request and provide server name, port number, path and add parameters. Save it. Note: Make sure that the server which you provided is up and running.


  • Add 'View Results Tree' to check the request status.Save it.

  • Click on Run icon to run the script.
  • Observe that script get executed successfully and you can see the results in View Results Tree window.

  • We are able to run one REST API method successfully for one time. As specified above, you could run this script many number of times/forever by specifying the 'Loop Count' in Thread Group.

Jun 30, 2015

Load Testing with Telerik Test Studio

Nowadays most of the web applications are invoking external web services or RESTful services to get the dynamic data. If external services execution takes more response time then web application performance will be decreased. This can lead to unsatisfied application users.

Load testing is becoming a must for the web application. Load testing using Telerik Test studio is a simple tool to develop a load test and run

Load Testing with Telerik Test Studio involves simple steps

1) Record the test
2) Modify the dynamic parameters
3) Set the number of users & time
4) Run




Key Features

  • Multiple Channels to Create Load Tests
  • Crafting Complex Load Testing Scenarios Is a Snap
  • Load Testing of Web Services
  • Load Testing Traffic from Mobile Devices
  • Easy to Setup, Easy to Run
  • Test Lists Scheduling and Distributed Execution
  • Smart Diagnosis of Issues

You can also create test from regular Test Studio functional test and Fidler trace