Skip to main content

Posts

Showing posts from 2016

REST API functional and performance test using Jmeter

Let's start with some basics about API. An API – application programming interface –  allows your product or service to talk to other products or services. In this way, an API allows you to open up data and functionality to other developers and to other businesses. As API is a bridge between you application with third parties so it's functional, performance and security test is very important. Required tool set: 1. Your favorite IDE (Sprig Tool Suite 3.8.2 in my case) 2. MySQL database engine 3.  Latest version of JMeter 4. Postman (optional) There are lots of public APIs are available but we will use our own to have a better understanding how a RESTful API works. Clone or download this project: https://github.com/muhin/RestWebService.git. It's a sprint boot REST web service. Use your favorite IDE to import as maven project. You can also use spring tool suite . Now create a database in MySQL named country and then use the following scripts to make this proces...

Data Driven test using EasyTest

We can use many methods for Data Driven testing. JUnit or TestNG has its own way to parameterize their test. Today we will discuss about a very easy method to parameterize out test. We will use a small library named EasyTest. As the name suggest it's very easy!! W e will use maven to manage out dependencies. I will use IntelliJ IDEA community edition for this project but the instructions can easily be followed by an y IDE like Eclipse or NetBeans. First create a maven project with your desired groupID and artifactID, I will use com.testautomationabc.test as groupID and data-driven-test as artifactID. Now locate you pom.xml file which is looks like this <? xml version= "1.0" encoding= "UTF-8" ?> < project xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"     xmlns= "http://maven.apache.org/POM/4.0.0"   xsi :schemaLocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd...