0% found this document useful (0 votes)
524 views2 pages

BDD Cucumber Framework

Uploaded by

Rane
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
524 views2 pages

BDD Cucumber Framework

Uploaded by

Rane
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

BDD CUCUMBER FRAMEWORK

[Link]-

This is basically XML ile which will get created automatically for every Maven project which contains different
dependencies like selenium, cucumber, TestNG etc. Also, plugins will be there in [Link] ile

Test Runner File-

This is basically a java ile which is like a main method in java. As we know that the execution of every java code starts
with main method like that, we have Test runner ile in cucumber framework where we used to de ine all the attributes
like tags, features & which scenario we want to run. So that it will pick up those mentioned scenarios & starts the
execution

Hooks ile-

This hooks ile provides us @Beforehooks & @Afterhooks. In @Beforehooks we will be de ining the code logic which
we want to execute before starting every scenario. In the similar way, in @after annotation we will be writing code
which we want to execute every after-scenario execution. This is also a .java ile.

Feature ile-

This is actual. feature ile where we will be writing all the scenarios of BDD cucumber farmwork in the form of gherkins
language.

Steps De inition ile-

This is a .java ile where we will be implementing every step written in Feature ile.

SHUBHAM NAIK +91-8104177197 Shubhamnaik291@[Link]


Page implementation ile-

This is also a .java ile where we will be de ining the actual logic of the actions which we want to perform.

WebDriver util ile-

This is also a .java ile where will be de ining web driver which we want to use will be creating the object of WebDriver.
Also, will set the properties of web Driver for ex. maximizing or minimizing the window, deleting the cookies. Means
everything related to the driver we are going to mentioned in web driver util iles. And the code from web Driver util
ile will be used by Page implementation ile.

Selenium Support functions-

This is also a .java ile which contains all the selenium support functions like click, send Keys and all.

Log4j-

To get the logs of the execution of the code which we execute.

The execution will be like- First it will download all the dependencies mentioned in [Link] ile then from Test Runner
ile it will identify which test scenario it has to run. Then execution will enter in to hooks ile where it will execute any
of the hooks which we have de ined. Then it will look for scenario with the condition which we have mentioned in Test
Runner ile. Once the scenario got identi ied with particular tag, it will start the execution & looks for the test steps
which it has to execute. After that respective code will get executed from page implementation ile with the help of
selenium support function and WebDriver util iles.

So, this is how execution will go on in BDD cucumber framework.

SHUBHAM NAIK +91-8104177197 Shubhamnaik291@[Link]

SHUBHAM NAIK 
+91-8104177197 
Shubhamnaik291@gmail.com 
BDD CUCUMBER FRAMEWORK 
 
 
 
POM.xml- 
This is basically XML ϐile wh
SHUBHAM NAIK 
+91-8104177197 
Shubhamnaik291@gmail.com 
Page implementation ϐile- 
This is also a .java ϐile where we will be

You might also like