MonkyTalk学习-7-Verify-Verify

提供了很多的验证的方式,目前没有测试完全通过,有些不确定怎么玩。

先看官方文档

Verify - Verify that the component's value is equal to the argument.
VerifyNot - Verify that the component's value is NOT equal to the argument.
VerifyRegex - Verify that the component's value matches the Regular Expression provided in the argument.
VerifyNotRegex - Verify that the component's value does NOT match the Regular Expression provided in the argument.
VerifyWildcard - Verify that the component's value matches some wildcard expression provided in the argument.
VerifyNotWildcard - Verify that the component's value does NOT match some wildcard expression provided in the argument.
VerifyImage - Verify that the component's image matches the provided image file (aka image comparison) — see Image Comparison docs.

前面的基本都好说,无非是完全匹配,正则匹配,没有搞懂的是Wildcard,能搞出来点东西但是又不确定对不对。

这样来使用Verify,全文匹配。

这样是写正则的匹配方式。

这样是写WildCard的方式,但是确实没有搞太明白,是参照官网上的文章写出来的,确实可以找到,但是部知道意义是啥。

另外注意一点:

不要在Arguments中直接编辑,有可能会因为空格的问题变成多个参数,直接在Argument中打开编辑框编辑想要编辑的内容,这样不容易出问题,如图:

真的是惨痛的经验之谈。。。

 

posted @ 2015-06-19 19:54  kevinqinan  阅读(217)  评论(0编辑  收藏  举报