CN110399307A - A test method, test platform and target server - Google Patents

A test method, test platform and target server Download PDF

Info

Publication number
CN110399307A
CN110399307A CN201910704619.3A CN201910704619A CN110399307A CN 110399307 A CN110399307 A CN 110399307A CN 201910704619 A CN201910704619 A CN 201910704619A CN 110399307 A CN110399307 A CN 110399307A
Authority
CN
China
Prior art keywords
test
task
tested
image
container
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910704619.3A
Other languages
Chinese (zh)
Inventor
权昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201910704619.3A priority Critical patent/CN110399307A/en
Publication of CN110399307A publication Critical patent/CN110399307A/en
Pending legal-status Critical Current

Links

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
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

本发明实施例提供了一种测试方法、测试平台及目标服务器,涉及自动化测试技术领域,该方法包括:测试平台根据待测试任务的测试资源文件构建待测试任务的测试镜像并将测试镜像保存至镜像仓库。测试平台根据负载均衡从服务器集群中确定目标服务器,并将待测试任务发送至目标服务器。目标服务器从镜像仓库中调用待测试任务的测试镜像生成测试容器,并在测试容器中执行待测试任务。由于构建测试容器作为待测试任务的执行环境,故不需要预先在测试机器上部署测试环境,从而提高待测试任务的执行速度。待测试任务执行结束后,消除测试容器并释放测试容器占用的资源,既实现了测试机器上硬件资源的无损回收,又提高了测试资源的利用率。

Embodiments of the present invention provide a test method, a test platform and a target server, and relate to the technical field of automated testing. The method includes: the test platform constructs a test image of the to-be-tested task according to the test resource file of the to-be-tested task and saves the test image to a mirror repository. The test platform determines the target server from the server cluster according to the load balancing, and sends the task to be tested to the target server. The target server calls the test image of the task to be tested from the image repository to generate a test container, and executes the task to be tested in the test container. Since the test container is constructed as the execution environment of the task to be tested, it is not necessary to deploy the test environment on the test machine in advance, thereby improving the execution speed of the task to be tested. After the execution of the test task is completed, the test container is eliminated and the resources occupied by the test container are released, which not only realizes the lossless recovery of hardware resources on the test machine, but also improves the utilization rate of the test resources.

Description

一种测试方法、测试平台及目标服务器A test method, test platform and target server

技术领域technical field

本发明实施例涉及自动化测试技术领域,尤其涉及一种测试方法、测试平台及目标服务器。Embodiments of the present invention relate to the technical field of automated testing, and in particular, to a testing method, a testing platform and a target server.

背景技术Background technique

在软件开发过程中,采用的开发流程大多是先需求分析、然后设计和编码,最后再测试。目前多采用持续集成的方式进行软件开发,即开发人员经常集成他们的工作,每次集成都进行自动化测试,从而尽早地发现开发过程中的问题。而现有的测试平台在进行测试之前,需要根据测试项目预先在测试机器上部署测试环境,从而导致测试速度低。In the software development process, most of the development processes used are requirements analysis first, then design and coding, and finally testing. At present, continuous integration is mostly used for software development, that is, developers often integrate their work, and automated testing is performed for each integration, so as to find problems in the development process as early as possible. However, the existing test platform needs to deploy the test environment on the test machine in advance according to the test project before performing the test, resulting in low test speed.

发明内容SUMMARY OF THE INVENTION

由于现有测试平台在测试之前需要预先部署测试环境,导致测试速度低的问题,本发明实施例提供了一种测试方法、测试平台及目标服务器。Because the existing test platform needs to deploy the test environment in advance before the test, resulting in the problem of low test speed, the embodiments of the present invention provide a test method, a test platform and a target server.

一方面,本发明实施例提供了一种测试方法,包括:On the one hand, an embodiment of the present invention provides a test method, comprising:

测试平台获取待测试任务的测试资源文件;The test platform obtains the test resource file of the task to be tested;

所述测试平台根据所述待测试任务的测试资源文件构建所述待测试任务的测试镜像;The test platform constructs the test image of the task to be tested according to the test resource file of the task to be tested;

所述测试平台将所述待测试任务发送至目标服务器,以使所述目标服务器调用所述待测试任务的测试镜像生成测试容器,并在所述测试容器中执行所述待测试任务。The test platform sends the task to be tested to the target server, so that the target server calls the test image of the task to be tested to generate a test container, and executes the task to be tested in the test container.

由于构建测试容器作为待测试任务的执行环境,故不需要预先在测试机器上部署测试环境,从而提高待测试任务的执行速度。Since the test container is constructed as the execution environment of the task to be tested, it is not necessary to deploy the test environment on the test machine in advance, thereby improving the execution speed of the task to be tested.

可选地,还包括:Optionally, also include:

所述测试平台接收所述目标服务器发送的测试报告,所述测试报告是所述目标服务器在所述待测试任务执行结束、消除所述测试容器并释放所述测试容器占用的资源之后生成的。The test platform receives a test report sent by the target server, and the test report is generated by the target server after the execution of the task to be tested ends, the test container is eliminated, and the resources occupied by the test container are released.

由于测试容器在执行完待测试任务后,自动释放占用的资源,相较于现有人工清除测试机器上的测试环境来说,既实现了测试机器上硬件资源的无损回收,又提高了测试资源的利用率。Since the test container automatically releases the occupied resources after executing the task to be tested, compared with the existing manual clearing of the test environment on the test machine, it not only realizes the non-destructive recovery of hardware resources on the test machine, but also improves the test resources. utilization rate.

可选地,所述测试平台获取待测试任务的测试资源文件之前,还包括:Optionally, before the test platform acquires the test resource file of the task to be tested, it further includes:

所述测试平台生成每个测试项目的基础镜像,并将测试项目和基础镜像对应保存在镜像仓库中,所述镜像仓库位于所述测试平台;The test platform generates a basic image of each test item, and stores the test item and the basic image in a corresponding mirror warehouse, and the mirror warehouse is located on the test platform;

所述测试平台根据所述待测试任务的测试资源文件构建所述待测试任务的测试镜像,包括:The test platform constructs the test image of the task to be tested according to the test resource file of the task to be tested, including:

所述测试平台根据所述待测试任务所属的测试项目,从所述镜像仓库中获取所述待测试任务对应的基础镜像;The test platform acquires the basic image corresponding to the task to be tested from the image repository according to the test item to which the task to be tested belongs;

所述测试平台根据所述待测试任务的测试资源文件和所述待测试任务对应的基础镜像构建所述待测试任务的测试镜像;The test platform constructs the test image of the task to be tested according to the test resource file of the task to be tested and the basic image corresponding to the task to be tested;

所述测试平台将所述待测试任务的测试镜像保存在所述镜像仓库的所述待测试任务所属的测试项目中。The test platform saves the test image of the to-be-tested task in the test project to which the to-be-tested task of the mirror repository belongs.

由于预先在镜像仓库中建立不同的测试项目以及测试项目对应的基础镜像,故在生成待测试任务的测试镜像时,可以通过查询测试项目获得待测试任务的基础镜像,然后根据基础镜像和测试资源文件生成待测试任务的测试镜像,从而提高生成测试镜像的效率,同时便于管理。其次将生成的测试镜像也保存在对应的测试项目中,便于后续从镜像仓库中调用测试镜像生成测试容器。Since different test items and the basic images corresponding to the test items are established in the mirror warehouse in advance, when the test image of the task to be tested is generated, the basic image of the task to be tested can be obtained by querying the test item, and then the basic image of the task to be tested can be obtained according to the basic image and test resources. The file generates the test image of the task to be tested, thereby improving the efficiency of generating the test image and facilitating management. Secondly, the generated test image is also saved in the corresponding test project, so that it is convenient to call the test image from the mirror warehouse to generate the test container.

可选地,还包括:Optionally, also include:

所述测试平台接收用户端发送的测试状态查询请求;The test platform receives the test status query request sent by the client;

所述测试平台检测所述目标服务器中所述测试容器的运行状态;The test platform detects the running state of the test container in the target server;

所述测试平台根据所述测试容器的运行状态返回状态查询结果至所述用户端。The test platform returns a status query result to the client according to the running status of the test container.

测试平台为用户提供测试状态查询功能,便于用户实时获取待测试任务的执行状态。The test platform provides users with a test status query function, which is convenient for users to obtain the execution status of the task to be tested in real time.

一方面,本发明实施例提供了一种测试方法,包括:On the one hand, an embodiment of the present invention provides a test method, comprising:

目标服务器接收测试平台发送的测试任务;The target server receives the test task sent by the test platform;

所述目标服务器根据所述测试任务从所述测试平台中调用所述待测试任务的测试镜像并生成测试容器,所述待测试任务的测试镜像是所述测试平台根据所述待测试任务的测试资源文件构建的;The target server calls the test image of the task to be tested from the test platform according to the test task and generates a test container, and the test image of the task to be tested is the test image of the test platform according to the task to be tested. resource file built;

所述目标服务器在所述测试容器中执行所述待测试任务。The target server executes the task to be tested in the test container.

可选地,还包括:Optionally, also include:

所述目标服务器在所述待测试任务执行结束后,消除所述测试容器并释放所述测试容器占用的资源;After the execution of the task to be tested ends, the target server eliminates the test container and releases the resources occupied by the test container;

所述目标服务器生成测试报告,并将所述测试报告发送至所述测试平台。The target server generates a test report and sends the test report to the test platform.

可选地,所述目标服务器根据所述测试任务从所述测试平台中调用所述待测试任务的测试镜像并生成测试容器,包括:Optionally, the target server invokes the test image of the to-be-tested task from the test platform according to the test task and generates a test container, including:

所述目标服务器根据所述待测试任务所属的测试项目,从所述测试平台的镜像仓库中调用所述待测试任务的测试镜像并生成测试容器,所述镜像仓库中对应保存了每个测试项目下的待测试任务的测试镜像。The target server calls the test image of the task to be tested from the image repository of the test platform and generates a test container according to the test item to which the task to be tested belongs, and each test item is stored in the image repository correspondingly The test image of the task to be tested under.

一方面,本发明实施例提供了一种测试平台,包括:On the one hand, an embodiment of the present invention provides a test platform, including:

第一接收模块,用于获取待测试任务的测试资源文件;The first receiving module is used to obtain the test resource file of the task to be tested;

第一处理模块,用于根据所述待测试任务的测试资源文件构建所述待测试任务的测试镜像;a first processing module, configured to construct a test image of the task to be tested according to the test resource file of the task to be tested;

第一发送模块,用于将所述待测试任务发送至目标服务器,以使所述目标服务器调用所述待测试任务的测试镜像生成测试容器,并在所述测试容器中执行所述待测试任务。A first sending module, configured to send the task to be tested to a target server, so that the target server calls the test image of the task to be tested to generate a test container, and executes the task to be tested in the test container .

可选地,所述第一接收模块还用于:Optionally, the first receiving module is also used for:

接收所述目标服务器发送的测试报告,所述测试报告是所述目标服务器在所述待测试任务执行结束、消除所述测试容器并释放所述测试容器占用的资源之后生成的。Receive a test report sent by the target server, where the test report is generated by the target server after the execution of the task to be tested ends, the test container is eliminated, and the resources occupied by the test container are released.

可选地,所述第一处理模块还用于:Optionally, the first processing module is also used for:

在获取待测试任务的测试资源文件之前,生成每个测试项目的基础镜像,并将测试项目和基础镜像对应保存在镜像仓库中,所述镜像仓库位于测试平台;Before acquiring the test resource file of the task to be tested, a basic image of each test item is generated, and the test item and the basic image are correspondingly stored in an image warehouse, and the image warehouse is located on the test platform;

所述第一处理模块还用于:The first processing module is also used for:

根据所述待测试任务所属的测试项目,从所述镜像仓库中获取所述待测试任务对应的基础镜像;According to the test project to which the task to be tested belongs, obtain the basic image corresponding to the task to be tested from the image repository;

根据所述待测试任务的测试资源文件和所述待测试任务对应的基础镜像构建所述待测试任务的测试镜像;Build the test image of the task to be tested according to the test resource file of the task to be tested and the basic image corresponding to the task to be tested;

将所述待测试任务的测试镜像保存在所述镜像仓库的所述待测试任务所属的测试项目中。The test image of the to-be-tested task is stored in the test project to which the to-be-tested task of the image repository belongs.

可选地,所述第一接收模块还用于:Optionally, the first receiving module is also used for:

接收用户端发送的测试状态查询请求;Receive the test status query request sent by the client;

所述第一处理模块还用于:The first processing module is also used for:

检测所述目标服务器中所述测试容器的运行状态;detecting the running state of the test container in the target server;

所述第一发送模块还用于:The first sending module is also used for:

根据所述测试容器的运行状态返回状态查询结果至所述用户端。Returning a status query result to the client according to the running status of the test container.

一方面,本发明实施例提供了一种目标服务器,包括:On the one hand, an embodiment of the present invention provides a target server, including:

第二接收模块,用于接收测试平台发送的测试任务;The second receiving module is used to receive the test task sent by the test platform;

第二处理模块,用于根据所述测试任务从所述测试平台中调用所述待测试任务的测试镜像并生成测试容器,所述待测试任务的测试镜像是所述测试平台根据所述待测试任务的测试资源文件构建的;在所述测试容器中执行所述待测试任务。The second processing module is configured to call the test image of the task to be tested from the test platform according to the test task and generate a test container, where the test image of the task to be tested is the test image of the task to be tested by the test platform. The test resource file of the task is constructed; the task to be tested is executed in the test container.

可选地,还包括第二发送模块;Optionally, it also includes a second sending module;

所述第二处理模块还用于:The second processing module is also used for:

在所述待测试任务执行结束后,消除所述测试容器,释放所述测试容器占用的资源,生成测试报告;After the execution of the task to be tested is completed, the test container is eliminated, the resources occupied by the test container are released, and a test report is generated;

所述第二发送模块还用于:The second sending module is also used for:

将所述测试报告发送至所述测试平台。Send the test report to the test platform.

可选地,所述第二处理模块还用于:Optionally, the second processing module is also used for:

根据所述待测试任务所属的测试项目,从所述测试平台的镜像仓库中调用所述待测试任务的测试镜像并生成测试容器,所述镜像仓库中对应保存了每个测试项目下的待测试任务的测试镜像。According to the test project to which the task to be tested belongs, the test image of the task to be tested is called from the mirror warehouse of the test platform and a test container is generated, and the mirror warehouse correspondingly stores the to-be-tested under each test project A test image of the task.

一方面,本发明实施例提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现测试方法的步骤。In one aspect, an embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the testing method when executing the program.

一方面,本发明实施例提供了一种计算机可读存储介质,=其存储有可由计算机设备执行的计算机程序,当所述程序在计算机设备上运行时,使得所述计算机设备执行测试方法的步骤。On the one hand, an embodiment of the present invention provides a computer-readable storage medium, = it stores a computer program executable by a computer device, and when the program runs on the computer device, causes the computer device to execute the steps of the testing method .

附图说明Description of drawings

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

图1为本发明实施例提供的一种系统架构的结构示意图;1 is a schematic structural diagram of a system architecture according to an embodiment of the present invention;

图2为本发明实施例提供的一种测试平台的结构示意图;2 is a schematic structural diagram of a test platform provided by an embodiment of the present invention;

图3为本发明实施例提供的一种测试方法的流程示意图;3 is a schematic flowchart of a testing method according to an embodiment of the present invention;

图4为本发明实施例提供的一种测试方法的流程示意图;4 is a schematic flowchart of a testing method provided in an embodiment of the present invention;

图5为本发明实施例提供的一种测试平台的结构示意图;5 is a schematic structural diagram of a test platform provided by an embodiment of the present invention;

图6为本发明实施例提供的一种目标服务器的结构示意图;6 is a schematic structural diagram of a target server according to an embodiment of the present invention;

图7为本发明实施例提供的一种计算机设备的结构示意图。FIG. 7 is a schematic structural diagram of a computer device according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and beneficial effects of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

为了方便理解,下面对本发明实施例中涉及的名词进行解释。For the convenience of understanding, the terms involved in the embodiments of the present invention are explained below.

Docker:是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到任何流行的Linux机器上,也可以实现虚拟化,容器是完全使用沙箱机制,相互之间不会有任何接口。Docker: is an open source application container engine that allows developers to package their applications and dependencies into a portable container, and then publish it to any popular Linux machine. It can also be virtualized. The container is completely using sand. The box mechanism will not have any interface with each other.

本发明实施例中的测试方法可以应用于独立对应用软件进行测试,也可以对接原有的持续集成系统,为开发、测试、运维提供统一测试环境管理。具体实施中,本发明实施例中的测试方法适用的系统架构如图1所示,该系统架构中包括用户端101、测试平台102以及服务器集群103,用户端101可以是持续集成平台、智能手机、平板电脑或便携式个人计算机等。用户可以通过用户端101上的浏览器访问测试平台102,也可以直接通过调用应用程序接口(Application Programming Interface,简称API)访问测试平台102。测试平台102通过无线网络与服务器集群103连接,服务器集群103由多个服务器组成。用户端101上传待测试任务的测试资源文件至测试平台102,测试平台102根据待测试任务的测试资源文件构建待测试任务的测试镜像并将测试镜像保存至镜像仓库。测试平台102根据负载均衡从服务器集群103中确定目标服务器,并将待测试任务发送至目标服务器。目标服务器从镜像仓库中调用待测试任务的测试镜像生成测试容器,并在测试容器中执行待测试任务。目标服务器在待测试任务执行结束后,消除测试容器并释放测试容器占用的资源。The test method in the embodiment of the present invention can be applied to independently test application software, or can be connected to the original continuous integration system, so as to provide unified test environment management for development, testing, and operation and maintenance. In the specific implementation, the system architecture applicable to the testing method in the embodiment of the present invention is shown in FIG. 1 . The system architecture includes a client 101 , a test platform 102 and a server cluster 103 , and the client 101 may be a continuous integration platform, a smart phone , tablet or portable personal computer, etc. The user can access the test platform 102 through a browser on the client 101, or directly access the test platform 102 by calling an application programming interface (Application Programming Interface, API for short). The test platform 102 is connected to the server cluster 103 through a wireless network, and the server cluster 103 is composed of a plurality of servers. The client 101 uploads the test resource file of the task to be tested to the test platform 102, and the test platform 102 builds a test image of the task to be tested according to the test resource file of the task to be tested and saves the test image to the mirror warehouse. The test platform 102 determines the target server from the server cluster 103 according to the load balancing, and sends the task to be tested to the target server. The target server calls the test image of the task to be tested from the image repository to generate a test container, and executes the task to be tested in the test container. After the execution of the task to be tested ends, the target server eliminates the test container and releases the resources occupied by the test container.

进一步地,在图1所示的系统架构图中,测试平台102的结构示意图如图2所示,测试平台102包括:接口管理模块1021、镜像仓库管理模块1022、容器管理模块1023、日志管理模块1024、负载均衡模块1025。Further, in the system architecture diagram shown in FIG. 1 , a schematic structural diagram of the test platform 102 is shown in FIG. 2 , and the test platform 102 includes: an interface management module 1021 , an image warehouse management module 1022 , a container management module 1023 , and a log management module 1024 , a load balancing module 1025 .

接口管理模块1021用于接收用户端101的API调用请求,用户端101可以通过调用接口上传测试资源文件、构建测试镜像、查询测试运行状态、终止测试、下载测试报告等。The interface management module 1021 is used to receive an API call request from the client 101, and the client 101 can upload test resource files, build a test image, query the test running status, terminate the test, download the test report, etc. through the calling interface.

镜像仓库管理模块1022用于对测试平台中的镜像仓库进行管理,比如生成测试镜像并将测试镜像保存至镜像仓库,从镜像仓库中拉取测试镜像。另外对用户提供网页访问界面,用户可以通过网页对镜像仓库中的镜像进行管理,比如对镜像仓库中的测试镜像和基础镜像进行增删改查。The image repository management module 1022 is used to manage the image repository in the test platform, such as generating a test image and saving the test image to the image repository, and pulling the test image from the image repository. In addition, a web page access interface is provided for users, and users can manage the images in the mirror warehouse through the web page, such as adding, deleting, modifying, and checking the test images and basic images in the mirror warehouse.

容器管理模块1023用于管理容器和镜像的生命周期。另外对用户提供网页访问界面,用户可以通过网页对容器和镜像的生命周期进行管理。The container management module 1023 is used to manage the life cycle of containers and images. In addition, a web page access interface is provided for the user, and the user can manage the life cycle of the container and the image through the web page.

日志管理模块1024用于对测试平台的日志进行标准化管理,将日志划分为不同级别的日志信息并记录在对应的日志文件中。The log management module 1024 is configured to perform standardized management on the logs of the test platform, and divide the logs into log information of different levels and record them in corresponding log files.

负载均衡模块1025用于采用负载均衡算法为待测试任务分配目标服务器。The load balancing module 1025 is configured to use a load balancing algorithm to allocate target servers for the task to be tested.

基于图1所示系统架构图和图2所示的测试平台的结构示意图,本发明实施例提供了一种测试方法的流程,该方法的流程可以由测试平台和目标服务器交互执行,如图3所示,包括以下步骤:Based on the system architecture diagram shown in FIG. 1 and the structural schematic diagram of the test platform shown in FIG. 2 , an embodiment of the present invention provides a flow of a test method, and the flow of the method can be executed interactively by the test platform and the target server, as shown in FIG. 3 shown, including the following steps:

步骤S301,测试平台获取待测试任务的测试资源文件。Step S301, the test platform obtains the test resource file of the task to be tested.

具体地,用户端可以调用测试平台中上传测试资源文件的API,通过API上传测试资源文件,用户端也可以采用网页上传测试资源文件。Specifically, the client can call the API for uploading the test resource file in the test platform, and upload the test resource file through the API, and the client can also upload the test resource file through the webpage.

步骤S302,测试平台根据待测试任务的测试资源文件构建待测试任务的测试镜像。Step S302, the test platform builds a test image of the task to be tested according to the test resource file of the task to be tested.

测试平台预先根据用户请求建立不同的测试项目,不同的测试项目可以对应不同的应用程序,然后生成每个测试项目的基础镜像,并将测试项目和基础镜像对应保存在镜像仓库中,镜像仓库位于测试平台。具体地,基础镜像包括在测试应用程序时所依赖的基础环境,镜像仓库中将每个测试项目以及每个测试项目对应的基础镜像对应保存。The test platform establishes different test projects in advance according to user requests. Different test projects can correspond to different applications, and then generates the basic image of each test project, and saves the test project and the basic image in the mirror warehouse. The mirror warehouse is located in testing platform. Specifically, the base image includes the base environment on which the application program is tested, and each test item and the base image corresponding to each test item are stored in the image repository.

在一种可能的实施方式中,测试平台在构建待测试任务的测试镜像时,先根据待测试任务所属的测试项目,从镜像仓库中获取待测试任务对应的基础镜像。然后根据待测试任务的测试资源文件和待测试任务对应的基础镜像构建待测试任务的测试镜像。之后再将测试平台将待测试任务的测试镜像保存在镜像仓库的待测试任务所属的测试项目中。In a possible implementation, when constructing the test image of the task to be tested, the test platform first obtains the basic image corresponding to the task to be tested from the image repository according to the test item to which the task to be tested belongs. Then, a test image of the to-be-tested task is constructed according to the test resource file of the to-be-tested task and the basic image corresponding to the to-be-tested task. Then, the test platform saves the test image of the to-be-tested task in the test project to which the to-be-tested task of the mirror repository belongs.

示例性地,设定镜像仓库中包括三个测试项目,分别为测试项目A、测试项目B以及测试项目C,测试项目A对应基础镜像a,测试项目B对应基础镜像b,测试项目C对应基础镜像c。设定待测试任务所属的测试项目为测试项目A,则从镜像仓库中查询测试项目A下的基础镜像a,然后采用基础镜像a和待测试任务的测试资源文件构建DOCKERFILE(容器文件),然后调用DOCKER软件开发工具包(Software Development Kit,简称SDK)根据DOCKERFILE构建待测试任务的测试镜像,并将待测试任务的测试镜像保存在镜像仓库中的测试项目A中。由于预先在镜像仓库中建立不同的测试项目以及测试项目对应的基础镜像,故在生成待测试任务的测试镜像时,可以通过查询测试项目获得待测试任务的基础镜像,然后根据基础镜像和测试资源文件生成待测试任务的测试镜像,从而提高生成测试镜像的效率,同时便于管理。其次将生成的测试镜像也保存在对应的测试项目中,便于后续从镜像仓库中调用测试镜像生成测试容器。Exemplarily, the image repository is set to include three test items, namely, test item A, test item B, and test item C. Test item A corresponds to base image a, test item B corresponds to base image b, and test item C corresponds to base image mirror c. Set the test project to which the task to be tested belongs as test project A, query the base image a under test project A from the mirror warehouse, and then use the base image a and the test resource file of the task to be tested to build a DOCKERFILE (container file), and then Invoke the DOCKER software development kit (Software Development Kit, SDK for short) to build the test image of the task to be tested according to the DOCKERFILE, and save the test image of the task to be tested in the test project A in the mirror repository. Since different test items and the basic images corresponding to the test items are established in the mirror warehouse in advance, when the test image of the task to be tested is generated, the basic image of the task to be tested can be obtained by querying the test item, and then the basic image of the task to be tested can be obtained according to the basic image and test resources. The file generates the test image of the task to be tested, thereby improving the efficiency of generating the test image and facilitating management. Secondly, the generated test image is also saved in the corresponding test project, so that it is convenient to call the test image from the mirror warehouse to generate the test container.

步骤S303,测试平台将待测试任务发送至目标服务器。Step S303, the test platform sends the task to be tested to the target server.

在一种可能的实施方式中,目标服务器可以是一个独立的服务器。In a possible implementation, the target server may be an independent server.

在一种可能的实施方式中,目标服务器可以是服务器集群中的一个服务器,目标服务器是测试平台根据负载均衡从服务器集群中确定的。采用负载均衡从服务器集群中确定目标服务器,并采用目标服务器执行待测试任务,既保证了待测试任务的测试效率,同时使服务器集群中资源得到优化利用。In a possible implementation manner, the target server may be a server in a server cluster, and the target server is determined by the test platform from the server cluster according to load balancing. The target server is determined from the server cluster by load balancing, and the target server is used to execute the task to be tested, which not only ensures the test efficiency of the task to be tested, but also optimizes the utilization of resources in the server cluster.

具体地,负载均衡算法包括轮询(Round Robin)法、随机法、随机轮询法、源地址哈希法、加权轮询(Weight Round Robin)法等。Specifically, the load balancing algorithm includes a round robin method, a random method, a random round robin method, a source address hash method, a weighted round robin method, and the like.

轮询法具体为:将请求按顺序轮流分配到服务器上,均衡的对待每一台服务器,而不关心服务器实际的连接数和当前的系统负载。The polling method is specifically: allocating requests to the servers in turn in turn, and treating each server in a balanced manner, regardless of the actual number of connections to the server and the current system load.

随机法具体为:通过系统随机函数,根据服务器列表的大小值来随机选取其中一台进行访问。The random method is specifically: through the system random function, one of the servers is randomly selected for access according to the size value of the server list.

随机轮询法具体为:将随机法和轮询法结合起来,在轮询节点时,随机选择一个节点作为开始位置索引(index),此后每次选择下一个节点来处理请求。The random polling method is specifically: combining the random method and the polling method, when polling the nodes, randomly select a node as the starting position index (index), and then select the next node each time to process the request.

源地址哈希法具体为:根据服务消费者请求客户端的IP地址,通过哈希函数计算得到一个哈希值,将此哈希值和服务器列表的大小进行取模运算,得到的结果便是要访问的服务器地址的序号。The source address hashing method is specifically: according to the IP address of the client requesting the service consumer, a hash value is calculated by the hash function, and the hash value and the size of the server list are modulo operation, and the obtained result is The serial number of the accessed server address.

加权轮询法具体为:给配置高、负载低的服务器分配更高的权重,使其能处理更多的请求,而配置低、负载高的服务器,则给其分配较低的权重,降低其系统负载,将请求按照顺序和权重分配给服务器。The weighted round-robin method is as follows: assign a higher weight to a server with a high configuration and a low load, so that it can process more requests, while a server with a low configuration and a high load is assigned a lower weight to reduce its load. System load, which distributes requests to servers in order and weight.

采用负载均衡从服务器集群中确定目标服务器,并采用目标服务器执行待测试任务,既保证了待测试任务的测试效率,同时使服务器集群中资源得到优化利用。The target server is determined from the server cluster by load balancing, and the target server is used to execute the task to be tested, which not only ensures the test efficiency of the task to be tested, but also optimizes the utilization of resources in the server cluster.

步骤S304,目标服务器调用待测试任务的测试镜像生成测试容器。Step S304, the target server invokes the test image of the task to be tested to generate a test container.

具体地,目标服务器根据待测试任务所属的测试项目,从测试平台的镜像仓库中调用待测试任务的测试镜像并生成测试容器,镜像仓库中对应保存了每个测试项目下的待测试任务的测试镜像。Specifically, the target server calls the test image of the task to be tested from the image repository of the test platform and generates a test container according to the test item to which the task to be tested belongs, and the image repository correspondingly stores the test of the task to be tested under each test item. mirror.

示例性地,设定镜像仓库中包括三个测试项目,分别为测试项目A、测试项目B以及测试项目C,测试项目A对应基础镜像a,测试项目B对应基础镜像b,测试项目C对应基础镜像c。设定待测试任务所属的测试项目为测试项目A,则从镜像仓库中查询测试项目A下的测试镜像,获得待测试任务的测试镜像,然后根据待测试任务的测试镜像生成测试容器。Exemplarily, the image repository is set to include three test items, namely, test item A, test item B, and test item C. Test item A corresponds to base image a, test item B corresponds to base image b, and test item C corresponds to base image mirror c. Set the test project to which the task to be tested belongs as test project A, query the test image under test project A from the mirror repository, obtain the test image of the task to be tested, and then generate a test container according to the test image of the task to be tested.

步骤S305,目标服务器在测试容器中执行待测试任务。Step S305, the target server executes the task to be tested in the test container.

本发明实施例中,测试平台获取待测试任务的测试资源文件后,构建待测试任务的测试镜像,然后将待测试任务发送至目标服务器,目标服务器调用待测试任务的测试镜像生成测试容器,并在测试容器中执行待测试任务。由于构建测试容器作为待测试任务的执行环境,故不需要预先在测试机器上部署测试环境,从而提高待测试任务的执行速度。In the embodiment of the present invention, after obtaining the test resource file of the task to be tested, the test platform builds the test image of the task to be tested, and then sends the task to be tested to the target server, and the target server calls the test image of the task to be tested to generate a test container, and Execute the task to be tested in the test container. Since the test container is constructed as the execution environment of the task to be tested, it is not necessary to deploy the test environment on the test machine in advance, thereby improving the execution speed of the task to be tested.

可选地,目标服务器在待测试任务执行结束后,消除测试容器并释放测试容器占用的资源,目标服务器生成测试报告,并将测试报告发送至测试平台。Optionally, after the execution of the task to be tested ends, the target server eliminates the test container and releases the resources occupied by the test container, the target server generates a test report, and sends the test report to the test platform.

具体实施中,当消除测试容器后,可以释放测试容器占用的目标服务器中的硬件资源,故目标服务器在生成其他待测试任务的测试容器时,可以复用释放的硬件资源。目标服务器在生成测试报告后,可以将测试报告发送至服务器集群中的主服务器,然后由主服务器将测试报告发送至测试平台。后续测试平台在接收到用户端发送的测试报告下载请求时,将测试报告发送至用户端。In a specific implementation, when the test container is eliminated, the hardware resources in the target server occupied by the test container can be released, so the target server can reuse the released hardware resources when generating test containers for other tasks to be tested. After the target server generates the test report, it can send the test report to the master server in the server cluster, and then the master server sends the test report to the test platform. The subsequent test platform sends the test report to the client when receiving the download request of the test report sent by the client.

由于测试容器在执行完待测试任务后,自动释放占用的资源,相较于现有人工清除测试机器上的测试环境来说,既实现了测试机器上硬件资源的无损回收,又提高了测试资源的利用率。Since the test container automatically releases the occupied resources after executing the task to be tested, compared with the existing manual clearing of the test environment on the test machine, it not only realizes the non-destructive recovery of hardware resources on the test machine, but also improves the test resources. utilization rate.

可选地,用户端上传待测任务的测试资源文件之后,可以发送查询请求至测试平台对测试任务的执行状态进行查询,测试平台接收用户端发送的测试状态查询请求后,检测目标服务器中测试容器的运行状态,然后根据测试容器的运行状态返回状态查询结果至用户端。Optionally, after uploading the test resource file of the task to be tested, the client can send a query request to the test platform to query the execution status of the test task. After receiving the test status query request sent by the client, the test platform detects the test in the target server. The running status of the container, and then return the status query result to the user according to the running status of the test container.

具体地,测试平台为用户提供浏览器访问,用户可以在用户端打开测试平台对应的网页查询测试任务的执行状态。测试容器的运行状态包括初建状态、运行状态、停止状态、暂停状态以及删除状态。当创建测试容器后不立即启动运行,测试容器进入初建状态。当创建测试容器后立即启动运行,测试容器进入运行状态。当目标服务器死机或者断电时,测试容器进入停止状态。当目标服务器接收到容器暂停指令时,暂停测试容器,测试容器进入暂停状态。当目标服务器接收到容器删除指令时,删除测试容器,测试容器进入删除状态。Specifically, the test platform provides browser access for the user, and the user can open a web page corresponding to the test platform on the user terminal to query the execution status of the test task. The running status of the test container includes the initial construction status, running status, stopped status, suspended status and deletion status. When the test container is not started and run immediately after it is created, the test container enters the initial state. When the test container is created and started to run immediately, the test container enters the running state. When the target server crashes or loses power, the test container enters the stopped state. When the target server receives the container suspension instruction, it suspends the test container, and the test container enters the suspended state. When the target server receives the container deletion instruction, it deletes the test container, and the test container enters the deletion state.

另外,用户通过网页也可以对镜像仓库、测试项目、基础镜像、测试镜像、服务器集群进行查询和管理,比如对测试项目、基础镜像、测试镜像进行增删改查等。用户通过网页还可以通过网页下载测试报告。测试平台为用户提供浏览器访问,方便用户对测试平台中的镜像仓库、镜像、容器进行管理,其次,使测试平台不仅适用于测试人员,同时适用于开发人员、运维人员等,为开发、测试、运维提供统一的测试环境管理,大大降低测试环境管理维护的成本。In addition, users can also query and manage image warehouses, test projects, basic images, test images, and server clusters through web pages, such as adding, deleting, modifying, and checking test projects, basic images, and test images. The user can also download the test report through the web page. The test platform provides users with browser access, which is convenient for users to manage image warehouses, images, and containers in the test platform. Secondly, the test platform is not only suitable for testers, but also for developers, operation and maintenance personnel, etc. Test, operation and maintenance provide unified test environment management, which greatly reduces the cost of test environment management and maintenance.

可选地,当测试报告中显示测试出错时,用户可以通过网页选择出错的测试镜像生成调试所用的测试容器,然后根据测试容器内部的交互过程进行错误调试,定位出问题。在调试完成后直接销毁测试容器,释放测试容器占用的硬件资源。Optionally, when a test error is displayed in the test report, the user can select the erroneous test image through the webpage to generate a test container for debugging, and then perform error debugging according to the interaction process inside the test container to locate the problem. Destroy the test container directly after debugging to release the hardware resources occupied by the test container.

为了更好的解释本发明实施例,下面结合具体的实施场景描述本发明实施例提供的一种测试方法,该方法由持续集成平台、测试平台、目标服务器交互执行,如图4所示,该方法包括以下步骤:In order to better explain the embodiments of the present invention, the following describes a test method provided by the embodiments of the present invention in combination with specific implementation scenarios. The method is interactively executed by a continuous integration platform, a test platform, and a target server. As shown in FIG. 4 , the The method includes the following steps:

步骤S401,持续集成平台调用测试平台的API,上传待测试任务的测试资源文件。Step S401, the continuous integration platform invokes the API of the test platform, and uploads the test resource file of the task to be tested.

步骤S402,测试平台根据待测试任务所属的测试项目,从镜像仓库中获取待测试任务对应的基础镜像。Step S402, the test platform obtains a basic image corresponding to the task to be tested from the image repository according to the test item to which the task to be tested belongs.

测试平台预先生成每个测试项目的基础镜像,并将测试项目和基础镜像对应保存在镜像仓库中,镜像仓库位于测试平台。The test platform pre-generates the basic image of each test project, and stores the test project and the basic image in the mirror warehouse, and the mirror warehouse is located on the test platform.

步骤S403,测试平台根据待测试任务的测试资源文件和待测试任务对应的基础镜像构建待测试任务的测试镜像。Step S403, the test platform constructs a test image of the task to be tested according to the test resource file of the task to be tested and the basic image corresponding to the task to be tested.

步骤S404,测试平台将待测试任务的测试镜像保存在镜像仓库的待测试任务所属的测试项目中。Step S404, the test platform saves the test image of the task to be tested in the test project to which the task to be tested belongs in the mirror repository.

步骤S405,测试平台根据负载均衡从服务器集群中确定目标服务器。Step S405, the test platform determines the target server from the server cluster according to the load balancing.

步骤S406,测试平台将所述待测试任务发送至目标服务器。Step S406, the test platform sends the task to be tested to the target server.

步骤S407,目标服务器根据待测试任务所属的测试项目,从测试平台的镜像仓库中调用待测试任务的测试镜像。Step S407, the target server calls the test image of the task to be tested from the image repository of the test platform according to the test item to which the task to be tested belongs.

步骤S408,目标服务器根据待测试任务的测试镜像生成测试容器。Step S408, the target server generates a test container according to the test image of the task to be tested.

步骤S409,目标服务器在待测试任务执行结束后,消除测试容器并释放测试容器占用的资源。Step S409, after the execution of the task to be tested ends, the target server removes the test container and releases the resources occupied by the test container.

步骤S410,目标服务器生成测试报告。Step S410, the target server generates a test report.

步骤S411,目标服务器将测试报告发送至测试平台。Step S411, the target server sends the test report to the test platform.

本发明实施例中,由于构建测试容器作为待测试任务的执行环境,故不需要预先在测试机器上部署测试环境,从而提高待测试任务的执行速度。其次,测试容器在执行完待测试任务后,自动释放占用的资源,相较于现有人工清除测试机器上的测试环境来说,既实现了测试机器上硬件资源的无损回收,又提高了测试资源的利用率。另外,测试平台可以对接持续集成平台,从而提高自动化运行的效率。In the embodiment of the present invention, since the test container is constructed as the execution environment of the task to be tested, it is not necessary to deploy the test environment on the test machine in advance, thereby improving the execution speed of the task to be tested. Secondly, the test container automatically releases the occupied resources after executing the task to be tested. Compared with the existing manual clearing of the test environment on the test machine, it not only realizes the non-destructive recovery of hardware resources on the test machine, but also improves the test results. resource utilization. In addition, the test platform can be connected to the continuous integration platform, thereby improving the efficiency of automated operation.

基于相同的技术构思,本发明实施例提供了一种测试平台,如图5所示,该测试平台500包括:Based on the same technical concept, an embodiment of the present invention provides a test platform. As shown in FIG. 5 , the test platform 500 includes:

第一接收模块501,用于获取待测试任务的测试资源文件;The first receiving module 501 is used to obtain the test resource file of the task to be tested;

第一处理模块502,用于根据所述待测试任务的测试资源文件构建所述待测试任务的测试镜像;A first processing module 502, configured to construct a test image of the task to be tested according to the test resource file of the task to be tested;

第一发送模块503,用于将所述待测试任务发送至目标服务器,以使所述目标服务器调用所述待测试任务的测试镜像生成测试容器,并在所述测试容器中执行所述待测试任务。The first sending module 503 is configured to send the task to be tested to a target server, so that the target server calls the test image of the task to be tested to generate a test container, and executes the test to be tested in the test container Task.

可选地,所述目标服务器是所述测试平台根据负载均衡从服务器集群中确定的。Optionally, the target server is determined by the test platform from a server cluster according to load balancing.

可选地,所述第一接收模块501还用于:Optionally, the first receiving module 501 is further configured to:

接收所述目标服务器发送的测试报告,所述测试报告是所述目标服务器在所述待测试任务执行结束、消除所述测试容器并释放所述测试容器占用的资源之后生成的。Receive a test report sent by the target server, where the test report is generated by the target server after the execution of the task to be tested ends, the test container is eliminated, and the resources occupied by the test container are released.

可选地,所述第一处理模块502还用于:Optionally, the first processing module 502 is further configured to:

在获取待测试任务的测试资源文件之前,生成每个测试项目的基础镜像,并将测试项目和基础镜像对应保存在镜像仓库中,所述镜像仓库位于测试平台;Before acquiring the test resource file of the task to be tested, a basic image of each test item is generated, and the test item and the basic image are correspondingly stored in an image warehouse, and the image warehouse is located on the test platform;

所述第一处理模块502还用于:The first processing module 502 is also used for:

根据所述待测试任务所属的测试项目,从所述镜像仓库中获取所述待测试任务对应的基础镜像;According to the test project to which the task to be tested belongs, obtain the basic image corresponding to the task to be tested from the image repository;

根据所述待测试任务的测试资源文件和所述待测试任务对应的基础镜像构建所述待测试任务的测试镜像;Build the test image of the task to be tested according to the test resource file of the task to be tested and the basic image corresponding to the task to be tested;

将所述待测试任务的测试镜像保存在所述镜像仓库的所述待测试任务所属的测试项目中。The test image of the to-be-tested task is stored in the test project to which the to-be-tested task of the image repository belongs.

可选地,所述第一接收模块501还用于:Optionally, the first receiving module 501 is further configured to:

接收用户端发送的测试状态查询请求;Receive the test status query request sent by the client;

所述第一处理模块502还用于:The first processing module 502 is also used for:

检测所述目标服务器中所述测试容器的运行状态;detecting the running state of the test container in the target server;

所述第一发送模块503还用于:The first sending module 503 is also used for:

根据所述测试容器的运行状态返回状态查询结果至所述用户端。Returning a status query result to the client according to the running status of the test container.

基于相同的技术构思,本发明实施例提供了一种目标服务器,如图6所示,该目标服务器600包括:Based on the same technical concept, an embodiment of the present invention provides a target server. As shown in FIG. 6 , the target server 600 includes:

第二接收模块601,用于接收测试平台发送的测试任务;The second receiving module 601 is used for receiving the test task sent by the test platform;

第二处理模块602,用于根据所述测试任务从所述测试平台中调用所述待测试任务的测试镜像并生成测试容器,所述待测试任务的测试镜像是所述测试平台根据所述待测试任务的测试资源文件构建的;在所述测试容器中执行所述待测试任务。The second processing module 602 is configured to call the test image of the task to be tested from the test platform according to the test task and generate a test container, where the test image of the task to be tested is the test image of the task to be tested according to the test platform. The test resource file of the test task is constructed; the to-be-tested task is executed in the test container.

可选地,还包括第二发送模块603;Optionally, it also includes a second sending module 603;

所述第二处理模块602还用于:The second processing module 602 is also used for:

在所述待测试任务执行结束后,消除所述测试容器,释放所述测试容器占用的资源,生成测试报告;After the execution of the task to be tested is completed, the test container is eliminated, the resources occupied by the test container are released, and a test report is generated;

所述第二发送模块603还用于:The second sending module 603 is also used for:

将所述测试报告发送至所述测试平台。Send the test report to the test platform.

可选地,所述第二处理模块602具体用于:Optionally, the second processing module 602 is specifically configured to:

根据所述待测试任务所属的测试项目,从所述测试平台的镜像仓库中调用所述待测试任务的测试镜像并生成测试容器,所述镜像仓库中对应保存了每个测试项目下的待测试任务的测试镜像。According to the test project to which the task to be tested belongs, the test image of the task to be tested is called from the mirror warehouse of the test platform and a test container is generated, and the mirror warehouse correspondingly stores the to-be-tested under each test project A test image of the task.

基于相同的技术构思,本发明实施例提供了一种计算机设备,如图7所示,包括至少一个处理器701,以及与至少一个处理器连接的存储器702,本发明实施例中不限定处理器701与存储器702之间的具体连接介质,图7中处理器701和存储器702之间通过总线连接为例。总线可以分为地址总线、数据总线、控制总线等。Based on the same technical idea, an embodiment of the present invention provides a computer device, as shown in FIG. 7 , including at least one processor 701 and a memory 702 connected to the at least one processor, and the embodiment of the present invention does not limit the processor The specific connection medium between 701 and the memory 702 is an example of the connection between the processor 701 and the memory 702 through a bus in FIG. 7 . The bus can be divided into address bus, data bus, control bus and so on.

在本发明实施例中,存储器702存储有可被至少一个处理器701执行的指令,至少一个处理器701通过执行存储器702存储的指令,可以执行前述的测试方法中所包括的步骤。In this embodiment of the present invention, the memory 702 stores instructions that can be executed by at least one processor 701 , and the at least one processor 701 can execute the steps included in the foregoing testing method by executing the instructions stored in the memory 702 .

其中,处理器701是计算机设备的控制中心,可以利用各种接口和线路连接计算机设备的各个部分,通过运行或执行存储在存储器702内的指令以及调用存储在存储器702内的数据,从而进行自动化测试。可选的,处理器701可包括一个或多个处理单元,处理器701可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器701中。在一些实施例中,处理器701和存储器702可以在同一芯片上实现,在一些实施例中,它们也可以在独立的芯片上分别实现。Among them, the processor 701 is the control center of the computer equipment, and can use various interfaces and lines to connect various parts of the computer equipment, by running or executing the instructions stored in the memory 702 and calling the data stored in the memory 702, so as to automate test. Optionally, the processor 701 may include one or more processing units, and the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The modulation processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may also not be integrated into the processor 701 . In some embodiments, the processor 701 and the memory 702 may be implemented on the same chip, and in some embodiments, they may be implemented separately on separate chips.

处理器701可以是通用处理器,例如中央处理器(CPU)、数字信号处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本发明实施例中公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。The processor 701 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application specific integrated circuit (ASIC), a field programmable gate array or other programmable logic devices, discrete gates or transistors Logic devices and discrete hardware components can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

存储器702作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。存储器702可以包括至少一种类型的存储介质,例如可以包括闪存、硬盘、多媒体卡、卡型存储器、随机访问存储器(Random AccessMemory,RAM)、静态随机访问存储器(Static Random Access Memory,SRAM)、可编程只读存储器(Programmable Read Only Memory,PROM)、只读存储器(Read Only Memory,ROM)、带电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁性存储器、磁盘、光盘等等。存储器702是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本发明实施例中的存储器702还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。As a non-volatile computer-readable storage medium, the memory 702 can be used to store non-volatile software programs, non-volatile computer-executable programs and modules. The memory 702 may include at least one type of storage medium, for example, may include a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a Programmable Read Only Memory (PROM), Read Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Magnetic Memory, Disk, CD and so on. Memory 702 is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 702 in this embodiment of the present invention may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and/or data.

基于相同的技术构思,本发明实施例提供了一种计算机可读存储介质,其存储有可由计算机设备执行的计算机程序,当所述程序在计算机设备上运行时,使得所述计算机设备执行测试方法的步骤。Based on the same technical idea, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program executable by a computer device, and when the program runs on the computer device, causes the computer device to execute the test method A step of.

本领域内的技术人员应明白,本发明的实施例可提供为方法、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, or as a computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although preferred embodiments of the present invention have been described, additional changes and modifications to these embodiments may occur to those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiment and all changes and modifications that fall within the scope of the present invention.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit and scope of the invention. Thus, provided that these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims (16)

1.一种测试方法,其特征在于,包括:1. a test method, is characterized in that, comprises: 测试平台获取待测试任务的测试资源文件;The test platform obtains the test resource file of the task to be tested; 所述测试平台根据所述待测试任务的测试资源文件构建所述待测试任务的测试镜像;The test platform constructs the test image of the task to be tested according to the test resource file of the task to be tested; 所述测试平台将所述待测试任务发送至目标服务器,以使所述目标服务器调用所述待测试任务的测试镜像生成测试容器,并在所述测试容器中执行所述待测试任务。The test platform sends the task to be tested to the target server, so that the target server calls the test image of the task to be tested to generate a test container, and executes the task to be tested in the test container. 2.如权利要求1所述的方法,其特征在于,还包括:2. The method of claim 1, further comprising: 所述测试平台接收所述目标服务器发送的测试报告,所述测试报告是所述目标服务器在所述待测试任务执行结束、消除所述测试容器并释放所述测试容器占用的资源之后生成的。The test platform receives a test report sent by the target server, and the test report is generated by the target server after the execution of the task to be tested ends, the test container is eliminated, and the resources occupied by the test container are released. 3.如权利要求1所述的方法,其特征在于,所述测试平台获取待测试任务的测试资源文件之前,还包括:3. method as claimed in claim 1, is characterized in that, before described test platform obtains the test resource file of task to be tested, also comprises: 所述测试平台生成每个测试项目的基础镜像,并将测试项目和基础镜像对应保存在镜像仓库中,所述镜像仓库位于所述测试平台;The test platform generates a basic image of each test item, and stores the test item and the basic image in a corresponding mirror warehouse, and the mirror warehouse is located on the test platform; 所述测试平台根据所述待测试任务的测试资源文件构建所述待测试任务的测试镜像,包括:The test platform constructs the test image of the task to be tested according to the test resource file of the task to be tested, including: 所述测试平台根据所述待测试任务所属的测试项目,从所述镜像仓库中获取所述待测试任务对应的基础镜像;The test platform acquires the basic image corresponding to the task to be tested from the image repository according to the test item to which the task to be tested belongs; 所述测试平台根据所述待测试任务的测试资源文件和所述待测试任务对应的基础镜像构建所述待测试任务的测试镜像;The test platform constructs the test image of the task to be tested according to the test resource file of the task to be tested and the basic image corresponding to the task to be tested; 所述测试平台将所述待测试任务的测试镜像保存在所述镜像仓库的所述待测试任务所属的测试项目中。The test platform saves the test image of the to-be-tested task in the test project to which the to-be-tested task of the mirror repository belongs. 4.如权利要求1所述的方法,其特征在于,还包括:4. The method of claim 1, further comprising: 所述测试平台接收用户端发送的测试状态查询请求;The test platform receives the test status query request sent by the client; 所述测试平台检测所述目标服务器中所述测试容器的运行状态;The test platform detects the running state of the test container in the target server; 所述测试平台根据所述测试容器的运行状态返回状态查询结果至所述用户端。The test platform returns a status query result to the client according to the running status of the test container. 5.一种测试方法,其特征在于,包括:5. a test method, is characterized in that, comprises: 目标服务器接收测试平台发送的测试任务;The target server receives the test task sent by the test platform; 所述目标服务器根据所述测试任务从所述测试平台中调用所述待测试任务的测试镜像并生成测试容器,所述待测试任务的测试镜像是所述测试平台根据所述待测试任务的测试资源文件构建的;The target server calls the test image of the task to be tested from the test platform according to the test task and generates a test container, and the test image of the task to be tested is the test image of the test platform according to the task to be tested. resource file built; 所述目标服务器在所述测试容器中执行所述待测试任务。The target server executes the task to be tested in the test container. 6.如权利要求5所述的方法,其特征在于,还包括:6. The method of claim 5, further comprising: 所述目标服务器在所述待测试任务执行结束后,消除所述测试容器并释放所述测试容器占用的资源;After the execution of the task to be tested ends, the target server eliminates the test container and releases the resources occupied by the test container; 所述目标服务器生成测试报告,并将所述测试报告发送至所述测试平台。The target server generates a test report and sends the test report to the test platform. 7.如权利要求5所述的方法,其特征在于,所述目标服务器根据所述测试任务从所述测试平台中调用所述待测试任务的测试镜像并生成测试容器,包括:7. The method of claim 5, wherein the target server invokes the test image of the task to be tested from the test platform according to the test task and generates a test container, comprising: 所述目标服务器根据所述待测试任务所属的测试项目,从所述测试平台的镜像仓库中调用所述待测试任务的测试镜像并生成测试容器,所述镜像仓库中对应保存了每个测试项目下的待测试任务的测试镜像。The target server calls the test image of the task to be tested from the image repository of the test platform and generates a test container according to the test item to which the task to be tested belongs, and each test item is stored in the image repository correspondingly The test image of the task to be tested under. 8.一种测试平台,其特征在于,包括:8. A test platform, characterized in that, comprising: 第一接收模块,用于获取待测试任务的测试资源文件;The first receiving module is used to obtain the test resource file of the task to be tested; 第一处理模块,用于根据所述待测试任务的测试资源文件构建所述待测试任务的测试镜像;a first processing module, configured to construct a test image of the task to be tested according to the test resource file of the task to be tested; 第一发送模块,用于将所述待测试任务发送至目标服务器,以使所述目标服务器调用所述待测试任务的测试镜像生成测试容器,并在所述测试容器中执行所述待测试任务。A first sending module, configured to send the task to be tested to a target server, so that the target server calls the test image of the task to be tested to generate a test container, and executes the task to be tested in the test container . 9.如权利要求8所述的测试平台,其特征在于,所述第一接收模块还用于:9. test platform as claimed in claim 8, is characterized in that, described first receiving module is also used for: 接收所述目标服务器发送的测试报告,所述测试报告是所述目标服务器在所述待测试任务执行结束、消除所述测试容器并释放所述测试容器占用的资源之后生成的。Receive a test report sent by the target server, where the test report is generated by the target server after the execution of the task to be tested ends, the test container is eliminated, and the resources occupied by the test container are released. 10.如权利要求8所述的测试平台,其特征在于,所述第一处理模块还用于:10. The test platform of claim 8, wherein the first processing module is further used for: 在获取待测试任务的测试资源文件之前,生成每个测试项目的基础镜像,并将测试项目和基础镜像对应保存在镜像仓库中,所述镜像仓库位于测试平台;Before acquiring the test resource file of the task to be tested, a basic image of each test item is generated, and the test item and the basic image are correspondingly stored in an image warehouse, and the image warehouse is located on the test platform; 所述第一处理模块还用于:The first processing module is also used for: 根据所述待测试任务所属的测试项目,从所述镜像仓库中获取所述待测试任务对应的基础镜像;According to the test project to which the task to be tested belongs, obtain the basic image corresponding to the task to be tested from the image repository; 根据所述待测试任务的测试资源文件和所述待测试任务对应的基础镜像构建所述待测试任务的测试镜像;Build the test image of the task to be tested according to the test resource file of the task to be tested and the basic image corresponding to the task to be tested; 将所述待测试任务的测试镜像保存在所述镜像仓库的所述待测试任务所属的测试项目中。The test image of the to-be-tested task is stored in the test project to which the to-be-tested task of the image repository belongs. 11.如权利要求8所述的测试平台,其特征在于,所述第一接收模块还用于:11. test platform as claimed in claim 8, is characterized in that, described first receiving module is also used for: 接收用户端发送的测试状态查询请求;Receive the test status query request sent by the client; 所述第一处理模块还用于:The first processing module is also used for: 检测所述目标服务器中所述测试容器的运行状态;detecting the running state of the test container in the target server; 所述第一发送模块还用于:The first sending module is also used for: 根据所述测试容器的运行状态返回状态查询结果至所述用户端。Returning a status query result to the client according to the running status of the test container. 12.一种目标服务器,其特征在于,包括:12. A target server, characterized in that, comprising: 第二接收模块,用于接收测试平台发送的测试任务;The second receiving module is used to receive the test task sent by the test platform; 第二处理模块,用于根据所述测试任务从所述测试平台中调用所述待测试任务的测试镜像并生成测试容器,所述待测试任务的测试镜像是所述测试平台根据所述待测试任务的测试资源文件构建的;在所述测试容器中执行所述待测试任务。The second processing module is configured to call the test image of the task to be tested from the test platform according to the test task and generate a test container, where the test image of the task to be tested is the test image of the task to be tested by the test platform. The test resource file of the task is constructed; the task to be tested is executed in the test container. 13.如权利要求12所述的目标服务器,其特征在于,还包括第二发送模块;13. The target server of claim 12, further comprising a second sending module; 所述第二处理模块还用于:The second processing module is also used for: 在所述待测试任务执行结束后,消除所述测试容器,释放所述测试容器占用的资源,生成测试报告;After the execution of the task to be tested is completed, the test container is eliminated, the resources occupied by the test container are released, and a test report is generated; 所述第二发送模块还用于:The second sending module is also used for: 将所述测试报告发送至所述测试平台。Send the test report to the test platform. 14.如权利要求12所述的目标服务器,其特征在于,所述第二处理模块还用于:14. The target server according to claim 12, wherein the second processing module is further configured to: 根据所述待测试任务所属的测试项目,从所述测试平台的镜像仓库中调用所述待测试任务的测试镜像并生成测试容器,所述镜像仓库中对应保存了每个测试项目下的待测试任务的测试镜像。According to the test project to which the task to be tested belongs, the test image of the task to be tested is called from the mirror warehouse of the test platform and a test container is generated, and the mirror warehouse correspondingly stores the to-be-tested under each test project A test image of the task. 15.一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现权利要求1~4任一权利要求或权利要求5~7任一权利要求所述方法的步骤。15. A computer device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements any one of claims 1 to 4 when the processor executes the program Claims or the steps of the method of any of claims 5-7. 16.一种计算机可读存储介质,其特征在于,其存储有可由计算机设备执行的计算机程序,当所述程序在计算机设备上运行时,使得所述计算机设备执行权利要求1~4任一权利要求或权利要求5~7任一权利要求所述方法的步骤。16. A computer-readable storage medium, characterized in that it stores a computer program executable by a computer device, when the program runs on the computer device, the computer device is made to execute any one of claims 1 to 4 Claims or the steps of the method of any of claims 5-7.
CN201910704619.3A 2019-07-31 2019-07-31 A test method, test platform and target server Pending CN110399307A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910704619.3A CN110399307A (en) 2019-07-31 2019-07-31 A test method, test platform and target server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910704619.3A CN110399307A (en) 2019-07-31 2019-07-31 A test method, test platform and target server

Publications (1)

Publication Number Publication Date
CN110399307A true CN110399307A (en) 2019-11-01

Family

ID=68327015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910704619.3A Pending CN110399307A (en) 2019-07-31 2019-07-31 A test method, test platform and target server

Country Status (1)

Country Link
CN (1) CN110399307A (en)

Cited By (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078553A (en) * 2019-12-16 2020-04-28 南方电网数字电网研究院有限公司 Data development task testing method, apparatus, computer equipment and storage medium
CN111414234A (en) * 2020-03-20 2020-07-14 深圳市网心科技有限公司 Mirror image container creation method and device, computer device and storage medium
CN111708690A (en) * 2020-05-22 2020-09-25 苏州浪潮智能科技有限公司 A container-based simulation interface testing method and device
CN111767178A (en) * 2020-05-20 2020-10-13 北京奇艺世纪科技有限公司 Physical machine performance testing method and device
CN111930361A (en) * 2020-07-16 2020-11-13 东云睿连(武汉)计算技术有限公司 Artificial intelligence operation mirror image templating construction method and device
CN112052070A (en) * 2020-08-27 2020-12-08 亚信科技(南京)有限公司 Application containerization evaluation method and device, electronic equipment and storage medium
CN112269738A (en) * 2020-10-26 2021-01-26 杭州光通天下网络科技有限公司 CTF target range debugging method, device, electronic equipment and medium
CN112395363A (en) * 2020-12-04 2021-02-23 北京有竹居网络技术有限公司 Data synchronization method, device, equipment and readable storage medium
CN112596750A (en) * 2020-12-28 2021-04-02 上海安畅网络科技股份有限公司 Application testing method and device, electronic equipment and computer readable storage medium
CN112882710A (en) * 2021-03-10 2021-06-01 百度在线网络技术(北京)有限公司 Rendering method, device and equipment based on client and storage medium
CN112965817A (en) * 2021-02-22 2021-06-15 网易(杭州)网络有限公司 Resource management method and device and electronic equipment
CN113094266A (en) * 2021-04-06 2021-07-09 中国工商银行股份有限公司 Fault testing method, platform and equipment for container database
WO2021169114A1 (en) * 2020-02-26 2021-09-02 平安科技(深圳)有限公司 Mirror image test method and apparatus, computer device and storage medium
CN113377665A (en) * 2021-06-25 2021-09-10 北京百度网讯科技有限公司 Container technology-based testing method and device, electronic equipment and storage medium
CN113542379A (en) * 2021-07-02 2021-10-22 Oppo广东移动通信有限公司 Application program management method and device, electronic equipment and storage medium
CN113535555A (en) * 2021-07-12 2021-10-22 中国科学院软件研究所 A containerized testing method and system for reinforcement learning models
CN114116487A (en) * 2021-11-29 2022-03-01 北京百度网讯科技有限公司 Pressure testing method and device, electronic equipment and storage medium
CN114116133A (en) * 2021-11-30 2022-03-01 北京字节跳动网络技术有限公司 Container recycling method, device, equipment and storage medium
CN114237649A (en) * 2021-12-21 2022-03-25 中国建设银行股份有限公司 Code detection method and device, electronic equipment and program product
CN114564462A (en) * 2022-02-28 2022-05-31 北京天融信网络安全技术有限公司 Method and device for constructing database test environment
CN114661362A (en) * 2022-03-01 2022-06-24 深圳开源互联网安全技术有限公司 DevSecOps-based pipeline implementation method and system
CN114756451A (en) * 2022-03-24 2022-07-15 南方电网数字电网研究院有限公司 Safety testing method and device for power grid system, computer equipment and storage medium
CN114780431A (en) * 2022-05-10 2022-07-22 杭州云合智网技术有限公司 SAI THRIFT automatic test method
CN114791884A (en) * 2022-05-09 2022-07-26 中国工商银行股份有限公司 Test environment construction method and device, storage medium and electronic equipment
CN115599658A (en) * 2021-06-28 2023-01-13 腾讯科技(深圳)有限公司(Cn) Test method, device, medium and electronic equipment of block chain system
CN115802025A (en) * 2022-11-24 2023-03-14 昆山丘钛光电科技有限公司 Camera module testing system and testing method
CN115827429A (en) * 2022-09-30 2023-03-21 超聚变数字技术有限公司 A software testing method, device and testing platform
CN116010268A (en) * 2022-12-30 2023-04-25 福思(杭州)智能科技有限公司 Test environment construction method, device, computer equipment and storage medium
CN116431515A (en) * 2023-04-24 2023-07-14 中国第一汽车股份有限公司 Functional testing method, system, device and processor for hardware
CN116660673A (en) * 2023-04-21 2023-08-29 苏州浪潮智能科技有限公司 Server production test method, device, electronic equipment and storage medium
CN117435510A (en) * 2023-12-20 2024-01-23 深圳市智慧城市科技发展集团有限公司 Automatic test method, terminal equipment and computer readable storage medium
CN119311283A (en) * 2024-12-13 2025-01-14 恒生电子股份有限公司 Continuous integration delivery processing method, device, equipment and program product
CN120892274A (en) * 2025-09-29 2025-11-04 苏州元脑智能科技有限公司 Server hardware compatibility testing methods and electronic devices

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502905A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 A kind of method of testing of application program, apparatus and system
CN106886455A (en) * 2017-02-23 2017-06-23 北京图森未来科技有限公司 Method and system for realizing user isolation
CN108038051A (en) * 2017-11-03 2018-05-15 深圳市牛鼎丰科技有限公司 Dissemination method, device, computer equipment and the storage medium of micro services
CN108132878A (en) * 2017-12-21 2018-06-08 税友软件集团股份有限公司 The dispatching method and system of a kind of test environment
CN109871328A (en) * 2019-02-26 2019-06-11 网宿科技股份有限公司 A software testing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502905A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 A kind of method of testing of application program, apparatus and system
CN106886455A (en) * 2017-02-23 2017-06-23 北京图森未来科技有限公司 Method and system for realizing user isolation
CN108038051A (en) * 2017-11-03 2018-05-15 深圳市牛鼎丰科技有限公司 Dissemination method, device, computer equipment and the storage medium of micro services
CN108132878A (en) * 2017-12-21 2018-06-08 税友软件集团股份有限公司 The dispatching method and system of a kind of test environment
CN109871328A (en) * 2019-02-26 2019-06-11 网宿科技股份有限公司 A software testing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
青岛英谷教育科技股份有限公司, 西安电子科技大学出版社 *

Cited By (47)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078553A (en) * 2019-12-16 2020-04-28 南方电网数字电网研究院有限公司 Data development task testing method, apparatus, computer equipment and storage medium
WO2021169114A1 (en) * 2020-02-26 2021-09-02 平安科技(深圳)有限公司 Mirror image test method and apparatus, computer device and storage medium
CN111414234A (en) * 2020-03-20 2020-07-14 深圳市网心科技有限公司 Mirror image container creation method and device, computer device and storage medium
CN111767178A (en) * 2020-05-20 2020-10-13 北京奇艺世纪科技有限公司 Physical machine performance testing method and device
CN111767178B (en) * 2020-05-20 2023-09-01 北京奇艺世纪科技有限公司 Physical machine performance test method and device
CN111708690A (en) * 2020-05-22 2020-09-25 苏州浪潮智能科技有限公司 A container-based simulation interface testing method and device
CN111708690B (en) * 2020-05-22 2022-07-26 苏州浪潮智能科技有限公司 Container-based simulation interface test method and device
CN111930361A (en) * 2020-07-16 2020-11-13 东云睿连(武汉)计算技术有限公司 Artificial intelligence operation mirror image templating construction method and device
CN112052070A (en) * 2020-08-27 2020-12-08 亚信科技(南京)有限公司 Application containerization evaluation method and device, electronic equipment and storage medium
CN112269738A (en) * 2020-10-26 2021-01-26 杭州光通天下网络科技有限公司 CTF target range debugging method, device, electronic equipment and medium
CN112269738B (en) * 2020-10-26 2023-04-07 杭州光通天下网络科技有限公司 CTF target range debugging method, device, electronic equipment and medium
CN112395363A (en) * 2020-12-04 2021-02-23 北京有竹居网络技术有限公司 Data synchronization method, device, equipment and readable storage medium
CN112395363B (en) * 2020-12-04 2024-03-26 北京有竹居网络技术有限公司 Data synchronization method, device, equipment and readable storage medium
CN112596750A (en) * 2020-12-28 2021-04-02 上海安畅网络科技股份有限公司 Application testing method and device, electronic equipment and computer readable storage medium
CN112965817A (en) * 2021-02-22 2021-06-15 网易(杭州)网络有限公司 Resource management method and device and electronic equipment
CN112965817B (en) * 2021-02-22 2023-08-11 网易(杭州)网络有限公司 Resource management method and device and electronic equipment
CN112882710B (en) * 2021-03-10 2024-06-04 百度在线网络技术(北京)有限公司 Rendering method, device, equipment and storage medium based on client
CN112882710A (en) * 2021-03-10 2021-06-01 百度在线网络技术(北京)有限公司 Rendering method, device and equipment based on client and storage medium
CN113094266A (en) * 2021-04-06 2021-07-09 中国工商银行股份有限公司 Fault testing method, platform and equipment for container database
CN113094266B (en) * 2021-04-06 2024-06-14 中国工商银行股份有限公司 A container database fault testing method, platform and device
CN113377665A (en) * 2021-06-25 2021-09-10 北京百度网讯科技有限公司 Container technology-based testing method and device, electronic equipment and storage medium
CN115599658A (en) * 2021-06-28 2023-01-13 腾讯科技(深圳)有限公司(Cn) Test method, device, medium and electronic equipment of block chain system
CN113542379A (en) * 2021-07-02 2021-10-22 Oppo广东移动通信有限公司 Application program management method and device, electronic equipment and storage medium
CN113535555B (en) * 2021-07-12 2023-06-27 中国科学院软件研究所 Reinforced learning model-oriented containerization test method and system
CN113535555A (en) * 2021-07-12 2021-10-22 中国科学院软件研究所 A containerized testing method and system for reinforcement learning models
CN114116487A (en) * 2021-11-29 2022-03-01 北京百度网讯科技有限公司 Pressure testing method and device, electronic equipment and storage medium
CN114116487B (en) * 2021-11-29 2024-03-15 北京百度网讯科技有限公司 Stress testing methods, devices, electronic equipment and storage media
CN114116133A (en) * 2021-11-30 2022-03-01 北京字节跳动网络技术有限公司 Container recycling method, device, equipment and storage medium
CN114237649A (en) * 2021-12-21 2022-03-25 中国建设银行股份有限公司 Code detection method and device, electronic equipment and program product
CN114564462B (en) * 2022-02-28 2024-12-24 北京天融信网络安全技术有限公司 A method and device for constructing a database test environment
CN114564462A (en) * 2022-02-28 2022-05-31 北京天融信网络安全技术有限公司 Method and device for constructing database test environment
CN114661362A (en) * 2022-03-01 2022-06-24 深圳开源互联网安全技术有限公司 DevSecOps-based pipeline implementation method and system
CN114661362B (en) * 2022-03-01 2023-11-03 深圳开源互联网安全技术有限公司 Pipeline implementation method and system based on DevSecOps
CN114756451A (en) * 2022-03-24 2022-07-15 南方电网数字电网研究院有限公司 Safety testing method and device for power grid system, computer equipment and storage medium
CN114791884A (en) * 2022-05-09 2022-07-26 中国工商银行股份有限公司 Test environment construction method and device, storage medium and electronic equipment
CN114780431A (en) * 2022-05-10 2022-07-22 杭州云合智网技术有限公司 SAI THRIFT automatic test method
CN115827429A (en) * 2022-09-30 2023-03-21 超聚变数字技术有限公司 A software testing method, device and testing platform
CN115802025A (en) * 2022-11-24 2023-03-14 昆山丘钛光电科技有限公司 Camera module testing system and testing method
CN116010268A (en) * 2022-12-30 2023-04-25 福思(杭州)智能科技有限公司 Test environment construction method, device, computer equipment and storage medium
CN116010268B (en) * 2022-12-30 2026-04-14 福思(杭州)智能科技有限公司 Test environment building method, device, computer equipment and storage medium
CN116660673A (en) * 2023-04-21 2023-08-29 苏州浪潮智能科技有限公司 Server production test method, device, electronic equipment and storage medium
CN116431515A (en) * 2023-04-24 2023-07-14 中国第一汽车股份有限公司 Functional testing method, system, device and processor for hardware
CN117435510A (en) * 2023-12-20 2024-01-23 深圳市智慧城市科技发展集团有限公司 Automatic test method, terminal equipment and computer readable storage medium
CN117435510B (en) * 2023-12-20 2024-04-02 深圳市智慧城市科技发展集团有限公司 Automatic test method, terminal equipment and computer readable storage medium
CN119311283A (en) * 2024-12-13 2025-01-14 恒生电子股份有限公司 Continuous integration delivery processing method, device, equipment and program product
CN120892274A (en) * 2025-09-29 2025-11-04 苏州元脑智能科技有限公司 Server hardware compatibility testing methods and electronic devices
CN120892274B (en) * 2025-09-29 2026-02-17 苏州元脑智能科技有限公司 Server hardware compatibility testing method and electronic equipment

Similar Documents

Publication Publication Date Title
CN110399307A (en) A test method, test platform and target server
CN109067890B (en) A CDN node edge computing system based on docker container
CN104461856B (en) Performance test methods, apparatus and system based on cloud computing platform
US10324754B2 (en) Managing virtual machine patterns
CN113243005A (en) Performance-based hardware emulation in on-demand network code execution systems
US9898395B2 (en) Unit-level formal verification for vehicular software systems
US20180198842A1 (en) Address space management with respect to a coherent accelerator processor interface architecture
US9590859B2 (en) Discovering resources of a distributed computing environment
CN107590075A (en) A kind of method for testing software and device
CN105630683B (en) A kind of cloud testing architecture
CN112650710B (en) Sending method and device for data migration, storage medium, and electronic device
CN108228444A (en) A kind of test method and device
CN113535411A (en) Resource scheduling method, equipment and system
US12001863B2 (en) Containerized software discovery and identification
CN116303309A (en) File mounting method, device and electronic equipment
CN114640610B (en) Cloud-protogenesis-based service management method and device and storage medium
US11249760B2 (en) Parameter management between programs
CN109597673B (en) Method for creating virtual machine and scheduling equipment
CN112988062A (en) Metadata reading limiting method and device, electronic equipment and medium
CN113900931B (en) A Docker-based testing method, device, equipment and storage medium
CN116126512A (en) Physical machine scheduling method and device
CN114816764A (en) Resource migration method, device, processor and electronic device
CN114489956A (en) A cloud platform-based instance startup method and device
CN110413584B (en) Data storage method, device, device and storage medium
CN116909756B (en) Cross-cloud service method and device, electronic equipment and storage medium

Legal Events

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

Application publication date: 20191101