简体   繁体   English

在Fitnesse测试中使用bootstrap-datepicker的问题

[英]Problems with using the bootstrap-datepicker in Fitnesse Tests

In my Fitnesse Tests I want to enter dates through datepicker elements. 在我的Fitnesse测试中,我想通过datepicker元素输入日期。 Sometimes it works. 有时可以。 But most of the time a different date, unlike the date that was entered, appears. 但是大多数情况下会出现一个不同的日期,而不是输入的日期。 Here is an example: 这是一个例子:

| ensure | do | type | on | id=field_id | with | |
| ensure | do | type | on | id=field_id | with | 05.05.1997 |
| check  | is | verifyValue | on | id=field_id | [28.05.1997] expected [05.05.1997] |

(To make sure that the field isn't already filled, I pass an empty String first.) (为确保尚未填充该字段,我首先传递了一个空字符串。)

Mostly, the 'day'-statement is different from what was entered. 通常,“天”语句与输入的语句不同。 Do you know the reason for this behavior? 您知道这种行为的原因吗? How can I solve this? 我该如何解决?

Thanks in advance! 提前致谢!

This is related to how you wrote your fixture and not FitNesse, the problem is that it returns a different value and also implies that the previous line didn't work - | ensure | do | type | on | id=field_id | with | 05.05.1997 | 这与您编写夹具而不是FitNesse的方式有关,问题在于它返回了一个不同的值,并且还暗示着前一行无效| ensure | do | type | on | id=field_id | with | 05.05.1997 | | ensure | do | type | on | id=field_id | with | 05.05.1997 |

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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