Answers for "How does the FEATURE FILE WORK?"

0

How does the FEATURE FILE WORK?

* Feature → description of what is being tested @tags. Sample feature file;
○ Feature: login functionality → Background:
○ Given I am on the login page → Scenario: 1, Scenario: 2
○ The background runs before both of the scenarios
● Scenario → description of the scenario being test
○ Given I am on the login page
○ And I enter username and password
○ When I click on the submit button
○ Then I should be able to see the profile picture
○ But the submit button should not be displayed
● Given → a precondition
● When → condition that triggers the expected result Then —> expected condition
Posted by: Guest on June-16-2021

Browse Popular Code Answers by Language