Iterative parallel test method, device, equipment and medium

The iterative parallel testing method addresses resource wastage in software development by sharing a single test environment, deploying common and replica iterations, thereby accelerating the development process and reducing costs.

CN119088693APending Publication Date: 2024-12-06SHENGGUANG MARKETING GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411182479.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In current software development processes, parallel iterative development often leads to resource wastage due to the need for multiple test environments, each containing all services, which is inefficient and prolongs the development timeline.

Method used

An iterative parallel testing method that allows multiple iterations to share a single test environment by deploying a common iteration with all services and replica iterations for specific updates, enabling flexible service deployment and reducing resource waste.

Benefits of technology

This approach accelerates the software development process by allowing iterations to share test environments, reducing deployment costs, and enabling flexible scaling of iterations and services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088693A_ABST
    Figure CN119088693A_ABST
Patent Text Reader

Abstract

The invention discloses an iterative parallel test method, device, equipment and medium, and relates to the technical field of software test.The method comprises the steps that an iterative request is obtained and analyzed, and an iterative service group is obtained; each iteration service group comprises an iteration type and service content; the iteration type comprises default iteration and specified iteration; registering the iteration service group in the test environment, and constructing copy iteration; when the iteration type of the iteration service group is a default iteration, accessing a common iteration in a test environment to obtain a first iteration test result; the public iteration deploys all services; and when the service type of the iteration service group is a specified iteration, accessing the copy iteration in the test environment to obtain a second iteration test result. By adopting the embodiment of the invention, all iterations can share one set of test environment, the service deployment cost is reduced, the iterations and services can be freely increased and decreased, and the iteration progress is accelerated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of software testing, and in particular to an iterative parallel testing method, device, equipment and medium. Background Art

[0002] In the current project development process, projects are generally divided into three environments: testing, pre-release, and formal, and each environment contains a complete set of services.

[0003] With the rapid iteration of software requirements, different requirements are often divided into multiple iterations for development. Therefore, multiple iterations are often developed in parallel in the test environment, but there is often only one test environment. For example, iteration A needs to update services a and b, and iteration B needs to update service a. At this time, both iterations need to update service a, which will cause iteration conflicts.

[0004] In the prior art, iterative conflicts are usually resolved by deploying multiple test environments, but each test environment includes all services, which results in a waste of resources during the actual iterative parallel development process. Summary of the invention

[0005] The embodiments of the present invention provide a resource deployment method, apparatus and device for a test environment, which can enable all iterations to share a set of test environments, reduce the deployment cost of services, and freely increase or decrease iterations and services, thereby accelerating the progress of iterations.

[0006] To solve the above technical problems, an embodiment of the present invention provides an iterative parallel testing method, comprising:

[0007] Acquire an iteration request, parse the iteration request, and obtain an iteration service group; each iteration service group includes an iteration type and service content; the iteration type includes a default iteration and a specified iteration;

[0008] Register the iteration service group in the test environment and build a replica iteration;

[0009] When the iteration type of the iteration service group is a default iteration, accessing a common iteration in a test environment to obtain a first iteration test result; the common iteration deploys all services;

[0010] When the service type of the iteration service group is a specified iteration, the replica iteration in the test environment is accessed to obtain a second iteration test result.

[0011] As an improvement of the above solution, the obtaining of the iteration request and parsing of the iteration request to obtain the iteration service group include:

[0012] Obtain an iterative request, and filter a request header from the iterative request;

[0013] Parsing the request header to obtain iteration information, and obtaining service content according to the iteration information;

[0014] When the iteration information includes designated iteration information, the iteration type is considered to be designated iteration; otherwise, the iteration type is considered to be default iteration;

[0015] An iterative service group is obtained according to the service content and the iteration type.

[0016] As an improvement of the above solution, the step of registering the iteration service group in the test environment and constructing a replica iteration includes:

[0017] Determine, according to the service content of the iterative service group, the service to be modified by the iterative request, and obtain a first service;

[0018] Registering the first service in the test environment to obtain a first service copy;

[0019] According to the first service replica, a replica iteration is obtained.

[0020] As an improvement of the above solution, the step of registering the first service in the test environment to obtain a first service copy includes:

[0021] A registration center is built in the test environment; the registration center includes a service provider and a service caller; when the service caller initiates a remote procedure call for the replica iteration, the service call is implemented according to a preset first load balancing strategy;

[0022] Register the first service in the service provider of the registration center to obtain a first service copy.

[0023] As an improvement of the above solution, the step of registering the first service in the test environment to obtain a first service copy includes:

[0024] A registration center is built in the test environment; the registration center includes a service provider, an agent, and a service caller; when the service caller initiates a remote procedure call for the replica iteration, the service call is implemented through the agent according to a preset second load balancing strategy;

[0025] The first service is registered in the service provider of the registration center, and an agent is configured for each of the first services to obtain a first service copy.

[0026] As an improvement of the above solution, when the iteration type of the iteration service group is a default iteration, accessing a common iteration in a test environment to obtain a first iteration test result includes:

[0027] When the iteration type of the iteration service group is a default iteration, determining a service to be accessed by the iteration request according to the service content, and obtaining a third service;

[0028] The third service is routed to a common iteration in the test environment to obtain a first iteration test result.

[0029] As an improvement of the above solution, when the service type of the iteration service group is a specified iteration, accessing the replica iteration in the test environment to obtain a second iteration test result includes:

[0030] When the iteration service type of the iteration service group is a specified iteration, accessing the replica iteration specified in the iteration request;

[0031] Determine the service to be accessed by the iterative request according to the service content, and obtain a fourth service;

[0032] The fourth service is routed to the replica iteration in the test environment to obtain a second iteration test result.

[0033] The embodiment of the present invention further provides an iterative parallel testing device, comprising:

[0034] An iteration request parsing module, used to obtain an iteration request, parse the iteration request, and obtain an iteration service group; each iteration service group includes an iteration type and service content; the iteration type includes a default iteration and a specified iteration;

[0035] A replica iteration construction module, used to register the iteration service group in the test environment and construct a replica iteration;

[0036] A first iteration test result generating module is used to access a common iteration in a test environment to obtain a first iteration test result when the iteration type of the iteration service group is a default iteration; the common iteration deploys all services;

[0037] The second iteration test result generating module is used to access the replica iteration in the test environment to obtain the second iteration test result when the service type of the iteration service group is a specified iteration.

[0038] An embodiment of the present invention also provides an iterative parallel testing device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, an iterative parallel testing method as described in any one of the above is implemented.

[0039] An embodiment of the present invention further provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute an iterative parallel testing method as described in any one of the above.

[0040] Compared with the prior art, the iterative parallel testing method, device, equipment and medium disclosed in the present invention obtain an iterative request, parse the iterative request and obtain an iterative service group; each of the iterative service groups includes an iteration type and service content; the iteration type includes a default iteration and a specified iteration; the iterative service group is registered in the test environment to build a copy iteration; when the iteration type of the iterative service group is a default iteration, the public iteration in the test environment is accessed to obtain the first iteration test result; the public iteration deploys all services; when the service type of the iterative service group is a specified iteration, the copy iteration in the test environment is accessed to obtain the second iteration test result. By adopting the embodiments of the present invention, all iterations can share a set of test environments, reducing the deployment cost of services, and can freely increase or decrease iterations and services, accelerating the progress of iterations. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a schematic diagram of the steps of an iterative parallel testing method provided by an embodiment of the present invention;

[0042] Figure 2 is a schematic diagram of a test environment including replica iteration provided by an embodiment of the present invention;

[0043] Figure 3 It is a structural schematic diagram of an iterative parallel testing device provided by an embodiment of the present invention;

[0044] Figure 4 It is a structural schematic diagram of an iterative parallel testing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] In the description of the specification and claims, it is to be understood that the terms first, second, etc. in the specification and claims are only used for the purpose of describing the same technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated, nor necessarily describing the order or time sequence. The terms are interchangeable where appropriate. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features.

[0047] During the software testing process, due to the rapid iteration of software requirements, multiple iterations are usually developed in parallel, and there is often only one set of test environments. If multiple iterations need to update the same service, iteration conflicts will occur, and you will need to wait in line or deploy multiple test environments.

[0048] Waiting in line can reduce the use of development resources, but it will prolong the development process and fail to meet the timeliness of software requirements. Since each iteration may only need to update 1-2 services, but deploying a complete set of test environments may cause a waste of resources. If a project includes five services, iteration 1 needs to modify 1 service, and iteration 2 needs to modify 2 services. By deploying two complete test environments, 5*2 nodes are required, and the resources deployed for 7 services cannot be effectively utilized, thereby reducing resource utilization.

[0049] Based on the above considerations, an embodiment of the present invention provides an iterative parallel testing method.

[0050] It should be noted in advance that the test environment described in the embodiment of the present invention includes at least a common iteration, in which all services are deployed. By using the embodiment of the present invention during the testing process, the number of services in the test environment can be flexibly increased or decreased to speed up the iteration progress.

[0051] See also Figure 1 In this embodiment, the iterative parallel testing method is specifically performed through steps S1 to S4:

[0052] S1. Obtain an iteration request, parse the iteration request, and obtain an iteration service group; each iteration service group includes an iteration type and service content; the iteration type includes a default iteration and a specified iteration.

[0053] It should be noted that, in the embodiment of the present invention, the iteration request includes at least one iteration service group, and the service content includes at least one service. When the iteration service group is the default iteration, it is routed to the service of the public iteration; when the iteration service group is the specified iteration, it is routed to the service of the specified iteration.

[0054] That is, an iteration request from the same user may include n iteration service groups (n≥1), each iteration service group may be a default iteration or a specified iteration, and each iteration service group may include t services (t≥1).

[0055] S2. Register the iteration service group in the test environment and build a replica iteration.

[0056] It should be noted that in the embodiment of the present invention, a distinction is made between public iteration and replica iteration. The public iteration deploys all services, while the replica iteration deploys only modified service replicas, which can reduce the deployment cost of services. When the outside world calls a service, it can be searched in the replica iteration first. If the service to be called by the outside world does not exist in the replica iteration, it means that the service has not been modified. Therefore, it is searched in the public iteration again, which can enable the outside world to search for the modified service replica first when calling the service to obtain the latest iteration.

[0057] S3. When the iteration type of the iteration service group is a default iteration, access a common iteration in a test environment to obtain a first iteration test result; the common iteration deploys all services.

[0058] S4. When the service type of the iteration service group is a specified iteration, access the replica iteration in the test environment to obtain a second iteration test result.

[0059] In an embodiment of the present invention, when the iteration type of the iteration service group is the default iteration, it means that the iteration service group has not specified the iteration and service it wants to access, so it is directly routed to the public iteration to obtain the first iteration test result; when the service type of the iteration service group is the specified iteration, it is preferentially routed to its specified copy iteration to obtain the second iteration test result.

[0060] It should be noted that the embodiments of the present invention can be applied to the entire process of software development and formal online deployment. In the software development process, iteration is an incremental development method that gradually develops and improves software products through repeated cycles. Each iteration includes planning, design, implementation, testing and review stages. The use of the embodiments of the present invention can enable the software to be tested in parallel for multiple iterations during the development process to achieve multi-iteration parallel development. After the software is formally deployed online, the iterative parallel testing method described in the embodiments of the present invention can also be used to iterate the specific functions of the software through canary release and other methods.

[0061] In the above solution, by building a replica iteration in the test environment according to the iteration request and accessing different iteration services in the test environment according to the service type, all iterations can share a set of test environments, reducing the deployment cost of the service, and being able to freely increase or decrease iterations and services, thereby accelerating the iteration progress.

[0062] As a preferred implementation, step S1, obtaining an iteration request, parsing the iteration request, and obtaining an iteration service group, includes:

[0063] Obtain an iterative request, and filter a request header from the iterative request;

[0064] Parsing the request header to obtain iteration information, and obtaining service content according to the iteration information;

[0065] When the iteration information includes designated iteration information, the iteration type is considered to be designated iteration; otherwise, the iteration type is considered to be default iteration;

[0066] An iterative service group is obtained according to the service content and the iteration type.

[0067] It should be noted that the service to be accessed by the iterative request can be determined through the iteration information in the request header, and further, services of different iterations can be accessed through the same domain name. Exemplarily, the specified iteration information obtained by parsing the request header is "version: v1", and the iteration type is considered to be the specified iteration, and the service content is access service v1. In other words, the iterative service group is the specified iteration of access service v1.

[0068] In some embodiments, a test environment is constructed by Kubernetes. When an iteration request is received, the iteration request is transmitted to the Ingress layer, and the iteration request is routed to a specific service according to the Ingress rules in the Ingress layer. Therefore, in an embodiment of the present invention, routing is defined at the Ingress layer to implement access services of different iteration types.

[0069] As a preferred implementation, step S2, registering the iteration service group in the test environment and building a replica iteration, is specifically performed through steps S21 to S23:

[0070] S21. Determine the service to be modified by the iterative request according to the service content of the iterative service group, and obtain a first service.

[0071] S22: Register the first service in the test environment to obtain a first service copy.

[0072] S23. Obtain a replica iteration according to the first service replica.

[0073] It should be noted that the first service copy registered in the test environment can implement the functions of the first service in the public iteration, and can also implement the modified content of the iteration request. In some embodiments, a new code branch is pulled out from the master branch of the first service of the public iteration of the test environment, and the new code branch is registered in the test environment to obtain the first service copy.

[0074] Exemplarily, the public iteration service a supports email login, and iteration 1 requires support for mobile phone number login. In this case, a new code branch is pulled out from the master branch of the public iteration service a, and the function of mobile phone number login is added to the new code branch. The new code branch is registered in the test environment to obtain a copy of service a as the first service copy. The service a copy of iteration 1 supports both email login and mobile phone number login. When a user accesses service a, since iteration 1 has a copy iteration, the service a copy of iteration 1 is accessed first. When accessing other services, since there are no copies of other services in iteration 1, the services in the public iteration are accessed.

[0075] For example, see Figure 2 , there are 5 services deployed in the public iteration of the test environment, namely service a to service e. After parsing the iteration request, the first iteration service group and the second iteration service group are obtained; wherein, the service content of the first iteration service group is to modify the code of service a, then the first copy of service a is built for service a, and the first copy iteration is obtained; the service content of the second iteration service group is to modify the code of service a and service b, then the second copy of service a and the first copy of service b are built for service a and service b, and the second copy iteration is obtained.

[0076] Further, as a preferred implementation, step S22, registering the first service in the test environment to obtain a first service copy, is specifically:

[0077] A registration center is built in the test environment; the registration center includes a service provider and a service caller; when the service caller initiates a remote procedure call for the replica iteration, the service call is implemented according to a preset first load balancing strategy;

[0078] Register the first service in the service provider of the registration center to obtain a first service copy.

[0079] It should be noted that when the client makes a remote procedure call (RPC), the service ACL (access control list) will be called to implement iterative calls. If the service ACL is directly registered to the same service provider in the registration center, the client may call other iterative service ACLs. When specifying iterations, different iterations need to be distinguished so that the client can access the service ACL of the specified iteration. In an embodiment of the present invention, calls between services with the same iteration are implemented through a preset first load balancing strategy, which is a custom load balancing strategy for the RPC calling tool.

[0080] As another preferred implementation, step S22, registering the first service in the test environment to obtain a first service copy, is specifically:

[0081] A registration center is built in the test environment; the registration center includes a service provider, an agent, and a service caller; when the service caller initiates a remote procedure call for the replica iteration, the service call is implemented through the agent according to a preset second load balancing strategy;

[0082] The first service is registered in the service provider of the registration center, and an agent is configured for each of the first services to obtain a first service copy.

[0083] It should be noted that in the embodiment of the present invention, two methods are provided to realize calls between multi-iteration services. One is to directly register the first service in the service provider of the registration center, and generate a first load balancing strategy for the RPC calling tool. From the underlying code level, the RPC call is taken as a jar, compiled together with the business code, and built into a container. The second is to configure a proxy for each of the first services. From the underlying code level, the business code and the proxy are respectively taken as two containers, put into the same Pod to share the network and storage, and all inlet traffic of the capacity will pass through the proxy. Therefore, the service call can be realized through the proxy according to the preset second load balancing strategy.

[0084] As a preferred implementation, step S3, when the iteration type of the iteration service group is a default iteration, accessing a common iteration in a test environment to obtain a first iteration test result, includes:

[0085] When the iteration type of the iteration service group is a default iteration, determining a service to be accessed by the iteration request according to the service content, and obtaining a third service;

[0086] The third service is routed to a common iteration in the test environment to obtain a first iteration test result.

[0087] For example, Figure 2 Taking the test environment shown as an example, if the iteration type of the iteration service group is the default iteration, and the services to be accessed by the iteration request are determined to be service a and service b based on the service content, then the third service is service a and service b, which are directly routed to the public iteration services a and service b in the test environment to obtain the first iteration test result.

[0088] As a preferred implementation, step S4, when the service type of the iterative service group is a specified iteration, accessing the replica iteration in the test environment to obtain a second iteration test result, includes:

[0089] When the iteration service type of the iteration service group is a specified iteration, accessing the replica iteration specified in the iteration request;

[0090] Determine the service to be accessed by the iterative request according to the service content, and obtain a fourth service;

[0091] The fourth service is routed to the replica iteration in the test environment to obtain a second iteration test result.

[0092] For example, Figure 2 Taking the test environment shown as an example, if the iteration type of the iteration service group is a specified iteration, the specified replica iteration is the first replica iteration, and the services to be accessed by the iteration request are determined to be service a, service b, and service c according to the service content, then the fourth service is service a, service b, and service c. First, the first replica iteration specified in the iteration request is accessed. The first replica iteration includes the first replica of service a, which corresponds to service a, but does not include service b and service c. Therefore, after being routed to the fourth service of the replica iteration in the test environment, the first replica of service a in the first replica iteration, service b and service c in the public iteration will be accessed to obtain the second iteration test result.

[0093] An iterative parallel testing method provided by an embodiment of the present invention is adopted. By building a copy iteration in the test environment according to the iteration request, and accessing different iteration services in the test environment according to the service type, all iterations can share a set of test environments, thereby reducing the deployment cost of the service, and can freely increase or decrease iterations and services, thereby accelerating the iteration progress.

[0094] See also Figure 3, an embodiment of the present invention provides a schematic diagram of the structure of an iterative parallel testing device. The iterative parallel testing device includes an iterative request parsing module 11, a replica iteration construction module 12, a first iterative test result generation module 13 and a second iterative test result generation module 14, wherein:

[0095] Iteration request parsing module 11, used to obtain iteration request, parse the iteration request, and obtain iteration service group; each iteration service group includes iteration type and service content; the iteration type includes default iteration and specified iteration;

[0096] A replica iteration construction module 12 is used to register the iteration service group in the test environment and construct a replica iteration;

[0097] A first iteration test result generating module 13 is used to access a common iteration in a test environment to obtain a first iteration test result when the iteration type of the iteration service group is a default iteration; the common iteration deploys all services;

[0098] The second iteration test result generating module 14 is configured to access the replica iteration in the test environment to obtain a second iteration test result when the service type of the iteration service group is a specified iteration.

[0099] As a preferred implementation, the iterative request parsing module 11 specifically includes:

[0100] A request header screening unit, used for obtaining an iterative request and screening a request header from the iterative request;

[0101] A service content acquisition unit, used to parse the request header, obtain iteration information, and obtain service content according to the iteration information;

[0102] an iteration type determining unit, configured to, when the iteration information includes designated iteration information, consider the iteration type to be a designated iteration; otherwise, consider the iteration type to be a default iteration;

[0103] The iterative service group construction unit is used to obtain an iterative service group according to the service content and the iteration type.

[0104] As a preferred implementation, the replica iteration construction module 12 specifically includes:

[0105] A first service acquisition unit, configured to determine the service to be modified by the iteration request according to the service content of the iteration service group, and obtain a first service;

[0106] A first service copy registration unit, configured to register the first service in the test environment to obtain a first service copy;

[0107] The replica iteration generating unit is used to obtain a replica iteration according to the first service replica.

[0108] Further, in a preferred implementation, the first service replica registration unit includes:

[0109] A first registration center building unit is used to build a registration center in the test environment; the registration center includes a service provider and a service caller; when the service caller initiates a remote procedure call for the replica iteration, the service call is implemented according to a preset first load balancing strategy;

[0110] The first registration unit is used to register the first service in the service provider of the registration center to obtain a first service copy.

[0111] In another preferred embodiment, the first service replica registration unit includes:

[0112] A second registration center building unit is used to build a registration center in the test environment; the registration center includes a service provider, an agent, and a service caller; when the service caller initiates a remote procedure call for the replica iteration, the service call is implemented through the agent according to a preset second load balancing strategy;

[0113] The second registration unit is used to register the first service in the service provider of the registration center, and configure an agent for each of the first services to obtain a first service copy.

[0114] As a preferred implementation, the first iterative test result generating module 13 specifically includes:

[0115] A third service determining unit, configured to determine, when the iteration type of the iteration service group is a default iteration, a service to be accessed by the iteration request according to the service content, to obtain a third service;

[0116] The third service routing unit is used to route to the third service of the common iteration in the test environment to obtain the first iteration test result.

[0117] As a preferred implementation, the second iterative test result generating module 14 specifically includes:

[0118] a replica iteration determining unit, configured to access the replica iteration specified in the iteration request when the iteration service type of the iteration service group is a specified iteration;

[0119] A fourth service determining unit, configured to determine the service to be accessed by the iterative request according to the service content, to obtain a fourth service;

[0120] The fourth service routing unit is used to route to the fourth service of the replica iteration in the test environment to obtain the second iteration test result.

[0121] It should be noted that the working process of each module in an iterative parallel testing device described in an embodiment of the present invention can refer to the working process of an iterative parallel testing method described in the above embodiment, and the technical effect achieved is also the same as that of an iterative parallel testing method described in the above embodiment, which will not be repeated here.

[0122] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without creative work.

[0123] An iterative parallel testing device provided by an embodiment of the present invention builds a copy iteration in a test environment according to an iteration request, and accesses different iterative services in the test environment according to the service type. This enables all iterations to share a set of test environments, reduces the deployment cost of the service, and allows iterations and services to be freely increased or decreased, thereby accelerating the iteration progress.

[0124] See also Figure 4 , Figure 4 : is a structural block diagram of an iterative parallel testing device provided by an embodiment of the present invention. The iterative parallel testing device includes a processor 31, a memory 32, and a computer program stored in the memory 32 and executable on the processor 31. When the processor 31 executes the computer program, the steps in each of the above-mentioned iterative parallel testing method embodiments are implemented, such as steps S1 to S4.

[0125] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 32 and executed by the processor 31 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the iterative parallel testing device.

[0126] The iterative parallel test device may include, but is not limited to, a processor 31 and a memory 32. Those skilled in the art will appreciate that the schematic diagram is merely an example of an iterative parallel test device and does not constitute a limitation on an iterative parallel test device. The iterative parallel test device may include more or fewer components than shown in the diagram, or may combine certain components, or different components. For example, the iterative parallel test device may also include input and output devices, network access devices, buses, and the like.

[0127] The processor 31 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 31 is the control center of the iterative parallel test device, and uses various interfaces and lines to connect the various parts of the entire iterative parallel test device.

[0128] The memory 32 can be used to store the computer program and / or module, and the processor 31 realizes various functions of the iterative parallel test device by running or executing the computer program and / or module stored in the memory 32, and calling the data stored in the memory 32. The memory 32 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 32 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0129] Wherein, if the module / unit integrated by the iterative parallel test device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor 31. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0130] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0131] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. An iterative parallel testing method, characterized in that: include: Obtaining an iteration request, parsing the iteration request, and obtaining an iteration service group; Each of the iterative service groups includes an iteration type and service content; The iteration types include default iteration and specified iteration; Register the iteration service group in the test environment and build a replica iteration; When the iteration type of the iteration service group is a default iteration, accessing a common iteration in a test environment to obtain a first iteration test result; The public iteration deploys all services; When the service type of the iteration service group is a specified iteration, the replica iteration in the test environment is accessed to obtain a second iteration test result.

2. An iterative parallel testing method as claimed in claim 1, characterized in that: The obtaining of the iteration request and parsing of the iteration request to obtain the iteration service group includes: Obtain an iterative request, and filter a request header from the iterative request; Parsing the request header to obtain iteration information, and obtaining service content according to the iteration information; When the iteration information includes designated iteration information, the iteration type is considered to be designated iteration; otherwise, the iteration type is considered to be default iteration; An iterative service group is obtained according to the service content and the iteration type.

3. An iterative parallel testing method as claimed in claim 1, characterized in that: The step of registering the iteration service group in the test environment and constructing a replica iteration includes: Determine, according to the service content of the iterative service group, the service to be modified by the iterative request, and obtain a first service; Registering the first service in the test environment to obtain a first service copy; According to the first service replica, a replica iteration is obtained.

4. An iterative parallel testing method as claimed in claim 3, characterized in that: Registering the first service in the test environment to obtain a first service copy includes: A registration center is built in the test environment; the registration center includes a service provider and a service caller; when the service caller initiates a remote procedure call for the replica iteration, the service call is implemented according to a preset first load balancing strategy; Register the first service in the service provider of the registration center to obtain a first service copy.

5. An iterative parallel testing method as claimed in claim 3, characterized in that: Registering the first service in the test environment to obtain a first service copy includes: A registration center is built in the test environment; the registration center includes a service provider, an agent, and a service caller; when the service caller initiates a remote procedure call for the replica iteration, the service call is implemented through the agent according to a preset second load balancing strategy; The first service is registered in the service provider of the registration center, and an agent is configured for each of the first services to obtain a first service copy.

6. An iterative parallel testing method as claimed in claim 1, characterized in that: When the iteration type of the iteration service group is a default iteration, accessing a common iteration in a test environment to obtain a first iteration test result includes: When the iteration type of the iteration service group is a default iteration, determining a service to be accessed by the iteration request according to the service content, and obtaining a third service; The third service is routed to a common iteration in the test environment to obtain a first iteration test result.

7. An iterative parallel testing method as claimed in claim 1, characterized in that: When the service type of the iteration service group is a specified iteration, accessing the replica iteration in the test environment to obtain a second iteration test result includes: When the iteration service type of the iteration service group is a specified iteration, accessing the replica iteration specified in the iteration request; Determine the service to be accessed by the iterative request according to the service content, and obtain a fourth service; The fourth service is routed to the replica iteration in the test environment to obtain a second iteration test result.

8. An iterative parallel testing device, characterized in that: include: An iteration request parsing module, used to obtain an iteration request, parse the iteration request, and obtain an iteration service group; Each iteration service group includes iteration type and service content; The iteration types include default iteration and specified iteration; A replica iteration construction module, used to register the iteration service group in the test environment and construct a replica iteration; A first iteration test result generating module is used to access a common iteration in a test environment to obtain a first iteration test result when the iteration type of the iteration service group is a default iteration; the common iteration deploys all services; The second iteration test result generating module is used to access the replica iteration in the test environment to obtain the second iteration test result when the service type of the iteration service group is a specified iteration.

9. An iterative parallel testing device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, an iterative parallel testing method as claimed in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute an iterative parallel testing method as described in any one of claims 1 to 7.