CN110083535A - A kind of method for testing software and device - Google Patents

A kind of method for testing software and device Download PDF

Info

Publication number
CN110083535A
CN110083535A CN201910322919.5A CN201910322919A CN110083535A CN 110083535 A CN110083535 A CN 110083535A CN 201910322919 A CN201910322919 A CN 201910322919A CN 110083535 A CN110083535 A CN 110083535A
Authority
CN
China
Prior art keywords
container
test
protos
primary tank
containers
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
CN201910322919.5A
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 CN201910322919.5A priority Critical patent/CN110083535A/en
Publication of CN110083535A publication Critical patent/CN110083535A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The present embodiments relate to automatization testing technique field more particularly to a kind of method for testing software and device to save machine resources to simplify test process.The embodiment of the present invention includes: the service resources called according to the component programs of software to be tested and the component programs create multiple containers;It include any number of test case in one of protos test suite PROTOS to the protos test suite PROTOS of software to be tested described in each container allocation;For any container in all containers, start the container, executes the test case in the protos test suite PROTOS parallel;The test result that implementation of test cases is obtained uploads.

Description

A kind of method for testing software and device
Technical field
The present invention relates to automatization testing technique field more particularly to a kind of method for testing software and device.
Background technique
Automatic test generally refers to the automation of software test, software test be exactly on a preset condition based operating system or Application program assesses operation result, and preparatory condition should include normal condition and exceptional condition.Automatic test is taking human as drive Dynamic behavioral test is converted into a kind of process of machine execution.In general, after devising test case and passing through evaluation, by surveying Examination personnel regulation according to described in test case executes test step by step, obtains actual result compared with expected result.? During this, in order to save manpower, time or system resource, testing efficiency is improved, the concept of automatic test is just introduced.
When using test frame to software automated testing, if automatized script quantity is more, full dose executes primary need Longer time can not keep up with the rhythm of product publication iteration.The prior art is usually to be executed using more machine distributions to contract The short execution time.In this way, on the one hand needing to occupy more machine resources, on the other hand need to build for each machine a set of Automated environment, including test program, test frame, test interface etc., step is relatively complicated.
Summary of the invention
The application provides a kind of method for testing software and device, to simplify test process, saves machine resources.
A kind of method for testing software provided in an embodiment of the present invention, comprising:
According to the service resources that the component programs of software to be tested and the component programs call, multiple containers are created;
It include any amount in one of protos test suite PROTOS to the protos test suite PROTOS of software to be tested described in each container allocation Test case;
For any container in all containers, start the container, the test executed in the protos test suite PROTOS parallel is used Example;
The test result that implementation of test cases is obtained uploads.
In a kind of optional embodiment, before the creation multiple containers, further includes:
The component programs, test frame and service resources write-in mirror image are created into script, created using the mirror image Script creates mirror image;
The creation container, comprising: create container using the mirror image.
In a kind of optional embodiment, the protos test suite PROTOS to software to be tested described in each container allocation, comprising:
The maximum acceptable time of required time, a container full dose test case of execution is executed according to protos test suite PROTOS, with And the quantity of the at most executable test case of each container, determine the protos test suite PROTOS to each container allocation.
It is described to after the protos test suite PROTOS of software to be tested described in each container allocation in a kind of optional embodiment, also Include:
For any container in all containers, test case is analyzed in the container to the Expenditure Levels of system resource;
It is the vessel distribution system resource according to the Expenditure Levels to system resource.
In a kind of optional embodiment, before the starting container, also wrap:
Select a container as primary tank from all containers, remaining container is used as from container;
The test result that implementation of test cases is obtained uploads, comprising:
The test result of the primary tank is uploaded under the catalogue of the primary tank by the primary tank;
The primary tank is by all tests from container under the catalogue of the test result of the primary tank and the primary tank As a result summarized, obtain test report;It is described from the test result of container be it is described will be in corresponding test result from container Under the catalogue for reaching the primary tank;
The primary tank uploads the test report.
In a kind of optional embodiment, before the starting container, further includes:
Determine that the dependence between each container, the dependence are holding there are the first test case in the first container Implementing result of the row dependent on the second test case in second container;
Communication is established between the container there are dependence;
The first container and the second container are any container in all containers;All containers are located at same network segment In.
The embodiment of the present invention also provides a kind of software testing device, comprising:
Creating unit, for the service resources according to the component programs of software to be tested and component programs calling, wound Build multiple containers;
Allocation unit, for the protos test suite PROTOS to software to be tested described in each container allocation, one of protos test suite PROTOS In include any number of test case;
Start unit, for starting the container, executing the test suite parallel for any container in all containers Test case in part;
Reporting unit, the test result for obtaining implementation of test cases upload.
In a kind of optional embodiment, the creating unit is specifically used for:
The component programs, test frame and service resources write-in mirror image are created into script, created using the mirror image Script creates mirror image;
Container is created using the mirror image.
In a kind of optional embodiment, the allocation unit is specifically used for:
The maximum acceptable time of required time, a container full dose test case of execution is executed according to protos test suite PROTOS, with And the quantity of the at most executable test case of each container, determine the protos test suite PROTOS to each container allocation.
In a kind of optional embodiment, the allocation unit is also used to:
For any container in all containers, test case is analyzed in the container to the Expenditure Levels of system resource;
It is the vessel distribution system resource according to the Expenditure Levels to system resource.
In a kind of optional embodiment, the creating unit is also used to select a container as master from all containers Container, remaining container are used as from container;
The reporting unit, is specifically used for:
The test result of the primary tank is uploaded under the catalogue of the primary tank;
The test result of the primary tank is converged with all under the catalogue of the primary tank from the test result of container Always, test report is obtained;It is described to be uploaded to the master from container by corresponding test result to be described from the test result of container Under the catalogue of container;
Upload the test report.
In a kind of optional embodiment, the creating unit is specifically used for:
Determine that the dependence between each container, the dependence are holding there are the first test case in the first container Implementing result of the row dependent on the second test case in second container;
Communication is established between the container there are dependence;
The first container and the second container are any container in all containers;All containers are located at same network segment In.
The embodiment of the present invention also provides a kind of electronic equipment, comprising:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one A processor executes, so that at least one described processor is able to carry out method as described above.
The embodiment of the present invention also provides a kind of non-transient computer readable storage medium, and the non-transient computer is readable to deposit Storage media stores computer instruction, and the computer instruction is for making the computer execute method as described above.
In the embodiment of the present invention, according to the service resources that the component programs of software to be tested and component programs call, creation Multiple containers, to the protos test suite PROTOS of each container allocation software to be tested, wherein comprising any number of in a protos test suite PROTOS Test case.For any container, start the container, the parallel test case executed in protos test suite PROTOS.Test will finally be executed The test result that use-case obtains is uploaded.In the embodiment of the present invention, by creating multiple containers on one machine, so that can With distributed implementation of test cases on one machine, a set of test environment need to be only built.Protos test suite PROTOS is assigned to respectively In a container, parallelization executes multiple protos test suite PROTOSs in container, meanwhile, any number of test in single external member is used Example also carries out parallelization execution, improves test execution efficiency to the full extent.Therefore, the embodiment of the present invention simplifies software The process of test shortens the time-consuming of software test, improves testing efficiency to the full extent.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without any creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is a kind of flow diagram of method for testing software provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of the container of software test in the embodiment of the present invention;
The schematic diagram that Fig. 3 uploads for test result in software test a kind of in the embodiment of the present invention;
Fig. 4 is a kind of flow diagram for method for testing software that the specific embodiment of the invention provides;
Fig. 5 is a kind of structural schematic diagram of software testing device provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into It is described in detail to one step, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of method for testing software, as shown in Figure 1, software provided in an embodiment of the present invention is surveyed Method for testing, comprising the following steps:
Step 101, the service resources called according to the component programs of software to be tested and the component programs, create multiple Container.
Step 102, to the protos test suite PROTOS of software to be tested described in each container allocation, include in one of protos test suite PROTOS Any number of test case.
Step 103, for any container in all containers, start the container, executed in the protos test suite PROTOS parallel Test case.
Step 104, the test result for obtaining implementation of test cases upload.
In the embodiment of the present invention, according to the service resources that the component programs of software to be tested and component programs call, creation Multiple containers, to the protos test suite PROTOS of each container allocation software to be tested, wherein comprising any number of in a protos test suite PROTOS Test case.For any container, start the container, the parallel test case executed in protos test suite PROTOS.Test will finally be executed The test result that use-case obtains is uploaded.In the embodiment of the present invention, by creating multiple containers on one machine, so that can With distributed implementation of test cases on one machine, a set of test environment need to be only built.Protos test suite PROTOS is assigned to respectively In a container, parallelization executes multiple protos test suite PROTOSs in container, meanwhile, any number of test in single external member is used Example also carries out parallelization execution, improves test execution efficiency to the full extent.Therefore, the embodiment of the present invention simplifies software The process of test shortens the time-consuming of software test, improves testing efficiency to the full extent.
For the ease of creating under same test frame to multiple containers, in the embodiment of the present invention, the creation is more Before a container, further includes:
The component programs, test frame and service resources write-in mirror image are created into script, created using the mirror image Script creates mirror image;
The creation container, comprising: create container using the mirror image.
It will include that mirror is written in the service resources such as component programs, test frame and database, interface in specific implementation process As creation script, then it is created as mirror image.Mirror image is a kind of file layout, and data are complete there are one on another disk Identical copy is mirror image.Mirror image is added in service resources etc., and creates container using mirror image, convenient for creating same test block The identical multiple containers of service resources under frame can simplify the creation process of container, avoid the test case in different vessels competing It strives and executes failure problem caused by same service resources.
For the protos test suite PROTOS distributed in each container, the embodiment of the present invention can flexibly be carried out according to different rules Distribution.For example, according to the quantity etc. in the execution time of each protos test suite PROTOS or each protos test suite PROTOS including test case. Preferably, in the embodiment of the present invention, the protos test suite PROTOS to software to be tested described in each container allocation, comprising:
The maximum acceptable time of required time, a container full dose test case of execution is executed according to protos test suite PROTOS, with And the quantity of the at most executable test case of each container, determine the protos test suite PROTOS to each container allocation.
Specifically, analysis of the embodiment of the present invention determines that each protos test suite PROTOS executes and wraps in time and each protos test suite PROTOS The test case quantity included.When protos test suite PROTOS is distributed to container, consider that protos test suite PROTOS executes required time, the execution of container full dose The maximum acceptable time of test case and the at most executable suite number of each container, plan required container number Amount, and want sum operation different according to configuration item, library function and program etc., protos test suite PROTOS is divided, determine to The protos test suite PROTOS of each container allocation.When to container allocation protos test suite PROTOS, in the case where meeting business dependence, allow as far as possible every The gap of the quantity for the test case distributed between a container is smaller.It can guarantee the time span phase as far as possible executed between container in this way Deng to avoid the problem that influencing overall execution duration because single container executes overlong time.
It is the identical service resources of each container allocation in the embodiment of the present invention, but due to external members different in each container Demand to system resources such as CPU, memories is different, therefore, for the different system resource of different container allocations.It is described to each After the protos test suite PROTOS of software to be tested described in container allocation, further includes:
For any container in all containers, test case is analyzed in the container to the Expenditure Levels of system resource;
It is the vessel distribution system resource according to the Expenditure Levels to system resource.
Specifically, resource for computer system is consumed due to different test cases it is different, than if any test case be meter Intensity is calculated, has plenty of I/O (input/output) intensity, so to analyze test case in advance to the consumption feelings of system resource Condition.Then according to the test case analyzed to the Expenditure Levels of system resource, to the different memory of each container allocation and CPU etc. System resource, to avoid competition of each container to system resource.
It is generally parallel between container to execute, it is also possible to which that there are the implementing result of container works in the embodiment of the present invention Input is executed for another container.
When being to execute between container parallel, while starting container, the associative directory of carry physical machine, meeting after container starting The related library function that the code and test that newest software to be tested is obtained from version control system rely on.Further, Each protos test suite PROTOS is executed parallel using multi-process in each container, utilizes multi-threaded parallel to execute test in each protos test suite PROTOS Use-case, to improve test case execution efficiency.
When between the output of container and input there are when context, before the starting container, further includes:
Determine that the dependence between each container, the dependence are holding there are the first test case in the first container Implementing result of the row dependent on the second test case in second container;
Communication is established between the container there are dependence;
The first container and the second container are any container in all containers;All containers are located at same network segment In.
During specific implementation, all containers are planned in the same network segment, convenient for related communication between container.If the Implementing result of the execution dependent on the second test case in second container in one container there are the first test case, then first Communication is established between container and second container, so that implementing result is sent to the first container by second container, as the first container The input of middle test case.For example, second container is mapping class container, the first container is reduction class container, and mapping class container can To be provided by the mode of HTTP (hypertext transfer protocol, Hyper Text Transfer Protocol) for reduction class container Required data.As shown in Fig. 2, there are the execution of test case dependent on container 1, container 2 and to hold in container 4 and container 5 The implementing result of device 3.By the communication between creation container, reduction class container (container 4 and container 5) is by mapping class container (container 1, container 2 and container 3) input of the result after certain logical process as test case in reduction class container, to subtract Parallelization degree declines problem caused by few dependence because of business.
When each container has executed the test case of itself, a test result can be generated, it can be for each container certainly It is about to test result to be reported.Preferably, before the starting container, also being wrapped in the embodiment of the present invention:
Select a container as primary tank from all containers, remaining container is used as from container;
The test result that implementation of test cases is obtained uploads, comprising:
The test result of the primary tank is uploaded under the catalogue of the primary tank by the primary tank;
The primary tank is by all tests from container under the catalogue of the test result of the primary tank and the primary tank As a result summarized, obtain test report;It is described from the test result of container be it is described will be in corresponding test result from container Under the catalogue for reaching the primary tank;
The primary tank uploads the test report.
It is the different port of each container allocation, and select one before starting all containers in specific implementation process Container is used as primary tank, remaining container from container.For after implementation of test cases obtains test result, uploading from container Under test result to the catalogue of primary tank institute carry.For primary tank, such as Fig. 3, need to wait in all test results from container After biography, summarize all from the test result of container and the test result of primary tank for a test report, according to matching Confidence breath uploads the test report.Consequently facilitating test report checking and managing.
For a clearer understanding of the present invention, above-mentioned process is described in detail with specific embodiment below, it is specific real It applies in example, test frame robotFramework, a kind of building based on docker (application container engine) for container is specific real The step of applying is as shown in Figure 4, comprising:
Step 401: will include component programs, database, MOCK engineering, apache, robotFramework frame etc. Step write-in Dockerfile (mirror image creation script) is built, then is created as mirror image.
Step 402: planning needs number of containers to be started, and creates container using mirror image.It is each to be specifically as follows analysis The quantity for executing test case under time and protos test suite PROTOS of protos test suite PROTOS, and will be surveyed according to time and test case number is executed Try external member ascending sort.Consider the maximum acceptable time of implementation of test cases and the test that each container is at most executable External member quantity, planning need number of containers to be started.
Step 403: for the different port of each container allocation, and arbitrarily selecting a container as primary tank, other appearances Device is used as from container.
Step 404: protos test suite PROTOS being divided, to each container allocation protos test suite PROTOS.In the feelings for meeting business dependence Under condition, allow between each container the test case number gap distributed smaller as far as possible.
Step 405: analyzing Expenditure Levels of the test case to system resource, the memory different to container allocation in each container With the system resources such as CPU.
Step 406: creating customized network using docker network and each container is planned in the same network segment, really Dependence between fixed each container, establishes communication between the container there are dependence.
Step 407: starting all containers, the associative directory of carry physical machine can be from version control system after container starting The related library function that the code and automatic test that newest software to be tested is obtained on (such as git or svn) rely on.
Step 408: executing protos test suite PROTOS parallel using multi-process in each container, utilize multithreading in each protos test suite PROTOS Parallel implementation of test cases.
Step 409: each container generates a test result respectively, and primary tank summarizes all test results to obtain test report It accuses, and according to tester's mailbox list of configuration, test report is issued with mail he.
The embodiment of the invention also provides a kind of software testing devices, as shown in Figure 5, comprising:
Creating unit 501, the service resources for being called according to the component programs of software to be tested and the component programs, Create multiple containers;
Allocation unit 502, for the protos test suite PROTOS to software to be tested described in each container allocation, one of test suite It include any number of test case in part;
Start unit 503, for starting the container, executing the survey parallel for any container in all containers Try the test case in external member;
Reporting unit 504, the test result for obtaining implementation of test cases upload.
Preferably, the creating unit, is specifically used for:
The component programs, test frame and service resources write-in mirror image are created into script, created using the mirror image Script creates mirror image;
Container is created using the mirror image.
Preferably, the allocation unit, is specifically used for:
The maximum acceptable time of required time, a container full dose test case of execution is executed according to protos test suite PROTOS, with And the quantity of the at most executable test case of each container, determine the protos test suite PROTOS to each container allocation.
Preferably, the allocation unit, is also used to:
For any container in all containers, test case is analyzed in the container to the Expenditure Levels of system resource;
It is the vessel distribution system resource according to the Expenditure Levels to system resource.
Preferably, the creating unit, is also used to select a container as primary tank, remaining container from all containers As from container;
The reporting unit, is specifically used for:
The test result of the primary tank is uploaded under the catalogue of the primary tank;
The test result of the primary tank is converged with all under the catalogue of the primary tank from the test result of container Always, test report is obtained;It is described to be uploaded to the master from container by corresponding test result to be described from the test result of container Under the catalogue of container;
Upload the test report.
Preferably, the creating unit, is specifically used for:
Determine that the dependence between each container, the dependence are holding there are the first test case in the first container Implementing result of the row dependent on the second test case in second container;
Communication is established between the container there are dependence;
The first container and the second container are any container in all containers;All containers are located at same network segment In.
Based on identical principle, the present invention also provides a kind of electronic equipment, as shown in Figure 6, comprising:
Including processor 701, memory 702, transceiver 703, bus interface 704, wherein processor 701, memory 702 It is connect between transceiver 703 by bus interface 704;
The processor 701 executes following method for reading the program in the memory 702:
According to the service resources that the component programs of software to be tested and the component programs call, multiple containers are created;
It include any amount in one of protos test suite PROTOS to the protos test suite PROTOS of software to be tested described in each container allocation Test case;
For any container in all containers, start the container, the test executed in the protos test suite PROTOS parallel is used Example;
The test result that implementation of test cases is obtained uploads.
Preferably, the processor 701 is also used to:
The component programs, test frame and service resources write-in mirror image are created into script, created using the mirror image Script creates mirror image;
Container is created using the mirror image.
Preferably, the processor 701 is also used to:
The maximum acceptable time of required time, a container full dose test case of execution is executed according to protos test suite PROTOS, with And the quantity of the at most executable test case of each container, determine the protos test suite PROTOS to each container allocation.
Preferably, the processor 701 is also used to:
For any container in all containers, test case is analyzed in the container to the Expenditure Levels of system resource;
It is the vessel distribution system resource according to the Expenditure Levels to system resource.
Preferably, the processor 701 is also used to:
Select a container as primary tank from all containers, remaining container is used as from container;
The test result of the primary tank is uploaded under the catalogue of the primary tank;
The test result of the primary tank is converged with all under the catalogue of the primary tank from the test result of container Always, test report is obtained;It is described to be uploaded to the master from container by corresponding test result to be described from the test result of container Under the catalogue of container;
Upload the test report.
Preferably, the processor 701 is also used to:
Determine that the dependence between each container, the dependence are holding there are the first test case in the first container Implementing result of the row dependent on the second test case in second container;
Communication is established between the container there are dependence;
The first container and the second container are any container in all containers;All containers are located at same network segment In.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the invention is also intended to include including these modification and variations.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the invention is also intended to include including these modification and variations.

Claims (11)

1. a kind of method for testing software characterized by comprising
According to the service resources that the component programs of software to be tested and the component programs call, multiple containers are created;
It include any number of survey in one of protos test suite PROTOS to the protos test suite PROTOS of software to be tested described in each container allocation Example on probation;
For any container in all containers, start the container, executes the test case in the protos test suite PROTOS parallel;
The test result that implementation of test cases is obtained uploads.
2. the method as described in claim 1, which is characterized in that before the creation multiple containers, further includes:
The component programs, test frame and service resources write-in mirror image are created into script, create script using the mirror image Create mirror image;
The creation container, comprising: create container using the mirror image.
3. the method as described in claim 1, which is characterized in that the test to software to be tested described in each container allocation External member, comprising:
The maximum acceptable time of required time, a container full dose test case of execution is executed according to protos test suite PROTOS, and every The quantity of the at most executable test case of a container determines the protos test suite PROTOS to each container allocation.
4. the method as described in claim 1, which is characterized in that the test to software to be tested described in each container allocation After external member, further includes:
For any container in all containers, test case is analyzed in the container to the Expenditure Levels of system resource;
It is the vessel distribution system resource according to the Expenditure Levels to system resource.
5. the method as described in claim 1, which is characterized in that before the starting container, also wrap:
Select a container as primary tank from all containers, remaining container is used as from container;
The test result that implementation of test cases is obtained uploads, comprising:
The test result of the primary tank is uploaded under the catalogue of the primary tank by the primary tank;
The primary tank is by all test results from container under the catalogue of the test result of the primary tank and the primary tank Summarized, obtains test report;It is described to be uploaded to from the test result of container to be described from container by corresponding test result Under the catalogue of the primary tank;
The primary tank uploads the test report.
6. such as method described in any one of claim 1 to 5, which is characterized in that before the starting container, further includes:
Determine the dependence between each container, the dependence be in the first container there are the execution of the first test case according to Rely the implementing result of the second test case in second container;
Communication is established between the container there are dependence;
The first container and the second container are any container in all containers;All containers are located in same network segment.
7. a kind of software testing device characterized by comprising
Creating unit creates more for the service resources according to the component programs of software to be tested and component programs calling A container;
Allocation unit is wrapped in one of protos test suite PROTOS for the protos test suite PROTOS to software to be tested described in each container allocation Containing any number of test case;
Start unit, for starting the container, being executed in the protos test suite PROTOS parallel for any container in all containers Test case;
Reporting unit, the test result for obtaining implementation of test cases upload.
8. device as claimed in claim 7, which is characterized in that the creating unit is specifically used for:
The component programs, test frame and service resources write-in mirror image are created into script, create script using the mirror image Create mirror image;
Container is created using the mirror image.
9. device as claimed in claim 7, which is characterized in that the allocation unit is specifically used for:
The maximum acceptable time of required time, a container full dose test case of execution is executed according to protos test suite PROTOS, and every The quantity of the at most executable test case of a container determines the protos test suite PROTOS to each container allocation.
10. device as claimed in claim 7, which is characterized in that the creating unit is also used to select one from all containers A container is used as primary tank, remaining container from container;
The reporting unit, is specifically used for:
The test result of the primary tank is uploaded under the catalogue of the primary tank;
The test result of the primary tank is summarized with all under the catalogue of the primary tank from the test result of container, is obtained To test report;It is described to be uploaded to the primary tank from container by corresponding test result to be described from the test result of container Under catalogue;
Upload the test report.
11. such as the described in any item devices of claim 7 to 10, which is characterized in that the creating unit is specifically used for:
Determine the dependence between each container, the dependence be in the first container there are the execution of the first test case according to Rely the implementing result of the second test case in second container;
Communication is established between the container there are dependence;
The first container and the second container are any container in all containers;All containers are located in same network segment.
CN201910322919.5A 2019-04-22 2019-04-22 A kind of method for testing software and device Pending CN110083535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910322919.5A CN110083535A (en) 2019-04-22 2019-04-22 A kind of method for testing software and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910322919.5A CN110083535A (en) 2019-04-22 2019-04-22 A kind of method for testing software and device

Publications (1)

Publication Number Publication Date
CN110083535A true CN110083535A (en) 2019-08-02

Family

ID=67415922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910322919.5A Pending CN110083535A (en) 2019-04-22 2019-04-22 A kind of method for testing software and device

Country Status (1)

Country Link
CN (1) CN110083535A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110765026A (en) * 2019-10-31 2020-02-07 北京东软望海科技有限公司 Automatic testing method and device, storage medium and equipment
CN111651349A (en) * 2020-05-26 2020-09-11 泰康保险集团股份有限公司 Test method and device
CN112052070A (en) * 2020-08-27 2020-12-08 亚信科技(南京)有限公司 Application containerization evaluation method and device, electronic equipment and storage medium
CN112395182A (en) * 2019-08-14 2021-02-23 中国联合网络通信集团有限公司 Automatic testing method, device, equipment and computer readable storage medium
CN113138929A (en) * 2021-05-12 2021-07-20 平安国际智慧城市科技股份有限公司 Distributed interface testing method and device, electronic equipment and storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214139A (en) * 2011-06-01 2011-10-12 北京航空航天大学 Automatic test performance control and debugging method facing distributed system
CN104679651A (en) * 2015-02-09 2015-06-03 百度在线网络技术(北京)有限公司 Automatic testing method and executing node
CN105808428A (en) * 2016-03-03 2016-07-27 南京大学 Method for performing unified performance test on distributed file system
CN107688526A (en) * 2017-08-25 2018-02-13 上海壹账通金融科技有限公司 Performance test methods, device, computer equipment and the storage medium of application program
CN108121654A (en) * 2016-11-30 2018-06-05 中国科学院声学研究所 A kind of software large scale test method based on Docker
CN108427641A (en) * 2018-01-29 2018-08-21 中国互联网络信息中心 A kind of multi-task scheduling automated testing method and system based on Docker containers
CN108519952A (en) * 2018-04-13 2018-09-11 南京新贝金服科技有限公司 A kind of distributed WEB automatization test systems and method
CN108694117A (en) * 2017-04-11 2018-10-23 北京京东尚科信息技术有限公司 The method and apparatus of management test environment based on container technique
CN108733553A (en) * 2017-04-18 2018-11-02 北京嘀嘀无限科技发展有限公司 Configuration method, the device and system of test device based on docker
CN108829399A (en) * 2018-04-13 2018-11-16 杭州朗和科技有限公司 A kind of test method of application, test device, medium and calculate equipment
CN108874650A (en) * 2017-05-09 2018-11-23 上海秦苍信息科技有限公司 A kind of continuous integrating automated testing method
CN108959080A (en) * 2018-06-27 2018-12-07 郑州云海信息技术有限公司 A kind of automated testing method executed parallel based on UnitTest
CN109062820A (en) * 2018-11-07 2018-12-21 郑州云海信息技术有限公司 A kind of software performance testing method and device
CN109376017A (en) * 2019-01-07 2019-02-22 人和未来生物科技(长沙)有限公司 Cloud computing platform task processing method, system and its application method based on container

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214139A (en) * 2011-06-01 2011-10-12 北京航空航天大学 Automatic test performance control and debugging method facing distributed system
CN104679651A (en) * 2015-02-09 2015-06-03 百度在线网络技术(北京)有限公司 Automatic testing method and executing node
CN105808428A (en) * 2016-03-03 2016-07-27 南京大学 Method for performing unified performance test on distributed file system
CN108121654A (en) * 2016-11-30 2018-06-05 中国科学院声学研究所 A kind of software large scale test method based on Docker
CN108694117A (en) * 2017-04-11 2018-10-23 北京京东尚科信息技术有限公司 The method and apparatus of management test environment based on container technique
CN108733553A (en) * 2017-04-18 2018-11-02 北京嘀嘀无限科技发展有限公司 Configuration method, the device and system of test device based on docker
CN108874650A (en) * 2017-05-09 2018-11-23 上海秦苍信息科技有限公司 A kind of continuous integrating automated testing method
CN107688526A (en) * 2017-08-25 2018-02-13 上海壹账通金融科技有限公司 Performance test methods, device, computer equipment and the storage medium of application program
CN108427641A (en) * 2018-01-29 2018-08-21 中国互联网络信息中心 A kind of multi-task scheduling automated testing method and system based on Docker containers
CN108519952A (en) * 2018-04-13 2018-09-11 南京新贝金服科技有限公司 A kind of distributed WEB automatization test systems and method
CN108829399A (en) * 2018-04-13 2018-11-16 杭州朗和科技有限公司 A kind of test method of application, test device, medium and calculate equipment
CN108959080A (en) * 2018-06-27 2018-12-07 郑州云海信息技术有限公司 A kind of automated testing method executed parallel based on UnitTest
CN109062820A (en) * 2018-11-07 2018-12-21 郑州云海信息技术有限公司 A kind of software performance testing method and device
CN109376017A (en) * 2019-01-07 2019-02-22 人和未来生物科技(长沙)有限公司 Cloud computing platform task processing method, system and its application method based on container

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
张连蓉等: "面向安全苛刻系统的自动化测试执行调度方法", 《无线互联科技》 *
张连蓉等: "面向安全苛刻系统的自动化测试执行调度方法", 《无线互联科技》, no. 13, 10 July 2015 (2015-07-10) *
彭丽苹等: "基于Docker的云资源弹性调度策略", 《计算机应用》 *
彭丽苹等: "基于Docker的云资源弹性调度策略", 《计算机应用》, no. 02, 10 February 2018 (2018-02-10) *
田丽迎等: "基于云计算的软件测试中的调度问题研究", 《计算机与现代化》 *
田丽迎等: "基于云计算的软件测试中的调度问题研究", 《计算机与现代化》, no. 10, 14 October 2016 (2016-10-14), pages 64 - 64 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112395182A (en) * 2019-08-14 2021-02-23 中国联合网络通信集团有限公司 Automatic testing method, device, equipment and computer readable storage medium
CN110765026A (en) * 2019-10-31 2020-02-07 北京东软望海科技有限公司 Automatic testing method and device, storage medium and equipment
CN111651349A (en) * 2020-05-26 2020-09-11 泰康保险集团股份有限公司 Test method and device
CN111651349B (en) * 2020-05-26 2023-07-14 泰康保险集团股份有限公司 Test method and device
CN112052070A (en) * 2020-08-27 2020-12-08 亚信科技(南京)有限公司 Application containerization evaluation method and device, electronic equipment and storage medium
CN113138929A (en) * 2021-05-12 2021-07-20 平安国际智慧城市科技股份有限公司 Distributed interface testing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110083535A (en) A kind of method for testing software and device
US20190294528A1 (en) Automated software deployment and testing
US20190294531A1 (en) Automated software deployment and testing based on code modification and test failure correlation
CN109189750B (en) Operation method, data analysis system and the storage medium of data analysis workflow
US20190294536A1 (en) Automated software deployment and testing based on code coverage correlation
US11720823B2 (en) Generating recommended processor-memory configurations for machine learning applications
US7895565B1 (en) Integrated system and method for validating the functionality and performance of software applications
US8739125B2 (en) Automated and unattended process for testing software applications
US9606899B1 (en) Software testing using shadow requests
US10956311B2 (en) White box code concurrency testing for transaction processing
CN109240929A (en) Software quality prediction method, apparatus, terminal and computer readable storage medium
CN107832207A (en) Interface performance test method, apparatus, storage medium and computer equipment
CN106484623A (en) A kind of method of software test, apparatus and system
CN109344053A (en) Interface coverage test method, system, computer equipment and storage medium
CN111241073A (en) Data quality inspection method and device
US20050137839A1 (en) Methods, apparatus and programs for system development
CN114528186A (en) Model management method and device and model management server
CN112559525B (en) Data checking system, method, device and server
US20240086165A1 (en) Systems and methods for building and deploying machine learning applications
CN113626044A (en) Service management method and device
CN116627392B (en) Model development method and system based on interactive IDE
Henning Scalability benchmarking of cloud-native applications applied to event-driven microservices
CN113010269B (en) Virtual machine scheduling method and device, electronic equipment and readable storage medium
CN113360368B (en) Method and device for testing software performance
Breivold et al. Analyzing software evolvability of an industrial automation control system: A case study

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: 20190802