Posts

Create your First Git Repository on GitHub | Push code from eclipse to n...

Image
In this tutorial we will walkthrough on how to create a new repository on Github and how to perform Git Push using a project created in eclipse and egit plugin. We will go through the following steps 1) Sign up to Github 2) Create a project / repository 3) In eclipse download and install egit plugin 4) Add Views from Windows menu option for Git 5) Create a local repository 6) Create a project 7) Add the project to local repository i.e Commit 8) Push the changes to newly created repository on Github.com 9) Verify that the source code has moved to remote repository. for more details please go through below video

Selenium Grid Part 2 : Grid setup and run test case on multiple browsers

Image
Please read the Part1 of selenium grid before going through this. In this tutorial, we will start off with the setup where we start a hub and register three different nodes with different browser capabilities. First Node with Chrome Browser Second Node with Firefox browser Third Node with IE browser Here i am taking a simple authentication example and we write selenium java code using DesiredCapabilities, Options Class and RemoteWebdriver Class. The same test case will be run on all the three nodes. This video gives a good idea on how to distribute the test case execution among multiple environment or platforms. For more details please watch the video below

Selenium Grid Part1 : Introduction

Image
Today we will go through brief introduction to Selenium Grid. Selenium Grid is used to distribute the test cases across multiple environments. Selenium Grid has two main components 1) Hub 2) Node. Hub is like a controller and different nodes with different environment and browser capabilities connects to the hub. This tutorial also goes through how to run hub using standalone server jar file and how to connect a node to hub. For more details please watch the video below

Setup Log4J logging in Selenium Java with example

Image
Today we will go through step by step process on how to include log4j logging mechanism into a selenium project. Here we create log4j properties file where we set up the log levels i.e. logger and later we define the appenders for both console and log file and we also define formatters. Later a java example is written with log4j.properties file is included in the selenium example and we see the loggers logging into both console and the log file. For more details please watch the video below

Reading Configurations from Properties File : Selenium Java Example

Image
Today we will go through 1) How to create a configuration properties file 2) How to add key and value from config properties file We will take an example and read the value for a key from the configuration file by using Properties class. There are several get methods available to fetch the value for a key which we make use of in the following example. For more details watch the below video till the end.

Selenium Grid Part1 : Introduction

Image
Selenium Grid: This blog will go through the introduction of Selenium Grid Selenium Grid is used to distribute the test cases across multiple environment and helps in speeding up the execution. Selenium Grid has two main components a) Hub b) Node Hub acts as a controller and Nodes with different environment and browser capabilities connects to a hub. Whenever a test case needs to be executed, the test case is submitted to a hub and hub will decide based on the capabilities and environment which node the test case will be executed on based on the nodes which are connected to that hub. For more details go through the following video.

Using TestNG Assertion in Selenium - Soft Assertion and Hard Assertion

Image
Today we will see how to use TestNG Assertion in Selenium Java Initially we will take a look at the difference between assert and validate and later on we will see an example of SoftAssert and Hard Assert.. Hard Assert will stop the execution and Soft Assert will continue the execution. In this we will simply check for a title and use assert class and Softassert class. For further details go through the video tutorial below.