Shall we have multiple features in cucumber feature file?

I want to include all features like login, placing the order, logout, etc. in the same feature file.
Shall we have multiple features in cucumber feature file?

If so how to implement ? how the CucumberOptions lokks like?

Default Asked on December 22, 2016 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)

    Yes ..U can create multiple features in the same file.ref below format for ex :

    @tags
    Scenario Outline: login
    Given
    When
    Then

    @tags
    Scenario Outline: place order
    Given
    When
    Then
    And

    @tags
    Scenario Outline: logout
    Given
    When
    Then
    And

    Default Answered on December 23, 2016.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.