Forum

Welcome to the community! Register below to add topics and replies.

Please or Register to create posts and topics.

Simple Cucumber example

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

 

Create your account for free!

No credit card required.