Groovy / geb / transactions / new question / motivated [英] Groovy / geb / transactions / new question / motivated
问题描述
我有一个问题......我开始使用Geb和Groovy ....
如果我有一个包含大约5或6个字段的每行的事务表,那么/>
并说我有一个涉及每个交易行的模块...
我正在试图想出一种使用moduleList的方法我可以某种方式
可靠地识别表中的事务而不使用行号
并且不使用表中的字段(我在测试中修改)....
我的目标是当我正在处理交易和交易表
被排序...然后我可以轻松地在排序表中找到相同的交易...
它是一点点谜题...... Rich
我尝试过的事情:
transactionRow {rowNumber - > $('.tt-Table-row')。has('td.tt-Cell-Number',text:rowNumber as String).module(TransactionRow)}
I have a question... I'm getting started with Geb and Groovy....
If I have a table of transactions with each row containing about 5 or 6 fields,
and say I have a module that involves each transaction row...
I'm trying to think of a way using moduleList that I can somehow
identify a transaction in the table reliably without using row numbers
and without using fields from the table (which I modify in the tests)....
My goal is when I'm working with a transaction and the table of transactions
gets sorted... then I can find the same transaction in the sorted table easily...
It's a little bit of a puzzle.... Rich
What I have tried:
transactionRow { rowNumber -> $( '.tt-Table-row').has('td.tt-Cell--Number', text: rowNumber as String).module(TransactionRow) }
推荐答案
('.tt-Table-row')。has('td.tt-Cell-Number',text:rowNumber as String).module(TransactionRow)}
( '.tt-Table-row').has('td.tt-Cell--Number', text: rowNumber as String).module(TransactionRow) }
这篇关于Groovy / geb / transactions / new question / motivated的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!