bpel中常用条件Test方法测试字段值是否为空
2011-11-14 19:48
295 查看
在bpel中经常要对一个字段的值进行判断,获得true或者false,作为条件。
接触不多,得到的结果常常不在意料之中,近日在网上觅得一些资料,贴这儿回头参考。
![](http://hi.csdn.net/attachment/201111/14/0_1321271360E9Rr.gif)
Test的用法:
![](http://hi.csdn.net/attachment/201111/14/0_13212713736RBZ.gif)
To test if the value of a certain node is empty
It depends on what you mean by empty.
Contains no child nodes: not(node())
Contains no text content: not(string(.))
Contains no text other than whitespace: not(normalize-space(.))
Contains nothing except comments: not(node()[not(self::comment())])
接触不多,得到的结果常常不在意料之中,近日在网上觅得一些资料,贴这儿回头参考。
![](http://hi.csdn.net/attachment/201111/14/0_1321271360E9Rr.gif)
Test的用法:
![](http://hi.csdn.net/attachment/201111/14/0_13212713736RBZ.gif)
To test if the value of a certain node is empty
It depends on what you mean by empty.
Contains no child nodes: not(node())
Contains no text content: not(string(.))
Contains no text other than whitespace: not(normalize-space(.))
Contains nothing except comments: not(node()[not(self::comment())])
相关文章推荐
- 常用的客观效果指标和测试方法
- ANSI C中取得结构体字段偏移量的常用方法
- 老李分享:Robotium编写测试用例如何模拟Junit4的BeforeClass和AfterClass方法1 - 条件判断法
- 读入未知数目的输入方法和该方法的条件测试原理
- C#常用的写LOG、读取INI和网络是否畅通的静态方法
- unittest模块的常用方法:
- Googletest测试框架搭建方法
- shell 条件测试语句三种方法
- 【SQL】按字段分组查询符合条件记录的方法
- 测试Win8应用是否满足发布条件
- 我知道的一点Exadata测试常用的方法(这里主要讨论针对DW的场景)
- 节选 自 林锐的《软件工程思想》 测试的主要内容与常用方法
- 关于测试中常用到的一些方法、策略总结
- SQL Server中检查字段的值是否为数字的方法
- 测试某个类运行是否正常的方法
- 常用数据库查询判断表和字段是否存在的SQL
- 测试springmvc方法和配置文件是否有错
- 系统是否可以运行Windows 7测试方法
- 功能测试常用的策略和方法(转)
- 浅析常用数据库的自增字段创建方法汇总