Preventing SQL Injection in Java

Hello friends! I am writing this post to share a very common security vulnerability that can be exploited by intruders. It is SQL Injection. What is SQL Injection ? SQL injection happens when you insert some content into a SQL query string, and the result modifies the...

Testing with Selenium

We’ll start by adding the maven dependency for selenium which contains most of the web-drivers and we’ll be using Firefox web driver for testing. <dependency> <groupId>org.seleniumhq.selenium</groupId>...

git and github account- A basic introduction

We will be discussing about the git and github account in this blog Git is basically a tool used for the version controlling of the documents. By version controlling we mean that we are maintaining the file where we can monitor all the changes made to it.We can also...

Automated functional testing using Geb and Selenium.

From today I am going to give basic concept on automated functional testing using Geb and Selenium.Today I am going to explain Selenium concept and in next session I will explain Geb and how to use Selenium in Geb. First-of-all be clear that Selenium and Geb are used...

Spock integration testing without redirected view

Today I am going to explain some basic concept of Spock integration testing without redirected view. Here I am going to check returning model from action and how to test action when it is returning model? class CreateAppController { def addDetail() { def playList = []...

Starting with Mongodb

– Mongodb is basically a database system that is document oriented and Nosql type. -Typically we call a table as a collection and a record as a document as oppose to tables and rows in RDBMS. -One of its advantage is that it does not restrict a us to a structure...

Installing and Configuring MongoDB

MongoDB is a NoSQL database that is cross platform and is a document-based system. It can be easily installed in an Ubuntu server from the command-line. In Ubuntu 12.04 LTS repositories it’s current version is 2.0.4. To install it in Debian / Ubuntu, open up a...

Working with MongoDB using Java

Hello guys, This is my first post on this blog. In this post i am going to explain how to interact with MongoDB using Java.First we need to install MongoDB using apt-get command in Ubuntu. Once we have installed MongoDB, we need a MongoDB jar file(Driver) which we...