×
☰ See All Chapters

Cucumber Doc Strings

  • Doc strings allow you to specify multiline text data that you cannot fit on a single line.  

  • Doc String should be placed inside """ triple quotes. 

  • For example, if you need to describe the precise content of an email message, you could do it like this: 

Feature: Login

 

  Scenario: Check Email

    Given I login to my Email account

    When I click on mail from Manu

    Then I should see an email containing:

      """

      Dear Reader,

 

      Welcome to www.tools4testing.com

 

      Sincerely,

      Manu M

      """

 


All Chapters
Author