摘要
根据面向BDI Agent的软件特点,采用基于模型的软件测试方法。利用树形结构对BDI的运行过程进行分析,确定Agent个体的运行轨迹;对AUML模型中的序列图进行分析,做Agent间的交互测试。将序列图(sequence diagramSD)中的消息进行提取,确定MAS中每个Agent所要处理的消息事件集合,依据消息集合生成目标树,遍历目标规划树确定测试路径;依据测试路径生成测试用例。实验结果验证,该方法可以基于AUML序列图生成完备的测试用例。
According to the feature of oriented-agent software, the methods based on models for testing software were adopted. Firstly, the tree struct was used to analyze the operation of BDI to determine the trajectory of the individual Agent. Then, the AUML model was analyzed to test the interaction among Agents. The algorithm was proposed to extract message from SD to determine the message event set need to be handled by each Agent in MAS and according to the message event set, the goal tree was generated; finally, the algorithm was proposed to determine test scenarios based on test paths to generate test cases. Experimental validation results show that the proposed solution can generate completed test cases based on AUML SD.
出处
《计算机工程与设计》
CSCD
北大核心
2014年第8期2757-2763,共7页
Computer Engineering and Design