[英]How to give multiple parameters in the cucumber feature file
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.例如:我需要自动化网站页脚部分中的链接,就像该部分中有超过 14 个链接一样。 Which way is good to pass those multiple parameters.
哪种方式适合传递这些多个参数。
please help me请帮我
Using Secnario Outline you can pass multiple parameter.Below is the feature file example.使用 Secnario Outline 您可以传递多个参数。下面是功能文件示例。
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 |
| **************** | ********** |
| **************** | ********** |
| **************** | ********** |
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.