Web 相关软件的开发更新快速、变化频繁、周期短, 用户需求也变化多样, 对软件测试的快速响应和质量提出了较高要求。为提高软件测试效率及准确率, 设计了一套针对Web 软件的自动化测试平台。该设计根据软件分层思想, 基于持续集成平台Jenkins 设计搭建, 集成了Ant、TestNG、Selenium 2.0、Sonar 等主流自动化产品, 实现了软件系统的持续构建、持续测试、持续代码质量监控等的全流程测试自动化。该测试架构可将传统Web 测试效率提高50%、准确率提高30%, 同时严格控制了软件产品质量, 降低了项目风险。
The web related software development shows a trend of more frequent changes in user demands and a shorter development period. In order to improve the efficiency and the accuracy of software test, a quick response high quality testing platform has been successfully built. According to the layered software architecture and based on the continuous integration platform, Ant, Selenium 2.0, TestNG, and Sonar are integrated to provide a solution to solve continuous construction, test and code quality monitor of the whole process of testing automation of a software system. It is shown that the solution can greatly improve software test efficiency with a high reliability.
[1] 许蕾, 徐宝文, 陈振强. Web 测试综述[J]. 计算机科学, 2003, 30(3): 100-104. Xu Lei, Xu Baowen, Chen Zhenqiang. A survey of Web testing[J]. Com puter Science, 2003, 30(3): 100-104.
[2] Xu Lei, Xu Baowen, Jiang Jixiang. Testing web applications focusing on their specialties[J]. ACM Special Interest Group on Software Engineering, 2005, 30(1): 1-6.
[3] 曹洋, 崔萌. 基于行为驱动开发的自动化测试方法研究[J]. 清远职业技术学院学报, 2013(6): 1-4. Cao Yang, Cui Meng. The research on behavior-driven development of automated testing [J]. Journal of Qingyuan Polytechnic, 2013(6): 1-4.
[4] 刘培. 自动化测试平台的设计与实现[J]. 科技创新与应用, 2014(24): 45-48. Liu Pei. The platform of automated testing[J]. Technology Innovation and Application, 2014(24): 45-48.
[5] 赵金丹. 基于selenium的web自动化测试脚本设计研究[J]. 科技传播, 2014(1): 94-95. Zhao Jindan. The research on selenium of web automated script testing[J]. Public Communication of Science & Technology, 2014(1): 94-95.
[6] Smart J F. Jenkins: The definitive guide[M]. Sebastopol: O'Reilly Media, 2011.
[7] Moser M, O'Brien T. The hudson book[M]. Redwood Shores: Oracle, Inc., 2011.
[8] Beust C, Suleiman H. Next generation java testing[M]. Boston: Addison-Wesley Professional, 2007.
[9] Menon V. Test NG Beginner's guide[M]. Birmingham: Packt Publishing, 2013.
[10] Eric M B, Tilly J. Ant:The definitive guide[M]. Sebastopol: O'Reilly Media, 2002.
[11] 赵卓. Selenium自动化测试指南[M]. 北京:人民邮电出版社, 2013. Zhao Zhuo. Automated Web testing with selenium[M]. Beijing: Posts & Telecom Press, 2013.
[12] Arapidis C. Sonar code quality testing essentials[M]. Birmingham: Packt Publishing, 2012.
[13] Racodon D. Developers' seven deadly sins [EB/OL]. (2013-12-03)[2014-01-06]. http://docs.codehaus.org/display/SONAR/Developers% 27+Seven+Deadly+Sins.