Data Driven Framework Tutorial
Posted in Selenium

Configure Log4j | Data Driven Framework | Part 4

Logs provide an easy way to debug the execution flow. In this data driven framework tutorial, we will use log4j Logger to

Continue Reading Configure Log4j | Data Driven Framework | Part 4
Data Driven Framework Tutorial
Posted in Selenium

Data Driven Framework | First Test | Part 3

At the end of this data driven framework tutorial you would be able to:create a test script and execute it using TestNGwrite a generic method

Continue Reading Data Driven Framework | First Test | Part 3
Data Driven Framework Tutorial
Posted in Selenium

Data Driven Framework | Creating The Project | Part 2

In this part of data driven framework tutorial, we will perform the following:

Create a new Maven project and add necessary packages

Continue Reading Data Driven Framework | Creating The Project | Part 2
Data Driven Framework tutorial
Posted in Selenium

Data Driven Framework Tutorial | Part 1

Data driven framework is a testing framework that uses external sources to store and manipulate test data. These sources could be excel sheets, databases, etc.

Continue Reading Data Driven Framework Tutorial | Part 1
Posted in Selenium TestNG

Creating Test Classes Using TestNG | Part 8

So far we have been using a single test class (LoginPageTest.java) with main method to execute all the tests. Now, we will break that class into different classes containing separate tests

Continue Reading Creating Test Classes Using TestNG | Part 8
Generate logs in page object model
Posted in Selenium

Generate logs in page object model | Part 7

In this tutorial, we will introduce the logging capability to our framework. Logs are the files which are generated during run time. Log4j API is used to generate the logs. 

Continue Reading Generate logs in page object model | Part 7
COMMON METHODS IN POM
Posted in Selenium

Creating Common Methods | Part 6

In this section, we will:

Remove the driver dependency from all the page classes (except BasePage.java and NavBar.java)
Create common methods

Continue Reading Creating Common Methods | Part 6
.proprties file in pom
Posted in Selenium

.properties File In POM | Part 5

We will create 2 .properties files for this framework. Recall from the previous post, where we created folder properties.

Continue Reading .properties File In POM | Part 5
Create Business Pages In POM - Part 4
Posted in Selenium

POM | More Business Pages | Part 4

We have already created a few classes for the web pages, however, there are more web pages in the demo application. These web pages contain business logic, application flow, and other functionalities.

Continue Reading POM | More Business Pages | Part 4
Base Class In Page Object Model
Posted in Selenium

Base Class In Page Object Model | Part 3

In this tutorial, we will learn what is a base class in page object model and how to refactor the code. The page object model is solely based on the pages and

Continue Reading Base Class In Page Object Model | Part 3