CN109062786A - Operation method, device and the terminal of test case - Google Patents

Operation method, device and the terminal of test case Download PDF

Info

Publication number
CN109062786A
CN109062786A CN201810778350.9A CN201810778350A CN109062786A CN 109062786 A CN109062786 A CN 109062786A CN 201810778350 A CN201810778350 A CN 201810778350A CN 109062786 A CN109062786 A CN 109062786A
Authority
CN
China
Prior art keywords
test
test case
machine
case
instruction
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
CN201810778350.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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810778350.9A priority Critical patent/CN109062786A/en
Publication of CN109062786A publication Critical patent/CN109062786A/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
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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/3696Methods or tools to render software testable

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides the operation method, device and terminal of a kind of test case, this method comprises: determining multiple available test machines when receiving test instruction;And obtain at least one test case for needing to run;It is each test case allocation for test machine, wherein attribute information includes type information further according to the attribute information of each test case at least one test case;And then receive the test result that each test machine returns.Operation method, device and the terminal of test case provided in an embodiment of the present invention improve the success rate of APP test.

Description

Operation method, device and the terminal of test case
Technical field
The present invention relates to Computer Applied Technology more particularly to a kind of operation methods of test case, device and terminal.
Background technique
With the high speed development of mobile Internet, the update iteration of application program of mobile phone (Application, abbreviation app) Also increasingly accelerate.It is effective to shorten how during testing APP during the continuous iteration of product updates Testing time, reduction test manpower are most important problems.
In the prior art, during testing APP, different automatic test cases depend on different tests Scene, for example, some test machines can only run the test case of APP1 for test machine, some test machines can only be run The test case of APP2 then can when running the test case of APP2 on it can only run the test machine of test case of APP1 The test case of APP2 is caused to run failure, the success rate so as to cause APP2 test is not high.
Summary of the invention
The embodiment of the present invention provides the operation method, device and terminal of a kind of test case, to improve the success of APP test Rate.
In a first aspect, the embodiment of the present invention provides a kind of operation method of test case, the operation method of the test case Include:
When receiving test instruction, multiple available test machines are determined;
Obtain at least one test case for needing to run;
According to the attribute information of each test case at least one described test case, for each test case point With the test machine, wherein the attribute information includes type information;
Receive the test result that each test machine returns.
In one possible implementation, in described at least one test case according to each test case category Property information, distribute the test machine for each test case, comprising:
Corresponding relationship between type information and test machine according to the pre-stored data determines the class of each test case The corresponding test machine of type information;
The test machine is distributed for each test case.
In one possible implementation, the attribute information further includes the number of runing time and operation failure;
The attribute information of each test case in described at least one test case according to is used for each test Example distributes the test machine, comprising:
According to the number of the runing time and the operation failure, the Estimated Time Of Operation of each test case is determined, Wherein, the number and the Estimated Time Of Operation of the operation failure are proportional;
According to the Estimated Time Of Operation and the type information of each test case, for each test case point With the test machine, so that running the time for the test case respectively distributed between every two test machine in multiple test machines Difference is less than preset value.
In one possible implementation, the attribute information further includes precedence information, at least one described test The quantity of use-case is at least two;
The attribute information of each test case in described at least one test case according to is used for each test Example distributes the test machine, comprising:
The priority of at least two test case is determined respectively;
According to the priority of at least two test case and the type information, for each test case distribution The test machine.
In one possible implementation, the test instruction is according to the instruction of modification content trigger, clocked flip Instruction or the instruction that manually triggers.
Second aspect, the embodiment of the present invention also provide a kind of running gear of test case, the operation dress of the test case It sets and may include:
Acquiring unit, for determining multiple available test machines when receiving test instruction;
The acquiring unit is also used to obtain at least one test case for needing to run;
Allocation unit is described for the attribute information according to each test case at least one described test case Each test case distributes the test machine, wherein the attribute information includes type information;
Receiving unit, the test result returned for receiving each test machine.
In one possible implementation, the allocation unit, be specifically used for type information according to the pre-stored data and Corresponding relationship between test machine determines the corresponding test machine of type information of each test case;It and is described each Test case distributes the test machine.
In one possible implementation, the attribute information further includes the number of runing time and operation failure;
The allocation unit determines each survey specifically for the number according to the runing time and the operation failure The Estimated Time Of Operation of example on probation, wherein the number and the Estimated Time Of Operation of the operation failure are proportional;And according to institute The Estimated Time Of Operation and the type information of each test case are stated, distributes the test machine for each test case, So that the time difference that the test case respectively distributed is run between every two test machine in multiple test machines be less than it is default Value.
In one possible implementation, the attribute information further includes precedence information, at least one described test The quantity of use-case is at least two;
The allocation unit, specifically for determining the priority of at least two test case respectively;And according to described The priority of at least two test cases and the type information distribute the test machine for each test case.
In one possible implementation, the test instruction is according to the instruction of modification content trigger, clocked flip Instruction or the instruction that manually triggers.
The third aspect, the embodiment of the present invention also provide a kind of terminal, which may include processor and memory, In,
The memory is for storing program instruction;
The processor is used to read the program instruction in the memory, and according to the program instruction in the memory Execute the operation method of test case shown in above-mentioned any one of first aspect.
Fourth aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, the computer-readable storage medium It is stored with computer program in matter, when the computer program is executed by processor, executes any one of above-mentioned first aspect institute The operation method for the test case shown.
Operation method, device and the terminal of test case provided in an embodiment of the present invention, when terminal receives test instruction When, first determine multiple available test machines, and be every according to the type information of test case each at least one test case A test case allocation for test machine, to run corresponding test case by test machine, and after having run test case, to Terminal returns to the operating condition of each test case.Compared with prior art, test case provided in an embodiment of the present invention Operation method, device and terminal are the types according to each test case when for each test case allocation for test machine Information is that test case distribution can run the test machine of the test case, and run the test case by the test machine, To realize the test to APP, to improve the success rate of APP test.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other drawings based on these drawings.
Fig. 1 is a kind of application scenarios schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of the operation method of test case provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of the operation method of another test case provided in an embodiment of the present invention;
Fig. 4 be it is provided in an embodiment of the present invention it is a kind of be each test case allocation for test machine flow diagram;
Fig. 5 is a kind of level-one mock rule schematic diagram provided in an embodiment of the present invention;
Fig. 6 is the flow diagram that another kind provided in an embodiment of the present invention is each test case allocation for test machine;
Fig. 7 is a kind of structural schematic diagram of the running gear of test case provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third " and " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to Here the sequence other than those of diagram or description is implemented.In addition, term " includes " and " having " and their any deformation, Be intended to cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, product or setting It is standby those of to be not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for these mistakes The intrinsic other step or units of journey, method, product or equipment.
The operation method of test case provided in an embodiment of the present invention can be applied to terminal and test machine, exemplary, ask Shown in Figure 1, Fig. 1 is a kind of application scenarios schematic diagram provided in an embodiment of the present invention, is tested to the APP in terminal When, a terminal can connect multiple test machines, and the available mark to each test machine of the terminal, currently run shape The attribute informations such as state first determine multiple available test machines, and according at least one in this way when terminal receives test instruction The attribute information (type information) of each test case in test case is each test case allocation for test machine, is surveyed with passing through Test-run a machine runs corresponding test case, and after having run test case, the operation of each test case is returned to terminal Situation.Compared with prior art, the operation method of test case provided in an embodiment of the present invention divides for each test case It is that the test case can be run for test case distribution according to the type information of each test case when with test machine Test machine, and the test case is run by the test machine, to realize the test to APP, to improve the success of APP test Rate.
How technical solution of the present invention and technical solution of the present invention are solved with specific embodiment below above-mentioned Technical problem is described in detail.These specific embodiments can be combined with each other below, for the same or similar concept Or process repeats no more in certain embodiments.Below in conjunction with attached drawing, the embodiment of the present invention is described.
Fig. 2 is a kind of flow diagram of the operation method of test case provided in an embodiment of the present invention, the test case Operation method can be executed by the running gear of test case, the running gear of the test case can be independently arranged, can also To integrate in the terminal.Exemplary, shown in Figure 2, the operation method of the test case may include:
S201, receive test instruction when, determine multiple available test machines.
Optionally, test instruction is according to the modification instruction of content trigger, the instruction of clocked flip or the artificial finger that triggers It enables.That is for terminal when receiving test instruction, test instruction can test according to the modification content automatic trigger of APP Instruction;Test instruction is also possible to the test instruction of terminal clocked flip, can be according to Profile Up dependence test use-case (such as providing the automatic test cases that every day operation newly increases);Certainly, test instruction is also possible to tester and touches manually The test of hair instructs, and tester can execute corresponding test case according to demand.It is exemplary, shown in Figure 3, Fig. 3 For the schematic diagram of the operation method of another test case provided in an embodiment of the present invention.Here, the embodiment of the present invention only with It is illustrated for these three test instructions, but does not represent the embodiment of the present invention and be limited only to this.
It should be noted that multiple available test machines can be understood as connecting with terminal, configuration can transport in database The test machine of capable and current task not in operation.
Exemplary, the type of test machine may include at least three kinds, these three types are respectively fc-specific test FC machine, common survey Test-run a machine and the mock test machine interacted with server.Wherein, fc-specific test FC machine can be understood as to run certain specific APP's The test machine of test case;Common test machine can be understood as to run the test machine of the test case of all APP, with server Interactive mock test machine can be understood as the test machine for needing to interact the test case that could run APP with server, certainly, The embodiment of the present invention is only illustrated by taking the test machine of these three types as an example, but is not represented the embodiment of the present invention and only limited to In this.
S202, at least one test case for needing to run is obtained.
Wherein, the number of at least one test case can be one, or it is multiple, it specifically can be according to practical need It is configured, here, the data of at least one corresponding test case are specially several, the embodiment of the present invention is not done further Limitation.
S203, according to the attribute information of test case each at least one test case, distributed for each test case Test machine.
Wherein, attribute information includes type information, and the type information of the test case can be the survey for being divided into special scenes Example, common test use-case and test case relevant to server on probation.Wherein, the test case of feature scene can be understood as Only in specific APP isolated operation test case, common test use-case can be understood as can individually transporting in all APP Capable test case, and the common test use-case can be assigned randomly on any one test machine and run.It is related to server Test case can be understood as the test case for needing to interact with server.
It should be noted that due to the real-time of server returned data, it will test case is caused to execute failure.Cause This, the request of data of test case relevant to server is sent by mock server.It will after server initiation Starting agent process simultaneously loads matching rule, opens virtual mock server according to the port numbers in matching rule;Request reaches Afterwards, rule match can be carried out to request by proxy server, while goes the unique identification in decoding request.If successful match, It then finds corresponding mock Service-Port and forwards, be otherwise forwarded directly to former server-side.It can control through the above way Returned data are requested, the stability of the test case of server-side interaction is promoted.
It is each survey in the attribute information for determining each test case, and according to the attribute information of each test case It, optionally, can be with the corresponding relationship between type information according to the pre-stored data and test machine, really when example allocation for test machine on probation The corresponding test machine of type information of fixed each test case, and be each test case allocation for test machine.
It should be noted that test case corresponding for different types of information, corresponding test machine can be identical, It can be different.
It is each test case allocation for test in the attribute information according to test case each at least one test case Before machine, each test case can be being determined in this way with the corresponding relationship between pre-stored type information and test machine After type information, so that it may determine the corresponding test machine of each test case according to the corresponding relationship, and by the test case Distribute to its corresponding test machine.
Exemplary, by taking the number of at least one test case is 4 as an example, which is respectively test case A, test case B, test case C and test case D, available test machine are respectively test machine A, test machine B and test machine C; Assuming that the type information of test case A is the test case of special scenes, illustrate that test case A can only be in specific APP Operation, and the specific APP is positioned only on test machine A, then can determine that the corresponding test machine of test case A is test machine A, And test case A is distributed into test machine A, to run test case A by test machine A;Assuming that the type of test case B Information be common test use-case, illustrate test case B can the isolated operation in all APP, then test case B is corresponding Test machine is test machine A and test machine B, and test case B is distributed to test machine A or test machine B, to pass through test machine A or test machine B runs test case B;Assuming that the type information of test case C is test case relevant to server, say The operation needs of bright test case C are interacted with server, then the corresponding test machine of test case C is test machine C, and by the survey Example C on probation distributes to test machine C, to run test case C by test machine C.
S204, the test result that each test machine returns is received.
It is each test in the attribute information by above-mentioned S203 according to test case each at least one test case After use-case allocation for test machine, the test case can be run by the corresponding test machine of each test case, and use in test After example operation is completed, the test result that each test machine returns is received.It can be seen that test case provided in an embodiment of the present invention Operation method, when for each test case allocation for test machine, be according to the type information of each test case be should Test case distributes the test machine that can run the test case, and runs the test case by the test machine, with realization pair The test of APP, to improve the success rate of APP test.
The operation method of test case provided in an embodiment of the present invention, when terminal receives test instruction, first determination is more A available test machine, and according to the type information of test case each at least one test case, it is each test case Allocation for test machine returns every to run corresponding test case by test machine, and after having run test case to terminal The operating condition of one test case.Compared with prior art, the operation method of test case provided in an embodiment of the present invention, It is according to the type information of each test case is that test case distribution can when for each test case allocation for test machine To run the test machine of the test case, and the test case is run by the test machine, to realize the test to APP, thus Improve the success rate of APP test.
The type according to test case each at least one test case is described in detail in above-mentioned embodiment shown in Fig. 2 Information, how for each test case allocation for test machine technical solution, optionally, the attribute information of test case can also wrap Include runing time and operation failure number, therefore, when for each test case allocation for test machine, can also according to run when Between, operation failure number and type information, be each test case allocation for test machine, exemplary, shown in Figure 4, Fig. 4 For it is provided in an embodiment of the present invention it is a kind of be each test case allocation for test machine flow diagram, should be each test case The method of allocation for test machine can also include:
S401, the number to be failed according to runing time and operation, determine the Estimated Time Of Operation of each test case.
Wherein, number and the Estimated Time Of Operation for running failure are proportional, i.e. the number of test case operation failure is more, Then its Estimated Time Of Operation is longer, and the Estimated Time Of Operation is equal to the time of each run failure, along with when running successfully The summation of required runing time.In addition, it should be noted that, if a certain test case only need to run primary just operation at Function, that is, the number for running failure is 0 time, then the Estimated Time Of Operation is equal to runing time required when running successfully.
It should be noted that for test case relevant to server, it will online configuration is divided as required Class, and such test case is carried out to distribute to each test machine after the time divides equally for the time-consuming of each class testing use-case.When After wherein a certain test case executes failure, it will secondary execution, with second of implementing result for final implementing result.When After all task runs, it will parsing operation result, by information backs such as runing times to database, and by result postal Part is sent.
In view of the complexity of the service logic of test case relevant to server, dependence is had between multiple requests, It can realize that mock is relied on by following rule to run with distributed, exemplary, shown in Figure 5, Fig. 5 is present invention implementation A kind of level-one mock rule schematic diagram that example provides.Wherein, 1, function piecemeal, same function guarantees a terminal operating, different Functional module supports distributed operation.2, when running corresponding a certain function, online this mock rule;It is offline after end of run This mock rule.3, rule state is consistent with service logic: notifying center (level-one mock rule) then whole online if it exists (online), other function it is online it is offline needed with test process it is synchronous.It should be noted that in level-one mock rule, It can use the autonomous management to task in jenkins, realize terminal distribution operation automatic test cases and support and take Be engaged in the relevant test case of device, largely reduce manually-operated complexity, thus reduce manual testing when Between.
In addition, it should be noted that, mock shows outer platform, http and https agreement is supported, it can be flat by this Platform carries out additions and deletions to mock rule and changes operation, and the automatic operating process and common test of test case relevant to server are used The automatic operating process of example is similar.
It is exemplary, by taking test case A as an example, if when operation test case A, the possibility operation failure time of test case A Number is 2 times, and this test case A is run 5 times in total in previous operational process, then when the execution of this test case A Between be the runing time called the shot plus estimated failure time multiplied by may operation failure number 2 divided by total time of operation Number 5 is multiplied by probability coefficent.The calculating of probability coefficent herein is according to after each machine end of run, it is contemplated that time and reality The ratio calculation of runing time obtains.Similar, if there is also operations to fail by test case B, test case C and test case D The case where, then in test case B, test case C and test case D the Estimated Time Of Operation of each test case calculating side Formula is identical as the calculation of test case A, here, the embodiment of the present invention is no longer repeated.
After the Estimated Time Of Operation for determining each test case respectively, following S402 can be executed:
S402, Estimated Time Of Operation and type information according to each test case are each test case allocation for test Machine so that the time difference that the test case respectively distributed is run between every two test machine in multiple test machines be less than it is pre- If value.
Wherein, preset value can be configured according to actual needs, here, the present invention specially how many for preset value Embodiment is not done and is further limited.
It, can be with further reference to each test after determining the Estimated Time Of Operation and type information of each test case The current operating conditions of machine are each test machine allocation for test use-case, and use time principle of equipartition, so that each test machine The time difference for having run respective test case is smaller, i.e., has run respective test case simultaneously as far as possible.
It is exemplary, it is run on test machine A if being determined according to the Estimated Time Of Operation of test case A and type information, and The time that test machine A has run the time of test case A and test machine B has currently run test case is greater than preset value, because This, is although according to the type information determination of test case B test case B can be run in test machine A or test machine B, by It is greater than preset value in the time that test machine A has run the time of test case A and test machine B has currently run test case, Therefore, test case B can be distributed into test using time principle of equipartition and according to the Estimated Time Of Operation of test case B Machine B is respectively distributed with running test case B by test machine B so that running between test machine A and test machine B Test case time difference be less than preset value, to improve the operational efficiency of test case.
Based on Fig. 2 or embodiment shown in Fig. 4, when for each test case allocation for test machine, when at least one test When the quantity of use-case is at least two, optionally, the attribute information of the test case can also include precedence information, and according to The precedence information of test case is each test case allocation for test machine, exemplary, shown in Figure 6, and Fig. 6 is the present invention The another kind that embodiment provides is the flow diagram of each test case allocation for test machine, should be surveyed for the distribution of each test case The method of test-run a machine can also include:
S601, the priority for determining at least two test cases respectively.
S602, priority and type information according at least two test cases are each test case allocation for test machine.
In the priority and type information according at least two test cases, when being each test case allocation for test machine, The priority of test case is higher, then is preferably the test case allocation for test machine, to guarantee the high test case of priority First run.
It is exemplary, when determining that the two test cases are both needed to according to test case A and the respective type information of test case B To be run on test machine A, and be test case A and test case B allocation for test machine A when, it is further contemplated that test The priority of use-case A and test case B will preferentially be surveyed if the priority of test case A is higher than the priority of test case B Example A allocation for test machine A on probation, to guarantee the test machine A elder generation higher test case A of running priority grade, and then by test case B distributes to test machine A, then by the lower test case B of test machine A running priority grade, runs in realization to test case Meanwhile improving the operational efficiency of the higher test case of priority.
Fig. 7 is a kind of structural schematic diagram of the running gear 70 of test case provided in an embodiment of the present invention, exemplary, is asked Shown in Figure 7, the running gear 70 of the test case may include:
Acquiring unit 701, for determining multiple available test machines when receiving test instruction.
Acquiring unit 701 is also used to obtain at least one test case for needing to run.
Allocation unit 702 is each survey for the attribute information according to test case each at least one test case Example allocation for test machine on probation, wherein attribute information includes type information.
Receiving unit 703, the test result returned for receiving each test machine.
Optionally, allocation unit 702, specifically for the corresponding pass between type information according to the pre-stored data and test machine System, determines the corresponding test machine of the type information of each test case;It and is each test case allocation for test machine.
Optionally, attribute information further includes the number of runing time and operation failure;Allocation unit 702 is specifically used for root According to the number of runing time and operation failure, the Estimated Time Of Operation of each test case is determined, wherein run the number of failure It is proportional with Estimated Time Of Operation;And according to the Estimated Time Of Operation and type information of each test case, used for each test Example allocation for test machine, so that running the time for the test case respectively distributed between every two test machine in multiple test machines Difference is less than preset value.
Optionally, attribute information further includes precedence information, and the quantity of at least one test case is at least two;Distribution Unit 702, specifically for determining the priority of at least two test cases respectively;And according to the preferential of at least two test cases Grade and type information are each test case allocation for test machine.
Optionally, test instruction is according to the modification instruction of content trigger, the instruction of clocked flip or the artificial finger that triggers It enables.
The running gear 70 of test case shown in the embodiment of the present invention, can execute survey shown in any of the above-described embodiment The technical solution of the operation method of example on probation, realization principle and beneficial effect are similar, are no longer repeated herein.
Fig. 8 is a kind of structural schematic diagram of terminal 80 provided in an embodiment of the present invention, shown in Figure 8, the terminal 80 It may include processor 801 and memory 802, wherein
Memory 802 is for storing program instruction.
Processor 801 is used to read the program instruction in memory 802, and is held according to the program instruction in memory 602 The operation method of test case shown in any of the above-described embodiment of row.
Terminal 80 shown in the embodiment of the present invention can execute the operation side of test case shown in any of the above-described embodiment The technical solution of method, realization principle and beneficial effect are similar, are no longer repeated herein.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored on the computer readable storage medium Computer program executes the operation of test case shown in any of the above-described embodiment when computer program is executed by processor The technical solution of method, realization principle and beneficial effect are similar, are no longer repeated herein.
Processor can be general processor, digital signal processor (digital signal in above-described embodiment Processor, DSP), it is specific integrated circuit (application specific integrated circuit, ASIC), existing At programmable gate array (field programmable gate array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.It may be implemented or execute the disclosed each side in the embodiment of the present invention Method, step and logic diagram.General processor can be microprocessor or the processor is also possible to any conventional processing Device etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processor and execute completion, Or in decoding processor hardware and software module combination execute completion.Software module can be located at random access memory (random access memory, RAM), flash memory, may be programmed read-only deposit at read-only memory (read-only memory, ROM) In the storage medium of this fields such as reservoir or electrically erasable programmable memory, register maturation.The storage medium, which is located at, to be deposited The step of reservoir, processor reads the instruction in memory, completes the above method in conjunction with its hardware.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit Letter connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.In addition, the functional units in various embodiments of the present invention may be integrated into one processing unit, it is also possible to each Unit physically exists alone, and can also be integrated in one unit with two or more units.Above-mentioned integrated unit both may be used To use formal implementation of hardware, can also be realized in the form of hardware adds SFU software functional unit.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.The present invention is directed to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claims are pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claims System.

Claims (12)

1. a kind of operation method of test case characterized by comprising
When receiving test instruction, multiple available test machines are determined;
Obtain at least one test case for needing to run;
According to the attribute information of each test case at least one described test case, institute is distributed for each test case State test machine, wherein the attribute information includes type information;
Receive the test result that each test machine returns.
2. the method according to claim 1, wherein each survey in described at least one test case according to The attribute information of example on probation distributes the test machine for each test case, comprising:
Corresponding relationship between type information and test machine according to the pre-stored data determines the type letter of each test case Cease corresponding test machine;
The test machine is distributed for each test case.
3. method according to claim 1 or 2, which is characterized in that the attribute information further includes runing time and operation The number of failure;
The attribute information of each test case in described at least one test case according to, for each test case point With the test machine, comprising:
According to the number of the runing time and the operation failure, the Estimated Time Of Operation of each test case is determined, wherein The number and the Estimated Time Of Operation of the operation failure are proportional;
According to the Estimated Time Of Operation and the type information of each test case, institute is distributed for each test case Test machine is stated, so that running the time difference for the test case respectively distributed between the every two test machine in multiple test machines Less than preset value.
4. method according to claim 1 or 2, which is characterized in that the attribute information further includes precedence information, described The quantity of at least one test case is at least two;
The attribute information of each test case in described at least one test case according to, for each test case point With the test machine, comprising:
The priority of at least two test case is determined respectively;
According to the priority of at least two test case and the type information, for described in each test case distribution Test machine.
5. method according to claim 1 or 2, which is characterized in that the test instruction is according to modification content trigger Instruction, the instruction of clocked flip or the instruction manually triggered.
6. a kind of running gear of test case characterized by comprising
Acquiring unit, for determining multiple available test machines when receiving test instruction;
The acquiring unit is also used to obtain at least one test case for needing to run;
Allocation unit is described each for the attribute information according to each test case at least one described test case Test case distributes the test machine, wherein the attribute information includes type information;
Receiving unit, the test result returned for receiving each test machine.
7. device according to claim 6, which is characterized in that
The allocation unit determines institute specifically for the corresponding relationship between type information according to the pre-stored data and test machine State the corresponding test machine of type information of each test case;And the test machine is distributed for each test case.
8. device according to claim 6 or 7, which is characterized in that the attribute information further includes runing time and operation The number of failure;
The allocation unit determines that each test is used specifically for the number according to the runing time and the operation failure The Estimated Time Of Operation of example, wherein the number and the Estimated Time Of Operation of the operation failure are proportional;And according to described every The Estimated Time Of Operation of a test case and the type information distribute the test machine for each test case, so that The time difference that the test case respectively distributed is run between every two test machine in multiple test machines is less than preset value.
9. device according to claim 6 or 7, which is characterized in that the attribute information further includes precedence information, described The quantity of at least one test case is at least two;
The allocation unit, specifically for determining the priority of at least two test case respectively;And according to it is described at least The priority of two test cases and the type information distribute the test machine for each test case.
10. device according to claim 6 or 7, which is characterized in that the test instruction is according to modification content trigger Instruction, the instruction of clocked flip or the instruction manually triggered.
11. a kind of terminal, which is characterized in that including processor and memory, wherein
The memory is for storing program instruction;
The processor is used to read the program instruction in the memory, and is executed according to the program instruction in the memory The operation method of test case shown in claim any one of 1-5.
12. a kind of computer readable storage medium, which is characterized in that
It is stored with computer program on computer readable storage medium, when the computer program is executed by processor, executes The operation method of test case shown in claim any one of 1-5.
CN201810778350.9A 2018-07-16 2018-07-16 Operation method, device and the terminal of test case Pending CN109062786A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810778350.9A CN109062786A (en) 2018-07-16 2018-07-16 Operation method, device and the terminal of test case

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810778350.9A CN109062786A (en) 2018-07-16 2018-07-16 Operation method, device and the terminal of test case

Publications (1)

Publication Number Publication Date
CN109062786A true CN109062786A (en) 2018-12-21

Family

ID=64816744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810778350.9A Pending CN109062786A (en) 2018-07-16 2018-07-16 Operation method, device and the terminal of test case

Country Status (1)

Country Link
CN (1) CN109062786A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190810A (en) * 2019-08-26 2020-05-22 腾讯科技(深圳)有限公司 Method, device, server and storage medium for executing test task
CN111367792A (en) * 2020-02-24 2020-07-03 天津满运软件科技有限公司 Test method, test device, storage medium and electronic equipment
CN111831568A (en) * 2020-07-20 2020-10-27 北京达佳互联信息技术有限公司 Automatic test method and device and electronic equipment
CN113495548A (en) * 2020-04-02 2021-10-12 广州汽车集团股份有限公司 Test scheduling system and method
CN115827498A (en) * 2023-02-20 2023-03-21 创云融达信息技术(天津)股份有限公司 Pressure test distribution method and system for software program

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103298016A (en) * 2012-02-27 2013-09-11 展讯通信(上海)有限公司 Test system for mobile terminals
US20140258784A1 (en) * 2013-03-08 2014-09-11 Infineon Technologies Ag Machine and Methods for Reassign Positions of a Software Program Based on a Fail/Pass Performance
US20150204929A1 (en) * 2013-12-13 2015-07-23 Mpi Corporation Testing system and method of instant informing with the same
CN105260299A (en) * 2015-09-17 2016-01-20 安一恒通(北京)科技有限公司 Method, device, and system for software test
CN106649111A (en) * 2016-12-17 2017-05-10 广州酷狗计算机科技有限公司 Method and device for running test cases
CN106844198A (en) * 2016-12-27 2017-06-13 浪潮软件集团有限公司 Distributed dispatching automation test platform and method
CN106991046A (en) * 2017-03-24 2017-07-28 广州酷狗计算机科技有限公司 Application testing method and device
CN107643981A (en) * 2017-08-29 2018-01-30 顺丰科技有限公司 A kind of automatic test platform and operation method of polynary operation flow
CN107766194A (en) * 2017-11-17 2018-03-06 深圳市泉眼网络科技有限公司 Method of testing, device, system, terminal device and computer-readable recording medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103298016A (en) * 2012-02-27 2013-09-11 展讯通信(上海)有限公司 Test system for mobile terminals
US20140258784A1 (en) * 2013-03-08 2014-09-11 Infineon Technologies Ag Machine and Methods for Reassign Positions of a Software Program Based on a Fail/Pass Performance
US20150204929A1 (en) * 2013-12-13 2015-07-23 Mpi Corporation Testing system and method of instant informing with the same
CN105260299A (en) * 2015-09-17 2016-01-20 安一恒通(北京)科技有限公司 Method, device, and system for software test
CN106649111A (en) * 2016-12-17 2017-05-10 广州酷狗计算机科技有限公司 Method and device for running test cases
CN106844198A (en) * 2016-12-27 2017-06-13 浪潮软件集团有限公司 Distributed dispatching automation test platform and method
CN106991046A (en) * 2017-03-24 2017-07-28 广州酷狗计算机科技有限公司 Application testing method and device
CN107643981A (en) * 2017-08-29 2018-01-30 顺丰科技有限公司 A kind of automatic test platform and operation method of polynary operation flow
CN107766194A (en) * 2017-11-17 2018-03-06 深圳市泉眼网络科技有限公司 Method of testing, device, system, terminal device and computer-readable recording medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190810A (en) * 2019-08-26 2020-05-22 腾讯科技(深圳)有限公司 Method, device, server and storage medium for executing test task
CN111190810B (en) * 2019-08-26 2021-09-17 腾讯科技(深圳)有限公司 Method, device, server and storage medium for executing test task
CN111367792A (en) * 2020-02-24 2020-07-03 天津满运软件科技有限公司 Test method, test device, storage medium and electronic equipment
CN113495548A (en) * 2020-04-02 2021-10-12 广州汽车集团股份有限公司 Test scheduling system and method
CN111831568A (en) * 2020-07-20 2020-10-27 北京达佳互联信息技术有限公司 Automatic test method and device and electronic equipment
CN115827498A (en) * 2023-02-20 2023-03-21 创云融达信息技术(天津)股份有限公司 Pressure test distribution method and system for software program

Similar Documents

Publication Publication Date Title
CN109062786A (en) Operation method, device and the terminal of test case
CN106126402B (en) The processing method and processing device of accelerator exception
CN108510389A (en) Intelligent contract call method, equipment and readable storage medium storing program for executing based on block chain
CN106528224A (en) Content updating method and system for Docker container, and server
CN105933137A (en) Resource management method, device and system
CN104811979B (en) Method for testing pressure based on FOTA upgrading and device
CN108874678B (en) Automatic testing method and device for intelligent program
CN108319463A (en) A kind of application upgrade method, apparatus
CN109858828B (en) Power distribution network fixed value automatic setting method and device and distribution network system
CN107741904A (en) Test machine method of automatic configuration, device, equipment and storage medium
CN109495584A (en) Internet of things equipment cut-in method, device, equipment and medium
CN111782524B (en) Application testing method and device, storage medium and electronic device
CN110286997B (en) Multi-container application creation method, device, computer equipment and storage medium
CN110276060A (en) The method and device of data processing
CN109246201A (en) cloud resource delivery method, processor and storage medium
CN110196800A (en) Distributed transaction test method, apparatus and system
CN110427192A (en) A kind of IT system continuous integrating and lasting dissemination method
CN105099774B (en) A kind of router software upgrade method and system
CN106294106B (en) The test method and device of Web application system
CN108319551B (en) Software testing method and device, computer equipment and readable storage medium
CN109697249A (en) Search for method, system and the storage medium of target object and issue object
CN110941559B (en) Automatic test method and system
CN106294037A (en) Strike-machine method of testing and device
CN110019481A (en) Memory database access method, device, equipment and medium
CN110413287A (en) The dispositions method and device of software

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

Application publication date: 20181221

RJ01 Rejection of invention patent application after publication