[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN103605609A - An automated testing framework for cloud computing - Google Patents

An automated testing framework for cloud computing Download PDF

Info

Publication number
CN103605609A
CN103605609A CN201310661424.8A CN201310661424A CN103605609A CN 103605609 A CN103605609 A CN 103605609A CN 201310661424 A CN201310661424 A CN 201310661424A CN 103605609 A CN103605609 A CN 103605609A
Authority
CN
China
Prior art keywords
script
business
automatic test
automated
objects
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310661424.8A
Other languages
Chinese (zh)
Inventor
张新玲
赵霞
支连意
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
IEIT Systems Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201310661424.8A priority Critical patent/CN103605609A/en
Publication of CN103605609A publication Critical patent/CN103605609A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an automatic test framework applicable to cloud computing. Based on an object-oriented idea, repeated parts in a script are extracted out, are used as a shared object to be stored into a shared object resource database; an automatic test use case is constructed by capturing, storing and calling a WEB object and a business unit assembly object of a tested procedure, thus completing mass automatic test of business process. The automatic test framework disclosed by the invention can quickly select the automatic test use case, can improve scientificalness and comprehensiveness of selection of the automatic use case, can lower maintenance cost and labor cost of an automatic test script, can improve automatic test success rate and can finally improve systematicness and readability of the automatic test result.

Description

一种适用于云计算的自动化测试框架An automated testing framework for cloud computing

技术领域 technical field

本发明涉及自动化测试领域,具体涉及到一种快速选定自动化测试用例的方法,通过合理的划分软件的普通模块和核心模块,根据测试用例的选择比例和复杂度,快速的选定可以有效的进行自动化测试的用例,降低自动化测试的成本。 The present invention relates to the field of automated testing, in particular to a method for quickly selecting automated test cases, by rationally dividing common modules and core modules of software, and according to the selection ratio and complexity of test cases, rapid selection can be effective Use cases for automated testing to reduce the cost of automated testing.

技术背景 technical background

云计算基于IaaS(基础设施即服务)的产品也如雨后春笋般涌出。如何提升产品的质量和竞争力,高效的软件测试无疑发挥着举足轻重的作用。虽然传统应用软件的自动化测试工具及测试方法已日臻成熟,但是,在云技术领域的自动化测试技术还是需要进一步探索,需分析云管理平台的业务特点、探究自动化测试框架构建的原则,实现云管理平台的自动高效测试。 Cloud computing based on IaaS (Infrastructure as a Service) products are also springing up like mushrooms. How to improve product quality and competitiveness, efficient software testing undoubtedly plays a pivotal role. Although the automated testing tools and testing methods of traditional application software have matured day by day, the automated testing technology in the field of cloud technology still needs to be further explored. Automatic and efficient testing of the platform.

目前自动化测试用例的构建方式一般为基于软件的业务流程,这种方法创建的测试脚本,当程序发生微小变动、数据发生变动、功能增加时,涉及脚本则全部需要重新编写,费时费力,成本较高。 At present, the construction method of automated test cases is generally based on software-based business processes. When the test scripts created by this method undergo minor changes in programs, data changes, and functions increase, all scripts involved need to be rewritten, which is time-consuming, laborious, and costly. high.

为此提供一种适用于云计算的自动化测试框架(OBP),该框架通过划分业务单元组件和保存WEB对象属性和操作、组合业务单元组件构建业务流程测试脚本,提高脚本的灵活性,减少脚本的维护成本。 To this end, an automated test framework (OBP) suitable for cloud computing is provided. This framework builds business process test scripts by dividing business unit components, saving WEB object attributes and operations, and combining business unit components to improve script flexibility and reduce scripts. maintenance costs.

发明内容 Contents of the invention

本发明要解决的技术问题是:针对目前云计算自动化框架灵活性低、复用率低、维护成本高等问题,提出一种适用于云计算的自动化测试框架。 The technical problem to be solved by the present invention is to propose an automated testing framework suitable for cloud computing in view of the problems of low flexibility, low reuse rate and high maintenance cost of the current cloud computing automation framework.

本发明所采用的技术方案为: The technical scheme adopted in the present invention is:

一种适用于云计算的自动化测试框架,简称OBP,基于面向对象的思想,将脚本中重复的部分,包括具体对象(WEB 界面对象)和抽象对象(业务组件)抽取出来,统一作为共享对象存入共享对象资源库,通过捕获、保存、调用被测程序的WEB对象和业务单元组件对象,构建自动化测试用例,完成业务流程的批量自动化测试。 An automated testing framework suitable for cloud computing, referred to as OBP, based on object-oriented thinking, extracts the repeated parts of the script, including specific objects (WEB interface objects) and abstract objects (business components), and store them as shared objects. Enter the shared object resource library, and build automated test cases by capturing, saving, and invoking the WEB objects and business unit component objects of the program under test, and complete the batch automated testing of business processes.

采用上述的方式,代替以往基于业务流程的自动化测试用例构建方式,从而提高自动化测试脚本的复用率,降低自动化测试脚本的维护成本。 The above method is adopted to replace the previous business process-based automated test case construction method, thereby increasing the reuse rate of automated test scripts and reducing the maintenance cost of automated test scripts.

注:框架(Framework)是整个或部分系统的可重用设计,表现为一组抽象构件及构件实例间交互的方法。 Note: Framework (Framework) is a reusable design of the whole or part of the system, expressed as a set of abstract components and methods of interaction between component instances.

所述测试框架包括流程如下: The test framework includes the following processes:

1)在自动化测试用例构建初期,将被测程序的界面元素,看做一个一个的对象,通过所述框架捕获、保存WEB界面的对象属性和对象操作到数据库,为业务组件对象的构建提供可操作的对象; 1) In the early stage of automated test case construction, the interface elements of the program under test are regarded as objects one by one, and the object attributes and object operations of the WEB interface are captured and saved to the database through the framework to provide reliable information for the construction of business component objects. the object of the operation;

2)将被测程序的业务流程划分为不可再分割的、可以复用的一个个业务组件对象,便于测试流程的组合; 2) Divide the business process of the program under test into inseparable and reusable business component objects to facilitate the combination of test processes;

3)在创建具体的自动化测试用例时,通过组合业务单元组件,完成自动化测试用例的构建。 3) When creating specific automated test cases, complete the construction of automated test cases by combining business unit components.

所述业务组件对象简称业务单元,每个业务单元对应业务单元实现脚本和业务单元检查脚本; The business component object is referred to as a business unit, and each business unit corresponds to a business unit implementation script and a business unit inspection script;

业务单元实现脚本通过调用WEB界面对象库完成的创建,并保存在数据库;业务单元检查脚本通过增加脚本的检查点来创建,保存在数据库。 The business unit implementation script is created by calling the WEB interface object library and stored in the database; the business unit check script is created by adding checkpoints to the script and stored in the database.

本发明的有益效果为: The beneficial effects of the present invention are:

本发明可以快速的选定自动化测试的用例,提高自动化用例选择的科学性和全面性,降低自动化测试脚本维护成本及人工成本,提高自动化测试成功率。最终提升自动化测试结果的系统性和可读性。 The invention can quickly select the use case of the automation test, improve the scientificity and comprehensiveness of the selection of the automation use case, reduce the maintenance cost and labor cost of the automation test script, and improve the success rate of the automation test. Ultimately improve the systematization and readability of automated test results.

附图说明 Description of drawings

图1为本发明框架的流程图。 Figure 1 is a flowchart of the framework of the present invention.

具体实施方式 Detailed ways

下面参照附图,以自动化测试脚本“登陆”为例,阐述该框架的具体实现流程: Referring to the accompanying drawings, taking the automated test script "login" as an example, the specific implementation process of the framework is explained:

1、脚本创建之初,OBP框架捕获程序登陆界面的WEB对象,例如:用户名、密码等的属性和可进行的操作,并保存到数据库中; 1. At the beginning of the script creation, the OBP framework captures the WEB objects of the program login interface, such as: user name, password and other attributes and possible operations, and saves them in the database;

2、通过OBP框架,调用WEB对象数据库中的对象,构建登陆的脚本,并为脚本添加检查点(正确性检查、最大长度检查、特殊字符检查等),业务单元的实现脚本和检查脚本自动保存到数据库中; 2. Through the OBP framework, call the objects in the WEB object database, build the login script, and add checkpoints (correctness check, maximum length check, special character check, etc.) to the script, and the implementation script and check script of the business unit are automatically saved into the database;

3、在自动化测试其他的用例时,例如:创建虚拟机。就可以组合调用“登陆”“跳转到虚拟机管理页面”“创建虚拟机”“退出”等业务单元的实现脚本和检查脚本的创建; 3. When automating other use cases, such as creating virtual machines. It is possible to combine and call the creation of implementation scripts and inspection scripts of business units such as "login", "jump to the virtual machine management page", "create virtual machine" and "exit";

4、当被测程序发生变化,例如程序登陆需要增加验证码,则“创建虚拟机”这个脚本不需要改动,仅需要更改数据库中的“登陆”业务单元的实现脚本即可。 4. When the program under test changes, for example, a verification code needs to be added for program login, the script of "creating a virtual machine" does not need to be changed, only the implementation script of the "login" business unit in the database needs to be changed.

Claims (3)

1.一种适用于云计算的自动化测试框架,其特征在于:基于面向对象的思想,将脚本中重复的部分抽取出来,统一作为共享对象存入共享对象资源库,通过捕获、保存、调用被测程序的WEB对象和业务单元组件对象,构建自动化测试用例,完成业务流程的批量自动化测试。 1. An automated test framework suitable for cloud computing, characterized in that: based on object-oriented thinking, the repeated parts in the script are extracted, unified as shared objects and stored in the shared object resource library, and are stored by capturing, saving, and calling Test program WEB objects and business unit component objects, build automated test cases, and complete batch automated testing of business processes. 2.根据权利要求1所述的一种适用于云计算的自动化测试框架,其特征在于,包括流程如下: 2. A kind of automated testing framework suitable for cloud computing according to claim 1, characterized in that, the process is as follows: 1)在自动化测试用例构建初期,将被测程序的界面元素,看做一个一个的对象,通过所述框架捕获、保存WEB界面的对象属性和对象操作到数据库,为业务组件对象的构建提供可操作的对象; 1) In the early stage of automated test case construction, the interface elements of the program under test are regarded as objects one by one, and the object attributes and object operations of the WEB interface are captured and saved to the database through the framework to provide reliable information for the construction of business component objects. the object of the operation; 2)将被测程序的业务流程划分为不可再分割的、可以复用的一个个业务组件对象,便于测试流程的组合; 2) Divide the business process of the program under test into inseparable and reusable business component objects to facilitate the combination of test processes; 3)在创建具体的自动化测试用例时,通过组合业务单元组件,完成自动化测试用例的构建。 3) When creating specific automated test cases, complete the construction of automated test cases by combining business unit components. 3.根据权利要求2所述的一种适用于云计算的自动化测试框架,其特征在于,所述业务组件对象对应业务单元实现脚本和业务单元检查脚本,业务单元实现脚本通过调用WEB界面对象库完成的创建,并保存在数据库;业务单元检查脚本通过增加脚本的检查点来创建,保存在数据库。 3. a kind of automated testing frame applicable to cloud computing according to claim 2, it is characterized in that, the corresponding business unit of described business component object realizes script and business unit inspection script, and business unit realizes script by calling WEB interface object storehouse The completed creation is saved in the database; the business unit check script is created by adding checkpoints of the script and saved in the database.
CN201310661424.8A 2013-12-10 2013-12-10 An automated testing framework for cloud computing Pending CN103605609A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310661424.8A CN103605609A (en) 2013-12-10 2013-12-10 An automated testing framework for cloud computing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310661424.8A CN103605609A (en) 2013-12-10 2013-12-10 An automated testing framework for cloud computing

Publications (1)

Publication Number Publication Date
CN103605609A true CN103605609A (en) 2014-02-26

Family

ID=50123838

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310661424.8A Pending CN103605609A (en) 2013-12-10 2013-12-10 An automated testing framework for cloud computing

Country Status (1)

Country Link
CN (1) CN103605609A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317718A (en) * 2014-11-04 2015-01-28 浪潮电子信息产业股份有限公司 Software testing service system based on cloud computing
CN104407978A (en) * 2014-12-12 2015-03-11 浪潮(北京)电子信息产业有限公司 Automatic test method of software and device thereof
CN105912460A (en) * 2016-04-05 2016-08-31 浪潮电子信息产业股份有限公司 Software test method and system based on QTP
CN107193740A (en) * 2017-05-23 2017-09-22 郑州云海信息技术有限公司 The software test case test system and method for a kind of Reuse-Oriented
CN107623602A (en) * 2017-10-12 2018-01-23 郑州市景安网络科技股份有限公司 One kind automation investigation method and system
CN108345532A (en) * 2017-01-23 2018-07-31 中国移动通信集团浙江有限公司 A kind of automatic test cases generation method and device
CN109861874A (en) * 2018-12-25 2019-06-07 北京奇安信科技有限公司 Equipment automated test system
CN110213117A (en) * 2018-02-28 2019-09-06 贵州白山云科技股份有限公司 A kind of service test method and device
CN111897724A (en) * 2020-07-21 2020-11-06 国云科技股份有限公司 A kind of automatic testing method and device suitable for cloud platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866219A (en) * 2005-12-09 2006-11-22 华为技术有限公司 System and method for testing measured object based on automatic test script
CN101118515A (en) * 2007-09-11 2008-02-06 腾讯科技(深圳)有限公司 Automatically testing method and apparatus for list
CN102222042A (en) * 2011-06-28 2011-10-19 北京新媒传信科技有限公司 Automatic software testing method based on cloud computing
CN103150251A (en) * 2013-03-04 2013-06-12 浪潮电子信息产业股份有限公司 Method for intelligently acquiring automated test object
CN103412820A (en) * 2013-08-30 2013-11-27 曙光信息产业(北京)有限公司 Test method and tester for pages in Web system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866219A (en) * 2005-12-09 2006-11-22 华为技术有限公司 System and method for testing measured object based on automatic test script
CN101118515A (en) * 2007-09-11 2008-02-06 腾讯科技(深圳)有限公司 Automatically testing method and apparatus for list
CN102222042A (en) * 2011-06-28 2011-10-19 北京新媒传信科技有限公司 Automatic software testing method based on cloud computing
CN103150251A (en) * 2013-03-04 2013-06-12 浪潮电子信息产业股份有限公司 Method for intelligently acquiring automated test object
CN103412820A (en) * 2013-08-30 2013-11-27 曙光信息产业(北京)有限公司 Test method and tester for pages in Web system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317718A (en) * 2014-11-04 2015-01-28 浪潮电子信息产业股份有限公司 Software testing service system based on cloud computing
CN104407978A (en) * 2014-12-12 2015-03-11 浪潮(北京)电子信息产业有限公司 Automatic test method of software and device thereof
CN105912460A (en) * 2016-04-05 2016-08-31 浪潮电子信息产业股份有限公司 Software test method and system based on QTP
CN108345532A (en) * 2017-01-23 2018-07-31 中国移动通信集团浙江有限公司 A kind of automatic test cases generation method and device
CN107193740A (en) * 2017-05-23 2017-09-22 郑州云海信息技术有限公司 The software test case test system and method for a kind of Reuse-Oriented
CN107623602A (en) * 2017-10-12 2018-01-23 郑州市景安网络科技股份有限公司 One kind automation investigation method and system
CN107623602B (en) * 2017-10-12 2021-03-26 郑州市景安网络科技股份有限公司 Automatic checking method and system
CN110213117A (en) * 2018-02-28 2019-09-06 贵州白山云科技股份有限公司 A kind of service test method and device
CN109861874A (en) * 2018-12-25 2019-06-07 北京奇安信科技有限公司 Equipment automated test system
CN111897724A (en) * 2020-07-21 2020-11-06 国云科技股份有限公司 A kind of automatic testing method and device suitable for cloud platform

Similar Documents

Publication Publication Date Title
CN103605609A (en) An automated testing framework for cloud computing
CN108984712B (en) Service scene-based number making method and device and readable storage medium
CN106354645B (en) Test method and test platform based on background system service or interface
EP2615555A1 (en) Framework for automated testing of mobile apps
US10678573B2 (en) System and method for simulating virtual machine (VM) placement in virtual datacenters
US10740713B2 (en) Generation of WBS model data
Ahmad et al. A framework for architecture-driven migration of legacy systems to cloud-enabled software
CN102567172B (en) For parallel workloads emulation mode and the system of application performance test
US8839197B2 (en) Automated analysis of composite applications
CN106484623A (en) A kind of method of software test, apparatus and system
US11201806B2 (en) Automated analysis and recommendations for highly performant single page web applications
CN107273104B (en) Processing method and device for configuration data structure
CN108415826A (en) Test method, terminal device and the computer readable storage medium of application
CN103412961A (en) Processing method and system for real-time exporting report form of mass data
CN104391705A (en) Distributed automatic test framework applied to high-availability cluster software
CN111949518A (en) Method, system, terminal and storage medium for generating fault detection script
CN106874290B (en) Data cleaning method and equipment
Masek et al. Systematic evaluation of sandboxed software deployment for real-time software on the example of a self-driving heavy vehicle
CN111158800B (en) Method and device for constructing task DAG based on mapping relation
CN108399095B (en) Method, system, device and storage medium for supporting dynamic management of timed tasks
CN109032943A (en) A method of it is concurrently executed based on robot framework test case
US20160112285A1 (en) Apparatus and method for detecting abnormal connection
CN104298671A (en) Data statistics analysis method and device
CN106681704A (en) Development device and development method of user interface
CN107153679B (en) Extraction statistical method and system for semi-structured big data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140226

RJ01 Rejection of invention patent application after publication