自动化基础案例库研究
2013-09-03李霄郭彤朱博
李霄 郭彤 朱博
【摘 要】本文从建设中海油基础案例库必要性入手,提出案例库设计引入分层结构的测试框架来提高软件测试代码编写及运行工作效率,并根据中海油SAP系统特点对案例库中业务流程进行组件化、参数化、分类化。基础案例库中流程的选择,结合了中海油SAP系统特点及中海油业务复杂的实际情况,从经济性方面考虑,最终采用基于操作剖面选择测试的原则实现了选取20%的流程数覆盖到80%的业务范围的“二八效应”,为中海油的自动化测试工作打下坚实的基础。
【关 键 词】 QC平台;QTP;回归测试;测试框架;业务组件;业务流程
【中图分类号】F407.67【文献标识码】A【文章编号】1672-5158(2013)07-0219-03
【Abstract】This paper starts from the necessity of CNOOC case library construction, propose that the hierarchical structure testing framework is used to improve software test code compiling and running efficiency,and according to the business process of CNOOC SAP system ,we make case library components, parametric, classification. The process of operation flow select is combined with the actual situation and characteristics of complex CNOOC ‘SAP system , considered from the economic aspect, we realize that to select 20% coverage to 80% business "two eight effect" , CNOOC case library is a solid foundation for the automation of CNOOCsoftwaretest..
【Key words】QC Platform; QTP; Regression Test;Test Framework; Business Component; Business Process
0 引言
中国海洋石油总公司(以下简称“中海油”)于2006年成功上线SAP系统,SAP系统已从全面建设向持续的系统运维和深化应用转变。伴随着对SAP系统持续的配置变更、新功能开发及新单位上线,这些需求的实现对大集中模式的SAP系统的正常运行带来了一定的冲击,使系统存在风险,为避免这些变更对集团SAP系统造成的冲击,从保证系统的稳定运行角度来讲,对于系统的测试工作凸显出了其重要性。而由人工完成的测试工作面临着测试时间紧迫、人力资源紧张、测试效率及质量较低等问题,为此,中海油希望引入“自动化脚本基础案例库”的方式完成自动化测试工作,利用基础案例库来完成自动化脚本的开发、存储、管理、运行等操作,为自动化测试工作打下坚实的基础。
1 基础案例库……
