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中打开编辑框编辑想要编辑的内容,这样不容易出问题,如图:

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

 

转载于:https://www.cnblogs.com/kevinqinan/p/4589618.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值