面向分布式软件的自动化测试工具的设计与实现

 2022-01-29 06:01

论文总字数:21022字

摘 要

本文以分布式软件的测试为核心,设计了切实可行且自动化程度较高的分布式软件测试框架,然后利用脚本语言开发出相应的自动化测试工具,并在实际工程测试中验证了该工具的可用性,自动化和高效性。

针对分布式软件自身固有的分布式运行属性,该测试工具从宏观上定义了以事件作为驱动的流程。它将软件开发模块与测试模块有机结合起来,保证软件版本更新后,测试模块可以自发启动执行测试。在测试执行阶段,首先部署测试集群上的守护进程,通过主控测试机向其余测试机发送命令,控制每台测试机依次执行以下行为:时间同步调整、向FTP服务器请求测试用例文件下载、定位当前工作目录、执行测试用例、收集测试用例执行产生的结果文件、测试完毕后将每台测试机器上的测试结果上传到FTP服务器。在测试结果分析阶段,执行失败的测试用例将被提交到BUG服务器,由开发人员负责查看更新版本,进而准备下一轮的回归测试。

本文所设计开发出的自动化测试工具,完成了对具有显著分布式属性的DDS(Data Distribution Service)软件系统的实际工程测试,并表现出了良好的工程应用能力。

关键词:分布式软件,软件测试,自动化测试,守护进程

Abstract

In this thesis, a practical distributed software test framework with high degree of automation is designed for distributed software testing. A scripting language is used to develop the appropriate automated testing tools. Furthermore, the availability, automation and efficiency of the tool is verified in practical engineering test.

For the inherent property of distributed software, our tool defines the event-driven process from the macro. It combines the development modules with test modules to ensure that as soon as the software version update, the test module can start to perform the test spontaneously. In the test phase, we firstly deploy daemons on testing cluster, and then execute script on the main test machine to send each command to the rest of testing machines, which is to be executed on each machine to perform the following acts in turn: time synchronization, requesting to the FTP server to download the test case files, placing working directory to the download file, executing test case, collecting result files of test case, and after the test is completed, the test result files for each test on the machine will be uploaded to FTP server. In the phase of result analysis, the failed test cases will be submitted to BUG server, where the developers are responsible for checking and updating code, and the tools wait for the next round of regression testing.

The automated testing tools presented in this thesis have been applied to the practical test of the DDS (Data Distribution Service) system, which has the significant property of distribution. Test results show that the tool is available for applications.

KEYWORDS: Distributed Software, Software Testing, Automated Testing, Daemon

目录

摘要 I

Abstract III

目录 V

第一章 绪论 1

1.1 研究背景 1

1.2 研究的意义 1

1.3 论文组织结构 1

第二章 研究现状及相关技术 3

2.1 分布式软件相关介绍 3

2.1.1 并行和高性能应用 3

2.1.2 容错应用 3

2.2 软件测试及自动化相关介绍 3

2.2.1 软件测试 3

2.2.2 自动化测试 3

2.3 测试过程与技术探讨 4

第三章 系统总体设计 5

3.1 系统概述 5

3.2 系统框架设计 5

3.2.1 系统框架 5

3.2.2 系统模块介绍 6

3.3 系统执行流程 11

3.4 本章小结 12

第四章 系统详细设计与实现 13

4.1 守护进程(Door)的设计与实现 13

4.1.1 服务器端命令传输协议 13

4.1.2 C/S模式下的通信实现 14

4.1.3 服务器端程序C 模块与测试流程程序Python模块的衔接 15

4.2 测试驱动行为接口的设计与实现 15

4.2.1 测试驱动脚本流程详细设计 16

4.2.2 测试驱动脚本类和接口详细设计 17

4.3 本章小结 18

第五章 系统测试 19

5.1 测试内容 19

5.2 测试环境 19

5.3 测试结果 20

5.4 系统测试评估 21

5.5 本章小结 21

第六章 结束语 22

6.1 总结 22

6.2 展望 22

致谢 23

参考文献 24

绪论

研究背景

剩余内容已隐藏,请支付后下载全文,论文总字数:21022字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;