Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

tripti kumari


{ City } mountain house
< Country > usa
* Profession *
User No # 126219
Total Questions Posted # 0
Total Answers Posted # 7

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 0
Users Marked my Answers as Wrong # 0
Questions / { tripti kumari }
Questions Answers Category Views Company eMail




Answers / { tripti kumari }

Question { 1862 }

What is the purpose of scenario outline in cucumber?


Answer

Purpose: Scenario Outline helps run the same scenario with different data

Scenario: A user wants to log in to a website using multiple sets of credentials.

Example:

Scenario Outline: Login functionality
Given User is on the login page
When User enters "" and ""
Then User should see the homepage

Examples:
| username | password |
| user1 | pass123 |
| user2 | pass456 |

Is This Answer Correct ?    0 Yes 0 No

Question { 1053 }

What is meant by a feature file?


Answer

In BDD (Behavior-Driven Development) with Cucumber, a feature file is the plain text file (written in Gherkin syntax) that describes the behavior of the application under test from a business or user perspective.

Is This Answer Correct ?    0 Yes 0 No


Question { 1004 }

What is the use of background keyword in cucumber?


Answer

The Background keyword in Cucumber is used to define a set of common preconditions (steps) that are repeated before every scenario in a feature file. Instead of writing the same Given steps at the start of multiple scenarios, you put them in a Background block to avoid duplication and improve readability.Ex:Feature: Login functionality

Background:
Given the user is on the login page

Scenario: Successful login
When the user enters valid credentials

Is This Answer Correct ?    0 Yes 0 No

Question { 1866 }

What is the file extension for a feature file?


Answer

Scenario: Multiple test cases require the user to be logged in first.
Purpose: Background helps avoid repetition by running common steps before each scenario.

Is This Answer Correct ?    0 Yes 0 No

Question { 1866 }

What is the file extension for a feature file?


Answer

Written in plain text using Gherkin syntax.
• Placed inside the features folder of the project (by convention).
• Example file name:
• Login.feature
• SearchProduct.feature
• CreateAccount.feature

Is This Answer Correct ?    0 Yes 0 No

Question { 940 }

Provide an example of a feature file using the cucumber framework.


Answer

Feature: Login functionality
As a registered user
I want to log into the application
So that I can access my account securely

Background:
Given the user is on the login page

Scenario: Successful login with valid credentials
When the user enters "john_doe" and "Password123"
And clicks the login button
Then the user should be redirected to the dashboard
And a welcome message should be displayed

Scenario: Unsuccessful login with invalid credentials
When the user enters "john_doe" and "wrongPassword"
And clicks the login button
Then an error message should be displayed
But the user should remain on the login page

Scenario Outline: Login attempts with multiple credentials
When the user enters "" and ""
And clicks the login button
Then login should be ""

Examples:
| username | password | result |
| user1 | pass123 | success |
| user2 | wrongPass | failure |
| admin | admin@123 | success |

Is This Answer Correct ?    0 Yes 0 No

Question { 1007 }

What is the limit for the maximum number of scenarios that can be included in the feature file?


Answer

In BDD (Behavior-Driven Development) with Cucumber, a feature file is the plain text file (written in Gherkin syntax) that describes the behavior of the application under test from a business or user perspective.

Is This Answer Correct ?    0 Yes 0 No