+

WO2017012219A1 - Software test method, apparatus and system - Google Patents

Software test method, apparatus and system Download PDF

Info

Publication number
WO2017012219A1
WO2017012219A1 PCT/CN2015/093612 CN2015093612W WO2017012219A1 WO 2017012219 A1 WO2017012219 A1 WO 2017012219A1 CN 2015093612 W CN2015093612 W CN 2015093612W WO 2017012219 A1 WO2017012219 A1 WO 2017012219A1
Authority
WO
WIPO (PCT)
Prior art keywords
software
server
tested
configuration information
control
Prior art date
Application number
PCT/CN2015/093612
Other languages
French (fr)
Chinese (zh)
Inventor
高琳旭
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017012219A1 publication Critical patent/WO2017012219A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software

Definitions

  • the present invention relates to the field of software testing, and in particular, to a method, device and system for software testing based on a cloud environment.
  • test path of large-scale software to be tested can reach hundreds or even thousands.
  • the traditional test methods include two types: one is to select several typical scenarios that are commonly used for testing; the other is to deploy multiple test servers for testing.
  • test coverage of typical scenarios is incomplete and it is easy to miss the test scenario.
  • the hardware cost is very high, and the configuration of each test environment is inconsistent, it is impossible to achieve rapid replication, the environment is difficult to build, and the cost of environmental maintenance is high.
  • the object of the present invention is to provide a method, a device and a system for software testing, which can improve hardware resource utilization, perform functional tests on all scenarios of the test software automatically and quickly, and do not need to reserve one test server for each test path. .
  • an embodiment of the present invention provides a software testing method, including:
  • the step of controlling a cloud server to generate a virtual server according to the configuration information includes:
  • the method further includes:
  • the cloud server when the cloud server is capable of generating multiple virtual servers at the same time,
  • the step of obtaining configuration information of a test path of the software to be tested includes:
  • the step of controlling a cloud server to generate a virtual server according to the configuration information includes:
  • the method for testing the software further includes:
  • the cloud server is controlled to delete the virtual server.
  • the embodiment of the invention further provides a device for software testing, comprising:
  • a first control module configured to control a cloud server to generate a virtual server according to the configuration information
  • a second control module configured to control the virtual server to download and install the software to be tested
  • a third control module configured to control the virtual server to perform a functional test on the software to be tested.
  • the first control module includes:
  • the first control sub-module is configured to control, according to the configuration information, a cloud server to download an operating system image corresponding to the configuration information from the mirror server;
  • the second control submodule is configured to control the cloud server to generate a corresponding virtual server according to the operating system image.
  • the device for testing the software further includes:
  • the fourth control module is configured to control the virtual server to download and complete the third-party application software that the software to be tested depends on from the application software server, where the third-party application software includes a database.
  • the cloud server when the cloud server is capable of generating multiple virtual servers at the same time,
  • the obtaining module is configured to obtain configuration information of multiple test paths of the software to be tested;
  • the first control module is configured to control a cloud server to generate multiple virtual servers according to the configuration information of the multiple test paths.
  • the device for testing the software further includes:
  • the judging module is set to judge whether the test result is normal after the function test is completed;
  • the fifth control module is configured to control the cloud server to delete the virtual server if the determination result is normal.
  • the embodiment of the invention further provides a system for software testing, comprising:
  • Control server including the device for software testing described above;
  • Cloud server set to manage virtual servers
  • An application software server configured to store third-party application software that is to be tested by the software to be tested, where the third-party application software includes a database;
  • a mirror server that is set to store various operating system images.
  • Continuous integration server set to store software to be tested.
  • system for testing the software further includes:
  • a management server configured to control the continuous integration server to perform integration and construction of the software to be tested, and trigger the work of the control server.
  • control server is an ansible (an automated operation and maintenance tool) control server
  • cloud server is an openstack (an open source operating system) cloud server.
  • the software testing method of the embodiment of the present invention obtains configuration information of a test path of the software to be tested, and controls a cloud server to generate a virtual server according to the configuration information, and then controls the virtual server to download and install the to-be-tested Software, by using the virtual server to perform functional testing on the software to be tested, can improve hardware resource utilization, and automatically and quickly perform functional testing on all scenarios of the testing software, and does not need to reserve one test for each test path. server.
  • FIG. 1 is a flow chart showing a method of software testing in accordance with an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of an apparatus for software testing according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a system for software testing according to an embodiment of the present invention.
  • FIG. 4 is a flow chart showing functional testing of a test path of an EMS network management system according to an embodiment of the present invention.
  • an embodiment of the present invention provides a software testing method, including:
  • S101 Obtain configuration information of a test path of the software to be tested.
  • S102 Control a cloud server to generate a virtual server according to the configuration information.
  • S104 Control the virtual server to perform functional testing on the test software.
  • the software testing method of the embodiment of the present invention obtains the configuration information of a test path of the software to be tested, and controls a cloud server to generate a virtual server according to the configuration information, and then controls the virtual server to download and install the software to be tested to utilize the virtual server.
  • Functional testing of the test software can improve hardware resource utilization, automate and quickly test all scenarios of the test software, and do not need to reserve a test server for each test path.
  • the cloud server is a cloud environment platform and is responsible for managing the entire life cycle of the virtual server to facilitate the generation and deletion of the virtual server.
  • the management of the cloud server includes starting, shutting down, suspending, suspending, adjusting, migrating, and restarting the virtual server, and configuring central processing unit (CPU), memory, and the like. Specifications, dynamic generation of Internet Protocol (IP) addresses, etc.
  • IP Internet Protocol
  • the cloud server can also perform port monitoring on whether the virtual server is started, for example, the Linux operating system listening port 22, the Windows operating system listening window operating system remote management (WinRM) protocol port 5986, and the like.
  • the software to be tested is generally stored in a Continuous Integration (CI) server, and the CI server needs to provide integrated software to be tested periodically.
  • the virtual server performs a function test on the test software, and uses a common test mode, such as a port test, which is not limited by the embodiment of the present invention, and may be selected according to actual needs.
  • the step of controlling a cloud server to generate a virtual server according to the configuration information includes:
  • Controlling according to the configuration information, a cloud server downloading an operating system image corresponding to the configuration information from the mirror server;
  • the mirror server is configured to store images of various operating systems, and these operating system images are used as templates for the cloud server to generate virtual servers.
  • the image is generally a pure operating system, does not contain applications, but can add some small tools such as file transfer protocol FTP, decompression tools and other commonly used gadgets.
  • the operating system of the Linux series needs to be configured with Secure Shell (SSH) for secure login.
  • SSH Secure Shell
  • the Windows operating system needs to enable the WinRM protocol to ensure that the virtual server can be controlled after it is created.
  • the method before the step of controlling the virtual server to download and install the software to be tested, the method further includes:
  • the control virtual server downloads and installs the third-party application software that the software to be tested depends on from the application software server, and the third-party application software includes a database.
  • the application software server is configured to store third-party application software that the software to be tested needs to depend on, and the third-party application software is, for example, various types, various versions of the database, various versions of the software development kit JDK, and the like.
  • the database is perfected, some instance installation, configuration monitoring, and the like are required.
  • each test path has one configuration information.
  • the cloud server can generate multiple virtual servers at the same time, when performing functional tests on large-scale software to be tested, multiple virtual servers can be created at the same time and executed simultaneously on multiple test paths.
  • the steps of obtaining configuration information of a test path of the software to be tested include:
  • the steps of controlling a cloud server to generate a virtual server include:
  • test efficiency can be effectively improved and time can be saved.
  • the method for software testing further includes:
  • control cloud server deletes the virtual server.
  • deleting the virtual server with normal test results in time is beneficial to recovering resources and ensuring that the cloud server can update the generated virtual server.
  • the test result is not normal, the corresponding virtual server and test record should be kept for the developer to locate the problem. After the developer locates the repair fault, the test path test can be manually triggered separately to quickly verify the repair result.
  • a large test software has 1000 test paths, corresponding to 1000 configuration information, and the configured test path pool size is 20, that is, the cloud server can generate 20 virtual servers at a time.
  • the cloud server When testing this large-scale software to be tested, firstly, 20 of the 1000 configuration information will be acquired, and then according to the 20 configuration information, the cloud server is controlled to generate 20 virtual servers to perform functions by using the 20 virtual servers respectively. Test; when a virtual server test is successful, the cloud service deletes the virtual server, and then generates a virtual server (for some remaining configuration information), performs functional testing until the 1000 test paths of the software to be tested correspond to 1000 configuration information is all executed; when a virtual server fails, the virtual server is reserved for developers to locate the problem.
  • an embodiment of the present invention further provides a software testing apparatus, which corresponds to the software testing method shown in FIG. 1.
  • the software testing apparatus includes:
  • the obtaining module 21 is configured to obtain configuration information of a test path of the software to be tested;
  • the first control module 22 is configured to control a cloud server to generate a virtual server according to the configuration information
  • the second control module 23 is configured to control the virtual server to download and install the software to be tested;
  • the third control module 24 is configured to control the virtual server to perform functional testing on the test software.
  • the software testing device of the embodiment of the present invention obtains the configuration information of a test path of the software to be tested, and controls a cloud server to generate a virtual server according to the configuration information, and then controls the virtual server to download and install the software to be tested to utilize the virtual server.
  • Functional testing of the test software can improve the utilization of hardware resources, and perform functional tests on all scenarios of the test software automatically and quickly, without having to reserve a test server for each test path.
  • the first control module includes:
  • the first control sub-module is configured to control, according to the configuration information, a cloud server to download an operating system image corresponding to the configuration information from the mirror server;
  • the second control submodule is configured to control the cloud server to generate a corresponding virtual server according to the operating system image.
  • the software testing device also includes:
  • the fourth control module is configured to control the virtual server to download and install the third-party application software that the software to be tested depends on from the application software server, and the third-party application software includes a database.
  • the cloud server can generate multiple virtual servers at the same time
  • the obtaining module is configured to obtain configuration information of multiple test paths of the software to be tested;
  • the first control module is configured to control a cloud server to generate multiple virtual servers according to configuration information of the multiple test paths.
  • the software testing device also includes:
  • the judging module is set to judge whether the test result is normal after the function test is completed;
  • the fifth control module is configured to control the cloud server to delete the virtual server if the determination result is normal.
  • an embodiment of the present invention further provides a software testing system, including:
  • Control server 31 comprising the above-mentioned software testing device
  • the cloud server 32 is configured to manage the virtual server
  • the application software server 33 is configured to store third-party application software that the software to be tested depends on, and the third-party application software includes a database;
  • the mirror server 34 is configured to store various operating system images.
  • the continuous integration server 35 is configured to store the software to be tested.
  • the control server is the backbone of the software test system, playing the role of leading control.
  • the control server stores configuration information of the entire test process, including configuration information of the test path of the software to be tested, and a test path pool.
  • the size of the test path pool refers to the number of test paths that the control server can execute concurrently.
  • the size of the test path is less than or equal to the number of virtual servers that the cloud server can generate at the same time.
  • each test path corresponds to a configuration information file playbook (playbook), and the playbook includes configuration information of the test path, for example, Windows 2008 standard R2+64 bit + Oracle (Oracle) 11 standard version + Chinese + scale 2.
  • configuration information of the test path includes a set that is not limited to various hardware, software, version, and the like.
  • control server may be an ansible control server
  • the cloud server may be an openstack cloud server, but the embodiment of the present invention does not limit the other, and other selections may be made according to actual conditions.
  • the software testing system of the embodiment of the present invention further includes a management server configured to control the continuous integration server to perform integration and construction of the software to be tested, and automatically trigger the operation of the control server.
  • the management server can also monitor the entire test process and visualize the test results.
  • the management server for example, chooses to deploy the Jenkins tool (a continuous development tool based on Java development) to perform the above functions.
  • FIG. 4 is a flowchart of performing functional testing on a test path of an EMS network management according to an embodiment of the present invention; wherein, the configuration information of the test path is “Windows 2008 standard R2+64 bit+Oracle11g standard version+Chinese+scale 2 ".
  • the control server obtains configuration information “Windows2008 standard R2+64 bit+Oracle11g standard version+Chinese+scale 2”;
  • S402 The cloud server downloads an operating system image of “Windows2008 standard R264 bit” from the mirror server.
  • S403 The cloud server generates a corresponding virtual server, and starts the virtual server to listen to the WinRM protocol port 5986.
  • S405 The virtual server downloads the network element management system (EMS) network management from the CI server, selects the Chinese version for installation, and selects the installation size 2;
  • EMS network element management system
  • the virtual server performs a function test on the EMS network management; wherein, before the test, the corresponding configuration processing, test data preparation, and the like are performed;
  • the embodiment of the present invention obtains a test path of the software to be tested.
  • Setting information and controlling a cloud server to generate a virtual server according to the configuration information, and then controlling the virtual server to download and install the software to be tested, so as to perform functional testing on the software to be tested by using the virtual server, which can improve Hardware resource utilization, automated and fast testing of all scenarios of test software, and no need to reserve one test server for each test path.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a software test method, apparatus and system. The software test method comprises: acquiring configuration information of a test path of software to be tested; controlling, according to the configuration information, a cloud server to generate a virtual server; controlling the virtual server to download and install the software to be tested; and controlling the virtual server to perform functional testing on the software to be tested. By means of the solution of the present invention, the utilization rate of hardware resources can be improved, functional testing can be automatically and rapidly performed on all scenarios of software to be tested, and it is not required to keep a test server for each test path.

Description

一种软件测试的方法、装置及系统Method, device and system for software testing 技术领域Technical field
本发明涉及软件测试领域,特别是涉及一种基于云环境的软件测试的方法、装置及系统。The present invention relates to the field of software testing, and in particular, to a method, device and system for software testing based on a cloud environment.
背景技术Background technique
当前,大型待测试软件的测试路径可以达到几百甚至上千。而传统的测试方法包括两种:一种是选择其中常用的几种典型场景进行测试;另一种是部署多台测试服务器进行测试。Currently, the test path of large-scale software to be tested can reach hundreds or even thousands. The traditional test methods include two types: one is to select several typical scenarios that are commonly used for testing; the other is to deploy multiple test servers for testing.
但是,典型场景的测试覆盖不全,容易遗漏测试场景。而通过多台测试服务器进行的测试,硬件成本非常高,且每个测试环境配置不一致,无法做到快速复制,环境搭建困难,后期环境维护的成本也高。However, the test coverage of typical scenarios is incomplete and it is easy to miss the test scenario. Through the test conducted by multiple test servers, the hardware cost is very high, and the configuration of each test environment is inconsistent, it is impossible to achieve rapid replication, the environment is difficult to build, and the cost of environmental maintenance is high.
发明内容Summary of the invention
本发明的目的在于提供一种软件测试的方法、装置及系统,能够提高硬件资源利用率,自动化且快速地对待测试软件的所有场景进行功能测试,且不需要为每一个测试路径保留一个测试服务器。The object of the present invention is to provide a method, a device and a system for software testing, which can improve hardware resource utilization, perform functional tests on all scenarios of the test software automatically and quickly, and do not need to reserve one test server for each test path. .
为了实现上述的目的,本发明实施例提供一种软件测试的方法,包括:In order to achieve the above object, an embodiment of the present invention provides a software testing method, including:
获取待测试软件的一测试路径的配置信息;Obtaining configuration information of a test path of the software to be tested;
根据所述配置信息,控制一云服务器生成虚拟服务器;Controlling, according to the configuration information, a cloud server to generate a virtual server;
控制所述虚拟服务器下载安装所述待测试软件;Controlling, by the virtual server, downloading and installing the software to be tested;
控制所述虚拟服务器对所述待测试软件进行功能测试。Controlling, by the virtual server, functional testing of the software to be tested.
可选的,所述根据所述配置信息,控制一云服务器生成虚拟服务器的步骤包括:Optionally, the step of controlling a cloud server to generate a virtual server according to the configuration information includes:
根据所述配置信息,控制一云服务器从镜像服务器下载与所述配置信息对应的操作系统镜像;Controlling, by the cloud server, a cloud server to download an operating system image corresponding to the configuration information from the mirror server according to the configuration information;
控制所述云服务器根据所述操作系统镜像,生成对应的虚拟服务器。Controlling, by the cloud server, a corresponding virtual server according to the operating system image.
可选的,所述控制所述虚拟服务器下载安装所述待测试软件的步骤之前还包括:Optionally, before the step of controlling the virtual server to download and install the software to be tested, the method further includes:
控制所述虚拟服务器从应用软件服务器下载所述待测试软件依赖的第三方应用软件并安装完善,所述第三方应用软件包括数据库。Controlling the virtual server to download and complete the third-party application software that the software to be tested depends on from the application software server, and the third-party application software includes a database.
可选的,当所述云服务器能够每次同时生成多个虚拟服务器时, Optionally, when the cloud server is capable of generating multiple virtual servers at the same time,
所述获取待测试软件的一测试路径的配置信息的步骤包括:The step of obtaining configuration information of a test path of the software to be tested includes:
获取待测试软件的多条测试路径的配置信息;Obtaining configuration information of multiple test paths of the software to be tested;
所述根据所述配置信息,控制一云服务器生成虚拟服务器的步骤包括:The step of controlling a cloud server to generate a virtual server according to the configuration information includes:
根据所述多条测试路径的配置信息,控制一云服务器生成多个虚拟服务器。Controlling, according to the configuration information of the multiple test paths, a cloud server to generate multiple virtual servers.
可选的,所述的软件测试的方法还包括:Optionally, the method for testing the software further includes:
在功能测试完成后,判断测试结果是否正常;After the functional test is completed, judge whether the test result is normal;
在判断结果为正常的情况下,控制所述云服务器删除所述虚拟服务器。When the judgment result is normal, the cloud server is controlled to delete the virtual server.
本发明实施例还提供一种软件测试的装置,包括:The embodiment of the invention further provides a device for software testing, comprising:
获取模块,设置为获取待测试软件的一测试路径的配置信息;Obtaining a module, configured to obtain configuration information of a test path of the software to be tested;
第一控制模块,设置为根据所述配置信息,控制一云服务器生成虚拟服务器;a first control module, configured to control a cloud server to generate a virtual server according to the configuration information;
第二控制模块,设置为控制所述虚拟服务器下载安装所述待测试软件;a second control module, configured to control the virtual server to download and install the software to be tested;
第三控制模块,设置为控制所述虚拟服务器对所述待测试软件进行功能测试。And a third control module, configured to control the virtual server to perform a functional test on the software to be tested.
可选的,所述第一控制模块包括:Optionally, the first control module includes:
第一控制子模块,设置为根据所述配置信息,控制一云服务器从镜像服务器下载与所述配置信息对应的操作系统镜像;The first control sub-module is configured to control, according to the configuration information, a cloud server to download an operating system image corresponding to the configuration information from the mirror server;
第二控制子模块,设置为控制所述云服务器根据所述操作系统镜像,生成对应的虚拟服务器。The second control submodule is configured to control the cloud server to generate a corresponding virtual server according to the operating system image.
可选的,所述软件测试的装置还包括:Optionally, the device for testing the software further includes:
第四控制模块,设置为控制所述虚拟服务器从应用软件服务器下载所述待测试软件依赖的第三方应用软件并安装完善,所述第三方应用软件包括数据库。The fourth control module is configured to control the virtual server to download and complete the third-party application software that the software to be tested depends on from the application software server, where the third-party application software includes a database.
可选的,当所述云服务器能够每次同时生成多个虚拟服务器时,Optionally, when the cloud server is capable of generating multiple virtual servers at the same time,
所述获取模块设置为获取待测试软件的多条测试路径的配置信息;The obtaining module is configured to obtain configuration information of multiple test paths of the software to be tested;
所述第一控制模块设置为根据所述多条测试路径的配置信息,控制一云服务器生成多个虚拟服务器。The first control module is configured to control a cloud server to generate multiple virtual servers according to the configuration information of the multiple test paths.
可选的,所述软件测试的装置还包括:Optionally, the device for testing the software further includes:
判断模块,设置为在功能测试完成后,判断测试结果是否正常;The judging module is set to judge whether the test result is normal after the function test is completed;
第五控制模块,设置为在判断结果为正常的情况下,控制所述云服务器删除所述虚拟服务器。 The fifth control module is configured to control the cloud server to delete the virtual server if the determination result is normal.
本发明实施例又提供一种软件测试的系统,包括:The embodiment of the invention further provides a system for software testing, comprising:
控制服务器,包括上述的软件测试的装置;Control server, including the device for software testing described above;
云服务器,设置为管理虚拟服务器;Cloud server, set to manage virtual servers;
应用软件服务器,设置为存储待测试软件依赖的第三方应用软件,所述第三方应用软件包括数据库;An application software server, configured to store third-party application software that is to be tested by the software to be tested, where the third-party application software includes a database;
镜像服务器,设置为存储各种操作系统镜像。A mirror server that is set to store various operating system images.
持续集成服务器,设置为存储待测试软件。Continuous integration server, set to store software to be tested.
可选的,所述软件测试的系统还包括:Optionally, the system for testing the software further includes:
管理服务器,设置为控制所述持续集成服务器进行待测试软件的集成与构建,和触发所述控制服务器的工作。And a management server, configured to control the continuous integration server to perform integration and construction of the software to be tested, and trigger the work of the control server.
可选的,所述控制服务器为ansible(一种自动化运行维护工具)控制服务器,所述云服务器为openstack(一种开源操作系统)云服务器。Optionally, the control server is an ansible (an automated operation and maintenance tool) control server, and the cloud server is an openstack (an open source operating system) cloud server.
通过本发明实施例的上述技术方案,本发明实施例的有益效果在于:The beneficial effects of the embodiments of the present invention are as follows:
本发明实施例的软件测试的方法,通过获取待测试软件的一测试路径的配置信息,并根据所述配置信息,控制一云服务器生成虚拟服务器,再控制所述虚拟服务器下载安装所述待测试软件,以利用所述虚拟服务器对所述待测试软件进行功能测试,能够提高硬件资源利用率,自动化且快速地对待测试软件的所有场景进行功能测试,且不需要为每一个测试路径保留一个测试服务器。The software testing method of the embodiment of the present invention obtains configuration information of a test path of the software to be tested, and controls a cloud server to generate a virtual server according to the configuration information, and then controls the virtual server to download and install the to-be-tested Software, by using the virtual server to perform functional testing on the software to be tested, can improve hardware resource utilization, and automatically and quickly perform functional testing on all scenarios of the testing software, and does not need to reserve one test for each test path. server.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1表示本发明实施例的软件测试的方法的流程图。1 is a flow chart showing a method of software testing in accordance with an embodiment of the present invention.
图2表示本发明实施例的软件测试的装置的结构示意图。FIG. 2 is a schematic structural diagram of an apparatus for software testing according to an embodiment of the present invention.
图3表示本发明实施例的软件测试的系统的结构示意图。FIG. 3 is a schematic structural diagram of a system for software testing according to an embodiment of the present invention.
图4表示本发明实施例的针对EMS网管的一条测试路径进行功能测试的流程图。FIG. 4 is a flow chart showing functional testing of a test path of an EMS network management system according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对实施例进行详细描述。 The embodiments are described in detail below with reference to the accompanying drawings.
参阅图1所示,本发明实施例提供一种软件测试的方法,包括:Referring to FIG. 1 , an embodiment of the present invention provides a software testing method, including:
S101:获取待测试软件的一测试路径的配置信息;S101: Obtain configuration information of a test path of the software to be tested.
S102:根据配置信息,控制一云服务器生成虚拟服务器;S102: Control a cloud server to generate a virtual server according to the configuration information.
S103:控制虚拟服务器下载安装待测试软件;S103: Control the virtual server to download and install the software to be tested;
S104:控制虚拟服务器对待测试软件进行功能测试。S104: Control the virtual server to perform functional testing on the test software.
本发明实施例的软件测试的方法,通过获取待测试软件的一测试路径的配置信息,并根据配置信息,控制一云服务器生成虚拟服务器,再控制虚拟服务器下载安装待测试软件,以利用虚拟服务器对待测试软件进行功能测试,能够提高硬件资源利用率,自动化且快速地对待测试软件的所有场景进行功能测试,且不需要为每一个测试路径保留一个测试服务器。The software testing method of the embodiment of the present invention obtains the configuration information of a test path of the software to be tested, and controls a cloud server to generate a virtual server according to the configuration information, and then controls the virtual server to download and install the software to be tested to utilize the virtual server. Functional testing of the test software can improve hardware resource utilization, automate and quickly test all scenarios of the test software, and do not need to reserve a test server for each test path.
其中,云服务器是云环境平台,负责管理虚拟服务器的整个生命周期,以方便的进行虚拟服务器的生成和删除。可选的,云服务器的管理工作除了生成和删除虚拟服务器外,还包括对虚拟服务器进行启动、关闭、挂起、暂停、调整、迁移、重启,以及配置中央处理单元(CPU)、内存等信息规格、动态生成因特网协议(IP)地址等。且云服务器还可对虚拟服务器是否启动进行端口监听,例如,哩呐克斯(Linux)操作系统监听端口22,视窗(Windows)操作系统监听视窗操作系统远程管理(WinRM)协议端口5986等。The cloud server is a cloud environment platform and is responsible for managing the entire life cycle of the virtual server to facilitate the generation and deletion of the virtual server. Optionally, in addition to generating and deleting virtual servers, the management of the cloud server includes starting, shutting down, suspending, suspending, adjusting, migrating, and restarting the virtual server, and configuring central processing unit (CPU), memory, and the like. Specifications, dynamic generation of Internet Protocol (IP) addresses, etc. The cloud server can also perform port monitoring on whether the virtual server is started, for example, the Linux operating system listening port 22, the Windows operating system listening window operating system remote management (WinRM) protocol port 5986, and the like.
待测试软件一般存储于持续集成(Continuous Integration,简称为CI)服务器,而CI服务器需要定时提供集成好的待测试软件。本发明实施例中,虚拟服务器对待测试软件进行的功能测试采用常用的测试方式,例如端口测试等,本发明实施例不对其进行限制,可根据实际需求进行选择。The software to be tested is generally stored in a Continuous Integration (CI) server, and the CI server needs to provide integrated software to be tested periodically. In the embodiment of the present invention, the virtual server performs a function test on the test software, and uses a common test mode, such as a port test, which is not limited by the embodiment of the present invention, and may be selected according to actual needs.
为了保证生成的虚拟服务器的准确性,在本发明实施例中,根据配置信息,控制一云服务器生成虚拟服务器的步骤包括:In order to ensure the accuracy of the generated virtual server, in the embodiment of the present invention, the step of controlling a cloud server to generate a virtual server according to the configuration information includes:
根据配置信息,控制一云服务器从镜像服务器下载与配置信息对应的操作系统镜像;Controlling, according to the configuration information, a cloud server downloading an operating system image corresponding to the configuration information from the mirror server;
控制云服务器根据操作系统镜像,生成对应的虚拟服务器。Control the cloud server to generate a corresponding virtual server based on the operating system image.
其中,镜像服务器设置为存储各种操作系统的镜像,这些操作系统镜像作为模板供云服务器生成虚拟服务器时使用。可选的,镜像一般为纯操作系统,不包含应用程序,但可以增加一些如文件传输协议FTP、解压工具等磁盘占用少且常用的小工具。特别的,Linux系列的操作系统需要配置安全壳(Secure Shell,简称为SSH)免密登陆,Windows系列的操作系统需要开启WinRM协议,以保证虚拟服务器创建后能受控制。The mirror server is configured to store images of various operating systems, and these operating system images are used as templates for the cloud server to generate virtual servers. Optionally, the image is generally a pure operating system, does not contain applications, but can add some small tools such as file transfer protocol FTP, decompression tools and other commonly used gadgets. In particular, the operating system of the Linux series needs to be configured with Secure Shell (SSH) for secure login. The Windows operating system needs to enable the WinRM protocol to ensure that the virtual server can be controlled after it is created.
为了保证虚拟服务器正常下载安装待测试软件,在本发明可选实施例中,控制虚拟服务器下载安装待测试软件的步骤之前还包括:In order to ensure that the virtual server downloads and installs the software to be tested, in the optional embodiment of the present invention, before the step of controlling the virtual server to download and install the software to be tested, the method further includes:
控制虚拟服务器从应用软件服务器下载待测试软件依赖的第三方应用软件并安装完善,第三方应用软件包括数据库。 The control virtual server downloads and installs the third-party application software that the software to be tested depends on from the application software server, and the third-party application software includes a database.
可选的,应用软件服务器设置为存储各种待测试软件需要依赖的第三方应用软件,第三方应用软件例如为各种类型、各种版本的数据库,各种版本的软件开发工具包JDK等。详细的,在对数据库进行完善时,需要进行一些实例安装、配置监听等操作。Optionally, the application software server is configured to store third-party application software that the software to be tested needs to depend on, and the third-party application software is, for example, various types, various versions of the database, various versions of the software development kit JDK, and the like. In detail, when the database is perfected, some instance installation, configuration monitoring, and the like are required.
实际应用中,对于大型的待测试软件,通常包含多个测试路径,且每个测试路径具有一个配置信息。当云服务器能够每次同时生成多个虚拟服务器时,在对大型的待测试软件进行功能测试时,就可以同时创建多个虚拟服务器,以多个测试路径同时执行。In practical applications, for large software to be tested, usually multiple test paths are included, and each test path has one configuration information. When the cloud server can generate multiple virtual servers at the same time, when performing functional tests on large-scale software to be tested, multiple virtual servers can be created at the same time and executed simultaneously on multiple test paths.
基于上述内容,在本发明实施例中,当云服务器能够每次同时生成多个虚拟服务器时,Based on the foregoing, in the embodiment of the present invention, when the cloud server can generate multiple virtual servers at the same time,
获取待测试软件的一测试路径的配置信息的步骤包括:The steps of obtaining configuration information of a test path of the software to be tested include:
获取待测试软件的多条测试路径的配置信息;Obtaining configuration information of multiple test paths of the software to be tested;
根据配置信息,控制一云服务器生成虚拟服务器的步骤包括:According to the configuration information, the steps of controlling a cloud server to generate a virtual server include:
根据多条测试路径的配置信息,控制一云服务器生成多个虚拟服务器。Controlling a cloud server to generate multiple virtual servers according to configuration information of multiple test paths.
这样,能够有效地提高测试效率,节约时间。In this way, the test efficiency can be effectively improved and time can be saved.
在本发明实施例中,软件测试的方法还包括:In the embodiment of the present invention, the method for software testing further includes:
在功能测试完成后,判断测试结果是否正常;After the functional test is completed, judge whether the test result is normal;
在判断结果为正常的情况下,控制云服务器删除虚拟服务器。When the judgment result is normal, the control cloud server deletes the virtual server.
这样,及时删除测试结果正常的虚拟服务器,有利于回收资源,保证云服务器能够更新生成的虚拟服务器。而当测试结果不正常时,要保留对应的虚拟服务器和测试记录,供开发人员进行问题定位。在开发人员定位修复故障后,可以手工单独触发该条测试路径测试,快速验证修复结果。In this way, deleting the virtual server with normal test results in time is beneficial to recovering resources and ensuring that the cloud server can update the generated virtual server. When the test result is not normal, the corresponding virtual server and test record should be kept for the developer to locate the problem. After the developer locates the repair fault, the test path test can be manually triggered separately to quickly verify the repair result.
举例来说,一大型待测试软件有1000条测试路径,对应有1000个配置信息,且配置的测试路径池大小为20,即云服务器能够每次同时生成20个虚拟服务器。For example, a large test software has 1000 test paths, corresponding to 1000 configuration information, and the configured test path pool size is 20, that is, the cloud server can generate 20 virtual servers at a time.
在对这个大型待测试软件进行测试时,首先会获取1000个配置信息中的20个,再根据这20个配置信息,控制云服务器生成20个虚拟服务器,以利用这20个虚拟服务器分别进行功能测试;当某个虚拟服务器测试成功时,云服务会删除该虚拟服务器,并再生成一个虚拟服务器(针对剩余的某一配置信息),进行功能测试,直到待测试软件的1000条测试路径对应的1000个配置信息全部执行完;而当某个虚拟服务器测试失败时,这个虚拟服务器会被保留,供开发人员进行问题定位。When testing this large-scale software to be tested, firstly, 20 of the 1000 configuration information will be acquired, and then according to the 20 configuration information, the cloud server is controlled to generate 20 virtual servers to perform functions by using the 20 virtual servers respectively. Test; when a virtual server test is successful, the cloud service deletes the virtual server, and then generates a virtual server (for some remaining configuration information), performs functional testing until the 1000 test paths of the software to be tested correspond to 1000 configuration information is all executed; when a virtual server fails, the virtual server is reserved for developers to locate the problem.
参见图2所示,本发明实施例还提供一种软件测试的装置,与图1所示的软件测试的方法相对应,软件测试的装置包括:Referring to FIG. 2, an embodiment of the present invention further provides a software testing apparatus, which corresponds to the software testing method shown in FIG. 1. The software testing apparatus includes:
获取模块21,设置为获取待测试软件的一测试路径的配置信息;The obtaining module 21 is configured to obtain configuration information of a test path of the software to be tested;
第一控制模块22,设置为根据配置信息,控制一云服务器生成虚拟服务器; The first control module 22 is configured to control a cloud server to generate a virtual server according to the configuration information;
第二控制模块23,设置为控制虚拟服务器下载安装待测试软件;The second control module 23 is configured to control the virtual server to download and install the software to be tested;
第三控制模块24,设置为控制虚拟服务器对待测试软件进行功能测试。The third control module 24 is configured to control the virtual server to perform functional testing on the test software.
本发明实施例的软件测试的装置,通过获取待测试软件的一测试路径的配置信息,并根据配置信息,控制一云服务器生成虚拟服务器,再控制虚拟服务器下载安装待测试软件,以利用虚拟服务器对待测试软件进行功能测试,能够提高硬件资源的利用率,自动化且快速地对待测试软件的所有场景进行功能测试,且不需要为每一个测试路径保留一个测试服务器。The software testing device of the embodiment of the present invention obtains the configuration information of a test path of the software to be tested, and controls a cloud server to generate a virtual server according to the configuration information, and then controls the virtual server to download and install the software to be tested to utilize the virtual server. Functional testing of the test software can improve the utilization of hardware resources, and perform functional tests on all scenarios of the test software automatically and quickly, without having to reserve a test server for each test path.
可选的,第一控制模块包括:Optionally, the first control module includes:
第一控制子模块,设置为根据配置信息,控制一云服务器从镜像服务器下载与配置信息对应的操作系统镜像;The first control sub-module is configured to control, according to the configuration information, a cloud server to download an operating system image corresponding to the configuration information from the mirror server;
第二控制子模块,设置为控制云服务器根据操作系统镜像,生成对应的虚拟服务器。The second control submodule is configured to control the cloud server to generate a corresponding virtual server according to the operating system image.
其中,软件测试的装置还包括:Among them, the software testing device also includes:
第四控制模块,设置为控制虚拟服务器从应用软件服务器下载待测试软件依赖的第三方应用软件并安装完善,第三方应用软件包括数据库。The fourth control module is configured to control the virtual server to download and install the third-party application software that the software to be tested depends on from the application software server, and the third-party application software includes a database.
可选的,当云服务器能够每次同时生成多个虚拟服务器时,Optionally, when the cloud server can generate multiple virtual servers at the same time,
获取模块设置为获取待测试软件的多条测试路径的配置信息;The obtaining module is configured to obtain configuration information of multiple test paths of the software to be tested;
第一控制模块设置为根据多条测试路径的配置信息,控制一云服务器生成多个虚拟服务器。The first control module is configured to control a cloud server to generate multiple virtual servers according to configuration information of the multiple test paths.
且软件测试的装置还包括:And the software testing device also includes:
判断模块,设置为在功能测试完成后,判断测试结果是否正常;The judging module is set to judge whether the test result is normal after the function test is completed;
第五控制模块,设置为在判断结果为正常的情况下,控制云服务器删除虚拟服务器。The fifth control module is configured to control the cloud server to delete the virtual server if the determination result is normal.
参见图3所示,本发明实施例还提供一种软件测试的系统,包括:As shown in FIG. 3, an embodiment of the present invention further provides a software testing system, including:
控制服务器31,包括上述的软件测试的装置; Control server 31, comprising the above-mentioned software testing device;
云服务器32,设置为管理虚拟服务器;The cloud server 32 is configured to manage the virtual server;
应用软件服务器33,设置为存储待测试软件依赖的第三方应用软件,第三方应用软件包括数据库;The application software server 33 is configured to store third-party application software that the software to be tested depends on, and the third-party application software includes a database;
镜像服务器34,设置为存储各种操作系统镜像。The mirror server 34 is configured to store various operating system images.
持续集成服务器35,设置为存储待测试软件。The continuous integration server 35 is configured to store the software to be tested.
其中,控制服务器是软件测试系统的中枢,起到主导控制的作用。可选的,控制服务器中存储有整个测试流程的配置信息,包括待测试软件的测试路径的配置信息,及测试路径池 的大小,测试路径池指控制服务器能够并发执行的测试路径个数,其大小小于等于云服务器能够每次同时生成虚拟服务器的个数。Among them, the control server is the backbone of the software test system, playing the role of leading control. Optionally, the control server stores configuration information of the entire test process, including configuration information of the test path of the software to be tested, and a test path pool. The size of the test path pool refers to the number of test paths that the control server can execute concurrently. The size of the test path is less than or equal to the number of virtual servers that the cloud server can generate at the same time.
可选的,每一个测试路径对应一个配置信息文件剧本集(playbook),这个playbook包括这条测试路径的配置信息,例如,Windows2008标准R2+64位+甲骨文(Oracle)11标准版+中文+规模2。当待测试软件需要扩展测试路径时,只需要在控制服务器中增加一个playbook,把相应测试路径的配置信息设置进去,无需增加其它配置。需要指出是,本发明实施例中的测试路径的配置信息包括不限于各种硬件、软件、版本等差异构成的集合。Optionally, each test path corresponds to a configuration information file playbook (playbook), and the playbook includes configuration information of the test path, for example, Windows 2008 standard R2+64 bit + Oracle (Oracle) 11 standard version + Chinese + scale 2. When the software to be tested needs to expand the test path, it is only necessary to add a playbook to the control server, and set the configuration information of the corresponding test path without adding other configurations. It should be noted that the configuration information of the test path in the embodiment of the present invention includes a set that is not limited to various hardware, software, version, and the like.
在本发明实施例中,控制服务器可选为ansible控制服务器,云服务器可选为openstack云服务器,但本发明实施例不对其进行限制,根据实际的情况可进行其他的选择。In the embodiment of the present invention, the control server may be an ansible control server, and the cloud server may be an openstack cloud server, but the embodiment of the present invention does not limit the other, and other selections may be made according to actual conditions.
此外,本发明实施例的软件测试的系统还包括管理服务器,管理服务器设置为控制持续集成服务器进行待测试软件的集成与构建,和自动触发控制服务器的工作。可选的,管理服务器还可监控整个测试流程,将测试结果可视化。实际应用中,管理服务器例如选择部署jenkins工具(一种基于java开发的持续集成工具),以完成上述的功能。In addition, the software testing system of the embodiment of the present invention further includes a management server configured to control the continuous integration server to perform integration and construction of the software to be tested, and automatically trigger the operation of the control server. Optionally, the management server can also monitor the entire test process and visualize the test results. In practice, the management server, for example, chooses to deploy the Jenkins tool (a continuous development tool based on Java development) to perform the above functions.
下面通过一实施例,对本发明实施例的软件测试的方法进行详细的介绍。The method of software testing according to an embodiment of the present invention is described in detail below through an embodiment.
参见图4所示,为本发明实施例的针对EMS网管的一条测试路径进行功能测试的流程图;其中,测试路径的配置信息为“Windows2008标准R2+64位+Oracle11g标准版+中文+规模2”。FIG. 4 is a flowchart of performing functional testing on a test path of an EMS network management according to an embodiment of the present invention; wherein, the configuration information of the test path is “Windows 2008 standard R2+64 bit+Oracle11g standard version+Chinese+scale 2 ".
包括以下步骤:Includes the following steps:
S401:控制服务器获取配置信息“Windows2008标准R2+64位+Oracle11g标准版+中文+规模2”;S401: The control server obtains configuration information “Windows2008 standard R2+64 bit+Oracle11g standard version+Chinese+scale 2”;
S402:云服务器从镜像服务器下载“Windows2008标准R264位”的操作系统镜像;S402: The cloud server downloads an operating system image of “Windows2008 standard R264 bit” from the mirror server.
S403:云服务器生成对应的虚拟服务器,并启动虚拟服务器,监听WinRM协议端口5986;S403: The cloud server generates a corresponding virtual server, and starts the virtual server to listen to the WinRM protocol port 5986.
S404:当虚拟服务器启动完成后,虚拟服务器从应用软件服务器下载Oracle11g标准版数据库并安装完善;S404: After the virtual server is started, the virtual server downloads the Oracle11g Standard Edition database from the application software server and installs it completely;
S405:虚拟服务器从CI服务器下载网元管理系统(EMS)网管,选择中文版本进行安装,安装规模选择2;S405: The virtual server downloads the network element management system (EMS) network management from the CI server, selects the Chinese version for installation, and selects the installation size 2;
S406:虚拟服务器对EMS网管进行功能测试;其中,在测试之前要进行相应配置处理、测试数据准备等操作;S406: The virtual server performs a function test on the EMS network management; wherein, before the test, the corresponding configuration processing, test data preparation, and the like are performed;
S407:在功能测试完成后,控制服务器判断测试结果是否正常;S407: After the function test is completed, the control server determines whether the test result is normal;
S408:如果正常,云服务器及时删除对应的虚拟服务器;而如果不正常,保留对应的虚拟服务器和测试记录,供开发人员进行问题定位。S408: If normal, the cloud server deletes the corresponding virtual server in time; if not, keep the corresponding virtual server and test record for the developer to locate the problem.
工业实用性:通过上述描述可知,本发明实施例通过获取待测试软件的一测试路径的配 置信息,并根据所述配置信息,控制一云服务器生成虚拟服务器,再控制所述虚拟服务器下载安装所述待测试软件,以利用所述虚拟服务器对所述待测试软件进行功能测试,能够提高硬件资源利用率,自动化且快速地对待测试软件的所有场景进行功能测试,且不需要为每一个测试路径保留一个测试服务器。Industrial Applicability: It can be seen from the above description that the embodiment of the present invention obtains a test path of the software to be tested. Setting information, and controlling a cloud server to generate a virtual server according to the configuration information, and then controlling the virtual server to download and install the software to be tested, so as to perform functional testing on the software to be tested by using the virtual server, which can improve Hardware resource utilization, automated and fast testing of all scenarios of test software, and no need to reserve one test server for each test path.
以上仅是本发明的可选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。 The above is only an alternative embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It is considered as the scope of protection of the present invention.

Claims (13)

  1. 一种软件测试的方法,包括:A method of software testing, including:
    获取待测试软件的一测试路径的配置信息;Obtaining configuration information of a test path of the software to be tested;
    根据所述配置信息,控制一云服务器生成虚拟服务器;Controlling, according to the configuration information, a cloud server to generate a virtual server;
    控制所述虚拟服务器下载安装所述待测试软件;Controlling, by the virtual server, downloading and installing the software to be tested;
    控制所述虚拟服务器对所述待测试软件进行功能测试。Controlling, by the virtual server, functional testing of the software to be tested.
  2. 根据权利要求1所述的软件测试的方法,其中,所述根据所述配置信息,控制一云服务器生成虚拟服务器的步骤包括:The method of software testing according to claim 1, wherein the step of controlling a cloud server to generate a virtual server according to the configuration information comprises:
    根据所述配置信息,控制一云服务器从镜像服务器下载与所述配置信息对应的操作系统镜像;Controlling, by the cloud server, a cloud server to download an operating system image corresponding to the configuration information from the mirror server according to the configuration information;
    控制所述云服务器根据所述操作系统镜像,生成对应的虚拟服务器。Controlling, by the cloud server, a corresponding virtual server according to the operating system image.
  3. 根据权利要求1所述的软件测试的方法,其中,所述控制所述虚拟服务器下载安装所述待测试软件的步骤之前还包括:The method of software testing according to claim 1, wherein the step of controlling the virtual server to download and install the software to be tested further comprises:
    控制所述虚拟服务器从应用软件服务器下载所述待测试软件依赖的第三方应用软件并安装完善,所述第三方应用软件包括数据库。Controlling the virtual server to download and complete the third-party application software that the software to be tested depends on from the application software server, and the third-party application software includes a database.
  4. 根据权利要求1所述的软件测试的方法,其中,当所述云服务器能够每次同时生成多个虚拟服务器时,The method of software testing according to claim 1, wherein when said cloud server is capable of generating a plurality of virtual servers at the same time,
    所述获取待测试软件的一测试路径的配置信息的步骤包括:The step of obtaining configuration information of a test path of the software to be tested includes:
    获取待测试软件的多条测试路径的配置信息;Obtaining configuration information of multiple test paths of the software to be tested;
    所述根据所述配置信息,控制一云服务器生成虚拟服务器的步骤包括:The step of controlling a cloud server to generate a virtual server according to the configuration information includes:
    根据所述多条测试路径的配置信息,控制一云服务器生成多个虚拟服务器。Controlling, according to the configuration information of the multiple test paths, a cloud server to generate multiple virtual servers.
  5. 根据权利要求1所述的软件测试的方法,其中,还包括:The method of software testing according to claim 1, further comprising:
    在功能测试完成后,判断测试结果是否正常;After the functional test is completed, judge whether the test result is normal;
    在判断结果为正常的情况下,控制所述云服务器删除所述虚拟服务器。When the judgment result is normal, the cloud server is controlled to delete the virtual server.
  6. 一种软件测试的装置,包括:A device for software testing, comprising:
    获取模块,设置为获取待测试软件的一测试路径的配置信息;Obtaining a module, configured to obtain configuration information of a test path of the software to be tested;
    第一控制模块,设置为根据所述配置信息,控制一云服务器生成虚拟服务器;a first control module, configured to control a cloud server to generate a virtual server according to the configuration information;
    第二控制模块,设置为控制所述虚拟服务器下载安装所述待测试软件; a second control module, configured to control the virtual server to download and install the software to be tested;
    第三控制模块,设置为控制所述虚拟服务器对所述待测试软件进行功能测试。And a third control module, configured to control the virtual server to perform a functional test on the software to be tested.
  7. 根据权利要求6所述的软件测试的装置,其中,所述第一控制模块包括:The device for software testing according to claim 6, wherein the first control module comprises:
    第一控制子模块,设置为根据所述配置信息,控制一云服务器从镜像服务器下载与所述配置信息对应的操作系统镜像;The first control sub-module is configured to control, according to the configuration information, a cloud server to download an operating system image corresponding to the configuration information from the mirror server;
    第二控制子模块,设置为控制所述云服务器根据所述操作系统镜像,生成对应的虚拟服务器。The second control submodule is configured to control the cloud server to generate a corresponding virtual server according to the operating system image.
  8. 根据权利要求6所述的软件测试的装置,其中,还包括:The device for software testing according to claim 6, further comprising:
    第四控制模块,设置为控制所述虚拟服务器从应用软件服务器下载所述待测试软件依赖的第三方应用软件并安装完善,所述第三方应用软件包括数据库。The fourth control module is configured to control the virtual server to download and complete the third-party application software that the software to be tested depends on from the application software server, where the third-party application software includes a database.
  9. 根据权利要求6所述的软件测试的装置,其中,当所述云服务器能够每次同时生成多个虚拟服务器时,The apparatus for software testing according to claim 6, wherein when said cloud server is capable of generating a plurality of virtual servers at the same time,
    所述获取模块设置为获取待测试软件的多条测试路径的配置信息;The obtaining module is configured to obtain configuration information of multiple test paths of the software to be tested;
    所述第一控制模块设置为根据所述多条测试路径的配置信息,控制一云服务器生成多个虚拟服务器。The first control module is configured to control a cloud server to generate multiple virtual servers according to the configuration information of the multiple test paths.
  10. 根据权利要求6所述的软件测试的装置,其中,还包括:The device for software testing according to claim 6, further comprising:
    判断模块,设置为在功能测试完成后,判断测试结果是否正常;The judging module is set to judge whether the test result is normal after the function test is completed;
    第五控制模块,设置为在判断结果为正常的情况下,控制所述云服务器删除所述虚拟服务器。The fifth control module is configured to control the cloud server to delete the virtual server if the determination result is normal.
  11. 一种软件测试的系统,包括:A system for software testing, including:
    控制服务器,包括权利要求6-10任一所述的软件测试的装置;A control server comprising the apparatus for software testing of any of claims 6-10;
    云服务器,设置为管理虚拟服务器;Cloud server, set to manage virtual servers;
    应用软件服务器,设置为存储待测试软件依赖的第三方应用软件,所述第三方应用软件包括数据库;An application software server, configured to store third-party application software that is to be tested by the software to be tested, where the third-party application software includes a database;
    镜像服务器,设置为存储各种操作系统镜像。A mirror server that is set to store various operating system images.
    持续集成服务器,设置为存储待测试软件。Continuous integration server, set to store software to be tested.
  12. 根据权利要求11所述的软件测试的系统,其中,还包括:The software testing system of claim 11 further comprising:
    管理服务器,设置为控制所述持续集成服务器进行待测试软件的集成与构建,和触发所述控制服务器的工作。And a management server, configured to control the continuous integration server to perform integration and construction of the software to be tested, and trigger the work of the control server.
  13. 根据权利要求11所述的软件测试的系统,其中,所述控制服务器为ansible控制服务器, 所述云服务器为openstack云服务器。 The system for software testing according to claim 11, wherein said control server is an ansible control server, The cloud server is an openstack cloud server.
PCT/CN2015/093612 2015-07-17 2015-11-02 Software test method, apparatus and system WO2017012219A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510422391.0A CN106708716A (en) 2015-07-17 2015-07-17 Software testing method, device and system
CN201510422391.0 2015-07-17

Publications (1)

Publication Number Publication Date
WO2017012219A1 true WO2017012219A1 (en) 2017-01-26

Family

ID=57833517

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/093612 WO2017012219A1 (en) 2015-07-17 2015-11-02 Software test method, apparatus and system

Country Status (2)

Country Link
CN (1) CN106708716A (en)
WO (1) WO2017012219A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110750273A (en) * 2019-10-14 2020-02-04 交控科技股份有限公司 Automatic deployment method and system for cloud platform
CN111124927A (en) * 2019-12-25 2020-05-08 中国航空工业集团公司西安飞机设计研究所 Test method of multi-partition airborne software
CN111240913A (en) * 2020-01-07 2020-06-05 苏州浪潮智能科技有限公司 A method and device for batch testing of server DQS error reporting memory
CN111444104A (en) * 2020-04-01 2020-07-24 山东汇贸电子口岸有限公司 A Method of OpenStack Functional Testing
CN114721938A (en) * 2022-03-08 2022-07-08 通号城市轨道交通技术有限公司 Software function testing method and device
CN115412447A (en) * 2022-08-19 2022-11-29 浪潮思科网络科技有限公司 SDN-based service testing method, device and medium

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228407A (en) * 2018-01-31 2018-06-29 深圳市证通电子股份有限公司 Apparatus function test method, apparatus and readable storage medium storing program for executing
CN108509346B (en) * 2018-04-13 2021-10-22 郑州云海信息技术有限公司 A dual-system BIOS continuous integration platform and method
CN110727446A (en) * 2019-09-25 2020-01-24 光通天下网络科技股份有限公司 Automatic deployment method, device, equipment and medium
CN110737498B (en) * 2019-10-16 2023-03-10 黑龙江鑫联华信息股份有限公司 Big data and artificial intelligence online examination method and system based on virtual container graphical interface
CN112214405B (en) * 2020-09-30 2024-06-21 维沃移动通信有限公司 Software testing method and device, electronic equipment and readable storage medium
CN112231215A (en) * 2020-10-19 2021-01-15 上海品埃信息科技有限公司 Technical scheme for testing application software of mobile terminal as cloud service

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090300423A1 (en) * 2008-05-28 2009-12-03 James Michael Ferris Systems and methods for software test management in cloud-based network
CN102831062A (en) * 2012-08-31 2012-12-19 浪潮电子信息产业股份有限公司 Testing method based on cloud computing operating system software compatibility
CN103067502A (en) * 2012-12-31 2013-04-24 博彦科技(上海)有限公司 Hardware system for cloud development and testing
CN103136101A (en) * 2012-12-31 2013-06-05 博彦科技(上海)有限公司 Software automated testing unified operation platform

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622298B (en) * 2012-03-02 2015-01-07 北京奇虎科技有限公司 Software testing system and method
CN103581247A (en) * 2012-07-30 2014-02-12 杭州洱海科技有限公司 Method for testing distributed type Web based on cloud computing environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090300423A1 (en) * 2008-05-28 2009-12-03 James Michael Ferris Systems and methods for software test management in cloud-based network
CN102831062A (en) * 2012-08-31 2012-12-19 浪潮电子信息产业股份有限公司 Testing method based on cloud computing operating system software compatibility
CN103067502A (en) * 2012-12-31 2013-04-24 博彦科技(上海)有限公司 Hardware system for cloud development and testing
CN103136101A (en) * 2012-12-31 2013-06-05 博彦科技(上海)有限公司 Software automated testing unified operation platform

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110750273A (en) * 2019-10-14 2020-02-04 交控科技股份有限公司 Automatic deployment method and system for cloud platform
CN111124927A (en) * 2019-12-25 2020-05-08 中国航空工业集团公司西安飞机设计研究所 Test method of multi-partition airborne software
CN111124927B (en) * 2019-12-25 2023-05-23 中国航空工业集团公司西安飞机设计研究所 Testing method for multi-partition airborne software
CN111240913A (en) * 2020-01-07 2020-06-05 苏州浪潮智能科技有限公司 A method and device for batch testing of server DQS error reporting memory
CN111240913B (en) * 2020-01-07 2022-08-19 苏州浪潮智能科技有限公司 Server DQS error-reporting memory batch test method and device
CN111444104A (en) * 2020-04-01 2020-07-24 山东汇贸电子口岸有限公司 A Method of OpenStack Functional Testing
CN111444104B (en) * 2020-04-01 2023-04-07 山东汇贸电子口岸有限公司 OpenStack function test method
CN114721938A (en) * 2022-03-08 2022-07-08 通号城市轨道交通技术有限公司 Software function testing method and device
CN115412447A (en) * 2022-08-19 2022-11-29 浪潮思科网络科技有限公司 SDN-based service testing method, device and medium
CN115412447B (en) * 2022-08-19 2024-05-24 浪潮思科网络科技有限公司 Service testing method, device and medium based on SDN

Also Published As

Publication number Publication date
CN106708716A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
WO2017012219A1 (en) Software test method, apparatus and system
CN110502244A (en) Dispose the method and device of Kubernetes cluster
Koziolek et al. Lightweight kubernetes distributions: A performance comparison of microk8s, k3s, k0s, and microshift
CN107302475A (en) The method of testing and device of a kind of Based on Distributed storage cluster
CN106878334A (en) Cloud automated deployment system and method
CN104572372A (en) System and method for building server performance testing environment
WO2016201995A1 (en) Method and apparatus for implementation of test object construction, and service configuration test apparatus
US8751868B2 (en) Control server and method for switching running of test programs stored in multiple storage mediums of test server
CN105512026A (en) Automatic batch testing method
CN108008962A (en) The collocation method and system of PXE server under a kind of linux system
CN107168880A (en) Virtual machine method of testing and instrument
CN111786810A (en) A method and system for automatic deployment of large-scale test bed nodes
CN108075933B (en) Network interoperability test method and device
TW201303615A (en) System and method for configuring a client device
CN114448788B (en) Method, system, equipment and medium for installing switch system
CN107656860A (en) Performance test methods, apparatus and system
CN104935451A (en) A fault detection method and device
CN104965741A (en) Method and apparatus for installing real-time application clusters
CN114116340A (en) Testing method and device of distributed storage system and storage medium
WO2016201997A1 (en) Automatic testing method, device and system
CN110532151A (en) A kind of automatic operation method of monitoring instrument, device, equipment and storage medium
CN109960657A (en) A test environment deployment method and related device
CN114911710A (en) Code testing method and electronic equipment
US11714687B2 (en) Dynamic preparation of a new network environment, and subsequent monitoring thereof
CN109254782B (en) Operating system installation method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15898775

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15898775

Country of ref document: EP

Kind code of ref document: A1

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载