Given −
It describes the pre-requisite for the test to be executed.
Example − GIVEN I am a Facebook user
When −
It defines the trigger point for any test scenario execution.
Example − WHEN I enter "<username>"
Then −
Then holds the expected result for the test to be executed.
Example − THEN login should be successful.
And −
It provides the logical AND condition between any two statements. AND can be used in conjunction with GIVEN, WHEN and THEN statement.
Example − WHEN I enter my "<username>" AND I enter my "<password>"
But −
It signifies logical OR condition between any two statements. OR can be used in conjunction with GIVEN, WHEN and THEN statement.
Example − THEN login should be successful. BUT home page should not be missing.
Scenario −
Details about the scenario under the test needs to be captured a