测试逗号一次在空手道中一次分离的值

发布于 2025-01-20 12:40:14 字数 113 浏览 1 评论 0原文

我正在测试电子邮件API 在有效载荷中,我必须在“到”字段中传递多个值。 从本质上讲,这意味着我需要测试在空手道框架中向多个收件人发送电子邮件的功能。 是否可以一次读取空手道田地的多个值?

请帮忙。

I am testing an email API
In the the payload, I have to pass multiple values in the "to" field.
This essentially means, I need to test the functionality of sending an email to more than one recipient in Karate framework.
Is it possible to read multiple values at a time for a field in Karate?

Please help.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

想你的星星会说话 2025-01-27 12:40:14

这与空手道无关,但是自空​​手道支持JS以来。

* def before = 'foo,bar,baz'
* def after = before.split(',')
* match after == ['foo', 'bar', 'baz']

This has nothing much to do with Karate, but since Karate supports JS:

* def before = 'foo,bar,baz'
* def after = before.split(',')
* match after == ['foo', 'bar', 'baz']
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文