Avi*_*eld 2 selenium cucumber cucumber-jvm selenium-webdriver
如何编写具有两个DataTable的Cucumber步骤?
应该如何在功能文件中写入?
例如,将一行从一个表拖到第二个表的步骤:
When I drag a row from
| column_table1 |
| object1 |
to
| column_table2 |
| object2 |
Run Code Online (Sandbox Code Playgroud)
添加第二个表没有特殊语法.只需添加它.
When I drag a row from:
| column_table1 |
| object1 |
And I drop it at:
| column_table2 |
| object2 |
Run Code Online (Sandbox Code Playgroud)
AFAIK,每步只能有一个表,但是您可以根据需要使用多个表.我解决问题的一种方法是将表存储在变量中,以便在第三步中经常引用:
Given I have a source row from:
<table>
And I have a destination row at:
<table>
When I drag from the source row and drop at the destimation row
Then .....
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4205 次 |
| 最近记录: |