CN108509337A - The dynamic testing method and device called based on interface - Google Patents
The dynamic testing method and device called based on interface Download PDFInfo
- Publication number
- CN108509337A CN108509337A CN201810215565.XA CN201810215565A CN108509337A CN 108509337 A CN108509337 A CN 108509337A CN 201810215565 A CN201810215565 A CN 201810215565A CN 108509337 A CN108509337 A CN 108509337A
- Authority
- CN
- China
- Prior art keywords
- interface
- test
- goal systems
- file
- variation
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Abstract
The present invention provides a kind of dynamic testing method and device called based on interface, and dynamic testing method includes:Corresponding interface document is generated according to the sound code file of the goal systems in software development process, wherein includes interface recalls information and parameter information in the interface document;Based on the interface recalls information and parameter information in presently described interface document, the test case file of the goal systems is generated;The goal systems is tested using the test case file, and stores test result;And if detection knows that the interface document changes, then according to the interface recalls information and parameter information in the interface document after change, generate new test case file, and the goal systems is tested again using the new test case file, and store retest after obtained test result.The present invention can effectively, quickly and accurately dynamic access system research and development test result, and improve the efficiency of system research and development test.
Description
Technical field
The present invention relates to Data Detection Technology fields, and in particular to a kind of dynamic testing method and dress called based on interface
It sets.
Background technology
With the fast development of internet industry, the development mode of micro services is more and more applied to software development item
In mesh, and each system service being in software development process is not self-existent, need rely on or by
Dependent on other systems, the common service completed to user, and in system research and development test process, purely surveyed from the angle of function
Examination project, or test scope is combed, it is the test for being easy to omit hidden function, so test scope assessment and formulation test
Scheme be done in test job it is very important.
Current system research and development test mode generally requires tester and voluntarily writes test case, but in practical application
In, since system upgrade or interface change, can cause due to test case before can not comprehensive applicable system, can not ensure be
The accuracy of system research and development test.
Therefore, a kind of test method that can accurately obtain system research and development test result how is designed, is urgently to be resolved hurrily
The problem of.
Invention content
For the problems of the prior art, the present invention provides a kind of dynamic testing method and device called based on interface,
It being capable of efficiently and accurately dynamic access system research and development test result.
In order to solve the above technical problems, the present invention provides following technical scheme:
In a first aspect, the present invention provides a kind of dynamic testing method called based on interface, the dynamic testing method packet
It includes:
Corresponding interface document is generated according to the sound code file of the goal systems in software development process, wherein institute
State in interface document includes interface recalls information and parameter information;
Based on the interface recalls information and parameter information in presently described interface document, the test of the goal systems is generated
Use-case file;
The goal systems is tested using the test case file, and stores test result;
And if detection knows that the interface document changes, according to the interface tune in the interface document after change
With information and parameter information, new test case file is generated, and using the new test case file again to the target
System is tested, and store retest after obtained test result.
Further, the basis is in the corresponding interface of sound code file generation of the goal systems in software development process
File, wherein include interface recalls information and parameter information in the interface document, including:
Obtain the sound code file of the goal systems in software development process;
And the sound code file is scanned, and according to the sound code file after the program language rule of pre-acquiring and scanning, it is raw
At corresponding interface document, wherein include interface recalls information and parameter information in the interface document.
Further, the dynamic testing method further includes:
The test result obtained after retesting is compared with previous test result, obtains interface variation result;
Interface variation coverage is obtained according to the interface variation result;
And based on interface variation coverage selection to the adjustment mode of the test method of the goal systems.
Further, the interface variation result includes:Parameter variation value and use-case quantity changing value;
It is corresponding, it is described that interface variation coverage is obtained according to the interface variation result, including:
The comparison result of threshold value is influenced according to the parameter variation value and preset parameter, and, use number of cases according to described
Measuring changing value and preset use-case quantity influences the comparison result of threshold value, determines the interface variation coverage.
Further, the tune selected based on the interface variation coverage to the test method of the goal systems
Perfect square formula, including:
Comparing the interface variation coverage and preset interface variation influences threshold value;
If the interface variation coverage, which is more than the interface variation, influences threshold value, mode pair is returned using global function
The goal systems is further tested;
If the interface variation coverage, which is less than or equal to the interface variation, influences threshold value, returned with main flow
Mode is changed currently to the test method of the goal systems.
Second aspect, the present invention provide a kind of dynamic test system called based on interface, the dynamic test system packet
It includes:
Interface document acquisition module, for the sound code file generation pair according to the goal systems in software development process
The interface document answered, wherein include interface recalls information and parameter information in the interface document;
Test case file generation module, for based on the interface recalls information and parameter letter in presently described interface document
Breath, generates the test case file of the goal systems;
Test module for being tested the goal systems using the test case file, and stores survey
Test result;
Second test module, if knowing that the interface document changes for detecting, according to the interface text after change
Interface recalls information in part and parameter information generate new test case file, and apply the new test case file weight
Newly the goal systems is tested, and store retest after obtained test result.
Further, the interface document acquisition module includes:
Sound code file acquiring unit, the sound code file for obtaining the goal systems in software development process;
Interface document generation unit for scanning the sound code file, and according to the program language rule of pre-acquiring and is swept
Sound code file after retouching generates corresponding interface document, wherein includes interface recalls information and parameter in the interface document
Information.
Further, the dynamic test system further includes:
Test result comparison unit, test result for being obtained after retesting and previous test result carry out pair
Than obtaining interface variation result;
Interface variation coverage determination unit influences model for obtaining interface variation according to the interface variation result
It encloses;
Adjustment mode determination unit, for selecting the test to the goal systems based on the interface variation coverage
The adjustment mode of method.
The third aspect, the present invention provides a kind of electronic equipment, including memory, processor and storage are on a memory and can
The computer program run on a processor, the processor realize the dynamic called based on interface when executing described program
The step of test method.
Fourth aspect, the present invention provide a kind of computer readable storage medium, are stored thereon with computer program, the calculating
The step of dynamic testing method called based on interface is realized when machine program is executed by processor.
As shown from the above technical solution, a kind of dynamic testing method called based on interface provided by the invention, passes through root
Corresponding interface document is generated according to the sound code file of the goal systems in software development process, wherein the interface document
In include interface recalls information and parameter information;Based on the interface recalls information and parameter letter in presently described interface document
Breath, generates the test case file of the goal systems;The goal systems is tested using the test case file,
And store test result;And if detection know that the interface document changes, according in the interface document after change
Interface recalls information and parameter information generate new test case file, and using the new test case file again to institute
Goal systems is stated to be tested, and store retest after obtained test result, can effectively, quickly and accurately dynamically obtain
System research and development test result is taken, and improves the efficiency of system research and development test.
Description of the drawings
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 technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention
Some embodiments for those of ordinary skill in the art without creative efforts, can also basis
These attached drawings obtain other attached drawings.
Fig. 1 is the flow diagram of the dynamic testing method called based on interface in the embodiment of the present invention one;
Fig. 2 be the present invention the dynamic testing method called based on interface in step 100 flow diagram;
Fig. 3 is the flow signal of the dynamic testing method called based on interface including step 500 to 700 of the present invention
Figure;
Fig. 4 is the flow diagram of the application example for the dynamic testing method of the present invention called based on interface;
Fig. 5 is the structural schematic diagram of the dynamic test system called based on interface in the embodiment of the present invention two;
Fig. 6 is the structural schematic diagram of the electronic equipment in the embodiment of the present invention three.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical solution in the embodiment of the present invention carries out clear, complete description, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
The embodiment of the present invention one is provided in a kind of specific implementation mode of the dynamic testing method called based on interface, ginseng
See that Fig. 1, the dynamic testing method specifically include following content:
Step 100:Corresponding interface document is generated according to the sound code file of the goal systems in software development process,
Wherein, in the interface document include interface recalls information and parameter information.
In step 100, the dynamic test system based on interface calling is according to the target system in software development process
The sound code file of system generates corresponding interface document, wherein includes interface recalls information and parameter letter in the interface document
Breath.It is understood that the dynamic test system called based on interface obtains the mesh in software development process first
Then the sound code file of mark system scans the sound code file, and according to the source after the program language rule of pre-acquiring and scanning
Code file, generates corresponding interface document.
Step 200:Based on the interface recalls information and parameter information in presently described interface document, the target system is generated
The test case file of system.
In step 200, the dynamic test system based on interface calling is based on the interface tune in presently described interface document
With information and parameter information, the test case file of the goal systems is generated.
Step 300:The goal systems is tested using the test case file, and stores test result.
In step 300, apply the test case file to the target based on the dynamic test system that interface calls
System is tested, and stores test result.It is understood that the dynamic test system called based on interface can root
According to the pre-set test pattern of tester, newest test case file is periodically obtained and using the newest of the acquisition
The test case file goal systems is tested.The time interval wherein tested can be according to practical application feelings
Shape is configured, and in a kind of citing, could be provided as 1 to 60 minute.
Step 400:If detection knows that the interface document changes, according to the interface in the interface document after change
Recalls information and parameter information generate new test case file, and using the new test case file again to the mesh
Mark system is tested, and store retest after obtained test result.
In step 400, the interface document periodically or is in real time detected based on the dynamic test system that interface calls,
If at a time detection knows that the interface document changes, the dynamic test system based on interface calling is according to change
Interface recalls information in interface document afterwards and parameter information, generate new test case file;It is then based on interface calling
Dynamic test system the goal systems is tested again using the new test case file, and store retest
The test result obtained afterwards.
As can be seen from the above description, the dynamic testing method called based on interface that the embodiment of the present invention provides, Neng Gouyou
Effect, quickly and accurately dynamic access system research and development test result, and improve the efficiency of system research and development test.
In a specific embodiment, the present invention also provides steps in the dynamic testing method called based on interface
In 100 specific implementation mode, referring to Fig. 2, step 100 specifically includes following content in the dynamic testing method:
Step 101:Obtain the sound code file of the goal systems in software development process.
Step 102:The sound code file is scanned, and according to the source code text after the program language rule of pre-acquiring and scanning
Part generates corresponding interface document, wherein includes interface recalls information and parameter information in the interface document.
It is understood that scanning the sound code file based on the dynamic test system that interface calls, the source code is obtained
Whole code contents in file, the then whole according to the programming of pre-acquiring with program language rule in the sound code file
Interface recalls information and parameter information are extracted in code content, and generate packet according to whole code contents in the sound code file
Interface document containing interface recalls information and parameter information.
As can be seen from the above description, the dynamic testing method called based on interface that the embodiment of the present invention provides, Neng Gouyou
Effect, quickly and accurately dynamic access interface document, and then improve the efficiency of system research and development test.
In a specific embodiment, the present invention also provides steps in the dynamic testing method called based on interface
In the steps 500 to 700 specific implementation mode executed after 400, referring to Fig. 3, in the dynamic testing method step 500 to
700 specifically include following content:
Step 500:The test result obtained after retesting is compared with previous test result, obtains interface change
Change result.
Step 600:Interface variation coverage is obtained according to the interface variation result.
In step 600, the interface variation result includes:Parameter variation value and use-case quantity changing value;It is corresponding,
The dynamic test system called based on interface in the step 600 obtains interface variation according to the interface variation result
Coverage, including:
The dynamic test system called based on interface influences threshold value according to the parameter variation value and preset parameter
Comparison result, and, the comparison result of threshold value is influenced according to the use-case quantity changing value and preset use-case quantity, is determined
The interface variation coverage.
Step 700:Based on interface variation coverage selection to the adjustment side of the test method of the goal systems
Formula.
In step 700, it is described based on interface call the dynamic test system interface variation coverage and
Preset interface variation influences threshold value;If the interface variation coverage, which is more than the interface variation, influences threshold value, apply
Global function returns mode and is further tested the goal systems;If the interface variation coverage is less than or equal to institute
Stating interface variation influences threshold value, then is changed currently to the test method of the goal systems in such a way that main flow returns.
In a kind of citing, the test method selected based on the interface variation coverage to the goal systems
Adjustment mode can be:When interface updates or is newly-increased, the front and back test case file of update and test result file are carried out
Key parameter, such as Parameters variation, use-case number, the variation of the data such as interface Access Success Rate, assessment influence are checked in comparative analysis
Range;Functional test range is reevaluated according to above-mentioned interface coverage.If coverage is small, system main flow can be selected
It returns and emphasis changes range test scheme;If coverage is big, external system is even related to, the survey for needing global function to return
Examination scheme.
As can be seen from the above description, the dynamic testing method called based on interface that the embodiment of the present invention provides, Neng Gouyou
Effect, quickly and accurately dynamic access system research and development test result, and the efficiency of system research and development test is improved, realize code
After modification, automatically extracts and generate interface testing use-case, tested, and export test report according to code, dynamic generation interface
Document, including interface requests mode and interface parameters.According to above-mentioned file, test case, and implementation of test cases are generated, is generated
Test report.By test report data comparison output file, data support is provided for the assessment of test scope and testing scheme;
Contrast test reports that output key message variation assesses test scope for tester and provides data with testing scheme is formulated
It supports.
For further instruction this programme, the present invention also provides a kind of the specific of dynamic testing method called based on interface
Application example, referring to Fig. 4, the dynamic testing method called based on interface specifically includes following content:
S1:Obtain the sound code file of project to be tested.
S2:Scan code file generates interface document, including interface recalls information and parameter according to program language rule
Information.
S3:According to interface document, test case file is generated.
S4:The test case generated above use, tests system, stores test result.
S5:When interface updates or is newly-increased, the front and back test case file of update and test result file are carried out to score
Analysis checks that key parameter, such as Parameters variation, use-case number, the variation of the data such as interface Access Success Rate assess coverage.
S6:Functional test range is reevaluated according to above-mentioned interface coverage.If coverage is small, system can be selected
Main flow returns and emphasis changes range test scheme;If coverage is big, external system is even related to, global function is needed to return
The testing scheme returned.
As can be seen from the above description, the dynamic testing method called based on interface that application example of the invention provides, is realized
After code revision, automatically extracts and generate interface testing use-case, tested, and export test report.Contrast test is reported, defeated
Go out key message variation, test scope is assessed for tester and formulation testing scheme provides data and supports.According to code, move
State generates interface document, including interface requests mode and interface parameters.According to above-mentioned file, test case is generated, and execute survey
Example on probation, generates test report.By test report data comparison output file, carried for the assessment of test scope and testing scheme
It is supported for data.
The embodiment of the present invention two, which provides, can realize in the above-mentioned dynamic testing method called based on interface in whole
In a kind of specific implementation mode of the dynamic test system called based on interface held, referring to Fig. 5, the dynamic test system tool
Body includes following content:
Interface document acquisition module 10, for being generated according to the sound code file of the goal systems in software development process
Corresponding interface document, wherein include interface recalls information and parameter information in the interface document.
It is understood that
In interface document acquisition module 10, interface document acquisition module 10 is according to the target in software development process
The sound code file of system generates corresponding interface document, wherein includes interface recalls information and parameter in the interface document
Information.It is understood that the second test module 40 obtains the source of the goal systems in software development process first
Then code file scans the sound code file, and according to the sound code file after the program language rule of pre-acquiring and scanning, generates
Corresponding interface document.
In a specific embodiment, the interface document acquisition module 10 specifically includes:Sound code file acquiring unit,
Sound code file for obtaining the goal systems being in software development process;And interface document generation unit, for scanning
The sound code file, and according to the sound code file after the program language rule of pre-acquiring and scanning, corresponding interface document is generated,
Wherein, in the interface document include interface recalls information and parameter information.
Test case file generation module 20, for based on the interface recalls information and parameter in presently described interface document
Information generates the test case file of the goal systems.
In test case file generation module 20, test case file generation module 20 is based on presently described interface document
In interface recalls information and parameter information, generate the test case file of the goal systems.
Test module 30 for being tested the goal systems using the test case file, and stores
Test result.
In a test module 30, test module 30 application test case file to the goal systems into
Row test, and store test result.It is understood that the second test module 40 can be pre-set according to tester
Test pattern, periodically obtain newest test case file and application the acquisition the newest test case file
The goal systems is tested.The time interval wherein tested can be configured according to practical application situation, in one kind
In citing, it could be provided as 1 to 60 minute.
Second test module 40, if knowing that the interface document changes for detecting, according to the interface after change
Interface recalls information in file and parameter information generate new test case file, and apply the new test case file
Again the goal systems is tested, and store retest after obtained test result.
In second test module 40, second test module 40 is periodical or detects the interface document in real time, if
A certain moment detection knows that the interface document changes, then second test module 40 is according in the interface document after change
Interface recalls information and parameter information generate new test case file;The dynamic test system for being then based on interface calling is answered
The goal systems is tested again with the new test case file, and store retest after obtained test knot
Fruit.
The embodiment of the dynamic test system provided by the invention called based on interface specifically can be used for executing above-mentioned reality
The process flow of the embodiment of the dynamic testing method called based on interface in example one is applied, details are not described herein for function, can
With the detailed description with reference to above method embodiment.
In a specific embodiment, the dynamic test system also specifically includes:Test result comparison unit, is used for
The test result obtained after retesting is compared with previous test result, obtains interface variation as a result, interface variation
Coverage determination unit, for obtaining interface variation coverage according to the interface variation result, and, adjustment mode is true
Order member, for the adjustment mode based on interface variation coverage selection to the test method of the goal systems.
As can be seen from the above description, the dynamic test system called based on interface that the embodiment of the present invention provides, Neng Gouyou
Effect, quickly and accurately dynamic access system research and development test result, and improve the efficiency of system research and development test.
The embodiment of the present invention three provides the dynamic test side called based on interface that can be realized in above-described embodiment one
The specific implementation mode of a kind of electronic equipment of Overall Steps in method, referring to Fig. 6, the electronic equipment specifically includes in following
Hold:
Processor (processor) 601, memory (memory) 602, communication interface (Communications
Interface) 603 and bus 604;
Wherein, the processor 601, memory 602, communication interface 603 complete mutual lead to by the bus 604
Letter;The communication interface 603 is transmitted for realizing the information between the relevant devices such as server and interface;
The processor 601 is used to call the computer program in the memory 602, the processor to execute the meter
The Overall Steps in above-described embodiment one are realized when calculation machine program, for example, reality when the processor executes the computer program
Existing following step:
Step 100:Corresponding interface document is generated according to the sound code file of the goal systems in software development process,
Wherein, in the interface document include interface recalls information and parameter information.
In step 100, the dynamic test system based on interface calling is according to the target system in software development process
The sound code file of system generates corresponding interface document, wherein includes interface recalls information and parameter letter in the interface document
Breath.It is understood that the dynamic test system called based on interface obtains the mesh in software development process first
Then the sound code file of mark system scans the sound code file, and according to the source after the program language rule of pre-acquiring and scanning
Code file, generates corresponding interface document.
Step 200:Based on the interface recalls information and parameter information in presently described interface document, the target system is generated
The test case file of system.
In step 200, the dynamic test system based on interface calling is based on the interface tune in presently described interface document
With information and parameter information, the test case file of the goal systems is generated.
Step 300:The goal systems is tested using the test case file, and stores test result.
In step 300, apply the test case file to the target based on the dynamic test system that interface calls
System is tested, and stores test result.It is understood that the dynamic test system called based on interface can root
According to the pre-set test pattern of tester, newest test case file is periodically obtained and using the newest of the acquisition
The test case file goal systems is tested.The time interval wherein tested can be according to practical application feelings
Shape is configured, and in a kind of citing, could be provided as 1 to 60 minute.
Step 400:If detection knows that the interface document changes, according to the interface in the interface document after change
Recalls information and parameter information generate new test case file, and using the new test case file again to the mesh
Mark system is tested, and store retest after obtained test result.
In step 400, the interface document periodically or is in real time detected based on the dynamic test system that interface calls,
If at a time detection knows that the interface document changes, the dynamic test system based on interface calling is according to change
Interface recalls information in interface document afterwards and parameter information, generate new test case file;It is then based on interface calling
Dynamic test system the goal systems is tested again using the new test case file, and store retest
The test result obtained afterwards.
As can be seen from the above description, the embodiment of the present invention provide electronic equipment, can effectively, quickly and accurately dynamic
System research and development test result is obtained, and improves the efficiency of system research and development test.
The embodiment of the present invention four provides the dynamic testing method called based on interface that can realize above-described embodiment one
A kind of computer readable storage medium of middle Overall Steps is stored with computer program on the computer readable storage medium,
The computer program realizes the Overall Steps of above-described embodiment one when being executed by processor, for example, described in processor execution
Following step is realized when computer program:
Step 100:Corresponding interface document is generated according to the sound code file of the goal systems in software development process,
Wherein, in the interface document include interface recalls information and parameter information.
In step 100, the dynamic test system based on interface calling is according to the target system in software development process
The sound code file of system generates corresponding interface document, wherein includes interface recalls information and parameter letter in the interface document
Breath.It is understood that the dynamic test system called based on interface obtains the mesh in software development process first
Then the sound code file of mark system scans the sound code file, and according to the source after the program language rule of pre-acquiring and scanning
Code file, generates corresponding interface document.
Step 200:Based on the interface recalls information and parameter information in presently described interface document, the target system is generated
The test case file of system.
In step 200, the dynamic test system based on interface calling is based on the interface tune in presently described interface document
With information and parameter information, the test case file of the goal systems is generated.
Step 300:The goal systems is tested using the test case file, and stores test result.
In step 300, apply the test case file to the target based on the dynamic test system that interface calls
System is tested, and stores test result.It is understood that the dynamic test system called based on interface can root
According to the pre-set test pattern of tester, newest test case file is periodically obtained and using the newest of the acquisition
The test case file goal systems is tested.The time interval wherein tested can be according to practical application feelings
Shape is configured, and in a kind of citing, could be provided as 1 to 60 minute.
Step 400:If detection knows that the interface document changes, according to the interface in the interface document after change
Recalls information and parameter information generate new test case file, and using the new test case file again to the mesh
Mark system is tested, and store retest after obtained test result.
In step 400, the interface document periodically or is in real time detected based on the dynamic test system that interface calls,
If at a time detection knows that the interface document changes, the dynamic test system based on interface calling is according to change
Interface recalls information in interface document afterwards and parameter information, generate new test case file;It is then based on interface calling
Dynamic test system the goal systems is tested again using the new test case file, and store retest
The test result obtained afterwards.
As can be seen from the above description, the embodiment of the present invention provide computer readable storage medium, can effectively, quickly and
Accurately dynamic access system research and development test result, and improve the efficiency of system research and development test.
In the description of the present invention, it should be noted that the orientation or positional relationship of the instructions such as term "upper", "lower" is base
It in orientation or positional relationship shown in the drawings, is merely for convenience of description of the present invention and simplification of the description, rather than indicates or imply
Signified device or element must have a particular orientation, with specific azimuth configuration and operation, therefore should not be understood as to this
The limitation of invention.Unless otherwise clearly defined and limited, term " installation ", " connected ", " connection " shall be understood in a broad sense, example
Such as, it may be fixed connection or may be dismantle connection, or integral connection;It can be mechanical connection, can also be to be electrically connected
It connects;It can be directly connected, can also can be indirectly connected through an intermediary the connection inside two elements.For this
For the those of ordinary skill in field, the specific meanings of the above terms in the present invention can be understood according to specific conditions.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one
Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation
There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain
Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Above example is only used to illustrate the technical scheme of the present invention, rather than its limitations;Although with reference to the foregoing embodiments
Invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each implementation
Technical solution recorded in example is modified or equivalent replacement of some of the technical features;And these are changed or replace
It changes, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of dynamic testing method called based on interface, which is characterized in that the dynamic testing method includes:
Corresponding interface document is generated according to the sound code file of the goal systems in software development process, wherein described to connect
Include interface recalls information and parameter information in mouth file;
Based on the interface recalls information and parameter information in presently described interface document, the test case of the goal systems is generated
File;
The goal systems is tested using the test case file, and stores test result;
And if detection knows that the interface document changes, letter is called according to the interface in the interface document after change
Breath and parameter information generate new test case file, and using the new test case file again to the goal systems
Tested, and store retest after obtained test result.
2. dynamic testing method according to claim 1, which is characterized in that the basis is in software development process
The sound code file of goal systems generates corresponding interface document, wherein include in the interface document interface recalls information and
Parameter information, including:
Obtain the sound code file of the goal systems in software development process;
And the sound code file is scanned, and according to the sound code file after the program language rule of pre-acquiring and scanning, generation pair
The interface document answered, wherein include interface recalls information and parameter information in the interface document.
3. dynamic testing method according to claim 1, which is characterized in that the dynamic testing method further includes:
The test result obtained after retesting is compared with previous test result, obtains interface variation result;
Interface variation coverage is obtained according to the interface variation result;
And based on interface variation coverage selection to the adjustment mode of the test method of the goal systems.
4. dynamic testing method according to claim 3, which is characterized in that the interface variation result includes:Parameter becomes
Change value and use-case quantity changing value;
It is corresponding, it is described that interface variation coverage is obtained according to the interface variation result, including:
The comparison result of threshold value is influenced according to the parameter variation value and preset parameter, and, become according to the use-case quantity
Change value and preset use-case quantity influence the comparison result of threshold value, determine the interface variation coverage.
5. dynamic testing method according to claim 3, which is characterized in that described to be based on the interface variation coverage
The adjustment mode to the test method of the goal systems is selected, including:
Comparing the interface variation coverage and preset interface variation influences threshold value;
If the interface variation coverage, which is more than the interface variation, influences threshold value, mode is returned to described using global function
Goal systems is further tested;
If the interface variation coverage, which is less than or equal to the interface variation, influences threshold value, in such a way that main flow returns
Modification is currently to the test method of the goal systems.
6. a kind of dynamic test system called based on interface, which is characterized in that the dynamic test system includes:
Interface document acquisition module, it is corresponding for being generated according to the sound code file of the goal systems in software development process
Interface document, wherein include interface recalls information and parameter information in the interface document;
Test case file generation module is used for based on the interface recalls information and parameter information in presently described interface document,
Generate the test case file of the goal systems;
Test module for being tested the goal systems using the test case file, and stores test knot
Fruit;
Second test module, if knowing that the interface document changes for detecting, according in the interface document after change
Interface recalls information and parameter information, generate new test case file, and the application new test case file is again right
The goal systems is tested, and store retest after obtained test result.
7. dynamic test system according to claim 6, which is characterized in that the interface document acquisition module includes:
Sound code file acquiring unit, the sound code file for obtaining the goal systems in software development process;
Interface document generation unit, for scanning the sound code file, and according to the program language rule of pre-acquiring and after scanning
Sound code file, generate corresponding interface document, wherein include in the interface document interface recalls information and parameter letter
Breath.
8. dynamic test system according to claim 6, which is characterized in that the dynamic test system further includes:
Test result comparison unit, the test result for being obtained after retesting are compared with previous test result,
Obtain interface variation result;
Interface variation coverage determination unit, for obtaining interface variation coverage according to the interface variation result;
Adjustment mode determination unit, for the test method based on interface variation coverage selection to the goal systems
Adjustment mode.
9. a kind of electronic equipment, including memory, processor and storage are on a memory and the calculating that can run on a processor
Machine program, which is characterized in that realized when the processor executes described program and be based on connecing as described in any one of claim 1 to 5
The step of dynamic testing method that mouth calls.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt
The step of dynamic testing method based on interface calling as described in any one of claim 1 to 5 is realized when processor executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810215565.XA CN108509337A (en) | 2018-03-15 | 2018-03-15 | The dynamic testing method and device called based on interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810215565.XA CN108509337A (en) | 2018-03-15 | 2018-03-15 | The dynamic testing method and device called based on interface |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108509337A true CN108509337A (en) | 2018-09-07 |
Family
ID=63376639
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810215565.XA Withdrawn CN108509337A (en) | 2018-03-15 | 2018-03-15 | The dynamic testing method and device called based on interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108509337A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109062809A (en) * | 2018-09-20 | 2018-12-21 | 北京奇艺世纪科技有限公司 | Method for generating test case, device and electronic equipment on a kind of line |
CN109408304A (en) * | 2018-09-27 | 2019-03-01 | 深圳壹账通智能科技有限公司 | Block chain introduces test method, device, equipment and readable storage medium storing program for executing |
CN109408370A (en) * | 2018-09-18 | 2019-03-01 | 深圳壹账通智能科技有限公司 | Interface testing document generating method, device, computer equipment and storage medium |
CN109558316A (en) * | 2018-11-21 | 2019-04-02 | 武汉风行在线技术有限公司 | A kind of HTTP interface mobilism parameter test method of Test Strategy automatic configuration |
CN109656806A (en) * | 2018-10-29 | 2019-04-19 | 口碑(上海)信息技术有限公司 | A kind of the playback test method and device of interface data |
CN110457201A (en) * | 2019-06-20 | 2019-11-15 | 口碑(上海)信息技术有限公司 | A kind of interface testing case generation method and device |
CN110716877A (en) * | 2019-09-30 | 2020-01-21 | 拉扎斯网络科技(上海)有限公司 | Automatic test method, device, computer system and readable storage medium |
CN111221743A (en) * | 2020-03-18 | 2020-06-02 | 时时同云科技(成都)有限责任公司 | Automatic testing method and system |
CN112699023A (en) * | 2020-12-25 | 2021-04-23 | 深圳市彬讯科技有限公司 | Project interface testing method and device, computer equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101727385A (en) * | 2008-10-31 | 2010-06-09 | 国际商业机器公司 | Method for processing information change of user interface and system |
CN104484216A (en) * | 2014-12-29 | 2015-04-01 | 广州唯品会网络技术有限公司 | Method and device for generating service interface document and on-line test tool |
CN106354631A (en) * | 2016-08-23 | 2017-01-25 | 北京中电华大电子设计有限责任公司 | Rapid software system regression testing method and device |
US9600402B2 (en) * | 2012-04-25 | 2017-03-21 | Empire Technology Development Llc | Application programming interface testing services |
CN106919509A (en) * | 2017-03-09 | 2017-07-04 | 腾讯科技(深圳)有限公司 | A kind of client generation method, device and electronic equipment |
CN107273281A (en) * | 2016-04-06 | 2017-10-20 | 阿里巴巴集团控股有限公司 | Service interface test method, system based on code change |
-
2018
- 2018-03-15 CN CN201810215565.XA patent/CN108509337A/en not_active Withdrawn
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101727385A (en) * | 2008-10-31 | 2010-06-09 | 国际商业机器公司 | Method for processing information change of user interface and system |
US9600402B2 (en) * | 2012-04-25 | 2017-03-21 | Empire Technology Development Llc | Application programming interface testing services |
CN104484216A (en) * | 2014-12-29 | 2015-04-01 | 广州唯品会网络技术有限公司 | Method and device for generating service interface document and on-line test tool |
CN107273281A (en) * | 2016-04-06 | 2017-10-20 | 阿里巴巴集团控股有限公司 | Service interface test method, system based on code change |
CN106354631A (en) * | 2016-08-23 | 2017-01-25 | 北京中电华大电子设计有限责任公司 | Rapid software system regression testing method and device |
CN106919509A (en) * | 2017-03-09 | 2017-07-04 | 腾讯科技(深圳)有限公司 | A kind of client generation method, device and electronic equipment |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109408370A (en) * | 2018-09-18 | 2019-03-01 | 深圳壹账通智能科技有限公司 | Interface testing document generating method, device, computer equipment and storage medium |
CN109062809A (en) * | 2018-09-20 | 2018-12-21 | 北京奇艺世纪科技有限公司 | Method for generating test case, device and electronic equipment on a kind of line |
CN109408304A (en) * | 2018-09-27 | 2019-03-01 | 深圳壹账通智能科技有限公司 | Block chain introduces test method, device, equipment and readable storage medium storing program for executing |
CN109656806A (en) * | 2018-10-29 | 2019-04-19 | 口碑(上海)信息技术有限公司 | A kind of the playback test method and device of interface data |
CN109558316A (en) * | 2018-11-21 | 2019-04-02 | 武汉风行在线技术有限公司 | A kind of HTTP interface mobilism parameter test method of Test Strategy automatic configuration |
CN110457201A (en) * | 2019-06-20 | 2019-11-15 | 口碑(上海)信息技术有限公司 | A kind of interface testing case generation method and device |
CN110716877A (en) * | 2019-09-30 | 2020-01-21 | 拉扎斯网络科技(上海)有限公司 | Automatic test method, device, computer system and readable storage medium |
CN111221743A (en) * | 2020-03-18 | 2020-06-02 | 时时同云科技(成都)有限责任公司 | Automatic testing method and system |
CN112699023A (en) * | 2020-12-25 | 2021-04-23 | 深圳市彬讯科技有限公司 | Project interface testing method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108509337A (en) | The dynamic testing method and device called based on interface | |
CN109240911A (en) | Accurate test method, device and computer equipment | |
CN105183630B (en) | Applied program testing method and device | |
CN106302776A (en) | A kind of cloud platform processing continuous data and method | |
CN102168945B (en) | System and method for image measurement | |
CN110405388A (en) | Predict the method, apparatus and electronic equipment of welding quality | |
KR20150095874A (en) | Data quality measurement method based on a scatter plot | |
CN109753432A (en) | A kind of interface performance test method, apparatus, server and system | |
CN110348508A (en) | Examine the data checking method and its system, electronic equipment of exceptional value | |
CN105975132B (en) | A kind of detection method and device of touch screen accuracy | |
CN109101410A (en) | A kind of risk driven test method and device and computer readable storage medium | |
CN110082666A (en) | Chip testing analysis method, device, equipment and storage medium | |
CN110147315A (en) | Concurrency performance test method, device, computer equipment and storage medium | |
CN109558316A (en) | A kind of HTTP interface mobilism parameter test method of Test Strategy automatic configuration | |
CN112985867B (en) | Steering engine testing method, device, equipment and storage medium | |
US8621287B1 (en) | Computing system monitoring | |
CN106201864A (en) | A kind of application programming interface API method of testing, device and mobile device | |
CN110307864A (en) | A kind of remote gathering system and its adjusting process of energy measurement instrument | |
CN102622233A (en) | System and method for automatically generating user interface applicable to certain interactive terminal equipment | |
CN112860556B (en) | Coverage rate statistics method, coverage rate statistics device, computer system and readable storage medium | |
CN110441727A (en) | A kind of pair of electric energy performance school instrument carries out the method and device of state evaluation | |
CN109684213A (en) | A kind of test method, device and storage medium | |
CN110083529A (en) | Automated testing method, device, medium and electronic equipment | |
JP2020047846A (en) | Data processing method, data processor, data processing system and data processing program | |
CN109189679A (en) | Interface test method and system, electronic equipment, storage medium |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20180907 |