CN109815114A - Test method, management server, test equipment, computer equipment and medium - Google Patents

Test method, management server, test equipment, computer equipment and medium Download PDF

Info

Publication number
CN109815114A
CN109815114A CN201811530790.9A CN201811530790A CN109815114A CN 109815114 A CN109815114 A CN 109815114A CN 201811530790 A CN201811530790 A CN 201811530790A CN 109815114 A CN109815114 A CN 109815114A
Authority
CN
China
Prior art keywords
test
instruction
testing tool
management server
equipment
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
CN201811530790.9A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811530790.9A priority Critical patent/CN109815114A/en
Publication of CN109815114A publication Critical patent/CN109815114A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of test method of application program, management server, test equipment, computer equipment and computer readable storage mediums, the test method includes: the packaging operation by management server in response to external trigger, sends to test equipment and is packaged instruction;It is instructed by test equipment in response to the packing, multithreading testing tool is packed into Docker container;By management server in response to the operation of the starting multithreading testing tool of external trigger, the instruction of starting multithreading testing tool is sent to test equipment;By test equipment in response to the instruction, start the multithreading testing tool in Docker container;By management server in response to the test operation of external trigger, test instruction is sent to test equipment, and send multiple test cases of corresponding Docker container to test equipment according to default rule;Test instruction and multiple test cases are received by test equipment, instruct control multithreading testing tool to execute multiple test cases according to test.

Description

Test method, management server, test equipment, computer equipment and medium
Technical field
The present invention relates to the field of test technology, test method, management service more particularly, to a kind of application program Device, test equipment, computer equipment and computer readable storage medium.
Background technique
For the internet area of high speed development, client user's product towards big flow emerges one after another.Such as concerning clothing Capable APP system, electric business system are eaten, the close instant session chat system for connecting person to person's life assists netizen to carry out letter Breath flows through the search of filter, message system etc..
Since Internet company's iteration is very fast, be accomplished to from exploitation it is online, to tester do functional test or return Return the time window of verifying very short, more having very is problem emergency repair on line, and the time tested is done to tester may Only 1 hour was differed by 1 day, so test automation is extremely important.Interface testing automation among these is the most important thing.It is logical In normal situation, the quantity of the test case of interface testing can be very more, have 1-2 ten thousand automatic test cases, one by one Execution go down, need 10+ hours time, will also be again plus when 10 minutes to 1 hours not equal analysis failure testing use-case Between, so to accelerate the time of test case execution.
Summary of the invention
It is an object of the present invention to provide a kind of new solutions of the test method of application program.
According to the first aspect of the invention, a kind of test method of application program is provided, comprising:
Step S110 sends to test equipment by management server in response to the packaging operation of external trigger and is packaged instruction;
Step S120 is instructed in response to the packing by the test equipment, multithreading testing tool is packed into In Docker container;
Step S130, by the management server in response to external trigger starting multithreading testing tool operation, to The test equipment sends the instruction for starting the multithreading testing tool;
Step SS140 starts institute by the test equipment in response to the instruction of the starting multithreading testing tool State the multithreading testing tool in Docker container;
Step S150, by the management server in response to the test operation of external trigger, Xiang Suoshu test equipment is sent Test instruction, and the multiple test cases for corresponding to Docker container are sent to the test equipment according to default rule;
Step S160 receives the test instruction and multiple test cases by the test equipment, is referred to according to the test It enables and controls the multiple test case of the multithreading testing tool execution.
Optionally, the test method further include:
The implementing result of each test case is stored in preassigned storage location by the test equipment;
After the completion of the multiple test case executes, the implementing result of the multiple test case is sent to the pipe It manages in server.
Optionally, the step S160 further comprises:
The test instruction and the multiple test case are received by the test equipment;
The multithreading testing tool is controlled according to test instruction, and the multiple survey is executed by golang language Example on probation.
Optionally, the test method further include:
The implementing result for the multiple test case that the test equipment is sent is received by the management server;
The implementing result is compared with preset reference result, determines whether test result succeeds.
Optionally, the test method further include:
By the management server according to the test result, the success rate for executing multiple test cases is determined.
Optionally, the step of multiple test cases prestored are sent to the test equipment according to default rule packet It includes:
Obtain the quantity of the multithreading testing tool of starting;
According to the quantity and the default rule of the multithreading testing tool of the starting, from the test case prestored The middle multiple test cases for choosing corresponding each Docker container.
According to the third aspect of the invention we, a kind of test device of application program is provided, comprising: it is according to the present invention Second aspect provides a kind of management server, comprising:
It is packaged instruction sending module, for the packaging operation in response to external trigger, is sent to test equipment and is packaged instruction;
Enabled instruction sending module, for the operation of the starting multithreading testing tool in response to external trigger, Xiang Suoshu Test equipment sends the instruction for starting the multithreading testing tool;
Instruction sending module is tested, for the test operation in response to external trigger, Xiang Suoshu test equipment sends test Instruction, and the multiple test cases for corresponding to Docker container are sent to the test equipment according to default rule.
Optionally, the management server further include:
As a result receiving module, for receiving the implementing result for the multiple test case that the test equipment is sent;
As a result determining module determines test result for the implementing result to be compared with preset reference result Whether succeed.
Optionally, the management server further include:
Success rate determining module, for determining the success rate for executing multiple test cases according to the test result.
Optionally, the step of multiple test cases prestored are sent to the test equipment according to default rule packet It includes:
The quantity of the multithreading testing tool of starting is obtained by the management server;
According to the quantity and the default rule of the multithreading testing tool of the starting, from the test case prestored The middle multiple test cases for choosing corresponding each Docker container.
According to the third aspect of the invention we, a kind of test equipment is provided, comprising:
Packetization module, the packing instruction for sending in response to management server, multithreading testing tool is packed into In Docker container;
Starting module, the instruction of the starting multithreading testing tool for being sent in response to the management server, Start the multithreading testing tool in the Docker container;
Test module, for receiving the test instruction and the multiple test case that the management server is sent, according to The test instruction controls the multithreading testing tool and executes the multiple test case.
Optionally, the test equipment further include:
As a result preserving module, for the implementing result of each test case to be stored in preassigned storage location On;
As a result sending module is used for after the completion of the multiple test case executes, by holding for the multiple test case Row result is sent in the management server.
Optionally, the test module is further used for:
Receive the test instruction and the multiple test case;
The multithreading testing tool is controlled according to test instruction, and the multiple survey is executed by golang language Example on probation.
According to the fourth aspect of the invention, a kind of computer equipment, including memory and processor, the storage are provided Computer-readable instruction is stored in device, when the computer-readable instruction is executed by the processor, so that the processor The step of executing the test method according to a first aspect of the present invention.
According to the fifth aspect of the invention, a kind of computer readable storage medium is provided, computer journey is stored thereon with Sequence, when the computer program is executed by processor the step of test method described in realization first aspect present invention.
A beneficial effect of the invention is, according to an embodiment of the invention, being set by management server control test It is standby that multithreading testing tool is packed into Docker container, it controls multiple multithreading testing tools while being tested, it can be with The power of test for quickly expanding test macro reduces the time that configuration large scale test equipment carries out test assignment.In addition, may be used also To improve the power of test of a test equipment.Further, it is also possible to improve the efficiency of test.
By referring to the drawings to the detailed description of exemplary embodiment of the present invention, other feature of the invention and its Advantage will become apparent.
Detailed description of the invention
It is combined in the description and the attached drawing for constituting part of specification shows the embodiment of the present invention, and even With its explanation together principle for explaining the present invention.
Fig. 1 is the example for showing the hardware configuration of test macro for the application program that can be used for realizing the embodiment of the present invention Block diagram.
Fig. 2 shows the flow charts of an example of the test method of the application program of the embodiment of the present invention.
Fig. 3 shows the flow chart of another example of the test method of the application program of the embodiment of the present invention.
Fig. 4 shows the block diagram of an example of the management server of the embodiment of the present invention.
Fig. 5 shows the block diagram of an example of the test equipment of the embodiment of the present invention.
Specific embodiment
Carry out the various exemplary embodiments of detailed description of the present invention now with reference to attached drawing.It should also be noted that unless in addition having Body explanation, the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally The range of invention.
Be to the description only actually of at least one exemplary embodiment below it is illustrative, never as to the present invention And its application or any restrictions used.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable In the case of, the technology, method and apparatus should be considered as part of specification.
It is shown here and discuss all examples in, any occurrence should be construed as merely illustratively, without It is as limitation.Therefore, other examples of exemplary embodiment can have different values.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
<hardware configuration>
As shown in Figure 1, the test macro 1000 of application program includes test equipment 1100, management server 1200 and net Network 1300.
Test equipment 1100 is such as can be mobile phone, tablet computer, laptop, desktop computer.In an example In son, test equipment 1100 can be one or more computer.In another example, test equipment 1100 can be such as figure Shown in 1, including processor 1110, memory 1120, interface arrangement 1130, communication device 1140, display device 1150, input dress Set 1160.Although server also may include loudspeaker, microphone etc., these components are unrelated to the invention, therefore herein It omits.Wherein, processor 1110 is such as can be central processor CPU, Micro-processor MCV.Memory 1120 for example including ROM (read-only memory), RAM (random access memory), nonvolatile memory of hard disk etc..Interface arrangement 1130 It such as include USB interface, serial line interface.Communication device 1140 is for example able to carry out wired or wireless communication.Display device 1150 E.g. liquid crystal display.Input unit 1160 is such as may include touch screen, keyboard.
Management server 1200 can also be with one or more computer.As shown in Figure 1, management server 1200 may include Processor 1210, interface arrangement 1230, communication device 1240, display device 1250, input unit 1260, is raised memory 1220 Sound device 1270, microphone 1280, etc..Wherein, processor 1210 can be central processor CPU, Micro-processor MCV etc..It deposits Reservoir 1220 for example including ROM (read-only memory), RAM (random access memory), such as hard disk nonvolatile memory Deng.Interface arrangement 1230 is for example including USB interface, earphone interface etc..Communication device 1240 is for example able to carry out wired or wireless Communication.Display device 1250 is, for example, liquid crystal display, touch display screen etc..Input unit 1260 for example may include touching Screen, keyboard etc..User can pass through 1280 inputting/outputting voice information of loudspeaker 1270 and microphone.
Communication network 1300 can be wireless network and can also be can be local area network with network and be also possible to wide area network.In Fig. 1 Shown in configuration surroundings 1000, management server 1200-1,1200-2 and test equipment 1100-1,1100-2,1100-3, 1100-4 can be communicated by communication network 1300.
Configuration surroundings 1100 shown in FIG. 1 are only explanatory, and never be intended to limitation the present invention, its application or Purposes.
Using in an embodiment of the present invention, the memory 1120 of test equipment 1100 is for storing instruction, described It instructs and is operated for controlling the processor 1110 to execute any one application journey of first embodiment of the invention offer The test method of sequence.
For storing instruction, described instruction is for controlling the processor for the memory 1220 of management server 1200 1210 are operated to execute the test method of any one application program of second embodiment of the invention offer.Art technology Personnel it will be appreciated that though all show multiple devices to test equipment 1100 and management server 1200 in Fig. 1, but It is that the present invention can only relate to partial devices therein, for example, test equipment 1100 pertains only to processor 1110 and storage device 1120 or management server 1200 pertain only to processor 1210 and storage device 1220 etc..Technical staff can be according to this hair Bright disclosed conceptual design instruction.How control processor is operated for instruction, this is it is known in the art that therefore herein no longer in detail Description.
The general plotting of the embodiment of the present invention is to provide a kind of technical solution of new test application program, passes through management Multithreading testing tool is packed into Docker container by server control test equipment, and it is same to control multiple multithreading testing tools Shi Jinhang test, can quickly expand the power of test of test macro, reduce configuration large scale test equipment and carry out test assignment Time.Further, it is also possible to improve the power of test of a test equipment.Further, it is also possible to improve the efficiency of test.
<method>
In the present embodiment, a kind of test method of application program is provided, is implemented by test equipment.
The test equipment can be arbitrarily with the electronic equipment of processor and memory, for example, it may be mobile phone, plate are electric Brain, laptop, desktop computer etc..In one example, test equipment can be test equipment 1100 shown in FIG. 1.
The test control method, as shown in Figure 2, comprising: step S110-S160.
Step S110 sends to test equipment by management server in response to the packaging operation of external trigger and is packaged instruction.
The management server can be arbitrarily with the electronic equipment of processor and memory, for example, it may be desk-top calculating Machine, blade server, cloud server etc..In one example, test equipment can be management server shown in FIG. 1 1200。
In one example, management server can be the computer for being equipped with Jenkins.Jenkins is an open source Software project is a kind of continuous integrating tool based on Java exploitation, for monitoring persistently duplicate work, it is desirable to provide one Open easy-to-use software platform, makes the continuous integrating of software become possible.Jenkins can periodically go to execute some repeatability Work.In the present embodiment, management server can be started in the test equipment of group system multiple by Jenkins Docker container.Multiple docker containers, which can be, to be arranged in same test equipment, is also possible to that different tests is arranged in In equipment.Management server can start the multithreading testing tool in multiple Docker containers by Jenkins.
Step S120 is instructed in response to the packing that management server is sent by test equipment, multithreading testing tool is beaten Packet is into Docker container.
It is instructed specifically, can be test equipment in response to being packaged, creates the Docker based on Docker mirror image and hold Device, then the installation kit of multithreading testing tool is uploaded in Docker mirror image and is installed.In the peace of multithreading testing tool In the case that dress packet is installed successfully, then realize operation multithreading testing tool being packed into Docker container.
Docker is the application container engine of an open source, and developer can be packaged their application and rely on packet and arrives In one transplantable container, then it is published on the Linux machine of any prevalence, also may be implemented to virtualize.Container has been Sandbox mechanism is entirely used, does not have any interface between each other.It, can be easily in machine sum number almost without performance cost According to being run in center.
In a test equipment, multiple Docker containers can have been created.It can have been run in each Docker container One multithreading testing tool.
Step S130, by management server in response to the operation of the starting multithreading testing tool of external trigger, to test Equipment sends the instruction of starting multithreading testing tool.
Step S140 is opened by the instruction for the starting multithreading testing tool that test equipment is sent in response to management server Multithreading testing tool in dynamic Docker container.
Specifically, can be management server in response to the operation of the starting multithreading testing tool of external trigger, to survey The instruction that equipment sends starting multithreading testing tool is tried, test equipment is in response to multi-thread in instruction starting Docker container Journey testing tool, so that multithreading testing tool completes the preparation before test.
Step S150 sends test instruction to test equipment by management server in response to the test operation of external trigger, And multiple test cases of corresponding Docker container are sent to test equipment according to default rule.
Sending corresponding multiple test cases to test equipment according to default rule further comprises:
Obtain the quantity of the multithreading testing tool of starting.
According to the quantity and default rule of the multithreading testing tool of starting, the selection pair from the test case prestored Should every Docker container multiple test cases.
Default rule for example can be stochastic averagina distribution.For example, the quantity of test case can be 1000, starting Docker container can be 10, then, the starting quantity of multithreading testing tool is also 10.Cluster administrator can incite somebody to action This 1000 test case mean allocations are to 10 multithreading testing tools, so that each multithreading testing tool executes 10 surveys Example on probation.
Step S160 receives the test instruction and multiple test cases that management server is sent by test equipment, according to this Test instruction control multithreading testing tool executes multiple test cases.
Specifically, can be management server in response to the test operation of external trigger, test is sent to test equipment and is referred to It enables, and corresponding multiple test cases is sent to test equipment according to default rule.Test equipment receives management server hair The test instruction sent and multiple test cases instruct control multithreading testing tool to execute multiple test cases according to test.
Test instruction is sent in the multithreading testing tool of internal starting specifically, can be test equipment.It is more Thread testing tool executes test instruction, realizes the test of multiple test cases to the corresponding multithreading testing tool.
Multithreading testing tool can star multiple threads to be performed simultaneously test case.In this way, it is possible to reduce when test Between.
Test case (Test Case) be the one group of test input worked out for some special objective, execution condition and Expected results, to test some Program path or to verify whether meet some particular demands.
Control multithreading testing tool is instructed to execute multiple test cases according to the test specifically: according to test instruction control Multithreading testing tool processed counts golang language to execute multiple test cases.
The performance of golang is very good, is particularly good in high-performance, big concurrent scene.Net/ can be used in golang Then http packet, Lai Shixian http get and post method realize that the operation of multithreading testing tool is surveyed using go keyword Example on probation.Under the execution of this multithreading, it is possible to reduce the testing time of application program.
In one example, which can also include the steps that S310-S340 as shown in Figure 3:
The implementing result of each test case is stored on preassigned position by step S310 by test equipment.
Preassigned position specifically can be in the file specified in test equipment.
Step S320, by test equipment after the completion of multiple test cases execute, by the implementing result of multiple test cases It is sent in management server.
The successfully tested rate of multiple test cases can be determined according to test result.
Specifically, the multithreading testing tool that can be in each Docker container has executed corresponding multiple test use After example, the implementing result of these test cases is sent in management server.
Step S330 is received the implementing result for multiple test cases that test equipment is sent by management server.
Implementing result is compared with preset reference result by management server, determines test result by step S340 Whether succeed.
In one example, interface testing can be carried out by the system.Interface testing is the information (interface by interface Enter ginseng, be GET or POST etc.), http request is then sent, relevant response response is obtained, then this A response and preset reference result compare, to judge this interface testing the result is that passing through still failure.
It is possible to further determine the successfully tested rate of multiple test cases according to test result.
In one example, management server may also respond to check the operation of result, obtains and corresponds to from database Implementing result, be calculated successfully tested rate further according to these implementing results, and the test case details of failure are mentioned Supply developer.
In the embodiment of the present invention, by the way that multithreading testing tool in test equipment is packaged as Docker container, so that Management server can control multiple multithreading testing tools while be tested.In this way, a test equipment can be improved Power of test.Further, it is also possible to improve the efficiency of test.
<test equipment>
It corresponds to the above method, the present invention also provides a kind of test equipments.As shown in figure 4, the test device can To include: packetization module 410, starting module 420 and test module 430.The packetization module 410 is used in response to management server The packing of transmission instructs, and multithreading testing tool is packed into Docker container;The starting module 420 is used in response to management The instruction for the starting multithreading testing tool that server is sent, starts the multithreading testing tool in Docker container;The test Module 430 is used to receive the test instruction and multiple test cases of management server transmission, instructs control multithreading according to test Testing tool executes multiple test cases.
In one example, which can also include that result preserving module and result sending module (do not show in figure Out).The result preserving module is used to the implementing result of each test case being stored in preassigned storage location;The knot Fruit sending module is used to that the implementing result of multiple test cases to be sent to management service after the completion of multiple test cases execute In device.
In one example, which can also be further used for: receiving test instruction and multiple tests are used Example;Control multithreading testing tool is instructed to execute multiple test cases by golang language according to test.
<management server>
It corresponds to the above method, the present invention also provides a kind of management servers.As shown in figure 5, the management service Device may include being packaged instruction sending module 510, enabled instruction sending module 520 and test instruction sending module 530.The packing Instruction sending module 510 is used for the packaging operation in response to external trigger, sends to test equipment and is packaged instruction;The enabled instruction Sending module 520 is used for the operation of the starting multithreading testing tool in response to external trigger, and it is more to send starting to test equipment The instruction of thread testing tool;The test instruction sending module 530 is used for the test operation in response to external trigger, sets to test Preparation send test to instruct, and sends multiple test cases of corresponding Docker container to test equipment according to default rule.
In one example, the step of multiple test cases prestored being sent to test equipment according to default rule packet It includes: obtaining the quantity of the multithreading testing tool of starting by management server;According to the quantity of the multithreading testing tool of starting, And default rule, multiple test cases of corresponding every Docker container are chosen from the test case prestored.
In one example, the management server can also include: result receiving module and result determining module (in figure not It shows).The result receiving module is used to receive the implementing result of multiple test cases of test equipment transmission;The result determines mould Block determines whether test result succeeds for implementing result to be compared with preset reference result.
Further, which can also include: success rate determining module (not shown), for according to test As a result, determining the success rate for executing multiple test cases.
<computer equipment>
The present invention also provides a kind of computer equipment, including memory and processor, meter is stored in the memory Calculation machine readable instruction, when the computer-readable instruction is executed by the processor, so that the processor is executed according to this hair The step of bright test method as described in the examples.
<computer readable storage medium>
The present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, the computer The step of test method described in the embodiment of the present invention is realized when program is executed by processor.
The present invention can be system, method and/or computer program product.Computer program product may include computer Readable storage medium storing program for executing, containing for making processor realize the computer-readable program instructions of various aspects of the invention.
Computer readable storage medium, which can be, can keep and store the tangible of the instruction used by instruction execution equipment Equipment.Computer readable storage medium for example can be-- but it is not limited to-- storage device electric, magnetic storage apparatus, optical storage Equipment, electric magnetic storage apparatus, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer readable storage medium More specific example (non exhaustive list) includes: portable computer diskette, hard disk, random access memory (RAM), read-only deposits It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable Compact disk read-only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon It is stored with punch card or groove internal projection structure and the above-mentioned any appropriate combination of instruction.Calculating used herein above Machine readable storage medium storing program for executing is not interpreted that instantaneous signal itself, the electromagnetic wave of such as radio wave or other Free propagations lead to It crosses the electromagnetic wave (for example, the light pulse for passing through fiber optic cables) of waveguide or the propagation of other transmission mediums or is transmitted by electric wire Electric signal.
Computer-readable program instructions as described herein can be downloaded to from computer readable storage medium it is each calculate/ Processing equipment, or outer computer or outer is downloaded to by network, such as internet, local area network, wide area network and/or wireless network Portion stores equipment.Network may include copper transmission cable, optical fiber transmission, wireless transmission, router, firewall, interchanger, gateway Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for the meter being stored in each calculating/processing equipment In calculation machine readable storage medium storing program for executing.
Computer program instructions for executing operation of the present invention can be assembly instruction, instruction set architecture (ISA) instructs, Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming languages The source code or object code that any combination is write, the programming language include the programming language-of object-oriented such as Smalltalk, C++ etc., and conventional procedural programming languages-such as " C " language or similar programming language.Computer Readable program instructions can be executed fully on the user computer, partly execute on the user computer, be only as one Vertical software package executes, part executes on the remote computer or completely in remote computer on the user computer for part Or it is executed on server.In situations involving remote computers, remote computer can pass through network-packet of any kind It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).In some embodiments, by utilizing computer-readable program instructions Status information carry out personalized customization electronic circuit, such as programmable logic circuit, field programmable gate array (FPGA) or can Programmed logic array (PLA) (PLA), the electronic circuit can execute computer-readable program instructions, to realize each side of the invention Face.
Referring herein to according to the method for the embodiment of the present invention, the flow chart of device (system) and computer program product and/ Or block diagram describes various aspects of the invention.It should be appreciated that flowchart and or block diagram each box and flow chart and/ Or in block diagram each box combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to general purpose computer, special purpose computer or other programmable datas The processor of processing unit, so that a kind of machine is produced, so that these instructions are passing through computer or other programmable datas When the processor of processing unit executes, function specified in one or more boxes in implementation flow chart and/or block diagram is produced The device of energy/movement.These computer-readable program instructions can also be stored in a computer-readable storage medium, these refer to It enables so that computer, programmable data processing unit and/or other equipment work in a specific way, thus, it is stored with instruction Computer-readable medium then includes a manufacture comprising in one or more boxes in implementation flow chart and/or block diagram The instruction of the various aspects of defined function action.
Computer-readable program instructions can also be loaded into computer, other programmable data processing units or other In equipment, so that series of operation steps are executed in computer, other programmable data processing units or other equipment, to produce Raw computer implemented process, so that executed in computer, other programmable data processing units or other equipment Instruct function action specified in one or more boxes in implementation flow chart and/or block diagram.
The flow chart and block diagram in the drawings show the system of multiple embodiments according to the present invention, method and computer journeys The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation One module of table, program segment or a part of instruction, the module, program segment or a part of instruction include one or more use The executable instruction of the logic function as defined in realizing.In some implementations as replacements, function marked in the box It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.It is right For those skilled in the art it is well known that, by hardware mode realize, by software mode realize and pass through software and It is all of equal value that the mode of combination of hardware, which is realized,.
Various embodiments of the present invention are described above, above description is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes are obvious for the those of ordinary skill in art field.The selection of term used herein, purport In principle, the practical application or to the technological improvement in market for best explaining each embodiment, or make the art its Its those of ordinary skill can understand each embodiment disclosed herein.The scope of the present invention is defined by the appended claims.

Claims (10)

1. a kind of test method of application program characterized by comprising
Step S110 sends to test equipment by management server in response to the packaging operation of external trigger and is packaged instruction;
Step S120 is instructed by the test equipment in response to the packing, and multithreading testing tool is packed into Docker and is held In device;
Step S130, by the management server in response to the operation of the starting multithreading testing tool of external trigger, Xiang Suoshu Test equipment sends the instruction for starting the multithreading testing tool;
Step S140, by the test equipment in response to the instruction of the starting multithreading testing tool, described in starting Multithreading testing tool in Docker container;
Step S150, by the management server in response to the test operation of external trigger, Xiang Suoshu test equipment sends test Instruction, and the multiple test cases for corresponding to Docker container are sent to the test equipment according to default rule;
Step S160 receives the test instruction and the multiple test case by the test equipment, is referred to according to the test It enables and controls the multiple test case of the multithreading testing tool execution.
2. test method according to claim 1, which is characterized in that the test method further include:
The implementing result of each test case is stored in preassigned storage location by the test equipment;
After the completion of the multiple test case executes, the implementing result of the multiple test case is sent to the management and is taken It is engaged in device.
3. test method according to claim 1, which is characterized in that the step S160 further comprises:
The test instruction and the multiple test case are received by the test equipment;
The multithreading testing tool is controlled according to test instruction, and the multiple test use is executed by golang language Example.
4. test method according to claim 1, which is characterized in that the test method further include:
The implementing result for the multiple test case that the test equipment is sent is received by the management server;
The implementing result is compared with preset reference result, determines whether test result succeeds.
5. according to the method described in claim 4, it is characterized in that, the test method further include:
By the management server according to the test result, the success rate for executing multiple test cases is determined.
6. test method according to claim 1, which is characterized in that it is described according to default rule to the test equipment Send prestore multiple test cases the step of include:
The quantity of the multithreading testing tool of starting is obtained by the management server;
According to the quantity and the default rule of the multithreading testing tool of the starting, selected from the test case prestored Take multiple test cases of corresponding each Docker container.
7. a kind of management server characterized by comprising
It is packaged instruction sending module, for the packaging operation in response to external trigger, is sent to test equipment and is packaged instruction;
Enabled instruction sending module, for the operation of the starting multithreading testing tool in response to external trigger, to the test Equipment sends the instruction for starting the multithreading testing tool;
Instruction sending module is tested, for the test operation in response to external trigger, Xiang Suoshu test equipment sends test instruction, And multiple test cases of corresponding Docker container are sent to the test equipment according to default rule.
8. a kind of test equipment characterized by comprising
Packetization module, the packing instruction for sending in response to management server, is packed into Docker for multithreading testing tool In container;
Starting module, the instruction of the starting multithreading testing tool for being sent in response to the management server, starting Multithreading testing tool in the Docker container;
Test module, for receiving the test instruction and the multiple test case that the management server is sent, according to described Test instruction controls the multithreading testing tool and executes the multiple test case.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described When computer-readable instruction is executed by the processor, so that the processor executes any one of -6 institute according to claim 1 The step of stating test method.
10. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that: the computer program The step of test method described in any one of claim 1-6 is realized when being executed by processor.
CN201811530790.9A 2018-12-14 2018-12-14 Test method, management server, test equipment, computer equipment and medium Pending CN109815114A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811530790.9A CN109815114A (en) 2018-12-14 2018-12-14 Test method, management server, test equipment, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811530790.9A CN109815114A (en) 2018-12-14 2018-12-14 Test method, management server, test equipment, computer equipment and medium

Publications (1)

Publication Number Publication Date
CN109815114A true CN109815114A (en) 2019-05-28

Family

ID=66602944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811530790.9A Pending CN109815114A (en) 2018-12-14 2018-12-14 Test method, management server, test equipment, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN109815114A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113297072A (en) * 2021-05-17 2021-08-24 阿里巴巴新加坡控股有限公司 Container testing method and device
CN113760709A (en) * 2020-09-29 2021-12-07 北京沃东天骏信息技术有限公司 Automatic testing method and device
CN113778768A (en) * 2021-08-24 2021-12-10 深圳市联影高端医疗装备创新研究院 Reconstruction server testing method and device, computer equipment and storage medium
CN113839839A (en) * 2021-10-22 2021-12-24 武汉天喻信息产业股份有限公司 Method and system for testing multi-thread concurrent communication
CN113835994A (en) * 2020-06-24 2021-12-24 上海莉莉丝科技股份有限公司 Golang language-based server stress testing system, method and computer-readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104050077A (en) * 2013-03-15 2014-09-17 英特尔公司 Fusible instructions and logic to provide or-test and and-test functionality using multiple test sources
US20160085666A1 (en) * 2014-09-22 2016-03-24 International Business Machines Corporation Auto-deployment and testing of system application test cases in remote server environments
CN105760265A (en) * 2012-06-29 2016-07-13 英特尔公司 Instruction And Logic To Test Transactional Execution Status
US20170039121A1 (en) * 2015-08-06 2017-02-09 International Business Machines Corporation Test self-verification with integrated transparent self-diagnose
CN108287789A (en) * 2017-12-29 2018-07-17 五八有限公司 Batch-automated test method, device and electronic equipment
CN108536571A (en) * 2018-04-13 2018-09-14 平安普惠企业管理有限公司 Performance test methods, device, equipment and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760265A (en) * 2012-06-29 2016-07-13 英特尔公司 Instruction And Logic To Test Transactional Execution Status
CN104050077A (en) * 2013-03-15 2014-09-17 英特尔公司 Fusible instructions and logic to provide or-test and and-test functionality using multiple test sources
US20160085666A1 (en) * 2014-09-22 2016-03-24 International Business Machines Corporation Auto-deployment and testing of system application test cases in remote server environments
US20170039121A1 (en) * 2015-08-06 2017-02-09 International Business Machines Corporation Test self-verification with integrated transparent self-diagnose
CN108287789A (en) * 2017-12-29 2018-07-17 五八有限公司 Batch-automated test method, device and electronic equipment
CN108536571A (en) * 2018-04-13 2018-09-14 平安普惠企业管理有限公司 Performance test methods, device, equipment and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宋辉;: "一种轻量级软件性能测试工具的设计与实现", 西安邮电学院学报, no. 03 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835994A (en) * 2020-06-24 2021-12-24 上海莉莉丝科技股份有限公司 Golang language-based server stress testing system, method and computer-readable storage medium
CN113760709A (en) * 2020-09-29 2021-12-07 北京沃东天骏信息技术有限公司 Automatic testing method and device
CN113297072A (en) * 2021-05-17 2021-08-24 阿里巴巴新加坡控股有限公司 Container testing method and device
CN113297072B (en) * 2021-05-17 2023-11-03 阿里巴巴新加坡控股有限公司 Container testing method and device
CN113778768A (en) * 2021-08-24 2021-12-10 深圳市联影高端医疗装备创新研究院 Reconstruction server testing method and device, computer equipment and storage medium
CN113839839A (en) * 2021-10-22 2021-12-24 武汉天喻信息产业股份有限公司 Method and system for testing multi-thread concurrent communication
CN113839839B (en) * 2021-10-22 2023-05-09 武汉天喻信息产业股份有限公司 Method and system for testing multi-thread concurrent communication

Similar Documents

Publication Publication Date Title
CN109815114A (en) Test method, management server, test equipment, computer equipment and medium
US10671368B2 (en) Automatic creation of delivery pipelines
CN109302522B (en) Test method, test device, computer system, and computer medium
US20170003948A1 (en) Continuous deployment success prediction
US10541822B2 (en) Expected group chat segment duration
US10877876B2 (en) System and method for automated thin client contact center agent desktop testing
US9424171B1 (en) Resource-constrained test automation
CN109359033A (en) Method for testing pressure, testing service device, management server and system
US20130179858A1 (en) Framework for automated testing of mobile apps
US20180260201A1 (en) Intelligent software deployment on an iaas platform
US10904128B2 (en) Testing functionality of an Internet of Things environment
US10838850B2 (en) Robotic regression testing for smart devices
CN109685089A (en) The system and method for assessment models performance
US11722371B2 (en) Utilizing unstructured data in self-organized networks
US11049311B2 (en) Dynamically transforming a typing indicator to reflect a user&#39;s tone
EP3614264B1 (en) Performance engineering
US11978060B2 (en) Dynamic categorization of it service tickets using natural language description
US9904744B2 (en) Probabilistic simulation scenario design by using multiple conditional and nested probability distribution input functions
CN113227978A (en) Automatic anomaly detection in computer processing pipelines
US11601347B2 (en) Identification of incident required resolution time
US10228685B2 (en) Use of multivariate models to control manufacturing operations
US20170295085A1 (en) Building and testing composite virtual services using debug automation
US11671385B1 (en) Automated communication exchange programs for attended robotic process automation
US20220414331A1 (en) Automatically generated question suggestions
US20180203790A1 (en) Detection of software errors

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