Posts

Essential Checklist for HTTP Requests in API Testing

Image
  This is an attempt to remind you what needs to be checked while sending and retrieving data from an HTTP request in API testing. Method - Ensure the appropriate method (GET, POST, PUT, DELETE, etc.) has been selected to send the request using any tools like Postman, SOAPUI, or Swagger. Host - The host plays a crucial role in hitting the exact server the user wants for the operation. Version of API - The version should be known before hitting the request. It helps to process the data in the deserved endpoint. Path - When the path is provided in the way where exact data is to be stored or updated, it reaches the destination correctly. Endpoint - It is the destination point. Though the entire direction is correct, if the request does not have an accurate endpoint, it leads to retrieving inappropriate data and is time-consuming. Request Payload - Payload is the data provided to the server to process the request correctly. Request Headers - It is crucial for communication between the...

Cookie (Part II)

Image
The basic definition of Cookie is  here . Now, let us dive deep into this topic with everyday life. You have a house named "Happy Home" which is 1000 square feet in size and you have a main door key that is a number lock system. You know the PIN to open your house's main door and the PIN has to be changed periodically. Suppose, today is Nov 2, 2023, and the PIN has to be changed on 1st of Jan, 2024.  Now, you will have three different scenarios. 1) Each room has a separate PIN that includes the main door. Once you open the door, you can access only the living room, and the rest of the rooms are locked and cannot open because you don't know the PIN (to access). 2) The living room and the master bedroom have the same PIN. Once you open the door, you can access the living room and your master bedroom (locked earlier) using the same PIN.  3) The main door has a number lock. The rest of the room doors are already open and have no lock system. In this case, if you open the ...

Cookie, Session and Token

Browsing is significant in everyday life and unavoidable. Do you know how your data is stored and how you are getting the responses based on your HTTP request through the web browser? A session is created temporarily when the user wants to use a particular website. It refers to the user's visiting time and has other session-related details. The cookie and session are combined together to work for the user's better experience. The web browser sends the session ID with the cookie to the server to check the user is valid when they try to access another related page and the session ID is unique and hard to guess. The session information will be stored in the server's database only when the cookie has the session ID details. In the bank example, when the user logs in to their account, the session is created with ID and the session ends when the user logs out or is inactive for some time. A token is totally a different concept in which the server creates a token ID when the user ...

Monolithic architecture

Image
In today’s world, the debate is still going on about which architecture suits best in every perspective. We will discuss in a shorter context about this topic. Monolithic is a coupled, single-packed architecture that combines all the services related to the business under a single shed. It includes all related services such as web server, load balancer, database, UI/UX, business layer, and interfaces. It integrated everything into a single-piece server as a product. Examples of such organizations such as Facebook, GitHub, Epic System, and WordPress. We will see the pros and cons of using monolithic architecture. Benefits Easy deployment: Since monolith is a single unit, it is easy to deploy. No coupling time: There is no run-time and design-time coupling between multiple components. Operations: Operations that take place locally and can be done in ACID (Atomicity, Consistency, Isolation, and Durability) implementations since it uses a single database. Performance: Due...

Software Testing...

Image
Everyone is a tester in our day-to-day life without our knowledge irrespective of the technology we use. We do web application, mobile, and desktop testing to connect the world. “Testing  is the process of evaluating a product by learning about it through experiencing, exploring, and experimenting, which includes to some degree: questioning, study, modeling, observation, inference, etc.” -  James Bach and Michael Bolton Let me take an example. Nowadays, it is our first ritual or habit to check our mobile phone after we open our eyes or even before we hear the alarm. We have a separate inseparable bond with it. You might be shocked if the alarm is not ringing up correctly and you missed waking up. It might delay your daily routine. Right? Below are a few checkpoints you should verify before you go to bed. ü   Select the present time zone ü   Correct date and time to set up an alarm ü   Enable the alarm option ü   The alarm volume is not silent ...

What is a Socket?

Image
Socket acts as an endpoint to communicate two computers with one another in a computer network. When two applications running on two different machines want to send data, a socket is used to transfer by connecting ports on the machines through their IP addresses. It is executed by the transport layer such as a TCP/IP model or OSI model using protocols like TCP, and UDP. The client sends a request to the server by establishing a connection through the server port and its IP address. Socket address is the combination of socket and IP address. For example, the IP address is 10.10.10.10 and the port number is 80, so the socket address is 10.10.10.10:80. There are three types of sockets available: a) Stream socket (Connection-oriented): Error-free, reliable, and bidirectional. It uses Transmission Control Protocol (TCP) to deliver sequential packets by establishing a connection. Applications used here are Telnet/SSH, HTTP, HTTPS, etc. b) Datagram socket (Connectionless): This type of soc...

Who invented the Internet?

Image
 The Internet is familiar to everyone. We know that it is difficult to survive without them. But, have you ever had thoughts on who invented the internet? A short history of how the internet was born. Lawrence Roberts and Leonard Kleinrock worked together in the Advanced Research Project Agency (ARPA) in America. Roberts was the first to connect two computers by developing the packet-switching network in 1969. By using this, Kleinrock was able to transfer data to another site. This is how the ARPANET was born. “Bob Kahn” and “Vint Cerf” are the ones who developed the TCP/IP in 1974. American computer scientists developed this set of protocols governing how data moves through a network. Vint Cerf has the credit of the first written word ‘The Internet’. When asked to explain my role in the creation of the Internet, I generally use the example of a city. I helped to build the roads—the infrastructure that gets things from point A to point B. -Vint Cerf, 2007 No one invented the i...