You need to log in to create posts and topics.
Simple Cucumber example
ljunggren@ljunggren
294 Posts
#1 · May 15, 2020, 4:30 pm
Quote from ljunggren on May 15, 2020, 4:30 pmHere is a basic example of a Cucumber feature file with scenarios for Login and Logout.
#####@AuthenticationFeature: AuthenticationThe authentication features tests login and logout for different users.@Smoke @Authentication @LoginScenario: Login"""Tests login functionality."""Given I am logged outWhen I loginThen I should be logged in@Smoke @Authentication @LogoutScenario: Logout"""Tests logout functionality."""Given I am logged inWhen I logoutThen I should be logged out
Here is a basic example of a Cucumber feature file with scenarios for Login and Logout.
#####
@Authentication
Feature: Authentication
The authentication features tests login and logout for different users.
@Smoke @Authentication @Login
Scenario: Login
"""
Tests login functionality.
"""
Given I am logged out
When I login
Then I should be logged in
@Smoke @Authentication @Logout
Scenario: Logout
"""
Tests logout functionality.
"""
Given I am logged in
When I logout
Then I should be logged out
Click for thumbs down.0Click for thumbs up.0