Category: Selenium

Cucumber with TestNG & Selenium (Part-2) – Create Tests

Objective In this post, we will discuss about how to create tests using Cucumber with TestNG & Selenium. Creating Feature file, Step Definition class, Test Runner class and executing the test case using TestNG. Configuration Create a maven project and add the below dependencies for Cucumber, TestNG and Selenium. <!– https://mvnrepository.com/artifact/io.cucumber/cucumber-java –> <dependency> <groupId>io.cucumber</groupId> <artifactId>cucumber-java</artifactId> <version>4.2.0</version> </dependency> <!– https://mvnrepository.com/artifact/io.cucumber/cucumber-testng –>...

Cucumber with TestNG & Selenium (Part-1) – BDD Framework

Objective In this post, will discuss about What is Behavior Driven Development, Importance of Cucumber, Feature file, Step definition and Cucumber Options. What is BDD? Behavior Driven Development is a software development process that emerged from Test Driven Development. Behavior Driven Development is about implementing an application by describing it’s behavior from the perspective of its stakeholders and customers. Advantages...

Apache Maven – Create a simple maven project

What is Apache Maven? Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project’s build, reporting and documentation from a central piece of information. Key Features of Maven Simple project setup that follows best practices. Consistent usage across all projects. A large and growing repository...

Selenium Grid – Test execution in Cluster (Part-3)

Parallel execution in Selenium Grid with Hub and Node(s) configuration Before starting the parallel execution part, you should know about Selenium Grid concepts (Part-1), Configuring Hub and Node(s) (Part-2). Before start writing script for Parallel execution, you should know about RemoteWebDriver Class, which is available in org.openqa.selenium.remote package. What is RemoteWebDriver? RemoteWebDriver is a class, which is part of package...

Selenium Grid – Test execution in Cluster (Part-1)

Selenium Grid Selenium-Grid allows you to run your tests on different machines against different browsers in parallel. Key Features of Selenium Grid Distributing tests on several machines (parallel execution). Running multiple tests at the same time against different machines running different browsers and operating systems. Essentially, Selenium-Grid support distributed test execution. It allows for running your tests in a distributed test...