Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lavague-qa support for Background in the feature files #625

Open
abduegal opened this issue Nov 15, 2024 · 0 comments
Open

Lavague-qa support for Background in the feature files #625

abduegal opened this issue Nov 15, 2024 · 0 comments

Comments

@abduegal
Copy link

Is your feature request related to a problem? Please describe.
If we write a feature file, we need to login on every step. feature files support that with background

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 Lenovo Laptop
	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 Lenovo Laptop
	When Add the laptop to the basket
	Then User basket should display with added item

Describe the solution you'd like
When you use Background, it runs at every scenario at the beginning.

Describe alternatives you've considered
Without this, we just login on every scenario step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant