Saturday, July 20, 2019

Requirement Traceability Matrix

Requirement Traceability Matrix


Traceability means the ability to trace something. RTM or Requirement Traceability Matrix is a matrix where mapping of the entire requirements provided by the client or a Product owner is done in a single document which can be taken as a proof that the requirements are incorporated in to the final feature / product to be delivered.

RTM is a list of requirements and a place to track them with test cases. The aim to having this matrix or document is to ensure a full test coverage with the requirement and there is a no miss of any functionality while testing process.

Why RTM?


As it is utmost important for a tester to understand the requirements completely, so to deliver a high quality output. As the further processes depends on how good is the understanding of requirements, hence it makes very important to involve testers in initial stages of SDLC.

Now, once the requirements are clear, further these requirements are broken down to test scenarios and next to detailed test cases.

Here comes the answer to question "Why RTM". Once the detailed test cases are in place, to verify that it aligns with the requirement, we use RTM to map requirements with test scenarios and test cases. In this way RTM will be helpful in gauging that we have complete test coverage and ensure a quality output.

RTM is typically a excel sheet where the mapping of requirements with test cases and scenarios is done. 

Wednesday, July 17, 2019

Starting API Testing? - Here are the few things to know before you start!

What is an API?

API stands for Application Programming Interface. It's an interface responsible for communication / data transfer between two different software applications.

There are mainly two types of Web Services:

  • REST (Representational State Transfer)
  • SOAP (Simple Object Access Protocol)

REST stands for Representational State Transfer, which provides an ability of exchanging information between the the applications. These web services provide a predefined set of stateless operations and allow requesting applications to access and manipulate the data.

SOAP stands for Simple Object Access Protocol, which allows exchange of meaningful information between the applications using XML. It helps in exchanging structured information.

HTTP Methods

HTTP stands for Hyper Text Transfer Protocol is an application protocol for distributed and collaborative information systems.

HTTP defines some set of methods to indicate the expected action to be performed for a given resource. Each of them implement a different logic, but some common characteristics are shared by group of them. eg; a request can be idempotent or non-idempotent.

GET 
GET method is used when we need to retrieve the data. For simple understanding, it's like a Select command in SQL.This request doesn't result in modification of the data. If the request is successful, the status code of 200(OK) is received along the data in a particular JSON or XML format. This method is idempotent, i.e no matter how many times you make the request, there won't be any change in the data.

POST
POST method is used when we need to make manipulation of the data. Mostly, it is used to create a resource. When this request is made, a new resource gets created and if it's a successful requests a status code of 201(CREATED) is received. This method is non-idempotent, i.e this may result in duplicates or errors if called more than once.

PUT
PUT method is used when we need to make manipulation of the data. Mostly, it is used to update a existing resource. It maybe used to create a resource is request is made from client side. When this request is made, a new resource gets created and if it's a successful requests a status code of 201(CREATED) is received. This method is idempotent, i.e no matter how many times you make the request, there won't be any change in the data.

DELETE
- DELETE method is used to delete a resource. On a successful request, a status code of 200(OK) is received. This method is also idempotent as if a resource is deleted once it cannot affect it no matter how many times the request is made.

HTTP Response Codes

HTTP response codes fall under following categories:

1xx - Response code series starts with '1' are Informational codes.
2xx - Response code series starts with '2' are Success codes
3xx - Response code series starts with '3' are Redirection codes
4xx - Response code series starts with '4' are Client side error codes
5xx - Response code series starts with '5' are Server side error codes


Featured Post

API Automation using Newman - Part II

HTML Report via Newman In previous post we have seen how to setup Newman and execute the collections via Newman in command line. Ne...