Cucumber Framework Selenium(BDD) Part -5 || How to Use Background Keyword in Cucumber Feature File

Опубликовано: 01 Январь 1970
на канале: ABHISHEK REDDY S
2,191
15

In this video, I have explained how to use background keyword in cucumber feature file.

#cucumberframework #BackgroundKeyword #FeatureFile
=======================================================================
cucumber background keyword:

is used to define a step or series of steps that are common to all the tests in the feature file. It allows you to add some context to the scenarios for a feature where it is defined. A Background is much like a scenario containing a number of steps. But it runs before each and every scenario were for a feature in which it is defined.

Cucumber Feature File example :
Feature: Test Background Feature
Description: The purpose of this feature is to test the Background keyword

Background: User is Logged In
Given I navigate to the login page
When I submit username and password
Then I should be logged in

Scenario: Search a product and add the first product to the User basket
Given User search for tomato
When Add the first laptop that appears in the search result to the basket
Then User basket should display with added item

Scenario: Navigate to a product and add the same to the User basket
Given User navigate for pomegranate
When Add the laptop to the basket
Then User basket should display with added item

===================================================================
cucumber framework playlist:    • Cucumber Framework Selenium(BDD)  Par...  
Youtube subscribe:    / realtimeseleniumautomation  
Facebook Page:   / realtimeseleniumautomation  
Facebook group: Selenium Automation Real Time Experience
cucumber framework whats app group: https://chat.whatsapp.com/HoGAlLUwWt2...
tube buddy : https://www.Tubebuddy.com/selenium
===================================================================


Смотрите видео Cucumber Framework Selenium(BDD) Part -5 || How to Use Background Keyword in Cucumber Feature File онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь ABHISHEK REDDY S 01 Январь 1970, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,191 раз и оно понравилось 15 людям.