简体   繁体   中英

Fitnesse SLIM Query Table - Stopping empty cells from failing?

I've got a large set of Fitnesse (For Java - v20090513) tests which are executed against a SLIM Query table.

To help with the testing (explain why we're getting certain results) I've added a new column to the end of the table. The idea is that the cells for that column would be empty (||) as they're not required to be tested against, it's just for informational purposes.

The problem with this is that Fitnesse causes every one of those cells to fail because the returned data is different to the data entered (which was nothing).

Is there a way to make Fitnesse ignore this column, or just make it pass? Ideally I don't want to change much of the fixture code which is being called. I understand I could use a table of type table and just match things up myself, but that's an hour or 2 of work which I can't really afford to do.

Thanks for your help.

What is being returned? Is it just null? Could you change it to return a empty string? Can you explain why the property cannot return the same thing that's expected?

如果是表固定装置,则必须修改固定装置代码,以便如果列标题为“ Comment”,则在从doTable函数返回的ArrayList中,单元格值将设置为“ ignore”。

I'm surprised that the empty cells aren't being ignored by Fitnesse as they're supposed to ; sounds like a bug to me. Anyway, you may be able to work around it by putting =~/.*/ in that column, ie a regexp that matches anything. (See value comparisons )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM