有没有办法在空手道的方案大纲名称中添加数据表行号 [英] Is there a way to add Datatable row number in the Scenario Outline name in Karate

查看:32
本文介绍了有没有办法在空手道的方案大纲名称中添加数据表行号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过csv文件使用示例数据表,如下所示:

I am using Examples Datatable using csv file as below:

示例:|read('file.csv')|

Examples: | read('file.csv') |

我知道__num将具有迭代的行号,并能够使用* print __num进行打印.

I got to know __num will have the row number of the iteration and able to print it using * print __num.

但是当我尝试将该行号添加到方案大纲"标题中时,它没有给出值.其报告仅作为__num.尝试使用#和##,但没有运气.尝试以下方式:方案大纲:方案#(__ num)方案大纲:方案##(__ num)方案大纲:方案'#(__ num)'方案大纲:方案'## __ num'

But when I try to add that row number to Scenario Outline title, its not giving the value. Its reporting as __num only. Tried using # and ##, but no luck. Tried below ways: Scenario Outline: Scenario #(__num) Scenario Outline: Scenario ##(__num) Scenario Outline: Scenario '#(__num)' Scenario Outline: Scenario '##__num'

我能够在标题中添加单元格值,但行号不起作用.请帮助我在标题中添加行号

I was able to add cell value into the title but row number is not working. Please help me in adding row number to the title

推荐答案

您可以查看它是否适用于新版本: https://github.com/intuit/karate/wiki/1.0-upgrade-guide

You can see if it works in the new version: https://github.com/intuit/karate/wiki/1.0-upgrade-guide

如果不支持,请认为这不受支持.欢迎您提供代码以添加此功能.

If it does not, please consider this as un-supported. You are welcome to contribute code to add this feature.

这篇关于有没有办法在空手道的方案大纲名称中添加数据表行号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆