Forum

Forum Navigation
You need to log in 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

 

Try Boozang today

Codeless testing that works. No credit card or commitment required.