码迷,mamicode.com
首页 > 其他好文 > 详细

MonkyTalk学习-7-Verify-Verify

时间:2015-06-19 20:12:16      阅读:109      评论:0      收藏:0      [点我收藏+]

标签:

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

先看官方文档

Verify - Verify that the component‘s value is equal to the argument.
VerifyNot - Verify that the components 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中打开编辑框编辑想要编辑的内容,这样不容易出问题,如图:

技术分享

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

 

MonkyTalk学习-7-Verify-Verify

标签:

原文地址:http://www.cnblogs.com/kevinqinan/p/4589618.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!