Test Automation with Selenium Object Bank & Cucumber JVM

This article is for the people who would like to automate their applications pragmatically with less effort. We all know, designing a framework for every project is a big deal and tiresome process. You may say, ‘I am using Page Object Model and TestNG’. It’s not just adopting certain frameworks, what matters is, how much time you’ve spent on designing the page objects. So, this article tells you how to facilitate & mitigate incommodious tasks using Selenium Object Bank and Cucumber JVM. You can consider this as a Hybrid Framework. Click here to download sample project (Cucumber with SOB).

time

 

Continue reading

Annotations used in cucumber-jvm

@Runwith :

Classes annotated with @RunWith(Cucumber.class) will run a Cucumber Feature. The class should be empty without any fields or methods.

Cucumber will look for a .feature file on the classpath, using the same resource path as the annotated class (.class substituted by .feature).

Continue reading

USE OF BACKGROUND, HOOKS & TAGS IN CUCUMBER-JVM

Background :

Often times when writing multiple scenarios within a singular feature file you see repeated test steps. Initial test steps that are common across all scenarios and scenario outlines can be pulled out into a Background test step. These steps get executed before every scenario. This can greatly reduce the number of test steps in the feature file, and increase readability.

Continue reading

Introduction of Using Selenium With Cucumber-JVM

What is BDD:
Every software/Application/system have its own behavior or requirement as per the domain (e-Commerce, Banking, Finance etc.). The behavior of software is documented and software team (Dev, QA and BA) will use this document to develop the software and follow a process that involves several roles in the team. This process is called BDD.

Continue reading