如何解决如何从外部将数据从 excel 文件传递到 specflow3.7 版功能文件?
我正在尝试编写一个简单的功能文件,其中包含一个将两个数字相加的场景。我正在使用数据驱动的方法,但不幸的是我无法在 specflow 3.7 版中使用 specflow+excel 包。官方文档中指出,2.0 以上版本已弃用。有什么办法可以解决这个问题?
计算特征
Feature: CalcExcel
Testing Calculator using data driven approach
@smoke
Scenario Outline: Add two numbers
Given the first number is <num1>
And the second number is <num2>
When the two numbers are added
Then the result should be <result>
@source:data.xlsx:Sheet1
Examples:
| num1 | num2 | result |
我在构建项目时遇到的错误是场景大纲添加两个数字没有定义示例
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。