CN110245065A - The method and apparatus of automatic test - Google Patents

The method and apparatus of automatic test Download PDF

Info

Publication number
CN110245065A
CN110245065A CN201810193871.8A CN201810193871A CN110245065A CN 110245065 A CN110245065 A CN 110245065A CN 201810193871 A CN201810193871 A CN 201810193871A CN 110245065 A CN110245065 A CN 110245065A
Authority
CN
China
Prior art keywords
test
input
target point
path
input item
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
CN201810193871.8A
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 Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810193871.8A priority Critical patent/CN110245065A/en
Publication of CN110245065A publication Critical patent/CN110245065A/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/3684Test management for test design, e.g. generating new test cases
    • 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

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 invention discloses automated testing methods and device, are related to field of computer technology.One specific embodiment of this method includes: to determine test path according to the related test target point of test scene;The input condition determined according to input item set is matched with the test path, to develop test case;Automatic test is carried out to the test target point according to the test case.Which overcomes the prior arts not to go numerous and jumbled, high to the subsequent threshold for accessing other use-cases, decision problem source the low efficiency of assignment test target, test path from the comprehensive many factors of global angle, lacks the defect of tracing system status function, so reach with global angle measurement all test target point situations related from the scene, improve testing efficiency, be adjusted flexibly the different automatic test scenes of test case, adaptation, it is quick judge test target point whether Yi Chang beneficial effect.

Description

The method and apparatus of automatic test
Technical field
The present invention relates to field of computer technology more particularly to a kind of method and apparatus of automatic test.
Background technique
In order to guarantee that software continuous is integrated and promote the efficiency of exploitation, guarantee various components all with greater efficiency operation and When verifying and test function it is complete, need automatic test.
Some prior arts are that system is tested in the change based on code, some prior arts are only used from generation test The angle of example tests system.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:
1. the prior art usually solves the problems, such as in terms of some, positioning is not gone to survey from the comprehensive many factors of global angle The target of examination, to generate the defect for testing the needs that do not gear to actual circumstances.
2. the prior art goes detection target merely with the method for generating test case, to the subsequent threshold for accessing other use-cases Height, so as to cause the defect that cannot be multiplexed.
3. the interface or scene input condition of some prior arts are excessive, test path is numerous and jumbled, and decision problem is caused to go out The low efficiency at place.
4. causing test phase to be unable to forecasting system may the prior art does not consider that the value of input item is wrong value The loophole of appearance generates the case where catastrophic results.
5. the prior art lacks the function of tracing system state, the source gone wrong cannot be clearly judged.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and apparatus of automatic test, it can be from global angle The case where testing all test target points related with the scene, and improve testing efficiency;Test case is adjusted flexibly, thus Adapt to different automatic test scenes;Quickly judge whether test target point is problematic, improves testing efficiency, and can be realized Processing to abnormality test target point, the processing to wrong input condition, reaching can be to avoid the beneficial effect of failure on many lines Fruit.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of method of automatic test is provided, Include:
Test path is determined according to the related test target point of test scene;
The input condition determined according to input item set is matched with the test path, to develop test case;
Automatic test is carried out to the test target point according to the test case.
Preferably, the formation of input condition includes: according to all input items in input item set, to each input item Each of value carry out permutation and combination, the result of obtained permutation and combination is input condition.
Preferably, the value of input item includes: wrong value beyond input item value range and/or meets input item and take It is worth the correct value of range.
Preferably, input condition is matched with the test path, comprising: according to input condition and test path it is random and/ Or it is matched according to the priority of test path.
Preferably, determine that test path includes: the mode for selecting dendrogram according to the related test target point of test scene Test path is determined according to test target point;Wherein, each blade of dendrogram is a test target point, and every branch is from root Setting out to a last blade is a test path.
Another aspect according to an embodiment of the present invention provides a kind of device of automatic test, comprising:
Test path determining module, for determining test path according to the related test target point of test scene;
Test case development module, input condition and the test path for will be determined according to input item set Match, to develop test case;
Automatic test module, for carrying out automatic test to the test target point according to the test case.
Preferably, the formation of input condition includes: according to all input items in input item set, to each input item Each of value carry out permutation and combination, the result of obtained permutation and combination is input condition.
Preferably, the value of input item includes: wrong value beyond input item value range and/or meets input item and take It is worth the correct value of range.
Preferably, input condition is matched with the test path, comprising: according to input condition and test path it is random and/ Or it is matched according to the priority of test path.
Preferably, determine that test path includes: the mode for selecting dendrogram according to the related test target point of test scene Test path is determined according to test target point;Wherein, each blade of dendrogram is a test target point, and every branch is from root Setting out to a last blade is a test path.
Other side according to an embodiment of the present invention provides a kind of electronic equipment of automatic test, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more programs are executed by one or more processors, so that one or more processors realize the present invention The method of automatic test.
Still another aspect according to an embodiment of the present invention provides a kind of computer-readable medium, is stored thereon with computer Program realizes the method for automatic test of the present invention when program is executed by processor.
One embodiment in foregoing invention have the following advantages that or the utility model has the advantages that
1. being matched by using input condition with the test path, to develop the means of test case, overcome existing There are technical testing use-case intervention threshold height, the not technical problem lengthy and jumbled from global angle measurement, test path, and then reaches spirit It is living to adjust test case, adapt to different automatic test scenes, facilitate multiplexing with the beneficial of the angle measurement of the test scene overall situation Effect.
2. the function that the prior art lacks tracing system state is overcome by the means to input entry value permutation and combination, Cannot clearly be judged to go wrong the technological deficiency in source, and then reached and quickly judge whether test target point is problematic, improve survey Try the beneficial effect of efficiency.
3. including the means of error value by using input item value, overcome the prior art does not consider that various possibility Wrong value, cause to handle it is inappropriate, cause product to start a leak and generate catastrophic effect during online O&M Technological deficiency, and then realize the processing to wrong input condition, reaching can be to avoid the beneficial effect of many abnormal failures.
4. determining the means of test path by using arborescence, the prior art is overcome not from the test scene overall situation The technical issues of angle assignment test target, and avoid the technological deficiency that iteration speed is slow, test path is numerous and jumbled, Jin Erda To angle measurement all test target points related with the scene from the overall situation, and improve the beneficial effect of testing efficiency.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the schematic diagram of the main flow of the method for automatic test according to an embodiment of the present invention;
Fig. 2 is the tree-shaped schematic diagram of the specific embodiment of the method for automatic test according to an embodiment of the present invention;
Fig. 3 is the schematic diagram of the main modular of the device of automatic test according to an embodiment of the present invention;
Fig. 4 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 5 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is the method for automatic test according to an embodiment of the present invention, as shown in Figure 1,
Step S101 determines test path according to the related test target point of test scene;
Step S102 matches the input condition determined according to input item set with the test path, to develop survey Example on probation;
Step S103 carries out automatic test to the test target point according to the test case.
The present invention determines the technical method of test path using test target point, can be by test relevant under Same Scene Target point is tested simultaneously, is solved the prior art and is only surveyed respectively to each test target point from the angle of a certain target point Examination, the defect that cannot be tested with global visual angle, and then reach accurately and efficiently test purpose.
The prior art not distinguishing tests scene, tests all test target points of a system simultaneously, causes to test Path is complicated, low efficiency.For example, the test target point of whole system is 500, the prior art is same to 500 test target points When test, lead to that determining test path is numerous and jumbled, testing cost is high.500 test targets are pressed into checkout area using this method Scape classification, it is assumed that the related test target point of test scene 1 is 100, and different test paths is arranged for test scene 1, The prior art defect that test path is not numerous and jumbled, testing cost is high caused by distinguishing tests scene is reduced, to reach raising Testing efficiency and the beneficial effect for judging test target point efficiency.
The technological means that input condition is determined using input item set, reaching test path has beneficial effect compared with high coverage rate Fruit.In some embodiments, the input condition includes input item in test target point, according to input item to each input item Value carries out multiple combinations.Using the technological means of the input condition determined according to input item set, so that test path covers Lid rate is high, to improve testing efficiency.
Using input condition and the matched technological means of test path, the input condition of every test path can be set to Difference so that selecting different input entry value when test Same Scene, and then reaches the high technical effect of coverage rate.Utilize matching Result exploitation test case technological means can reduce the complexity of test, to improve the efficiency of test.
By exploitation after test case to test target point carry out automatic test, not only can with tracking and testing state, And it can clearly judge the source of the test target point in the presence of exception.The present embodiment is changing input item set or is changing test When path, only it can facilitate multiplexing, rapidly and efficiently by the way that test case, iteratively faster regression test is adjusted flexibly, and then reaches The different automatic test scenes of adaptation beneficial effect.
In some embodiments, after test case end of run, the log generated can be executed according to test case, quickly Position abnormal test target point.According to the report in the log comprising generating abnormal cause, abnormal survey can be quickly positioned Target point is tried, and extracts and generates abnormal reason, and then reach test purpose.
Preferably, the formation of input condition includes: according to all input items in input item set, to each input item Each of value carry out permutation and combination, the result of obtained permutation and combination is input condition.
In some embodiments, by according to each of input item set input item, in each input item Each value carries out the mode of permutation and combination, limited value is divided into multiple groups by way of combination, in case being used to form Test case, to reach the technical effect that testing cost is low, coverage rate is high.
Preferably, the value of input item includes: wrong value beyond input item value range and/or meets input item and take It is worth the correct value of range.
The selection of input item is determined according to test scene in input item set, in order to improve the efficiency of test, is only selected Take input item related with test scene.Wherein, the value of each input item also needs to determine according to the test scene.For each One or more different values can be set in input item in specific test scene.It is different according to the scene of test, for same One input item may exist different values.
In the prior art, the value of input item is mostly to meet the correct value of input item value range, and have ignored test Wrong value beyond input item value range.In practice, the prior art does not consider that wrong value causes system normally transporting To the inappropriate situation of abnormality processing when row.When it is described it is inappropriate to abnormality processing happen when, in fact it could happen that leakage Hole generates catastrophic consequence.Therefore add wrong value in some optional embodiments of the invention and tested, it can be pre- It surveys because consequence caused by exception information, avoids because not accounting for wrong value, causing to generate calamity in system operation The defect of difficulty consequence, and then reach the technical effect for reducing testing cost, improving coverage rate.
Preferably, input condition is matched with the test path, comprising: according to input condition and test path it is random and/ Or it is matched according to the priority of test path.
Theoretically, the test case that each value of binding test path and each input item progress permutation and combination obtains is most Comprehensively, but testing cost and testing time are considered in practical operation, then do not need to use theoretic method by each case All cover.It is matched by the random and/or priority according to test path of the result and test path of permutation and combination, to generate Test case can reach higher coverage rate and reduce testing cost and testing time.
The priority random and/or according to test path according to input condition and test path is matched, comprising: input Condition and test path random pair;Or input condition and test path are matched according to the priority of test path;Or according to survey The priority in examination path determines the ratio of the distributed input condition of every test path, for input condition in same test path According to being matched at random.
Due under same test scene, when the priority of test path is identical or does not consider test path priority, i.e., Random manner can be used to match input condition and test path.When the test path having is more important, then the test is set Path is the higher test path of priority, when being tested according to priority, matching input condition that can be more;If some tests Path is smaller to the influence power of the scene, then it is the lower test path of priority that the test path, which can be set, therefore is being tested When match less input condition, improve testing efficiency.
Wherein in some embodiments, every test path distribution input item is determined using the priority according to test path The ratio of part can both pass through priority for input condition in same test path in the way of being matched at random It is arranged to important test path stress test, to improve testing efficiency, and can makes to test by way of random pair As a result more reliable.
Preferably, determine that test path includes: the mode for selecting dendrogram according to the related test target point of test scene Test path is determined according to test target point;Wherein, each blade of dendrogram is a test target point, and every branch is from root Setting out to a last blade is a test path.
In some embodiments, the formation of test path is to be connected associated test target point using the form of dendrogram It picks up and, wherein test path is with test purpose for guiding.The connecting test target point in the form of dendrogram, from checkout area The technical issues of angle assignment test target of the scape overall situation, facilitates the different test paths under statistics Same Scene, avoids repeatedly Technological deficiency slow for speed, test path is numerous and jumbled, and then reach related with the scene from the angle measurement of the test scene overall situation All test target points, and improve the beneficial effect of testing efficiency
The method that automatic test is described in detail with a specific embodiment below.
Firstly, the form of test point dendrogram related with test scene is showed, and then obtain test path. Fig. 2 is the tree-shaped schematic diagram of the specific embodiment of the method for automatic test according to an embodiment of the present invention.As shown in Fig. 2, will Test target point RA, RA1, RA2, RB, RB1, RB2, RC1, RC2, RD1, RD2, RE1, RE2 is that guiding forms tree with test purpose Shape figure obtains seven test paths, is individually identified as P1, P2, P3, P4, P5, P6, P7.Wherein RA → RA1 → RC1 is P1, according to It is secondary that other six test paths can be released with class.
Secondly, determine the input item in the input set of this specific embodiment, it is respectively as follows: input item A, input item B, defeated Enter a C.For each input item, the present embodiment selects three input entry value, specifically, the entry value of input item A be respectively A1, A2, A3, the entry value of input item B are respectively B1, B2, B3, and the entry value of input item C is respectively C1, C2, C3.Wherein A3, B3, C3 Value is the wrong value beyond input item value range, remaining input entry value is to meet correctly taking for input item value range Value.By above-mentioned all input items, inputs entry value and test path is summarised in table 1 and inputs in parameter list.
Table 1 inputs parameter list
Input item A Input item B Input item C Test path
A1 B1 C1 P1
A2 B2 C2 P2
A3 B3 C3 P3
P4
P5
P6
P7
Then, according to input item A, input item B and the input item C in input item set, to every in each input item One value carries out permutation and combination, has obtained 3*3*3=27 group input condition.Further according to input condition and seven tests road Diameter random pair, to generate input condition as shown in Table 2 and test path pairing list.
2 input condition of table and test path match list
Serial number Input item A Input item B Input item C Test path
1 A1 B1 C1 P1
2 A1 B1 C2 P3
3 A1 B1 C3 P6
4 A1 B2 C1 P4
5 A1 B2 C2 P2
6 A1 B2 C3 P5
7 A1 B3 C1 P7
8 A1 B3 C2 P7
9 A1 B3 C3 P5
10 A2 B1 C1 P3
11 A2 B1 C2 P6
12 A2 B1 C3 P1
13 A2 B2 C1 P2
14 A2 B2 C2 P4
15 A2 B2 C3 P5
16 A2 B3 C1 P7
17 A2 B3 C2 P3
18 A2 B3 C3 P4
19 A3 B1 C1 P1
20 A3 B1 C2 P6
21 A3 B1 C3 P2
22 A3 B2 C1 P1
23 A3 B2 C2 P6
24 A3 B2 C3 P3
25 A3 B3 C1 P4
26 A3 B3 C2 P5
27 A3 B3 C3 P7
Finally, automatically generating test case using table 2, and then automatic test is carried out to target point.Pass through test case It executes the log generated to be quickly found out abnormal test target point, extract the reason for generating exception, and then completes test.
Fig. 3 is the device of automatic test according to an embodiment of the present invention, as shown in figure 3, providing a kind of automatic test Device 300, comprising:
Module 301, test path determining module, for determining test road according to the related test target point of test scene Diameter;
Module 302, test case development module, input condition and the test for will be determined according to input item set Route matching, to develop test case;
Module 303, automatic test module, for being automated according to the test case to the test target point Test.
Preferably, the formation of input condition includes: according to all input items in input item set, to each input item Each of value carry out permutation and combination, the result of obtained permutation and combination is input condition.
Preferably, the value of input item includes: wrong value beyond input item value range and/or meets input item and take It is worth the correct value of range.
Preferably, input condition is matched with the test path, comprising: according to input condition and test path it is random and/ Or it is matched according to the priority of test path.
Preferably, determine that test path includes: the mode for selecting dendrogram according to the related test target point of test scene Test path is determined according to test target point;Wherein, each blade of dendrogram is a test target point, and every branch is from root Setting out to a last blade is a test path.
Fig. 4 is shown can showing using the device of the method or automatic test of the automatic test of the embodiment of the present invention Example property system architecture 400.
As shown in figure 4, system architecture 400 may include terminal device 401,402,403, network 404 and server 405. Network 404 between terminal device 401,402,403 and server 405 to provide the medium of communication link.Network 404 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 401,402,403 and be interacted by network 404 with server 405, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 401,402,403 (merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 401,402,403 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 405 can be to provide the server of various services, such as utilize terminal device 401,402,403 to user The shopping class website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to reception To the data such as information query request analyze etc. processing, and by processing result (such as target push information, product letter Breath -- merely illustrative) feed back to terminal device.
It should be noted that the method for automatic test provided by the embodiment of the present invention is generally executed by server 405, Correspondingly, the device of automatic test is generally positioned in server 405.
It should be understood that the number of terminal device, network and server in Fig. 4 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 5, it illustrates the computer systems 500 for the terminal device for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.Terminal device shown in Fig. 5 is only an example, function to the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in figure 5, computer system 500 includes central processing unit (CPU) 501, it can be read-only according to being stored in Program in memory (ROM) 502 or be loaded into the program in random access storage device (RAM) 503 from storage section 508 and Execute various movements appropriate and processing.In RAM 503, also it is stored with system 500 and operates required various programs and data. CPU 501, ROM 502 and RAM 503 are connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to always Line 504.
I/O interface 505 is connected to lower component: the importation 506 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 508 including hard disk etc.; And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 509 via such as because The network of spy's net executes communication process.Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 510, in order to read from thereon Computer program be mounted into storage section 508 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.? In such embodiment, which can be downloaded and installed from network by communications portion 509, and/or from can Medium 511 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 501, system of the invention is executed The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet It includes sending module, obtain module, determining module and first processing module.Wherein, the title of these modules is under certain conditions simultaneously The restriction to the module itself is not constituted, for example, sending module is also described as " sending picture to the server-side connected The module of acquisition request ".
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes Obtaining the equipment includes:
Test path is determined according to the related test target point of test scene;
The input condition that input item set is formed is matched with the test path, to develop test case;
Automatic test is carried out to the test target point according to the test case.
Technical solution according to an embodiment of the present invention, thus reach it is following the utility model has the advantages that
1. being matched by using input condition with the test path, to develop the means of test case, overcome existing The technical problem for having technical testing use-case intervention threshold high, and then reach and test case is adjusted flexibly, it adapts to different automations and surveys The beneficial effect of examination hall scape.
2. including the means of error value by using input item value, overcome the prior art does not consider that various possibility Wrong value, cause to handle it is inappropriate, cause product to start a leak and generate catastrophic effect during online O&M Technological deficiency, and then realize the processing to wrong input condition, reaching can be to avoid the beneficial effect of many abnormal failures.
3. the function that the prior art lacks tracing system state is overcome by the means to input entry value permutation and combination, Cannot clearly be judged to go wrong the technological deficiency in source, and then reached and quickly judge whether test target point is problematic, improve survey Try the beneficial effect of efficiency.
4. determining the means of test path by using arborescence, the prior art is overcome not from the test scene overall situation The technical issues of angle assignment test target, and avoid the technological deficiency that iteration speed is slow, test path is numerous and jumbled, Jin Erda To angle measurement all test target points related with the scene from the overall situation, and improve the beneficial effect of testing efficiency.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (12)

1. a kind of method of automatic test characterized by comprising
Test path is determined according to the related test target point of test scene;
The input condition determined according to input item set is matched with the test path, to develop test case;
Automatic test is carried out to the test target point according to the test case.
2. the method according to claim 1, wherein the formation of input condition includes: according in input item set All input items, permutation and combination is carried out to each of each input item value, the result of obtained permutation and combination is Input condition.
3. the method according to claim 1, wherein the value of input item includes: beyond input item value range Wrong value and/or meet the correct value of input item value range.
4. the method according to claim 1, wherein input condition is matched with the test path, comprising: according to Input condition and test path match at random and/or according to the priority of test path.
5. method described in one of -4 according to claim 1, which is characterized in that according to the related test target point of test scene Determine that test path includes: that the mode of dendrogram is selected to determine test path according to test target point;Wherein, each of dendrogram Blade is a test target point, and every branch is a paths from root to a last blade.
6. a kind of device of automatic test characterized by comprising
Test path determining module, for determining test path according to the related test target point of test scene;
Test case development module, for the input condition determined according to input item set to be matched with the test path, from And develop test case;
Automatic test module, for carrying out automatic test to the test target point according to the test case.
7. device according to claim 6, which is characterized in that the formation of input condition includes: according in input item set All input items, permutation and combination is carried out to each of each input item value, the result of obtained permutation and combination is Input condition.
8. device according to claim 6, which is characterized in that the value of input item includes: beyond input item value range Wrong value and/or meet the correct value of input item value range.
9. device according to claim 6, which is characterized in that input condition is matched with the test path, comprising: according to Input condition and test path match at random and/or according to the priority of test path.
10. the device according to one of claim 6-9, which is characterized in that according to the related test target of test scene Point determines that test path includes: that the mode of dendrogram is selected to determine test path according to test target point;Wherein, dendrogram is every A blade is a test target point, and every branch is a paths from root to a last blade.
11. a kind of electronic equipment of automatic test characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor Such as method as claimed in any one of claims 1 to 5 is realized when row.
CN201810193871.8A 2018-03-09 2018-03-09 The method and apparatus of automatic test Pending CN110245065A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810193871.8A CN110245065A (en) 2018-03-09 2018-03-09 The method and apparatus of automatic test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810193871.8A CN110245065A (en) 2018-03-09 2018-03-09 The method and apparatus of automatic test

Publications (1)

Publication Number Publication Date
CN110245065A true CN110245065A (en) 2019-09-17

Family

ID=67882624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810193871.8A Pending CN110245065A (en) 2018-03-09 2018-03-09 The method and apparatus of automatic test

Country Status (1)

Country Link
CN (1) CN110245065A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667500A (en) * 2020-12-23 2021-04-16 北京焦点新干线信息技术有限公司 Regression testing method and device
CN113094625A (en) * 2021-05-10 2021-07-09 北京京东振世信息技术有限公司 Page element positioning method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544109A (en) * 2013-11-15 2014-01-29 大连交通大学 Novel combined test case generation method
CN106326125A (en) * 2016-08-26 2017-01-11 上海合福信息科技有限公司 Test case generating method
CN106959919A (en) * 2016-01-08 2017-07-18 广州市动景计算机科技有限公司 Method for testing software and device based on test path figure
CN107301129A (en) * 2017-06-28 2017-10-27 百度在线网络技术(北京)有限公司 Method and apparatus for generating test case

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544109A (en) * 2013-11-15 2014-01-29 大连交通大学 Novel combined test case generation method
CN106959919A (en) * 2016-01-08 2017-07-18 广州市动景计算机科技有限公司 Method for testing software and device based on test path figure
CN106326125A (en) * 2016-08-26 2017-01-11 上海合福信息科技有限公司 Test case generating method
CN107301129A (en) * 2017-06-28 2017-10-27 百度在线网络技术(北京)有限公司 Method and apparatus for generating test case

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667500A (en) * 2020-12-23 2021-04-16 北京焦点新干线信息技术有限公司 Regression testing method and device
CN113094625A (en) * 2021-05-10 2021-07-09 北京京东振世信息技术有限公司 Page element positioning method and device, electronic equipment and storage medium
CN113094625B (en) * 2021-05-10 2023-09-05 北京京东振世信息技术有限公司 Page element positioning method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109472523A (en) Method and apparatus for sorting cargo
CN109426593A (en) The method and apparatus of automatic evaluation system performance
CN108932194A (en) Automated testing method, device, system, medium and electronic equipment
CN109634833A (en) A kind of Software Defects Predict Methods and device
CN110377522A (en) The test method for scene of trading, calculates equipment and medium at device
CN108776692A (en) Method and apparatus for handling information
CN108388563A (en) Information output method and device
CN110427304A (en) O&M method, apparatus, electronic equipment and medium for banking system
CN110471848A (en) A kind of method and apparatus of dynamic returned packet
CN109976999A (en) The measure and measurement apparatus of test case coverage rate
CN109784352A (en) A kind of method and apparatus for assessing disaggregated model
CN109325744A (en) Payment processing method, device, medium and electronic equipment
CN110245065A (en) The method and apparatus of automatic test
CN109814957A (en) A kind of label addition method and device for IOS system
CN109005208A (en) Method and apparatus for pushed information
CN109818994A (en) Information processing method and device for agent side
CN110276566A (en) Information output method and device
CN109002389A (en) The method and apparatus of page automatic test
CN109634866A (en) Data test method, apparatus, medium and electronic equipment
CN108810130A (en) A kind of method and apparatus of distribution request planning
CN110381471A (en) The method and apparatus for determining optimum base station for unmanned vehicle
CN110362297A (en) A kind of element sort method and device
CN109901892A (en) A kind of method and apparatus of dynamic attribute verifying
CN109146585A (en) A kind of method and apparatus that high-risk commodity are determined by sampling inspection
CN109656709A (en) A kind of method and apparatus of Codis cluster dilatation

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