Posts
Go Receiver Function
Go lang is an open-source programming language like C, having pointers and not strongly typed language. And most importantly it is not an Object Oriented Programming(debatable) language though it has likes of defining packages and interfaces like Java.
Go has a concept of receiver function that is unique in any programming language so far. The receiver function is a function that is tied to a specific type of data.
read more
Posts
Hibernate CRUD App
Hibernate ORM is developed by Red Hat and an open-source framework that provides the mapping between Java Object and Relational Database.
Hibernate uses Hibernate Query Language for performance DB operations.
The below diagram depicts how to, hibernate works as a layer between the application layer and the relational database.
Design We will create a table as contacts having fields as id, first_name, last_name and email which will map to Java Object Contact having attributes as id, firstName, lastName and email.
read more
Posts
Spring MVC App
In the previous post on Spring Boot Hello World we have written our first Spring based Java web application. In this post, we will be writing a simple web application using Spring MVC (Model View Controller) which redefines how a web application development is simplified and helps in developing faster with better readability.
App User (Person) opens the app, enter his/her full name, hits submit, and then he/she will be greeted with a welcome message.
read more
Posts
First Spring Application
Spring Framework provides a configuration model for Java based enterprise applications. It has helped many organizations to focus on business logic rather than maintaining a boilerplate code. For example, Inversion of Control lifting the configuration in an XML file to help construction and management of objects or find the required object using ComponentScan, providing the object selection based on the name of the bean, and finally Dependency Injection using Autowired.
read more
Posts
Spring Boot Hello World
Spring Boot is the world’s most popular Java framework which had made Java developer’s life easier, as a Java developer you can write a web service in few lines of codes.
Project Setup Start Spring IO provides an initial configuration option for setting up spring-boot project. Check the below screenshot for the details which is required to be filled for our first web service.
Once configured click on the Generate button in the form, this will download the project in a zip file, unzip and put it in the workspace (or anywhere you are storing your code).
read more
Posts
Python unittest - UI Testing
Python unittest comes default with standard python installation. It has a few advantages like we can use setUp, tearDown and assertsXXXX.
Test Class We have to do a few things in our test class to make it suitable for unittest.
import unittest
inherit the unittest.TestCase
add __name__ .. at the bottom of the test class
In case if you recently started on python, you may want to check the previous blogs on VSCode for Python for installing and setting up VSCode for Python and creating your first python project.
read more
Posts
Pytest For UI Testing
Pytest is most commonly used for API testing, here we will use it for doing UI testing. pytest has various advantages one of them is executing tests without any configuration. Let’s check the same and we will see how simple it is.
In case if you recently started on python, you may want to check the previous blogs on VSCode for Python for installing and setting up VSCode for Python and creating your first python project.
read more
Posts
VSCode For Python
You are starting on a new programming / scripting language but from where you are going to start? What things are needed for setting up the development environment? What software packages you will be needed for the writing your first program?
I started python a few months back and face the same questions. This blog covers the basic steps. Setting up VSCode as the code editor and we will add the basic set of plugins that makes life a little easier.
read more
Posts
REST API Testing Using REST Assured
Every software application, web or mobile has APIs built into it to serve the user with a dynamic response based on business logic. For example, retrieving the list of users logged in between the given start and end date, the API will form the query at run time and request the backend (database) server and push it to the front end for the user view. Another example is an e-commerce application doing various dynamic operations between frontend and backend like searching product-specific models etc.
read more