摘要
测试分布式程序需要定义事件约束来检测程序执行产生的事件序列.事件约束需要根据程序的规约来推导.FSP是一类描述并发程序形式化规约的进程代数记法.它将并发进程描述为动作序列,其中动作可对应到规约级事件.E-CSPE约束在给定状态谓词下定义前后运行事件间的顺序关系.根据FSP的操作符和并发控制机制可推导E-CSPE约束.推导出来的E-CSPE约束考虑到并发程序的安全和进展属性,可据以判断程序运行的正确性和测试的充分性.
When a distributed program is under test, event sequencing constraints should be defined to check the event sequences generated after the program was executed. Those event constraints shall be derived from specifications of the program. FSP is a kind of process algebra notation that can be used to describe formal specifications of concurrent programs. FSP describes concurrent processes as action sequences, where an action can be mapped to a specification-level event. The E-CSPE constraints define the sequential relationship between any two runtime events under given state predicates. Based on the operators and concurrency control facilities within FSP, the E-CSPE constraints can be derived. Those derived E-CSPE constraints consider the safety and liveness properties of the concurrent program, and based on them both the correctness of the program execution and the sufficiency of the test work can be judged.
出处
《软件学报》
EI
CSCD
北大核心
2002年第11期2162-2168,共7页
Journal of Software
基金
国家九五重点科技攻关项目(98-780-01-07-03)~~
关键词
有限状态进程
事件约束定义
软件测试
并发程序
软件开发
software testing
finite state process
specification-based testing
concurrent programs
event sequencing constraints