Saturday, May 12, 2018








Webservice API performance testing using JMETER 


Hello friends,
In our last session we learn about what is web services. Now we will learn about hot to do performance of web services using JMETER.  Let's get some info about JMETER.

What is JMETER / Information about JMETER 

JMETER is project of APACHE. We can use JMETER  for load testing to analyse and measure performance of multiple  services and protocols. 

For which protocols / services we can use JMETER 

JMeter can be used as a unit-test tool for JDBC database connections
1- FTP,
2- LDAP,
3- Webservices,
4- JMS,
5- HTTP,
6- generic TCP connections 
7-OS native processes

we will go Step by step and will learn below topics

1- Creating Test Plan
2- Adding HTTP Manager
3- Adding New  Thread Group
4- Adding HTTP Request
5- Adding Listeners
6- Running Load Test
7- Understanding Reports
8- Passing variable data in Request
9- Parsing JSON response and Saving / storing in CSV
10- Configuring JSON Extractor to Parse JSON Response
11- End to End Business logic automation and Performance testing using  JMETER



Saturday, May 5, 2018

 How API works 


Before to start working on API testing we need to understand with example HOW API  /WEBSERVICE WORKS ?  Have a look on below diagram you will understand HOW API / Webservice works 




Sunday, August 13, 2017

What is RESTful web services




RESTful web services are built to work best on the Web. Representational State Transfer (REST) is an architectural style used for the same . In the REST architectural style, data and functionality are considered resources and are accessed using Uniform Resource Identifiers (URIs), typically links on the Web. it is a typically HTTP. In the REST architecture style, clients and servers exchange representations of resources by using a standardized interface and protocol



Below is the list of web service protocol


    1-BEEP - Blocks Extensible Exchange Protocol
    2-E-Business XML
    3-Hessian
    4-JSON-RPC
    5-JSON-WSP
    6-REST-compliant Web services
    7-SOAP - outgrowth of XML-RPC, originally an acronym for Simple Object Access Protocol
    8-Universal Description, Discovery, and Integration (UDDI)
    9-Web Processing Service (WPS)
    10-WSCL - Web Services Conversation Language
    11-WSFL - Web Services Flow Language (superseded by BPEL)
    12-XINS Standard Calling Convention - HTTP parameters in (GET/POST/HEAD), POX out
    13-XLANG - XLANG-Specification (superseded by BPEL)
    14-XML-RPC - XML Remote Procedure Call
There are a number of web services that use markup languages. For testing purpose and for our this


 "Api Testing step by step tutorial" 

 We are going to use only REST. 
1.1.JSON-RPC
2.JSON-WSP
3.Web template
4.Web Services Description Language (WSDL) from the W3C
5.XML Interface for Network Services (XINS) provides a POX-style Web service specification format
6.Web Services Conversation Language (WSCL)
7.Web Services Flow Language (WSFL) (superseded by BPEL)
8.WS-MetadataExchange
9.Representational state transfer (REST) versus remote procedure call (RPC)

API-Web Service  testing step by step


In the field of information technology technologies are daily changing. It's needed to keep yourself updated with latest one. So I am sharing my knowledge of API testing. Basically we need to start from scratch understanding you are beginner in web service testing.

We will cover all required points step by step. Let's start


      1. 1.What is Web services 

        2.Web service that uses markup language  

        3.List of Web service Protocols

        4.What is RESTful Web Service 


What is Web Service-API?

Web service is standard way to create communication between client and server application over internet. It is way of communication between two stand alone application to share information among them irrespective of their architecture and framework



In above  diagram there is Client and Web service . Web services sends request to client to get required information and client sends appropriate response to web service with requested information.


Another example to understand in simple web service . Suppose you have a website where you wish to show weather report in your website but instead of developing everything you can use a data from existing website where weather forecast is already developed. Now you can use that weather data using API in your website.

I would like to tell another simple real time example for webservice here. Suppose you went to Hotel and there is kitchen now here there is a mediator who takes your order and pass it to kitchen to prepare food and once food is prepared mediator takes your ordered food from kitchen to you. In this scene Mediator plays role of API - Webservice.


Wednesday, November 9, 2016

 Here we are going to learn how to record  selenium script using Selenium IDE

Use below steps to learn recording selenium script using IDE



  1. Open Firefox Browser
  2. Go to tools Click on "Selenium IDE"
  3. Click on Red button 
4.  On click red button record record will start
5. Open Firefox browser
6. Type URL www.google.com
7. Search "Happiness"
8. Click on any link in search result
9. In Selenium IDE click on Red button to stop selenium recording
10. Selenium record script (Below image)
11. Save Script

Using this way you can record first selenium script using Selenium IDE. 







Sunday, November 6, 2016


Before starting practicing selenium IDE you need to install Firefox and selenium on Firefox

below are the steps to download and install selenium IDE


  1. Open Firefox browser
  2. Open URL seleniumhq.org
  3. In the menu tabs click on download 
  4. Press "Install now "button 
  5. Selenium IDE add on is installed 
  6. Click on "Restart Firefox" button 
  7. Go to tools and verify whether verify whether "Selenium IDE" is displayed 
  8. If Found then the selenium IDE installation is completed 





Next we need to know about Selenium IDE .

Firefox extension allows recording and editing of test in IDE. It make test development easy.


  • Record and Playback
  • Intelligent field selection will use IDs
  • Auto complete for all common selenium commands
  • Walk through test cases and test suites
  • Debug and set breakpoints
  • Save tests as HTML , Java, PHP and other such formats
  • Support  for selenium user extension  .js file
  • Option to automatically assert the title of every page 










Before starting with selenium it is required to know "What is Selenium"?

in simple words we can say "Selenium is portable software testing framework for web application"

The test scripting in selenium can be write in HTML tables as well as multiple popular languages and can run in most of the latest web browsers

We can use selenium on different different platforms like linux, windows, Macintosh.

Components of Selenium

  • IDE 
  • RC
  • GRID

Next Lesson  Features of IDE

Saturday, May 28, 2016

Here we are going to learn about "Testlink Work Flow".   It is step by step approach in test management



Administrator :- Who is responsible to create test project
Test Leader:-  Who create or Import Software Requirement
Test Analyst :- Who describes test scenarios in respect to test specification
Test Executer:-  Who is responsible for creating , executing  test cases and publish test results
Guest:-  who use these test result and metrix. ( Customer/client)
After creating project we need to create user roles. We can create user roles in Testlink and Assign them to users who are going to be part of whole SDLC cycle .  We can create different roles and assign different permission to access Testlink . Like , Business admin , Developer, tester , manager, customer. Etc. so  user with respected role will be able to access only those thing for which role is created.  Now we will look in detail "How to create user roles in Testlink "

Click on user role menu form Testlink menu . It will redirect you to "User Management" page in Testlink 
By default you will see only one user as Admin. We will see in next session about "How to create user in Testlink". Click on "View Roles" . It will display you existing user roles 

Click on Create button 




Enter role name and assign access for role. Enter role description and click on save button . It will create new role. We can use this role to assign any specific user. If you don't want to create new customer then you can use existing roles also or you can modify existing roles . 

Popular Posts