无法传递CSV文件数据以在后台调用另一个功能

发布于 2025-02-07 03:05:15 字数 849 浏览 0 评论 0原文

通过CSV传递数据时,无法从另一个功能文件调用一个功能文件。当我直接列举示例时,同样的作品。

以下作品

Background:
def rspSes = call read('classpath:helpers/createSessionID.feature') {"customerNo": '#(IP_Customer)'}

Scenario Outline: To validate based on different product combinations

    Given path '/v1/sourceAccounts'
    And param paymentType = "PERSONAL"
    And header cus = IP_Customer
    When method get
    Then status <status>

Examples:
      
| IP_Customer | IP_FROM_ACCT | IP_TO_ACCT | AMOUNT | Purpose              | Message                        | status |
| 165942   | 8957         | 1004       | 5.99   | PERSONAL              | dkfkdjfkdjkfjdkjfkdjfkjd       | 200    |

**,如果我更改上述示例以读取CSV文件。它不是从CSV中选择值。尝试更改{“ customerno”:&lt; ip_customer&gt;},仍然无法正常工作。 **

| read("testData.csv") |

Not able to call one feature file from another when passing the data via CSV. Same works when i directly give in examples.

The below works

Background:
def rspSes = call read('classpath:helpers/createSessionID.feature') {"customerNo": '#(IP_Customer)'}

Scenario Outline: To validate based on different product combinations

    Given path '/v1/sourceAccounts'
    And param paymentType = "PERSONAL"
    And header cus = IP_Customer
    When method get
    Then status <status>

Examples:
      
| IP_Customer | IP_FROM_ACCT | IP_TO_ACCT | AMOUNT | Purpose              | Message                        | status |
| 165942   | 8957         | 1004       | 5.99   | PERSONAL              | dkfkdjfkdjkfjdkjfkdjfkjd       | 200    |

**However, if I change the above examples to read a CSV file. It is not picking the value from CSV. Tried changing {"customerNo": <IP_Customer>}, still didnt work. **

| read("testData.csv") |

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文