CN102622298A - Software testing system and method - Google Patents

Software testing system and method Download PDF

Info

Publication number
CN102622298A
CN102622298A CN2012100530600A CN201210053060A CN102622298A CN 102622298 A CN102622298 A CN 102622298A CN 2012100530600 A CN2012100530600 A CN 2012100530600A CN 201210053060 A CN201210053060 A CN 201210053060A CN 102622298 A CN102622298 A CN 102622298A
Authority
CN
China
Prior art keywords
test
server
corresponding
central server
software
Prior art date
Application number
CN2012100530600A
Other languages
Chinese (zh)
Other versions
CN102622298B (en
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 奇智软件(北京)有限公司
Priority to CN201210053060.0A priority Critical patent/CN102622298B/en
Priority claimed from CN201410757945.8A external-priority patent/CN104360952B/en
Publication of CN102622298A publication Critical patent/CN102622298A/en
Application granted granted Critical
Publication of CN102622298B publication Critical patent/CN102622298B/en

Links

Abstract

The invention discloses software testing system and method. The system comprises one or more array servers, one or more testing servers, a central server and a communication module; the array servers are used for storing virtual image files corresponding to different testing environments, wherein the testing environments comprise operating systems and corresponding application programs; the central server is used for receiving and storing to-be-tested software and to-be-tested testing environment information and for loading and operating the corresponding virtual image files stored in the array servers in the testing servers according to the testing environment information; and the communication module is used for being loaded and operated in a corresponding testing server along with the virtual image files and communicates with the central server to download the to-be-tested software from the central server and operate the to-be-tested software in the testing server. According to the invention, no tester participates in the whole testing process, so that a great amount of manual operation can be avoided; and meanwhile, testing machines are not required to be in one-to-one correspondence with the testing environments, so that the implementation can be more flexile.

Description

一种软件测试系统及方法 A software testing system and method

技术领域 FIELD

[0001] 本发明涉及计算机技术领域,尤其涉及一种软件测试系统及方法。 [0001] The present invention relates to computer technologies, and particularly to a software testing system and method.

背景技术 Background technique

[0002] 现有的软件测试系统,出于兼容性的考虑,需要准备相当多的测试环境来进行测试,而每种测试环境都需要独立的安装并运行于一台计算机中,以对应进行测试,并需要手工记录各种测试结果,工作量很大。 [0002] existing software testing system, for compatibility, need considerable test environment for testing, and each requires a separate testing environment installed and run on a computer, to correspond to the test and the need to manually record various test results, the heavy workload.

[0003] 特别是对于一些操作系统的补丁程序,例如,当微软发布某些补丁时,对于安全产品的开发团队来说,为了保障这些补丁可以正常的安全的运行于用户计算机中,就需要开发团队快速测试这些当期发布的补丁在各种操作系统(例如xp sp2, xp sp3, vista, win732的各种版本,win7 64的各种版本,2000, 2003 server, 2008 server等)或各种应用程序环境(安装有office 32或子版本,office 64, adobe各版本,flash各版本等)下是否可以正常安装补丁,确保安装过程中或安装重启后不出现蓝屏等问题。 [0003] Especially for some operating system patches, for example, when Microsoft released some patches for security product development team, in order to protect these patches can be a normal and safe operation in the user's computer, we need to develop these teams to quickly test the current release patches in a variety of operating systems (such as various versions of xp sp2, xp sp3, vista, win732 the various versions of win7 64, 2000, 2003 server, 2008 server, etc.) or a variety of applications environment (or sub-installed versions of office 32, office 64, adobe versions, flash versions, etc.) under normal if you can install the patch to ensure that no problems such as blue screen during installation or after installation restart.

[0004] 通常情况下,测试人员会针对上述各环境遍历测试这些新补丁安装情况,若出现安装异常(如蓝屏)需记录,并提交给漏洞库组修改补丁条件以屏蔽该环境的补丁安装。 [0004] Typically, testers will traverse test these new patches for each of the above environmental installation, if abnormal (such as blue screen) installation shall be recorded and presented to the vulnerability database group modifications patch conditions to shield the environment patch installation.

[0005] 由此可见,现有的软件测试需要大量的测试人员才能完成,而且需要测试机与环境一一对应,只能测完一个再测另一个,测试效率比较低。 [0005] Thus, the existing software testing requires a lot of testers to complete, and requires testing machine and environment-one correspondence, can only measure a complete yet another test, test efficiency is relatively low.

发明内容 SUMMARY

[0006] 本发明所要解决的技术问题在于提供一种软件测试系统及方法,以改善软件测试过程中的工作效率。 [0006] The present invention solves the technical problem is to provide a software testing system and method to improve the efficiency of software testing.

[0007] 为解决上述技术问题,本发明提供一种软件测试系统,包括: [0007] To solve the above problems, the present invention provides a software testing system, comprising:

[0008] 一台或多台阵列服务器,用于存储对应于不同测试环境的虚拟镜像文件,所述测试环境包括操作系统及对应的应用程序; [0008] The array of one or more servers, for storing the virtual image file corresponding to a different test environment, the test environment includes an operating system and an application corresponding to;

[0009] 一台或多台测试服务器,用于执行测试; [0009] one or more test server, for performing a test;

[0010] 中心服务器,用于接收并存储待测试软件及待测试的测试环境信息,并根据所述测试环境信息将存储于阵列服务器中的对应的虚拟镜像文件加载并运行于一台或多台测试服务器中; [0010] central server, the test environment for receiving and storing information and software to be tested to be tested, and the test load and run according to the environment information stored in the array corresponding to the virtual server image files in one or more test server;

[0011] 通讯模块,用于随虚拟镜像文件加载并运行于对应的测试服务器中,与中心服务器通讯,从中心服务器下载待测试软件,并在测试服务器中运行该待测试软件。 [0011] communication module, with a virtual image file loaded and run in the corresponding test server, a central server and download software from the central server to be tested, and run software to be tested in the test server.

[0012] 本发明另提供一种软件测试方法,包括: [0012] The present invention further provides a method for testing software, comprising:

[0013] 提供一台或多台阵列服务器,以存储对应于不同测试环境的虚拟镜像文件,所述测试环境包括操作系统及对应的应用程序; [0013] providing an array of one or more servers to the virtual image file is stored corresponding to different testing environments, the test environment includes an operating system and an application corresponding to;

[0014] 提供一台或多台测试服务器,以执行测试; [0014] providing one or more test server, to perform the test;

[0015] 提供至少一台中心服务器,以接收并存储待测试软件及待测试的测试环境信息,并根据所述测试环境信息将存储于阵列服务器中的对应的虚拟镜像文件加载并运行于一台或多台测试服务器中 [0015] providing at least one central server, the test environment to receive and store information to be tested and the software to be tested, and load and run in a test environment, according to the information stored in the array corresponding to the virtual server image file or more test server

[0016] 提供一通讯模块,随虚拟镜像文件加载并运行于对应的测试服务器中,与中心服务器通讯,从中心服务器下载待测试软件,并在测试服务器中运行该待测试软件。 [0016] providing a communication module, with the virtual image file loaded and run in the corresponding test server, a central server and download software from the central server to be tested, and run software to be tested in the test server.

[0017] 本发明在整个测试过程中无需测试人员参与,免除了很多人工操作,同时测试机与测试环境无需一一对应,实现比较灵活,同时,测试时由中心服务器自动判断测试服务器的负载性能,从而可实现并行测试。 [0017] The present invention does not require personnel involved in the testing throughout the testing process, eliminating many manual operations, at the same time without the test machine and test environment-one correspondence, to achieve more flexible, at the same time, the test load is determined automatically by the central server performance testing server , enabling parallel testing.

附图说明 BRIEF DESCRIPTION

[0018] 为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 [0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, briefly describes the accompanying drawings required for describing the embodiments used in the following embodiments will be apparent in the following description of the accompanying drawings are merely some embodiments of the present invention. embodiment, those of ordinary skill in the art is concerned, without creative efforts, can derive from these drawings other drawings.

[0019] 图I为根据本发明的实施例所示的软件测试系统示意图。 [0019] Figure I is a schematic view of an embodiment according to the present invention shown in software testing system.

[0020] 图2为根据本发明实施例所述的软件测试方法流程图。 [0020] FIG 2 is a flowchart of a software testing method described in the embodiment of the present invention.

具体实施方式 Detailed ways

[0021] 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。 [0021] below in conjunction with the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described embodiments are merely part of embodiments of the present invention, but not all embodiments example. 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments of ordinary skill in the art without any creative effort shall fall within the scope of the present invention.

[0022] 本发明实施例首先需要搭建一云计算测试环境,如图I所示,为根据本发明的实施例所示的软件测试系统示意图,包括多台阵列服务器101,多台测试服务器102,中心服务器103及通讯模块104,通过云端中心服务器103的统一控制,可实现无人值守的测试任务自动化执行,极大的提闻了测试效率,其中: [0022] Example embodiments of the present invention first test need to build a cloud computing environment as shown in I, a schematic diagram of software testing system according to the illustrated embodiment of the invention, an array comprising a plurality of servers 101, multiple test server 102, the center server 103 and communication module 104, through the collectively controls the cloud center server 103, enabling unattended automated test execution tasks, provide great smell test efficiency, wherein:

[0023] 所述阵列服务器101,用于存储对应于不同测试环境的虚拟镜像文件,所述测试环境包括操作系统及对应的应用程序; [0023] The server 101 array, for storing the image file corresponding to the virtual environment of different test, the test environment includes an operating system and an application corresponding to;

[0024] 所述测试服务器102,用于执行测试; [0024] The test server 102, for performing a test;

[0025] 所述中心服务器103,用于接收并存储待测试软件及待测试的测试环境信息,并根据测试环境信息将存储于阵列服务器中的对应的虚拟镜像文件加载并运行于一台或多台测试服务器中; [0025] The central server 103, a test environment for receiving and storing information and software to be tested to be tested, and the test environment according to the load information stored in the array corresponding to the virtual server running on the image file and one or more Taiwan test server;

[0026] 所述通讯模块104,用于随虚拟镜像文件一同加载并运行于对应的测试服务器中,与中心服务器通讯,从中心服务器下载待测试软件,并在测试服务器中运行该待测试软件。 [0026] The communication module 104, a virtual image file together with the loading and running the corresponding test server, a central server and download software from the central server to be tested, and run software to be tested in the test server.

[0027] 利用本发明实施例的测试系统,可以在云中自定义添加多台测试服务器,在测试过程中也可随时添加新的测试服务器,无论是是一台还是多台,也无论是是空闲或任务繁忙,都可以很好的执行测试任务。 [0027] With the present invention, the test system of the embodiment may add a custom multiple test servers in the cloud, may be added to a new test server at any time during the test, whether it is a or multiple, regardless yes idle or busy task, can be a good testing tasks.

[0028] 各种操作系统及应用程序的虚拟镜像均可以保存在云中阵列服务器中,无需和测试服务器对应。 [0028] operating system and various applications are virtual images may be stored in the cloud server array, and without a corresponding test server.

[0029] 所述通讯模块104可以存储于任何位置,但优选存储于所述阵列服务器101中,且所述不同的操作系统可分别对应有相匹配的通讯模块,随虚拟镜像文件一同加载并运行于对应的测试服务器中。 [0029] The communication module 104 may be stored in any location, but preferably the array is stored in server 101, and the different operating systems may have to match the corresponding communication modules are loaded and run together with the virtual image file to the corresponding test server. 实际上,通讯模块104可以整合于对应的操作系统中,与操作系统同时存储,同时加载并运行于对应的测试服务器中。 Indeed, the communication module 104 may be integrated to the corresponding operating system, the operating system stored simultaneously, load and run simultaneously to the corresponding test server.

[0030] 所述通讯模块104,可以在待测试软件执行完毕后关闭该待测试软件,重启对应的测试服务器中运行的操作系统,同时向中心服务器发送第一次通知,并在重启成功后向中心服务器发送第二次通知; [0031] 所述中心服务器103,如果在收到所述第一次通知后的预定时间间隔内未收到第二次通知,则记录对应的测试服务器中运行的测试环境信息。 After [0030] The communication module 104 may be closed after the completion of the test software performs the software to be tested, the test corresponding to restart the OS running on the server, while sending the first notification to a central server, and to successfully restart the central server sends the second notification; [0031] the central server 103, if the second notification is not received within a predetermined time after receipt of the first notification time interval, the server records the corresponding test run testing environment information.

[0032] 其中,所述第一次通知的作用是通知中心服务器当次测试执行完毕,表示在整个测试过程中没有发生什么意外而造成测试终止的情况,这主要是因为在打某些不兼容补丁时,有可能在补丁程序执行过程中就出现了蓝屏等意外情况,因此有必要发送第一次通知以确认在执行过程中未发生意外终止的情况。 [0032] However, the operation of the first notification is to inform the central server when the test is finished, indicate any accident caused by the termination of the test case does not occur throughout the testing process, mainly because playing some incompatible when the patch, the patch is possible during program execution on the emergence of unforeseen circumstances such as blue screen, it is necessary to send the first notification to confirm the accidental termination did not occur during execution. 但第一次通知并不意味着测试成功,还需要进行一次重启过程,重启成功后发送第二次通知,以表明系统在进行测试后可正常重启,这主要是因为打某些不兼容补丁时有可能在重启过程中造成系统报错从而造成进入不了系统的情况。 But first notification does not mean the test is successful, you also need to conduct a reboot, a second notice is sent after a successful restart to indicate that the system can restart normal during the test, mainly because the fight is not compatible with some patches the system may cause an error during the restart resulting situation can not enter the system.

[0033] 此外,所述预定时间间隔可以是在测试时提交的测试信息的配置中进行设置,该值可由过去测试经验计算得出,例如上几次测试过程中所记录的测试完毕到整个重启过程完毕的时间。 Test configuration information [0033] Further, the predetermined time interval may be submitted with the test set, which test experience value can be calculated in the past, for example, a few tests recorded during the entire test is complete reboot complete the process of time. 一开始时可设置为最慢的测试服务器打补丁完成后到重启完毕所用的时间,也可以通过事先手动做一次测试来评估此间隔时间。 Exceptions may be set to the slowest start a test server patch to complete the restart time used, can also be a test to evaluate this interval by manually doing beforehand.

[0034] 所述通讯模块104,可以在所述待测试软件运行过程中始终与中心服务器保持心跳连接; [0034] The communication module 104, the heartbeat may remain connected to the center server in the software process to be tested;

[0035] 所述中心服务器103,如果侦测到与所述通讯模块的心跳连接中断,则记录对应的测试服务器中运行的测试环境信息。 [0035] The central server 103, to detect if the heartbeat connection is interrupted the communication module corresponding to the test server running environment information is recorded in the test.

[0036] 所述中心服务器103在记录对应的测试服务器中运行的测试环境信息后,进一步用于执行对应测试环境的增量备份或镜像还原。 [0036] The central server 103 after a recording operation corresponding to the test server test environment information further increment corresponding to the test environment for performing backup or restore the image back.

[0037] 所述中心服务器103根据测试服务器的负载状态,将对应的虚拟镜像文件加载并运行于一台或多台选定的测试服务器中。 [0037] The central server 103 according to the load state of the test server, the corresponding virtual image file loaded and run on one or more selected test server.

[0038] 所述中心服务器103可进一步用于为不同测试环境分配不同的权值,并将权值高的测试环境对应的虚拟镜像文件优先加载并运行于测试服务器中。 [0038] The central server 103 may further be used in different test environments assigned different weights, higher weights and the corresponding test environment priority virtual image file loaded and run in a test server.

[0039] 权值分配可根据不同应用环境在现实中被用户使用的多少来配置,例如对于xpsp3,win7 32 spl, win7 64 spl等现实中用户所使用最多的系统即可分配较高的权值。 [0039] The weight distribution may be configured according to different application environments in reality the number being used by the user, for example, in reality the user xpsp3, win7 32 spl, win7 64 spl like most systems used to assign higher weights .

[0040] 所述中心服务器103还可进一步用于将当前权值最高的测试环境对应的虚拟镜像文件对应加载至当前负载状态最轻的测试服务器中运行。 [0040] The central server 103 may further be used to test the current highest weights corresponding virtual environment corresponding to the image file is loaded to the operating state of the lightest load current test server.

[0041] 如图2所示,为根据本发明实施例所述的软件测试方法流程图,首先提供一台或多台阵列服务器,以存储对应于不同测试环境的虚拟镜像文件,所述测试环境包括操作系统及对应的应用程序(步骤201);提供一台或多台测试服务器,以执行测试(步骤202);提供至少一台中心服务器,以接收并存储待测试软件及待测试的测试环境信息,并根据测试环境信息将存储于阵列服务器中的对应的虚拟镜像文件加载并运行于一台或多台测试服务器中(步骤203);提供一通讯模块,随虚拟镜像文件一同加载并运行于对应的测试服务器中,与中心服务器通讯,从中心服务器下载待测试软件,并在测试服务器中运行该待测试软件(步骤204)。 [0041] 2, software testing method described in the embodiment of the present invention according to a flowchart, first providing an array of one or more servers to store corresponding to different virtual image file of the test environment, the test environment including an operating system and a corresponding application (step 201); providing one or more test server to perform a test (step 202); providing at least one central server to receive and store the software to be tested to be tested and the testing environment information, according to the test environment and load information stored in the array corresponding to the virtual server image file and run one or more test server (step 203); providing a communication module, together with the virtual image file is loaded and run corresponding to the test server, and a central server, from the central server to download the software to be tested, and run software to be tested (step 204) in the test server.

[0042] 其中, 所述通讯模块在待测试软件执行完毕后关闭该待测试软件,重启对应的测试服务器中运行的操作系统,同时向中心服务器发送第一次通知,并在重启成功后向中心服务器发送第二次通知; After [0042] wherein the communication module is to be closed after completion of the test software performs the software to be tested, the test corresponding to restart the OS running on the server, while sending the first notification to a central server, and a successful restart to the center The server sends a second notice;

[0043] 所述中心服务器如果在收到所述第一次通知后的预定时间间隔内未收到第二次通知,则记录对应的测试服务器中运行的测试环境信息。 [0043] If the central server is not received within a second predetermined time after notification of the receipt of the first notification time interval, the corresponding test server running the test recording environment information.

[0044] 此外,所述通讯模块在所述待测试软件运行过程中始终与中心服务器保持心跳连接; [0044] Further, the communication module to be tested in a software process remains the heartbeat connection with the central server;

[0045] 所述中心服务器如果侦测到与所述通讯模块的心跳连接中断,则记录对应的测试服务器中运行的测试环境信息。 [0045] If the central server connected to detect a heartbeat interrupt to the communications module, the corresponding test server running the test recording environment information.

[0046] 所述通讯模块可以存储于所述阵列服务器中,且所述不同的操作系统分别对应有相匹配的通讯模块,随虚拟镜像文件一同加载并运行于对应的测试服务器中。 [0046] The communication module may be stored in the array in the server, and the different operating systems has to match the corresponding communications module, together with the virtual image file is loaded and run in the corresponding test server.

[0047] 所述中心服务器在记录对应的测试服务器中运行的测试环境信息后,也就是说侦测到心跳连接中断或没收到第二次通知后,可进一步执行对应测试环境的增量备份或镜像还原,以恢复测试环境。 [0047] After running the corresponding test recording in a test environment server information center server, detect the heartbeat connection that is interrupted or not after receiving the second notice, may further perform an incremental backup, or a corresponding test environment mirror restore to restore the test environment.

[0048] 所述中心服务器可根据测试服务器的负载状态,将对应的虚拟镜像文件加载并运行于一台或多台选定的测试服务器中。 [0048] The central server according to the load state of the test server, the corresponding virtual image file loaded and run on one or more selected test server.

[0049] 此外,还可以为不同测试环境分配不同的权值,所述中心服务器将权值高的测试环境对应的虚拟镜像文件优先加载并运行于测试服务器中。 [0049] Further, may also be assigned different weights in different test environments, the central server to the high weights corresponding to the test environment priority virtual image file loaded and run on a test server.

[0050] 还可以将当前权值最高的测试环境对应的虚拟镜像文件对应加载至当前负载状态最轻的测试服务器中运行。 Highest test environment corresponding to the [0050] Also, the current weights corresponding to the virtual image file loaded into the operational state of the lightest load current test server.

[0051] 例如,利用本发明对系统补丁程序进行测试时,测试者可以在测试前通过中心服务器的web页面提交本次测试的新的漏洞库、此次需要打补丁的清单、需要测试的环境信息,中心服务器接收到提交的测试信息后,可首先判断测试服务器的负载状态,其负载均衡算法可以是: [0051] For example, using the invention, the system patch test, the tester can be submitted prior to the test by a web page server center of this new vulnerability database testing, the need to patch the list of required testing environment after the information center server receives the test information submitted may first test server load status is determined, the load balancing algorithm may be:

[0052] 计算各测试服务器的CPU或内存大小并分配不同的权值,并根据当前各测试服务器n分钟CPU使用率,内存使用率,硬盘I/O吞吐量及当前协议连接数(TCP连接数或SOCKET连接数等能区分网络繁忙程度的指标)等指标转换计算获得一数值a,并与平均使用率阀值b比较,当大于b时则认为是可分配任务的测试服务器,然后再跟据各服务器权值,由高到低分配。 [0052] calculated for each test server CPU or memory size and assign different weights, and the current number of TCP connections for each n minutes test server CPU usage, memory usage, disk I / O throughput of the connection protocol and the current number ( SOCKET connections, etc., or to distinguish the network traffic indicator) were measured to obtain a conversion value calculating a, b and compared with the average utilization rate threshold value, when b is greater than the task that is assigned test server, according to talk to and then each server weights, from high to low allocation.

[0053] 同样,对包含不同操作系统OS的各测试环境的虚拟镜像也分配不同权值,权值高的优先去执行测试。 [0053] Similarly, the virtual image of each test environments containing different operating system OS also assign different weights, weights high priority to the implementation of the test.

[0054] 这样,中心服务器就可以选择高权重的测试服务器优先加载高权值的镜像开始执行打补丁测试。 [0054] In this way, the central server can choose high weight test server load the image of high priority weights begin to patch test.

[0055] 然后,由于镜像文件中包含有通讯模块,当操作系统启动后,通讯模块的通信程序也同时启动运行,从中心服务器下载最新的漏洞修复程序,下载后会根据修复策略进行漏洞修复,修复过程中,通讯模块与中心服务器始终保持心跳连接,该连接用于判断修复过程中系统是否正常,一旦心跳连接中断则说明该漏洞修复程序的执行导致系统异常,应将该测试服务器中运行的测试环境信息进行记录。 [0055] Then, since the image file contains the communications module, when the operating system starts, the communication program communication module also start running, fix from the central server to download the latest vulnerabilities, will be bug fixes based on repair strategies after download, repair process, the communication module and the central server remains the heartbeat connection that the repair process for determining whether the system is normal, once the heartbeat connection is broken then the execution of the vulnerability fix the system becomes abnormally, you should run the test server test environment information is recorded. [0056] 如果漏洞修复过程正常,在修复完毕后将漏洞修复程序退出,由通讯模块控制操作系统重启,同时发送通知I给中心服务器,重启成功后,通讯模块再发送通知2给中心服务器。 [0056] If the normal course of bug fixes, bug fixes after the repair is completed the program exits, the operating system is restarted by the communication control module, while I send a notification to a central server, restart successfully, then the communication module 2 sends a notification to a central server. 如果中心服务器在收到通知I后的一定时间内仍未收到通知2,则可以认为系统可能出现蓝屏,应将该测试服务器中运行的测试环境信息进行记录。 If the central server within a certain time after receiving notice I have not received notification 2, the system may be considered a blue screen, should be recorded in the test server running test environment information.

[0057] 如此,中心服务器就可以及时的将记录的统计修复结果保存下来,提供给测试人员查询。 [0057] Thus, the central server can be saved timely statistical results of repair records, available to testers query. 如果根据记录发现出现测试异常,还可以自动执行镜像文件的追加备份或还原,以恢复测试环境。 If you find the record appear abnormal test can also be performed automatically append backup or restore the image file to restore the test environment.

[0058] 应用本发明的实施例,通过云计算,运用中心服务器与测试服务器之间的自通信检测修复确认无异常机制,可实现无人值守的自动化快速测试方案。 [0058] Example embodiments of the present invention is applied, through the cloud, the use of the detection from the communication between the central server and the server test confirmed that no abnormal repair mechanism, enabling unattended automated rapid test solutions.

[0059] 以上实施例仅以漏洞补丁程序的测试为例对本发明进行了说明,但本发明的技术方案同样适用于其他类型的软件测试需求,本发明对此不作限制。 [0059] The above embodiments only vulnerability patch test example of the present invention has been described, but the technical solution of the present invention is equally applicable to other types of software testing requirements, the present invention is not limited to this.

[0060] 本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。 [0060] In the present specification, various embodiments are described in a progressive way, differences from the embodiment and the other embodiments each of which emphasizes embodiment, various portions of the same embodiment of similarity between the embodiments refer to each other.

[0061] 本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。 [0061] The present application may be described in the general context of computer-executable instructions, executed by a computer, such as program modules. 一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。 Generally, program modules include performing particular tasks or implement particular abstract data types routines, programs, objects, components, data structures, and the like. 也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。 This application may be practiced in a distributed computing environment, the distributed computing environments, where tasks are performed by remote processing devices that are linked through a communications network. 在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。 In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices in.

[0062] 最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。 [0062] Finally, it should be noted that, herein, relational terms such as first and second and the like are only used to distinguish one entity or operation from another entity or action without necessarily requiring or implying any such actual relationship or order between these entities or operations. 而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或 Further, the term "comprising", "containing" or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, goods or equipment not include only those elements but not expressly listed further comprising the other elements, or further comprising such process, method, article, or

者设备所固有的要素。 Are inherent elements of the device. 在没有更多限制的情况下,由语句“包括一个......”限定的要素, Without more constraints, by the wording "include a ......" defining element,

并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。 Does not exclude the existence of additional identical elements in the process comprises the element, method, article, or apparatus.

[0063] 以上对本申请所提供的一种防止登录信息被盗的方法及装置,进行了详细介绍, 本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。 [0063] The foregoing method and apparatus for preventing registration information theft herein provided, described in detail herein through specific examples of the principles and embodiments of the present application are set forth in description of the above embodiment only to assist in understanding the method and core ideas of the present application; Meanwhile, those of ordinary skill in the art based on the idea of ​​the present disclosure, may make modifications to the specific embodiments and applications of the embodiment, the summary, the the specification shall not be construed as limiting the present disclosure.

Claims (16)

1. 一种软件测试系统,包括: 一台或多台阵列服务器,用于存储对应于不同测试环境的虚拟镜像文件,所述测试环境包括操作系统及对应的应用程序; 一台或多台测试服务器,用于执行测试; 中心服务器,用于接收并存储待测试软件及待测试的测试环境信息,并根据所述测试环境信息将存储于阵列服务器中的对应的虚拟镜像文件加载并运行于一台或多台测试服务器中; 通讯模块,用于随虚拟镜像文件加载并运行于对应的测试服务器中,与中心服务器通讯,从中心服务器下载待测试软件,并在测试服务器中运行该待测试软件。 A software testing system, comprising: an array of one or more servers, for storing the virtual image file corresponding to a different test environment, the test environment includes an operating system and application program corresponding; one or more test server, for performing a test; central server for receiving and storing the software to be tested and test environment information is to be tested, and the test environment according to the load information is stored in the array corresponding to the virtual server image in a file and run or more test server; communication module, with a virtual image file loaded and run in the corresponding test server, a central server and download software from the central server to be tested, and run software to be tested in the test server .
2.如权利要求I所述的系统,其特征在于,所述通讯模块,进一步用于在待测试软件执行完毕后关闭该待测试软件,重启对应的测试服务器中运行的操作系统,同时向中心服务器发送第一次通知,并在重启成功后向中心服务器发送第二次通知; 所述中心服务器,如果在收到所述第一次通知后的预定时间间隔内未收到第二次通知,则记录对应的测试服务器中运行的测试环境信息。 2. The system of claim I, wherein the communication module is further configured to close the software to be tested in the test software to be executed, corresponding test restart the OS running on the server, while the center the server sends the first notification, transmits a second notification to the central server and after a successful restart; the central server, if the notification is not received within a second predetermined time after receipt of the first notification interval, corresponding test server running in a test environment information is recorded.
3.如权利要求I所述的系统,其特征在于,所述通讯模块,进一步用于在所述待测试软件运行过程中与中心服务器保持心跳连接; 所述中心服务器,如果侦测到与所述通讯模块的心跳连接中断,则记录对应的测试服务器中运行的测试环境信息。 3. The system of claim I, wherein the communication module is further for maintaining the heartbeat connection with the center server software process to be tested; the central server, and if the detected heartbeat communication module connected to said interruption, the corresponding test server running environment information is recorded in the test.
4.如权利要求I所述的系统,其特征在于,所述通讯模块存储于所述阵列服务器中,且所述不同的操作系统分别对应有相匹配的通讯模块,随虚拟镜像文件加载并运行于对应的测试服务器中。 4. The system of claim I, wherein said communication module is stored in the array in the server, and the different operating systems has to match the corresponding communications module, with the virtual image file loaded and run to the corresponding test server.
5.如权利要求2或3所述的系统,其特征在于,所述中心服务器在记录对应的测试服务器中运行的测试环境信息后,进一步用于执行对应测试环境的增量备份或镜像还原。 5. The system of claim 2 or claim 3, wherein the central server after the recording operation corresponding to the test server test environment information, for performing a further correspondence test environment incremental backup or restore the image back.
6.如权利要求I所述的系统,其特征在于,所述中心服务器根据测试服务器的负载状态,将对应的虚拟镜像文件加载并运行于一台或多台选定的测试服务器中;所述中心服务器判断测试服务器负载状态的指标包括CPU使用率,内存使用率,硬盘吞吐量,和/或当前协议连接数。 6. The system of claim I, wherein the central server according to the load state of the test server, the corresponding virtual image file loaded and run on one or more selected test server; the indicator central server determines the load state of the test server including CPU usage, memory usage, hard disk throughput, and / or the number of the current protocol connection.
7.如权利要求I所述的系统,其特征在于,所述中心服务器进一步用于为不同测试环境分配不同的权值,并将权值高的测试环境对应的虚拟镜像文件优先加载并运行于测试服务器中。 7. The system of claim I, wherein the central server is further used in different test environments assigned different weights, higher weights of the test environment and the corresponding virtual image file loaded and run priority test server.
8.如权利要求7所述的系统,其特征在于,所述中心服务器进一步用于将当前权值最高的测试环境对应的虚拟镜像文件对应加载至当前负载状态最轻的测试服务器中运行。 8. The system according to claim 7, wherein the central server for further testing environment corresponding to the highest weight value corresponding to the current virtual image file is loaded to the operating state of the lightest load current test server.
9. 一种软件测试方法,包括: 提供一台或多台阵列服务器,以存储对应于不同测试环境的虚拟镜像文件,所述测试环境包括操作系统及对应的应用程序; 提供一台或多台测试服务器,以执行测试; 提供至少一台中心服务器,以接收并存储待测试软件及待测试的测试环境信息,并根据所述测试环境信息将存储于阵列服务器中的对应的虚拟镜像文件加载并运行于一台或多台测试服务器中;提供一通讯模块,随虚拟镜像文件加载并运行于对应的测试服务器中,与中心服务器通讯,从中心服务器下载待测试软件,并在测试服务器中运行该待测试软件。 A software testing method, comprising: providing an array of one or more servers to store the image file corresponding to the virtual environment of different test, the test environment includes an operating system and application program corresponding; providing one or more test server, to perform the test; providing at least one central server, the test environment to receive and store information to be tested and the software to be tested, and the test environment according to the load information stored in the array corresponding to the virtual server image file and running on one or more test server; providing a communication module, with the virtual image file loaded and run in the corresponding test server, a central server and to download the software to be tested from the central server, and the server running the test software to be tested.
10.如权利要求9所述的方法,其特征在于,所述通讯模块在待测试软件执行完毕后关闭该待测试软件,重启对应的测试服务器中运行的操作系统,同时向中心服务器发送第一次通知,并在重启成功后向中心服务器发送第二次通知; 所述中心服务器如果在收到所述第一次通知后的预定时间间隔内未收到第二次通知,则记录对应的测试服务器中运行的测试环境信息。 10. The method according to claim 9, wherein the communication module software to be tested off the test software to be executed, corresponding test restart the OS running on the server, while the center server transmits a first secondary notification, sending a second notification to the central server and reboot after successfully; second notification is not received within a predetermined time after the central server if receiving the first notification interval corresponding to the test recording test environment running in the server information.
11.如权利要求9所述的方法,其特征在于,所述通讯模块在所述待测试软件运行过程中与中心服务器保持心跳连接; 所述中心服务器如果侦测到与所述通讯模块的心跳连接中断,则记录对应的测试服务器中运行的测试环境信息。 If the central server to the communications module to detect heartbeat; 11. The method according to claim 9, wherein said communication software module to be tested during operation to maintain a heartbeat connection with the central server connection is lost, the corresponding test server running in a test environment information is recorded.
12.如权利要求9所述的方法,其特征在于,所述通讯模块存储于所述阵列服务器中,且所述不同的操作系统分别对应有相匹配的通讯模块,随虚拟镜像文件加载并运行于对应的测试服务器中。 12. The method according to claim 9, wherein said communication module is stored in the array in the server, and the different operating systems has to match the corresponding communications module, with the virtual image file loaded and run to the corresponding test server.
13.如权利要求10或11所述的方法,其特征在于,所述中心服务器在记录对应的测试服务器中运行的测试环境信息后,进一步执行对应测试环境的增量备份或镜像还原。 13. The method of claim 10 or claim 11, characterized in that, after the central server running a server corresponding test recording test environment information corresponding to the test environment to further perform an incremental backup or restore the image back.
14.如权利要求9所述的方法,其特征在于,所述中心服务器根据测试服务器的负载状态,将对应的虚拟镜像文件加载并运行于一台或多台选定的测试服务器中;所述中心服务器判断测试服务器负载状态的指标包括CPU使用率,内存使用率,硬盘吞吐量,和/或当前协议连接数。 14. The method according to claim 9, wherein the central server according to the load state of the test server, the corresponding virtual image file loaded and run on one or more selected test server; the indicator central server determines the load state of the test server including CPU usage, memory usage, hard disk throughput, and / or the number of the current protocol connection.
15.如权利要求9所述的方法,其特征在于,进一步包括:为不同测试环境分配不同的权值,所述中心服务器将权值高的测试环境对应的虚拟镜像文件优先加载并运行于测试服务器中。 15. The method according to claim 9, characterized in that, further comprising: allocating different test environments for different weights, the central server to the high weights corresponding to the test environment priority virtual image file loaded and run in the test server.
16.如权利要求15所述的方法,其特征在于,进一步包括:将当前权值最高的测试环境对应的虚拟镜像文件对应加载至当前负载状态最轻的测试服务器中运行。 16. The method according to claim 15, characterized in that, further comprising: a load corresponding to an operating state of the lightest load test server highest current corresponding to the current test environment weights virtual image file.
CN201210053060.0A 2012-03-02 2012-03-02 Software testing system and method CN102622298B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210053060.0A CN102622298B (en) 2012-03-02 2012-03-02 Software testing system and method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410757945.8A CN104360952B (en) 2012-03-02 2012-03-02 Kinds of software testing system and method
CN201210053060.0A CN102622298B (en) 2012-03-02 2012-03-02 Software testing system and method

Publications (2)

Publication Number Publication Date
CN102622298A true CN102622298A (en) 2012-08-01
CN102622298B CN102622298B (en) 2015-01-07

Family

ID=46562225

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210053060.0A CN102622298B (en) 2012-03-02 2012-03-02 Software testing system and method

Country Status (1)

Country Link
CN (1) CN102622298B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981951A (en) * 2012-11-01 2013-03-20 珠海金山网络游戏科技有限公司 Platform and method of cloud test development
CN103379000A (en) * 2012-04-28 2013-10-30 阿里巴巴集团控股有限公司 Concurrent testing method and testing server
CN103546341A (en) * 2013-10-14 2014-01-29 广东电网公司信息中心 Automatic setup method of test environment
CN103678133A (en) * 2013-12-18 2014-03-26 中国科学院深圳先进技术研究院 Task scheduling system for application software cloud testing
CN103729271A (en) * 2012-10-11 2014-04-16 北京百度网讯科技有限公司 Method and system for testing stability of entire equipment cabinet and testing servers
CN103795744A (en) * 2012-10-30 2014-05-14 上海今日在线科技发展有限公司 On-line test cloud service platform
CN103795743A (en) * 2012-10-30 2014-05-14 上海今日在线科技发展有限公司 Safe and intelligent cloud service method
CN103795582A (en) * 2012-10-30 2014-05-14 上海今日在线科技发展有限公司 Test method realized based on cloud service platform
CN104038381A (en) * 2013-03-07 2014-09-10 腾讯科技(深圳)有限公司 Applied cloud testing method and system, client and server
CN104598776A (en) * 2013-10-31 2015-05-06 深圳市腾讯计算机系统有限公司 Method and device for testing software
CN104978269A (en) * 2015-06-30 2015-10-14 四川九洲电器集团有限责任公司 Automatic testing method
CN105512041A (en) * 2015-12-23 2016-04-20 北京金山安全软件有限公司 Method and device for testing application program performance and electronic device
CN105743725A (en) * 2014-12-10 2016-07-06 无锡买卖宝信息技术有限公司 Method and device for testing application programs
WO2019051937A1 (en) * 2017-09-14 2019-03-21 平安科技(深圳)有限公司 Method, apparatus and device for automatically configuring test machine, and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104360952B (en) * 2012-03-02 2018-09-04 北京奇虎科技有限公司 Kinds of software testing system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0910018A2 (en) * 1997-10-15 1999-04-21 Alcatel Alsthom Compagnie Generale d'Electricité Error checking method for real-time system software
US20040078692A1 (en) * 2002-03-05 2004-04-22 Jackson Walter A. Test configuration method and system
CN101615159A (en) * 2009-07-31 2009-12-30 中兴通讯股份有限公司 Off-line test system, local data management method thereof and corresponding device
CN102354298A (en) * 2011-07-27 2012-02-15 哈尔滨工业大学 Software testing automation framework (STAF)-based fault injection automation testing platform and method for high-end fault-tolerant computer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0910018A2 (en) * 1997-10-15 1999-04-21 Alcatel Alsthom Compagnie Generale d'Electricité Error checking method for real-time system software
US20040078692A1 (en) * 2002-03-05 2004-04-22 Jackson Walter A. Test configuration method and system
CN101615159A (en) * 2009-07-31 2009-12-30 中兴通讯股份有限公司 Off-line test system, local data management method thereof and corresponding device
CN102354298A (en) * 2011-07-27 2012-02-15 哈尔滨工业大学 Software testing automation framework (STAF)-based fault injection automation testing platform and method for high-end fault-tolerant computer

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379000B (en) * 2012-04-28 2016-06-22 阿里巴巴集团控股有限公司 One kind of concurrent test methods and test server
CN103379000A (en) * 2012-04-28 2013-10-30 阿里巴巴集团控股有限公司 Concurrent testing method and testing server
CN103729271A (en) * 2012-10-11 2014-04-16 北京百度网讯科技有限公司 Method and system for testing stability of entire equipment cabinet and testing servers
CN103795744A (en) * 2012-10-30 2014-05-14 上海今日在线科技发展有限公司 On-line test cloud service platform
CN103795743A (en) * 2012-10-30 2014-05-14 上海今日在线科技发展有限公司 Safe and intelligent cloud service method
CN103795582A (en) * 2012-10-30 2014-05-14 上海今日在线科技发展有限公司 Test method realized based on cloud service platform
CN102981951A (en) * 2012-11-01 2013-03-20 珠海金山网络游戏科技有限公司 Platform and method of cloud test development
CN102981951B (en) * 2012-11-01 2016-03-09 珠海金山网络游戏科技有限公司 Test Development cloud cloud platform and test development method
CN104038381A (en) * 2013-03-07 2014-09-10 腾讯科技(深圳)有限公司 Applied cloud testing method and system, client and server
CN104038381B (en) * 2013-03-07 2018-11-09 腾讯科技(深圳)有限公司 Cloud Test Methods, systems, client and server
CN103546341A (en) * 2013-10-14 2014-01-29 广东电网公司信息中心 Automatic setup method of test environment
CN104598776B (en) * 2013-10-31 2018-11-23 深圳市腾讯计算机系统有限公司 A method of and apparatus for testing software
CN104598776A (en) * 2013-10-31 2015-05-06 深圳市腾讯计算机系统有限公司 Method and device for testing software
CN103678133A (en) * 2013-12-18 2014-03-26 中国科学院深圳先进技术研究院 Task scheduling system for application software cloud testing
CN105743725A (en) * 2014-12-10 2016-07-06 无锡买卖宝信息技术有限公司 Method and device for testing application programs
CN104978269A (en) * 2015-06-30 2015-10-14 四川九洲电器集团有限责任公司 Automatic testing method
CN105512041A (en) * 2015-12-23 2016-04-20 北京金山安全软件有限公司 Method and device for testing application program performance and electronic device
CN105512041B (en) * 2015-12-23 2018-09-25 北京金山安全软件有限公司 A method of testing the performance of an application, device, and electronic apparatus
WO2019051937A1 (en) * 2017-09-14 2019-03-21 平安科技(深圳)有限公司 Method, apparatus and device for automatically configuring test machine, and storage medium

Also Published As

Publication number Publication date
CN102622298B (en) 2015-01-07

Similar Documents

Publication Publication Date Title
US9633406B2 (en) Use of snapshots to reduce risk in migration to a standard virtualized environment
US8166458B2 (en) Method and system for automated distributed software testing
US9692632B2 (en) Migration to managed clouds
US7340649B2 (en) System and method for determining fault isolation in an enterprise computing system
US9294296B2 (en) Automated test execution in a shared virtualized resource pool
US8219769B1 (en) Discovering cluster resources to efficiently perform cluster backups and restores
US20140149983A1 (en) Replacing virtual machine disks
US9021480B2 (en) Security management device and method
US8181159B2 (en) Test automation using virtual machines
US8495019B2 (en) System and method for providing assured recovery and replication
US8230267B2 (en) Automated software testing framework
US20090327815A1 (en) Process Reflection
Herder et al. Failure resilience for device drivers
US7979749B2 (en) Method and infrastructure for detecting and/or servicing a failing/failed operating system instance
US8799709B2 (en) Snapshot management method, snapshot management apparatus, and computer-readable, non-transitory medium
CN103354924B (en) For monitoring the performance of the method and system
US8140905B2 (en) Incremental problem determination and resolution in cloud environments
US10114834B2 (en) Exogenous virtual machine synchronization and replication
US20080209415A1 (en) Method and system for remote monitoring subscription service
CN100375056C (en) Automatic detesting method for computer system hardware device
US9038055B2 (en) Using virtual machines to manage software builds
US9471474B2 (en) Cloud deployment infrastructure validation engine
Dumitraş et al. Why do upgrades fail and what can we do about it?: toward dependable, online upgrades in enterprise system
US8910172B2 (en) Application resource switchover systems and methods
Murphy et al. Windows 2000 dependability

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100016 CHAOYANG, BEIJING TO: 100088 XICHENG, BEIJING

ASS Succession or assignment of patent right

Owner name: BEIJING QIHU TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: QIZHI SOFTWARE (BEIJING) CO., LTD.

Effective date: 20120910

Owner name: QIZHI SOFTWARE (BEIJING) CO., LTD.

Effective date: 20120910

C14 Grant of patent or utility model