-1

Can i know how to pass multiple parameters in the feature file(cucumber)..?

eg: i need to automate the links in the footer section of a website like there are more than 14 links in the section. Which way is good to pass those multiple parameters.

please help me

2 Answers2

1

Using Secnario Outline you can pass multiple parameter.Below is the feature file example.

     Scenario Outline: login with valid username and password
     Given open browser
     When enter the URL "example.com"
     And Enter register username "<username>" and password "<password>"
     And Click on login button
     Then verify login

     Examples: 
     | username         | password         |
     | **************** | **********       |
     | **************** | **********       |
     | **************** | **********       |
0

You can try this to send multiple files with the cucumber feature in java.

Enrico Cortinovis
  • 811
  • 3
  • 8
  • 31