CN106294157A - A kind of operating system testing method and device - Google Patents
A kind of operating system testing method and device Download PDFInfo
- Publication number
- CN106294157A CN106294157A CN201610658623.7A CN201610658623A CN106294157A CN 106294157 A CN106294157 A CN 106294157A CN 201610658623 A CN201610658623 A CN 201610658623A CN 106294157 A CN106294157 A CN 106294157A
- Authority
- CN
- China
- Prior art keywords
- operating system
- target operating
- installation
- test
- image file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3696—Methods or tools to render software testable
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
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)
- Stored Programmes (AREA)
Abstract
本发明公开了一种操作系统测试方法及装置,应用于测试平台。该方法包括以下步骤:在检测到源码文件夹中存在用于测试目标操作系统的源码包时,根据源码包,生成目标操作系统的安装镜像文件;将安装镜像文件发送给测试机器,并控制测试机器根据安装镜像文件,进行目标操作系统的安装;在检测到目标操作系统安装成功时,将预设的测试用例发送给测试机器,控制测试机器执行测试用例,对目标操作系统进行测试;获得测试机器在执行测试用例之后生成的测试结果。应用本发明实施例所提供的技术方案,测试过程均由测试平台自动完成,不需要人工干预,避免了人工操作可能出现的错误,提高了测试效率。
The invention discloses an operating system testing method and device, which are applied to a testing platform. The method comprises the following steps: when detecting that there is a source code package for testing the target operating system in the source code folder, generating an installation image file of the target operating system according to the source code package; sending the installation image file to the test machine, and controlling the test The machine installs the target operating system according to the installation image file; when it detects that the target operating system is successfully installed, it sends the preset test case to the test machine, controls the test machine to execute the test case, and tests the target operating system; obtains the test case The test results generated by the machine after executing the test cases. By applying the technical solution provided by the embodiment of the present invention, the test process is automatically completed by the test platform without manual intervention, avoiding possible errors in manual operation, and improving test efficiency.
Description
技术领域technical field
本发明涉及操作系统测试技术领域,特别是涉及一种操作系统测试方法及装置。The invention relates to the technical field of operating system testing, in particular to an operating system testing method and device.
背景技术Background technique
随着计算机技术的快速发展,市场对操作系统性能、功能的要求不断提高,对操作系统软件的快速开发、快速迭代的要求不断凸显,推出新版本的时间间隔不断缩短。With the rapid development of computer technology, the market's requirements for the performance and functions of operating systems have been continuously improved, and the requirements for rapid development and rapid iteration of operating system software have become increasingly prominent, and the time interval for launching new versions has been continuously shortened.
目前对于操作系统的测试多为以密集劳动为特征的传统人工测试。人工测试需要的测试时间较长,而且在测试过程中容易出现错误,导致测试效率较低,已经不能满足软件开发和测试的需求。At present, the testing of the operating system is mostly the traditional manual testing characterized by intensive labor. Manual testing requires a long test time, and errors are prone to occur during the testing process, resulting in low testing efficiency, which can no longer meet the needs of software development and testing.
发明内容Contents of the invention
为解决上述技术问题,本发明提供一种操作系统测试方法及装置。In order to solve the above technical problems, the present invention provides an operating system testing method and device.
一种操作系统测试方法,应用于测试平台,所述方法包括:A method for testing an operating system, applied to a test platform, the method comprising:
在检测到源码文件夹中存在用于测试目标操作系统的源码包时,根据所述源码包,生成所述目标操作系统的安装镜像文件;When it is detected that there is a source code package for testing the target operating system in the source code folder, according to the source code package, an installation image file of the target operating system is generated;
将所述安装镜像文件发送给测试机器,并控制所述测试机器根据所述安装镜像文件,进行所述目标操作系统的安装;Send the installation image file to the test machine, and control the test machine to install the target operating system according to the installation image file;
在检测到所述目标操作系统安装成功时,将预设的测试用例发送给所述测试机器,控制所述测试机器执行所述测试用例,对所述目标操作系统进行测试;When detecting that the target operating system is successfully installed, sending a preset test case to the test machine, controlling the test machine to execute the test case, and testing the target operating system;
获得所述测试机器在执行所述测试用例之后生成的测试结果。A test result generated by the test machine after executing the test case is obtained.
在本发明的一种具体实施方式中,所述在检测到源码文件夹中存在用于测试目标操作系统的源码包时,根据所述源码包,生成所述目标操作系统的安装镜像文件,包括:In a specific embodiment of the present invention, when it is detected that there is a source code package for testing the target operating system in the source code folder, according to the source code package, the installation image file of the target operating system is generated, including :
在检测到源码文件夹中存在用于测试目标操作系统的源码包时,对所述源码包进行编译,生成所述目标操作系统的安装文件并获得依赖关系;When it is detected that there is a source code package for testing the target operating system in the source code folder, the source code package is compiled to generate the installation file of the target operating system and obtain the dependency relationship;
根据所述安装文件和所述依赖关系,生成所述目标操作系统的安装镜像文件。An installation image file of the target operating system is generated according to the installation file and the dependency relationship.
在本发明的一种具体实施方式中,在所述生成所述目标操作系统的安装文件之后,所述方法还包括:In a specific implementation manner of the present invention, after the installation file of the target operating system is generated, the method further includes:
在预先设定的目录保存所述安装文件。The installation file is saved in a preset directory.
在本发明的一种具体实施方式中,所述将所述安装镜像文件发送给测试机器,包括:In a specific implementation manner of the present invention, the sending of the installation image file to the test machine includes:
在预先获得的配置文件中,获得用于测试所述目标操作系统的测试机器的地址;Obtain an address of a test machine used to test the target operating system in the pre-obtained configuration file;
根据获得的地址,将所述安装镜像文件发送给相应的测试机器。According to the obtained address, the installation image file is sent to a corresponding test machine.
在本发明的一种具体实施方式中,所述方法还包括:In a specific embodiment of the present invention, the method also includes:
在检测到所述目标操作系统安装失败时,重复执行所述将所述安装镜像文件发送给测试机器的步骤;When it is detected that the installation of the target operating system fails, repeating the step of sending the installation image file to the test machine;
如果检测到所述目标操作系统安装失败的次数达到预设阈值,则向预设人员发送安装失败提示信息。If it is detected that the number of failed installations of the target operating system reaches a preset threshold, an installation failure prompt message is sent to a preset person.
一种操作系统测试装置,应用于测试平台,所述装置包括:An operating system testing device applied to a test platform, the device comprising:
安装镜像文件生成模块,用于在检测到源码文件夹中存在用于测试目标操作系统的源码包时,根据所述源码包,生成所述目标操作系统的安装镜像文件;Install the image file generating module, for when detecting that there is a source code package for testing the target operating system in the source code folder, according to the source code package, generate the installation image file of the target operating system;
目标操作系统安装模块,用于将所述安装镜像文件发送给测试机器,并控制所述测试机器根据所述安装镜像文件,进行所述目标操作系统的安装;A target operating system installation module, configured to send the installation image file to a test machine, and control the test machine to install the target operating system according to the installation image file;
目标操作系统测试模块,用于在检测到所述目标操作系统安装成功时,将预设的测试用例发送给所述测试机器,控制所述测试机器执行所述测试用例,对所述目标操作系统进行测试;The target operating system testing module is used to send a preset test case to the test machine when detecting that the target operating system is installed successfully, control the test machine to execute the test case, and test the target operating system carry out testing;
测试结果获得模块,用于获得所述测试机器在执行所述测试用例之后生成的测试结果。The test result obtaining module is used to obtain the test result generated by the test machine after executing the test case.
在本发明的一种具体实施方式中,所述安装镜像文件生成模块,包括:In a specific embodiment of the present invention, the installation image file generation module includes:
安装文件生成子模块,用于在检测到源码文件夹中存在用于测试目标操作系统的源码包时,对所述源码包进行编译,生成所述目标操作系统的安装文件并获得依赖关系;The installation file generation submodule is used to compile the source code package when detecting that there is a source code package for testing the target operating system in the source code folder, generate the installation file of the target operating system and obtain the dependency relationship;
安装镜像文件生成子模块,用于根据所述安装文件和所述依赖关系,生成所述目标操作系统的安装镜像文件。The installation image file generating submodule is configured to generate the installation image file of the target operating system according to the installation file and the dependency relationship.
在本发明的一种具体实施方式中,所述安装镜像文件生成模块,还包括:In a specific embodiment of the present invention, the installation image file generation module also includes:
安装文件保存子模块,用于在所述生成所述目标操作系统的安装文件之后,在预先设定的目录保存所述安装文件。The installation file saving submodule is used to save the installation file in a preset directory after the installation file of the target operating system is generated.
在本发明的一种具体实施方式中,所述目标操作系统安装模块,具体用于:In a specific implementation manner of the present invention, the target operating system installation module is specifically used for:
在预先获得的配置文件中,获得用于测试所述目标操作系统的测试机器的地址;Obtain an address of a test machine used to test the target operating system in the pre-obtained configuration file;
根据获得的地址,将所述安装镜像文件发送给相应的测试机器。According to the obtained address, the installation image file is sent to a corresponding test machine.
在本发明的一种具体实施方式中,所述装置还包括:In a specific embodiment of the present invention, the device also includes:
重复执行模块,用于在检测到所述目标操作系统安装失败时,触发所述目标操作系统安装模块,重复执行所述将所述安装镜像文件发送给测试机器的步骤;A repeated execution module, configured to trigger the installation module of the target operating system when it is detected that the installation of the target operating system fails, and repeatedly execute the step of sending the installation image file to the test machine;
提示信息发送模块,用于在检测到所述目标操作系统安装失败的次数达到预设阈值时,向预设人员发送安装失败提示信息。The prompt information sending module is configured to send an installation failure prompt message to preset personnel when it is detected that the number of failed installations of the target operating system reaches a preset threshold.
应用本发明实施例所提供的技术方案,测试平台在检测到源码文件夹中存在用于测试目标操作系统的源码包时,根据该源码包,生成目标操作系统的安装镜像文件,将该安装镜像文件发送给测试机器,测试机器根据该安装镜像文件,进行目标操作系统的安装。测试平台在检测到测试机器对目标操作系统安装成功后,可以将预设的测试用例发送给测试机器,测试机器执行相应的测试用例,对目标操作系统进行测试,获得测试结果。这些过程均由测试平台自动完成,不需要人工干预,避免了人工操作可能出现的错误,提高了测试效率。Applying the technical solution provided by the embodiments of the present invention, when the test platform detects that there is a source code package for testing the target operating system in the source code folder, according to the source code package, the installation mirror file of the target operating system is generated, and the installation mirror image file is generated. The file is sent to the test machine, and the test machine installs the target operating system according to the installation image file. After the test platform detects that the test machine has successfully installed the target operating system, it can send preset test cases to the test machine, and the test machine executes the corresponding test cases to test the target operating system and obtain test results. These processes are automatically completed by the test platform without manual intervention, which avoids possible errors in manual operation and improves test efficiency.
附图说明Description of drawings
为了更清楚的说明本发明实施例或现有技术的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例中一种操作系统测试方法的实施流程图;Fig. 1 is the implementation flowchart of a kind of operating system testing method in the embodiment of the present invention;
图2为本发明实施例中一种操作系统测试装置的结构示意图。FIG. 2 is a schematic structural diagram of an operating system testing device in an embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明实施例提供一种操作系统测试方法,该方法应用于测试平台。测试平台通过本发明实施例所提供的技术方案对目标操作系统进行测试。测试平台在检测到源码文件夹中存在用于测试目标操作系统的源码包时,根据该源码包,生成目标操作系统的安装镜像文件,将该安装镜像文件发送给测试机器,测试机器根据该安装镜像文件,进行目标操作系统的安装。测试平台在检测到测试机器对目标操作系统安装成功后,可以将预设的测试用例发送给测试机器,测试机器执行相应的测试用例,对目标操作系统进行测试。测试平台可以获得测试机器执行测试用例之后生成的测试结果。该测试结果可以供开发人员查看,或者测试平台可以直接将该测试结果推送给开发人员。An embodiment of the present invention provides an operating system testing method, which is applied to a testing platform. The test platform tests the target operating system through the technical solutions provided by the embodiments of the present invention. When the test platform detects that there is a source code package for testing the target operating system in the source code folder, it generates an installation image file of the target operating system according to the source code package, and sends the installation image file to the test machine. Image file to install the target operating system. After the test platform detects that the test machine has successfully installed the target operating system, it can send preset test cases to the test machine, and the test machine executes the corresponding test cases to test the target operating system. The test platform can obtain the test results generated after the test machine executes the test cases. The test result can be viewed by the developer, or the test platform can directly push the test result to the developer.
这些过程均可由测试平台自动完成,本发明实施例在充分考虑操作系统测试的操作逻辑,格式化了操作过程,简化了测试人员的工作,提高了操作系统集成测试的效率。These processes can be automatically completed by the test platform. The embodiment of the present invention fully considers the operating logic of the operating system test, formats the operating process, simplifies the work of testers, and improves the efficiency of the operating system integration test.
参见图1所示,为本发明实施例所提供的一种操作系统测试方法的实施流程图,该方法可以包括以下步骤:Referring to FIG. 1 , it is an implementation flowchart of an operating system testing method provided by an embodiment of the present invention. The method may include the following steps:
S110:在检测到源码文件夹中存在用于测试目标操作系统的源码包时,根据源码包,生成目标操作系统的安装镜像文件。S110: When it is detected that a source code package for testing the target operating system exists in the source code folder, generate an installation image file of the target operating system according to the source code package.
在本发明实施例中,当需要对目标操作系统进行测试时,可以由开发人员编写用于测试目标操作系统的源码,将源码包存放到测试平台的源码文件夹中。In the embodiment of the present invention, when the target operating system needs to be tested, the developer can write the source code for testing the target operating system, and store the source code package in the source code folder of the test platform.
测试平台可以定期或者不定期的对源码文件夹进行检测,当检测到源码文件夹中存在源码包时,可以对该源码包进行编译,根据该源码包生成目标操作系统的安装镜像文件。The test platform can regularly or irregularly detect the source code folder. When a source code package is detected in the source code folder, the source code package can be compiled, and an installation image file of the target operating system can be generated based on the source code package.
在本发明的一种具体实施方式中,步骤S110可以包括以下步骤:In a specific implementation manner of the present invention, step S110 may include the following steps:
步骤一:在检测到源码文件夹中存在用于测试目标操作系统的源码包时,对源码包进行编译,生成目标操作系统的安装文件并获得依赖关系。Step 1: When it is detected that there is a source code package for testing the target operating system in the source code folder, compile the source code package, generate an installation file of the target operating system and obtain dependencies.
测试平台在检测到源码文件夹中存在用于测试目标操作系统的源码包时,可以对该源码包进行编译。具体的,测试平台可以通过自动编译组件对该源码包进行编译。对源码包进行编译后,可以生成目标操作系统的安装文件,并获得目标操作系统所需要的依赖关系。When the test platform detects that there is a source package for testing the target operating system in the source folder, it can compile the source package. Specifically, the test platform can compile the source code package through an automatic compilation component. After compiling the source code package, the installation file of the target operating system can be generated, and the dependencies required by the target operating system can be obtained.
测试平台可以将编译后的源码包进行归档保存,并在预先设定的目录保存安装文件。The test platform can archive and save the compiled source package, and save the installation file in a preset directory.
步骤二:根据安装文件和依赖关系,生成目标操作系统的安装镜像文件。Step 2: Generate an installation image file of the target operating system according to the installation file and dependencies.
测试平台生成目标操作系统的安装文件,并获得依赖关系之后,可以根据该安装文件和依赖关系,生成目标操作系统的安装镜像文件。具体的,测试平台可以通过自动集成组件生成目标操作系统的安装镜像文件。After the test platform generates the installation file of the target operating system and obtains the dependencies, it can generate the installation image file of the target operating system according to the installation files and the dependencies. Specifically, the test platform can generate an installation image file of the target operating system through automatic integration components.
测试平台可以将生成的安装镜像文件存放到指定目录作为自动安装的源。The test platform can store the generated installation image file in a specified directory as the source of automatic installation.
S120:将安装镜像文件发送给测试机器,并控制测试机器根据安装镜像文件,进行目标操作系统的安装。S120: Send the installation image file to the test machine, and control the test machine to install the target operating system according to the installation image file.
在步骤S110,测试平台根据检测到的源码包,生成了目标操作系统的安装镜像文件,进一步可以将该安装镜像文件发送给测试机器。In step S110, the test platform generates an installation image file of the target operating system according to the detected source code package, and can further send the installation image file to the test machine.
在本发明的一种具体实施方式中,将安装镜像文件发送给测试机器的步骤可以包括以下步骤:In a specific embodiment of the present invention, the step of sending the installation image file to the test machine may include the following steps:
第一个步骤:在预先获得的配置文件中,获得用于测试目标操作系统的测试机器的地址;The first step: in the configuration file obtained in advance, obtain the address of the test machine used to test the target operating system;
第二个步骤:根据获得的地址,将安装镜像文件发送给相应的测试机器。The second step: Send the installation image file to the corresponding test machine according to the obtained address.
为便于描述,将上述两个步骤结合起来进行说明。For ease of description, the above two steps are combined for description.
在本发明实施例中,在要对目标操作系统进行测试时,可以由开发人员修改相应的配置文件,通过配置文件配置测试机器,测试机器可以有多台,每台测试机器均与测试平台通信连接。测试平台生成安装镜像文件之后,可以在配置文件中查找测试机器的地址,根据查找到的地址,将安装镜像文件发送给测试机器。In the embodiment of the present invention, when the target operating system is to be tested, the corresponding configuration file can be modified by the developer, and the test machine can be configured through the configuration file. There can be multiple test machines, and each test machine communicates with the test platform connect. After the test platform generates the installation image file, you can find the address of the test machine in the configuration file, and send the installation image file to the test machine according to the found address.
测试平台可以控制测试机器根据该安装镜像文件,进行目标操作系统的安装。具体的,测试平台可以通过自动安装组件在配置文件中查找测试机器的地址,根据查找到的地址,将安装镜像文件发送给测试机器,并控制测试机器根据该安装镜像文件,安装目标操作系统。The test platform can control the test machine to install the target operating system according to the installation image file. Specifically, the test platform can search the address of the test machine in the configuration file through the automatic installation component, send the installation image file to the test machine according to the found address, and control the test machine to install the target operating system according to the installation image file.
S130:在检测到目标操作系统安装成功时,将预设的测试用例发送给测试机器,控制测试机器执行测试用例,对目标操作系统进行测试。S130: When it is detected that the target operating system is successfully installed, send a preset test case to the test machine, control the test machine to execute the test case, and test the target operating system.
在测试机器安装目标操作系统的过程中,测试平台可以周期检测目标机器对目标操作系统的安装情况,在检测到目标操作系统安装成功后,可以将预设的测试用例发送给测试机器。测试用例可以由开发人员根据实际测试需求提前编写,还可以由第三方测试工具提前生成。During the process of installing the target operating system on the test machine, the test platform can periodically detect the installation of the target operating system on the target machine. After detecting that the target operating system is successfully installed, it can send the preset test cases to the test machine. Test cases can be written in advance by developers according to actual test requirements, and can also be generated in advance by third-party test tools.
测试平台可以控制测试机器执行测试用例,对目标操作系统进行测试。The test platform can control the test machine to execute test cases and test the target operating system.
在本发明的一个实施例中,该方法还可以包括以下步骤:In one embodiment of the present invention, the method may also include the following steps:
步骤一:在检测到目标操作系统安装失败时,重复执行将安装镜像文件发送给测试机器的步骤;Step 1: When it is detected that the installation of the target operating system fails, repeat the step of sending the installation image file to the test machine;
步骤二:如果检测到目标操作系统安装失败的次数达到预设阈值,则向预设人员发送安装失败提示信息。Step 2: If it is detected that the number of failed installations of the target operating system reaches a preset threshold, sending an installation failure prompt message to the preset personnel.
测试平台在检测到目标机器对目标操作系统安装失败时,可以直接将该失败信息反馈给相关开发人员。或者,在检测到目标操作系统安装失败时,可以重复执行将安装镜像文件发送给测试机器的步骤,以控制测试机器重新安装目标操作系统,如果检测到测试机器对于目标操作系统的安装失败次数达到预设阈值,则该向预设人员发送安装失败提示信息,以便相关人员及时查找原因。When the test platform detects that the target machine fails to install the target operating system, it can directly feed back the failure information to the relevant developers. Alternatively, when it is detected that the installation of the target operating system fails, the step of sending the installation image file to the test machine can be repeated to control the test machine to reinstall the target operating system. If it is detected that the number of times the test machine fails to install the target operating system reaches If the preset threshold is not set, it is time to send an installation failure prompt message to the preset personnel, so that relevant personnel can find out the reason in time.
S140:获得测试机器在执行测试用例之后生成的测试结果。S140: Obtain a test result generated by the test machine after executing the test case.
测试机器在执行测试用例之后生成测试结果,可以直接将该测试结果发送给测试平台,或者,测试平台在检测到测试机器生成测试结果之后,从测试机器收集测试结果。The test machine generates a test result after executing the test case, and the test result can be directly sent to the test platform, or the test platform collects the test result from the test machine after detecting that the test machine generates the test result.
该测试结果可以供开发人员查看,或者测试平台可以直接将该测试结果推送给开发人员。The test result can be viewed by the developer, or the test platform can directly push the test result to the developer.
在本发明实施例中,针对操作系统自动化测试的特点,及操作系统远程安装的特点,搭建测试平台,测试平台可以对源码包进行自动编译,集成目标操作系统的安装镜像文件,将目标操作系统安装到测试机器上,并在测试机器上对目标操作系统进行测试,有效提高了测试效率,节省了人力资源。In the embodiment of the present invention, aiming at the characteristics of automated testing of the operating system and the characteristics of remote installation of the operating system, a test platform is built. The test platform can automatically compile the source code package, integrate the installation image file of the target operating system, and convert the target operating system It is installed on a test machine, and the target operating system is tested on the test machine, which effectively improves the test efficiency and saves manpower resources.
应用本发明实施例所提供的方法,测试平台在检测到源码文件夹中存在用于测试目标操作系统的源码包时,根据该源码包,生成目标操作系统的安装镜像文件,将该安装镜像文件发送给测试机器,测试机器根据该安装镜像文件,进行目标操作系统的安装。测试平台在检测到测试机器对目标操作系统安装成功后,可以将预设的测试用例发送给测试机器,测试机器执行相应的测试用例,对目标操作系统进行测试,获得测试结果。这些过程均由测试平台自动完成,不需要人工干预,避免了人工操作可能出现的错误,提高了测试效率。Applying the method provided by the embodiment of the present invention, when the test platform detects that there is a source code package for testing the target operating system in the source code folder, according to the source code package, an installation image file of the target operating system is generated, and the installation image file is Send to the test machine, and the test machine installs the target operating system according to the installation image file. After the test platform detects that the test machine has successfully installed the target operating system, it can send preset test cases to the test machine, and the test machine executes the corresponding test cases to test the target operating system and obtain test results. These processes are automatically completed by the test platform without manual intervention, which avoids possible errors in manual operation and improves test efficiency.
相应于上面的方法实施例,本发明实施例还提供了一种操作系统测试装置,该装置应用于测试平台。下文描述的一种操作系统测试装置与上文描述的一种操作系统测试方法可相互对应参照。Corresponding to the above method embodiments, the embodiment of the present invention also provides an operating system testing device, which is applied to a testing platform. An operating system testing device described below and an operating system testing method described above may refer to each other correspondingly.
参见图2所示,该装置可以包括以下模块:Referring to shown in Figure 2, the device can include the following modules:
安装镜像文件生成模块210,用于在检测到源码文件夹中存在用于测试目标操作系统的源码包时,根据源码包,生成目标操作系统的安装镜像文件;Install the image file generation module 210, for when detecting that there is a source code package for testing the target operating system in the source code folder, according to the source code package, generate the installation image file of the target operating system;
目标操作系统安装模块220,用于将安装镜像文件发送给测试机器,并控制测试机器根据安装镜像文件,进行目标操作系统的安装;The target operating system installation module 220 is used to send the installation image file to the test machine, and control the test machine to install the target operating system according to the installation image file;
目标操作系统测试模块230,用于在检测到目标操作系统安装成功时,将预设的测试用例发送给测试机器,控制测试机器执行测试用例,对目标操作系统进行测试;The target operating system testing module 230 is used to send a preset test case to the test machine when detecting that the target operating system is installed successfully, to control the test machine to execute the test case, and to test the target operating system;
测试结果获得模块240,用于获得测试机器在执行测试用例之后生成的测试结果。The test result obtaining module 240 is used to obtain the test result generated by the test machine after executing the test case.
应用本发明实施例所提供的装置,测试平台在检测到源码文件夹中存在用于测试目标操作系统的源码包时,根据该源码包,生成目标操作系统的安装镜像文件,将该安装镜像文件发送给测试机器,测试机器根据该安装镜像文件,进行目标操作系统的安装。测试平台在检测到测试机器对目标操作系统安装成功后,可以将预设的测试用例发送给测试机器,测试机器执行相应的测试用例,对目标操作系统进行测试,获得测试结果。这些过程均由测试平台自动完成,不需要人工干预,避免了人工操作可能出现的错误,提高了测试效率。Applying the device provided by the embodiment of the present invention, when the test platform detects that there is a source code package for testing the target operating system in the source code folder, according to the source code package, an installation image file of the target operating system is generated, and the installation image file is Send to the test machine, and the test machine installs the target operating system according to the installation image file. After the test platform detects that the test machine has successfully installed the target operating system, it can send preset test cases to the test machine, and the test machine executes the corresponding test cases to test the target operating system and obtain test results. These processes are automatically completed by the test platform without manual intervention, which avoids possible errors in manual operation and improves test efficiency.
在本发明的一种具体实施方式中,安装镜像文件生成模块210,包括:In a specific embodiment of the present invention, installing the image file generating module 210 includes:
安装文件生成子模块,用于在检测到源码文件夹中存在用于测试目标操作系统的源码包时,对源码包进行编译,生成目标操作系统的安装文件并获得依赖关系;The installation file generation sub-module is used for compiling the source code package when detecting that there is a source code package for testing the target operating system in the source code folder, generating the installation file of the target operating system and obtaining dependencies;
安装镜像文件生成子模块,用于根据安装文件和依赖关系,生成目标操作系统的安装镜像文件。The installation image file generation submodule is used to generate the installation image file of the target operating system according to the installation files and dependencies.
在本发明的一种具体实施方式中,安装镜像文件生成模块,还包括:In a specific embodiment of the present invention, installing the image file generating module also includes:
安装文件保存子模块,用于在生成目标操作系统的安装文件之后,在预先设定的目录保存安装文件。The installation file saving submodule is used to save the installation file in a preset directory after the installation file of the target operating system is generated.
在本发明的一种具体实施方式中,目标操作系统安装模块220,具体用于:In a specific implementation manner of the present invention, the target operating system installation module 220 is specifically used for:
在预先获得的配置文件中,获得用于测试目标操作系统的测试机器的地址;In the pre-acquired configuration file, obtain the address of the test machine used to test the target operating system;
根据获得的地址,将安装镜像文件发送给相应的测试机器。According to the obtained address, send the installation image file to the corresponding test machine.
在本发明的一种具体实施方式中,该装置还包括:In a specific embodiment of the present invention, the device also includes:
重复执行模块,用于在检测到目标操作系统安装失败时,触发目标操作系统安装模块220,重复执行将安装镜像文件发送给测试机器的步骤;The repeated execution module is used to trigger the target operating system installation module 220 when detecting that the installation of the target operating system fails, and repeatedly execute the step of sending the installation image file to the test machine;
提示信息发送模块,用于在检测到目标操作系统安装失败的次数达到预设阈值时,向预设人员发送安装失败提示信息。The prompt information sending module is configured to send installation failure prompt information to preset personnel when it is detected that the number of target operating system installation failures reaches a preset threshold.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related part, please refer to the description of the method part.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
以上对本发明所提供的一种操作系统测试方法及装置进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The operating system testing method and device provided by the present invention have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention, and the descriptions of the above embodiments are only used to help understand the method and core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610658623.7A CN106294157A (en) | 2016-08-11 | 2016-08-11 | A kind of operating system testing method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610658623.7A CN106294157A (en) | 2016-08-11 | 2016-08-11 | A kind of operating system testing method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106294157A true CN106294157A (en) | 2017-01-04 |
Family
ID=57668673
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610658623.7A Pending CN106294157A (en) | 2016-08-11 | 2016-08-11 | A kind of operating system testing method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106294157A (en) |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107797926A (en) * | 2017-10-19 | 2018-03-13 | 郑州云海信息技术有限公司 | A kind of system and method for realizing linux application test automations |
| CN108255735A (en) * | 2018-01-31 | 2018-07-06 | 平安科技(深圳)有限公司 | Associated environment test method, electronic device and computer readable storage medium |
| CN109243464A (en) * | 2018-07-04 | 2019-01-18 | 平安科技(深圳)有限公司 | Speech recognition tools dispositions method, device, computer equipment and storage medium |
| CN110471809A (en) * | 2019-07-31 | 2019-11-19 | 深圳中电长城信息安全系统有限公司 | A kind of method and test device of test |
| CN112083962A (en) * | 2020-08-28 | 2020-12-15 | 山东英信计算机技术有限公司 | A method, device, device and storage medium for automatically installing an operating system |
| CN113608996A (en) * | 2021-06-30 | 2021-11-05 | 苏州浪潮智能科技有限公司 | Mirror image compiling test method, system, device and readable storage medium |
| CN114077543A (en) * | 2021-11-03 | 2022-02-22 | 麒麟软件有限公司 | Full-automatic testing method and system based on desktop operating system |
| CN119473877A (en) * | 2024-10-23 | 2025-02-18 | 武汉达梦数据库股份有限公司 | A DMDIS automated testing method and device |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070294673A1 (en) * | 2006-06-16 | 2007-12-20 | Microsoft Corporation | Automated method and system for collecting and reporting API performance profiles |
| CN102147758A (en) * | 2011-03-16 | 2011-08-10 | 深圳创维数字技术股份有限公司 | Automatic compiling and configuring method for equipment to be tested, device and system |
| CN105550001A (en) * | 2015-12-24 | 2016-05-04 | 厦门市美亚柏科信息股份有限公司 | Distributed automatic construction method and system |
-
2016
- 2016-08-11 CN CN201610658623.7A patent/CN106294157A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070294673A1 (en) * | 2006-06-16 | 2007-12-20 | Microsoft Corporation | Automated method and system for collecting and reporting API performance profiles |
| CN102147758A (en) * | 2011-03-16 | 2011-08-10 | 深圳创维数字技术股份有限公司 | Automatic compiling and configuring method for equipment to be tested, device and system |
| CN105550001A (en) * | 2015-12-24 | 2016-05-04 | 厦门市美亚柏科信息股份有限公司 | Distributed automatic construction method and system |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107797926A (en) * | 2017-10-19 | 2018-03-13 | 郑州云海信息技术有限公司 | A kind of system and method for realizing linux application test automations |
| CN108255735A (en) * | 2018-01-31 | 2018-07-06 | 平安科技(深圳)有限公司 | Associated environment test method, electronic device and computer readable storage medium |
| WO2019148657A1 (en) * | 2018-01-31 | 2019-08-08 | 平安科技(深圳)有限公司 | Method for testing associated environments, electronic device and computer readable storage medium |
| CN109243464A (en) * | 2018-07-04 | 2019-01-18 | 平安科技(深圳)有限公司 | Speech recognition tools dispositions method, device, computer equipment and storage medium |
| CN110471809A (en) * | 2019-07-31 | 2019-11-19 | 深圳中电长城信息安全系统有限公司 | A kind of method and test device of test |
| CN112083962A (en) * | 2020-08-28 | 2020-12-15 | 山东英信计算机技术有限公司 | A method, device, device and storage medium for automatically installing an operating system |
| CN113608996A (en) * | 2021-06-30 | 2021-11-05 | 苏州浪潮智能科技有限公司 | Mirror image compiling test method, system, device and readable storage medium |
| CN113608996B (en) * | 2021-06-30 | 2023-07-18 | 苏州浪潮智能科技有限公司 | A mirror compilation test method, system, device and readable storage medium |
| CN114077543A (en) * | 2021-11-03 | 2022-02-22 | 麒麟软件有限公司 | Full-automatic testing method and system based on desktop operating system |
| CN119473877A (en) * | 2024-10-23 | 2025-02-18 | 武汉达梦数据库股份有限公司 | A DMDIS automated testing method and device |
| CN119473877B (en) * | 2024-10-23 | 2025-12-09 | 武汉达梦数据库股份有限公司 | DMDIS automatic test method and device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106294157A (en) | A kind of operating system testing method and device | |
| US7185335B2 (en) | Programmatic application installation diagnosis and cleaning | |
| CN103778061B (en) | Automatically detection and the bearing calibration of Array Bound mistake | |
| KR101038965B1 (en) | How to Configure Test Systems, Computer-readable Media, and Computing Systems | |
| US8621441B2 (en) | System and method for software immunization based on static and dynamic analysis | |
| CN102799437B (en) | A kind of compilation script automatic generation method and automatically generating device | |
| WO2016177124A1 (en) | Method and device for implementing continuous integration test | |
| US8978015B2 (en) | Self validating applications | |
| US10049031B2 (en) | Correlation of violating change sets in regression testing of computer software | |
| CN110995825B (en) | Intelligent contract issuing method, intelligent node equipment and storage medium | |
| CN114546819B (en) | Code processing method, device, electronic equipment and readable medium | |
| CN106648762B (en) | A method and device for building a development environment | |
| CN105260307A (en) | BMC upgrading method and apparatus | |
| CN102447732A (en) | Method for intelligent configuration of host computer embedded environment during BMC (Baseboard Management Controller) development | |
| JP2015011372A (en) | Debug support system, method, program, and recording medium | |
| CN107239292A (en) | It is a kind of to automate the method and apparatus for building software version | |
| CN107247610A (en) | A kind of software automatic deployment method and device | |
| CN111061486B (en) | Android application program increment method | |
| CN113721948A (en) | Database upgrading method, system and storage medium | |
| US20240241815A1 (en) | Method for efficiently improving test case coverage and robustness | |
| CN111722853A (en) | A method and device for installation script deployment | |
| CN113986263A (en) | Code automation test method, device, electronic equipment and storage medium | |
| CN109739756B (en) | Method and equipment for testing application of mobile terminal | |
| CN117608953A (en) | Intelligent self-checking method, system, storage medium and electronic equipment | |
| CN111367796B (en) | Application program debugging method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170104 |
|
| RJ01 | Rejection of invention patent application after publication |