CN105138461B - The interface test method and device of a kind of application program - Google Patents
The interface test method and device of a kind of application program Download PDFInfo
- Publication number
- CN105138461B CN105138461B CN201510613781.6A CN201510613781A CN105138461B CN 105138461 B CN105138461 B CN 105138461B CN 201510613781 A CN201510613781 A CN 201510613781A CN 105138461 B CN105138461 B CN 105138461B
- Authority
- CN
- China
- Prior art keywords
- interface
- case
- test
- testing use
- application program
- 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.)
- Active
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of interface test method of application program and device.The interface test method of the application program includes:Obtain at least one interface testing use-case of application program to be measured;According to the logical relation of each interface testing use-case and other interface testing use-cases, at least one interface testing use-case is grouped, every group interface test case after packet is at least one;Corresponding interface is tested using every group interface test case, to obtain the test result per group interface test case.Using the embodiment of the present invention, complicated interface testing can be realized, improves the accuracy of interface testing.
Description
Technical field
The present invention relates to the interface test method and device of field of computer technology, more particularly to a kind of application program.
Background technology
As software engineering develops, more and more softwares provide the user service by hardware and software platform, and third party can basis
Platform, which provides interface and customized, oneself to be needed to service, therefore nowadays software frequently involves interface testing.Interface is that some are pre-defined
Function, it is therefore an objective to the ability that application program and developer are able to access one group of routine based on certain software or hardware is provided, and
Source code need not be accessed again, or understands the details of internal work mechanism.Interface testing is to submit input data to interface, obtains and returns
As a result and whether analysis result meets expected test.Various system commands, testing tool may be related in interface testing, very
To programming technique.
At present, interface automatic test has two ways substantially.First way is that each test case is encapsulated as into letter
Number, then by calling the function to realize the automation that interface function is tested.The second way is to encapsulate whole test cases
Into a file, then read test use-case completes interface testing to automatized script one by one.
The content of the invention
Two kinds of update modes that background technology refers to can realize the interface testing of application program, but each Shortcomings,
For the first test mode, if test case has hundreds of even thousands of, the automatized script of interface testing is non-
It is often huge to write test case, it is necessary to take considerable time, once moreover, interface variation, change amount to test case nor
Chang great, meanwhile, tester needs to take a significant amount of time the realization for learning each function.For test mode in second, one by one
Read test use-case can not realize the interface testing of complexity.
The embodiment of the present invention proposes a kind of interface test method and device of application program, can realize that the interface of complexity is surveyed
Examination, improve the accuracy of interface testing.
The embodiment of the present invention provides a kind of interface test method of application program, including:
Obtain at least one interface testing use-case of application program to be measured;
According to the logical relation of each interface testing use-case and other interface testing use-cases, at least one interface is surveyed
Example on probation is grouped, and every group interface test case after packet is at least one;
Corresponding interface is tested using every group interface test case, to obtain the test per group interface test case
As a result.
It is preferably carried out at one in mode, the logical relation includes stand alone type, each interface testing use-case independence structure
Into a packet.
It is preferably carried out at another in mode, the logical relation includes laddering, multiple interfaces surveys of same group
Example on probation is arranged in order, if the output result tested using each interface testing use-case corresponding interface is connect with this
The desired value of mouth test case is consistent, then as the input tested using next interface testing use-case corresponding interface
Parameter, and the output result that corresponding interface is tested is surveyed as the group interface using using last interface testing use-case
The test result of example on probation.
It is preferably carried out at another in mode, the logical relation includes block form, and multiple interfaces with group are surveyed
Example on probation is arranged in order is tested corresponding interface with being performed, and will utilize last interface testing use-case to corresponding
Test result of the output result tested of interface as the group interface test case.
Further, each interface testing use-case includes use-case type, confirms each interface by the use-case type
Test case and the logical relation of other interface testing use-cases.
Further, each interface testing use-case includes interface identification code, and this is connect using each interface testing use-case
Interface corresponding to the interface identification code of mouth test case is tested.
Further, it is described to include verification data per group interface test case;
After the test result obtained per group interface test case, in addition to:
By the test result compared with the verification data, and comparative result is write into test report.
Further, after the test result obtained per group interface test case, in addition to:
When a group interface test case also includes database statement identification code and database verification data, from pre-establishing
Database statement template in inquiry obtain the corresponding database statement of database statement identification code;
Database is checked according to the database statement, obtains the inspection result of the database;
By the inspection result compared with the database verification data, and comparative result is write into test report.
Further, each interface testing use-case is respectively provided with standardised generic structure.
Accordingly, the embodiment of the present invention also includes a kind of interface test device of application program, including:
Interface testing use-case acquisition module, for obtaining at least one interface testing use-case of application program to be measured;
Grouping module, for the logical relation according to each interface testing use-case and other interface testing use-cases, to described
At least one interface testing use-case is grouped, and every group interface test case after packet is at least one;And
Test module, for being tested using per group interface test case corresponding interface, to obtain every group interface
The test result of test case.
It is preferably carried out at one in mode, the logical relation includes stand alone type, each interface testing use-case independence structure
Into a packet.
It is preferably carried out at another in mode, the logical relation includes laddering, multiple interfaces surveys of same group
Example on probation is arranged in order, if the output result tested using each interface testing use-case corresponding interface is connect with this
The desired value of mouth test case is consistent, then as the input tested using next interface testing use-case corresponding interface
Parameter, and the output result that corresponding interface is tested is surveyed as the group interface using using last interface testing use-case
The test result of example on probation.
It is preferably carried out at another in mode, the logical relation includes block form, and multiple interfaces with group are surveyed
Example on probation is arranged in order is tested corresponding interface with being performed, and will utilize last interface testing use-case to corresponding
Test result of the output result tested of interface as the group interface test case.
Further, each interface testing use-case includes use-case type, confirms each interface by the use-case type
Test case and the logical relation of other interface testing use-cases.
Further, each interface testing use-case includes interface identification code, and this is connect using each interface testing use-case
Interface corresponding to the interface identification code of mouth test case is tested.
Further, it is described to include verification data per group interface test case;
The interface test device of the application program also includes:
Correction verification module, for the test result to be write into survey compared with the verification data, and by comparative result
Examination report.
Further, the interface test device of the application program also includes:
Enquiry module, for also including database statement identification code and database verification data when a group interface test case
When, inquired about from the database statement template pre-established and obtain the corresponding database statement of database statement identification code;
Module is checked, for being checked according to the database statement database, obtains the inspection of the database
As a result;And
Comparison module, for by the inspection result compared with the database verification data, and by comparative result
Write test report.
Further, each interface testing use-case is respectively provided with standardised generic structure.
Implement the embodiment of the present invention, have the advantages that:
The interface test method and device of application program provided in an embodiment of the present invention, can according to interface testing use-case it
Between logical relation, the interface testing use-case of application program to be measured is grouped, and according to every group interface test case to phase
Answer interface to be tested, to realize complicated interface testing, improve the accuracy of interface testing;By the interface with progressive relationship
Test case is divided into one group, realizes interface testing of the output result of an interface as the input parameter of next interface, will
Interface testing use-case with coordination is divided into one group, realizes that multiple interface testing use-cases export the interface of a test result
Test, makes interface testing more comprehensive and accurate;After a test, database result is checked, improves the accuracy of test;
Each interface testing use-case is respectively provided with standardised generic structure, interface testing use-case is applied to different application programs, improves
The applicability of interface testing use-case.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of one embodiment of the interface test method of application program provided by the invention;
Fig. 2 is the part flow signal of another embodiment of the interface test method of application program provided by the invention
Figure;
Fig. 3 is the structural representation of one embodiment of the interface test device of application program provided by the invention;
Fig. 4 is the part-structure signal of another embodiment of the interface test device of application program provided by the invention
Figure.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
It is the schematic flow sheet of one embodiment of the interface test method of application program provided by the invention referring to Fig. 1,
Including:
S1, at least one interface testing use-case for obtaining application program to be measured;
S2, the logical relation according to each interface testing use-case and other interface testing use-cases, at least one connect to described
Mouth test case is grouped, and every group interface test case after packet is at least one;
S3, using every group interface test case corresponding interface is tested, to obtain per group interface test case
Test result.
It should be noted that after the interface testing use-case of application program to be measured is obtained, to the interface of application program to be measured
Test case is grouped, and the interface testing use-case for making to have logical relation is one group, so as to according to every group interface test case
To test corresponding interface, and obtain per the corresponding test result of group interface test case, so as to realize connecing for complexity
Mouth test, to improve the accuracy of test.
It is preferably carried out at one in mode, the logical relation includes stand alone type, each interface testing use-case independence structure
Into a packet.
If an interface testing use-case and other interface testing use-cases are freestanding logical relation, by the interface testing
Use-case is independently divided into one group.In test, corresponding interface is tested using the interface testing use-case, to obtain the interface
The test result of test case.
It is preferably carried out at another in mode, the logical relation includes laddering, multiple interfaces surveys of same group
Example on probation is arranged in order, if the output result tested using each interface testing use-case corresponding interface is connect with this
The desired value of mouth test case is consistent, then as the input tested using next interface testing use-case corresponding interface
Parameter, and the output result that corresponding interface is tested is surveyed as the group interface using using last interface testing use-case
The test result of example on probation.
If multiple interface testing use-cases have laddering logical relation, the multiple interface testing use-case is divided into one
Group, and be arranged in order according to progressive relationship.In test, each interface testing use-case of the group is utilized one by one according to putting in order
Carry out interface testing.Wherein, it is complete to corresponding interface testing in an interface testing use-case and obtain the output knot for connecing return
After fruit, by the output result compared with the desired value in the interface testing use-case, if output result is consistent with desired value,
The output result is cached in cache, when being tested using next interface testing use-case, obtained from caching cache
Take the output result to continue to test as the input parameter of next interface testing use-case, and using the group last
After interface testing use-case is tested corresponding interface, using the output result that the interface returns as the group interface test case
Test result;If output result is inconsistent with desired value, terminate the test of the group.
For example, first interface test case and second interface test case with progressive relationship are divided into one group.First with
First interface test case is tested corresponding first interface, obtains the output result that first interface returns, first is connect
The output result that mouth returns is compared with the desired value of first interface test case, if the output result is identical with desired value,
Then the output result is cached in cache, when being tested using second interface test case, obtained from caching cache
Take the output result to be tested as the input parameter of second interface test case corresponding second interface, obtain second and connect
Test result of the output result that mouth returns as this group;If the output result that first interface returns differs with desired value,
Terminate the test of this group.
It is preferably carried out at another in mode, the logical relation includes block form, and multiple interfaces with group are surveyed
Example on probation is arranged in order is tested corresponding interface with being performed, and will utilize last interface testing use-case to corresponding
Test result of the output result tested of interface as the group interface test case.
If multiple interface testing use-cases have the logical relation of block form, the multiple interface testing use-case is divided into one
Group, and be logically sequentially arranged in order.In test, each interface testing use-case of the group is utilized one by one according to putting in order
Carry out interface testing.Wherein, after being tested using an interface testing use-case corresponding interface, without examining the interface
The output result of return, continue with next interface testing use-case and corresponding interface is tested.Utilizing the group most
After the latter interface testing use-case is tested corresponding interface, survey of the output result of interface return as the group is obtained
Test result.
Further, each interface testing use-case includes use-case type, confirms each interface by the use-case type
Test case and the logical relation of other interface testing use-cases.
It should be noted that after the interface testing use-case of application program to be measured is obtained, interface testing use-case is added to
Test in list, and then the interface testing use-case in parsing test list one by one, with the packet for mouthful test case that achieves a butt joint.If
The type of interface testing use-case is separate type, then the interface testing use-case is divided into alone into one group;If test adjacent in list
The types of multiple interface testing use-cases be progressive type, then the multiple interface testing use-case is divided into one group, and according to
Putting in order in test list is arranged multiple interface testing use-cases of the group;If adjacent in test list multiple connect
The type of mouth test case is parallel-type, then the multiple interface testing use-case is divided into one group, and according to test list
In put in order multiple interface testing use-cases of the group arranged.
Further, each interface testing use-case includes interface identification code, and this is connect using each interface testing use-case
Interface corresponding to the interface identification code of mouth test case is tested.
Wherein, interface identification code is the unique identifier of interface.It can be asked according to the interface identification code of interface testing use-case
Corresponding interface is sought, realizes the test to the interface.
Further, it is described to include verification data per group interface test case;
After the test result obtained per group interface test case, in addition to:
By the test result compared with the verification data, and comparative result is write into test report.
It should be noted that after using interface testing is carried out per group interface test case, also need to test every group interface
The test result of use-case is verified.Wherein, the verification data verified is present in last of every group interface test case
In individual interface testing use-case, verification data includes check field and check value.The check field phase is obtained from test result
The test data answered, and judge whether the test data is identical with check value, if identical, the test result is correct, if not phase
Together, then test result mistake, and by comparative result write-in test report correctly or incorrectly.
Further, as shown in Fig. 2 after the test result obtained per group interface test case, in addition to:
S21, when a group interface test case also includes database statement identification code and database verification data, from advance
Inquiry obtains the corresponding database statement of database statement identification code in the database statement template of foundation;
S22, according to the database statement database is checked, obtain the inspection result of the database;
S23, by the inspection result compared with the database verification data, and by comparative result write test report
Accuse.
It should be noted that part of interface test also needs to verify database, when a group interface test case is also wrapped
When including database statement identification code and database verification data, also need according to database statement identification code and database verification data
Database is verified.Wherein, database statement identification code and database verification data are present in every group interface test case
Last interface testing use-case in, database verification data includes database check field and database check value.First from
Database statement corresponding to database statement identification code is found in the database statement template pre-established, and then according to the data
Storehouse sentence is checked database, to obtain inspection result.It is corresponding that database check field is obtained from the inspection result
Data are checked, and judge whether the inspection data and database check value are identical, if identical, the inspection result of database is just
Really, if differing, the inspection result mistake of database, and by comparative result write-in test report correctly or incorrectly.
Further, each interface testing use-case is respectively provided with standardised generic structure.
It should be noted that each interface testing use-case is write using standardised generic structure, for example, each connecing
The compiling form of mouth test case is { ' name ':' interface testing use-case name ', ' group ':' use-case type ', ' url ':' interface
Identification code ', ' method ':' method of testing ', ' args ':{ ' input parameter ' }, ' ret ':{‘equal’:{ ' desired value/verification
Data ' }, ' mysql ':{ ' database statement identification code and database verification data ' } } }.
As group=0, the logical relation of the interface testing use-case is stand alone type.Enter using the interface testing use-case
When line interface is tested, the corresponding interface of request interface identification code, to the interface input parameter, and using the method for testing in use-case
The interface is tested.After the test result that the interface returns is obtained, the verification data in use-case is to test result
Verified.If ' mysql ' field has data in use-case, according to database statement identification code and database verification data logarithm
Verified according to storehouse;If ' mysql ' field is sky in use-case, without being verified to database.
As group=1, by the first interface test case and next group=-1 second interface test case
It is divided into one group, its logical relation is laddering.After being tested using first interface test case corresponding first interface,
The output result that the first interface is returned is compared with the desired value in use-case.When comparative result is consistent, this is exported
Result cache is into cache, and when being tested using second interface test case, the output knot is obtained from caching cache
Fruit is tested corresponding second interface as the input parameter of second interface test case.Obtaining what second interface returned
After test result, the verification data in second interface test case verifies to test result.If second interface is tested
' mysql ' field has data in use-case, then carries out school to database according to database statement identification code and database verification data
Test;If ' mysql ' field is sky in second interface test case, without being verified to database.
As group=m, m interface testing use-case is divided into one group, its logical relation is block form.Wherein, m connect
Group in mouthful test case is m, m >=2.Corresponding interface is tested using each interface testing use-case one by one,
After carrying out interface testing using m-th of interface testing use-case, the test result of interface return is obtained, and according to m-th of interface
Verification data in test case verifies to test result.If ' mysql ' field has number in m-th of interface testing use-case
According to then being verified according to database statement identification code and database verification data to database;If m-th of interface testing use-case
In ' mysql ' field be sky, then without being verified to database.
The interface test method of application program provided in an embodiment of the present invention, can be according to patrolling between interface testing use-case
The relation of collecting, the interface testing use-case of application program to be measured is grouped, and according to every group interface test case to the corresponding interface
Tested, to realize complicated interface testing, improve the accuracy of interface testing;Interface testing with progressive relationship is used
Example is divided into one group, realizes interface testing of the output result of an interface as the input parameter of next interface, will have simultaneously
The interface testing use-case of row relation is divided into one group, realizes that multiple interface testing use-cases export the interface testing of a test result,
Make interface testing more comprehensive and accurate;After a test, database result is checked, improves the accuracy of test;Each
Interface testing use-case is respectively provided with standardised generic structure, interface testing use-case is applied to different application programs, improves interface
The applicability of test case.
Accordingly, the present invention also provides a kind of interface test device of application program, can realize in above-described embodiment
All flows of the interface test method of application program.
It is the structural representation of one embodiment of the interface test device of application program provided by the invention referring to Fig. 3,
Including:
Interface testing use-case acquisition module 1, for obtaining at least one interface testing use-case of application program to be measured;
Grouping module 2, for the logical relation according to each interface testing use-case and other interface testing use-cases, to described
At least one interface testing use-case is grouped, and every group interface test case after packet is at least one;And
Test module 3, for being tested using per group interface test case corresponding interface, to obtain every group interface
The test result of test case.
It is preferably carried out at one in mode, the logical relation includes stand alone type, each interface testing use-case independence structure
Into a packet.
It is preferably carried out at another in mode, the logical relation includes laddering, multiple interfaces surveys of same group
Example on probation is arranged in order, if the output result tested using each interface testing use-case corresponding interface is connect with this
The desired value of mouth test case is consistent, then as the input tested using next interface testing use-case corresponding interface
Parameter, and the output result that corresponding interface is tested is surveyed as the group interface using using last interface testing use-case
The test result of example on probation.
It is preferably carried out at another in mode, the logical relation includes block form, and multiple interfaces with group are surveyed
Example on probation is arranged in order is tested corresponding interface with being performed, and will utilize last interface testing use-case to corresponding
Test result of the output result tested of interface as the group interface test case.
Further, each interface testing use-case includes use-case type, confirms each interface by the use-case type
Test case and the logical relation of other interface testing use-cases.
Further, each interface testing use-case includes interface identification code, and this is connect using each interface testing use-case
Interface corresponding to the interface identification code of mouth test case is tested.
Further, it is described to include verification data per group interface test case;
The interface test device of the application program also includes:
Correction verification module, for the test result to be write into survey compared with the verification data, and by comparative result
Examination report.
Further, as shown in figure 4, the interface test device of the application program also includes:
Enquiry module 41, for also including database statement identification code and database check number when a group interface test case
According to when, from the database statement template pre-established inquiry obtain the corresponding database language of the database statement identification code
Sentence;
Module 42 is checked, for being checked according to the database statement database, obtains the inspection of the database
Come to an end fruit;And
Comparison module 43, for compared with the database verification data, and the inspection result will to be compared into knot
Fruit writes test report.
Further, each interface testing use-case is respectively provided with standardised generic structure.
The interface test device of application program provided in an embodiment of the present invention, can be according to patrolling between interface testing use-case
The relation of collecting, the interface testing use-case of application program to be measured is grouped, and according to every group interface test case to the corresponding interface
Tested, to realize complicated interface testing, improve the accuracy of interface testing;Interface testing with progressive relationship is used
Example is divided into one group, realizes interface testing of the output result of an interface as the input parameter of next interface, will have simultaneously
The interface testing use-case of row relation is divided into one group, realizes that multiple interface testing use-cases export the interface testing of a test result,
Make interface testing more comprehensive and accurate;After a test, database result is checked, improves the accuracy of test;Each
Interface testing use-case is respectively provided with standardised generic structure, interface testing use-case is applied to different application programs, improves interface
The applicability of test case.
Described above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (18)
- A kind of 1. interface test method of application program, it is characterised in that including:Obtain at least one interface testing use-case of application program to be measured;According to the logical relation of each interface testing use-case and other interface testing use-cases, at least one interface testing is used Example is grouped, and every group interface test case after packet is at least one;Corresponding interface is tested using every group interface test case, to obtain the test knot per group interface test case Fruit.
- 2. the interface test method of application program as claimed in claim 1, it is characterised in that the logical relation includes independent Formula, each interface testing use-case independently form a packet.
- 3. the interface test method of application program as claimed in claim 1, it is characterised in that the logical relation includes progressive Formula, multiple interface testing use-cases with group are arranged in order, if being entered using each interface testing use-case to corresponding interface The output result of row test is consistent with the desired value of the interface testing use-case, then is used as and utilizes next interface testing use-case pair The input parameter that corresponding interface is tested, and corresponding interface will be tested using last interface testing use-case Test result of the output result as the group interface test case.
- 4. the interface test method of application program as claimed in claim 1, it is characterised in that the logical relation includes arranged side by side Formula, it is arranged in order with the multiple interface testing use-cases organized and corresponding interface is tested with being performed, and will utilizes most The latter interface testing use-case is to test knot of the output result that corresponding interface is tested as the group interface test case Fruit.
- 5. such as the interface test method of application program according to any one of claims 1 to 4, it is characterised in that each connects Mouth test case includes use-case type, passes through the use-case type and confirms each interface testing use-case and other interface testing use-cases Logical relation.
- 6. such as the interface test method of application program according to any one of claims 1 to 4, it is characterised in that each connects Mouth test case includes interface identification code, right to the interface identification code institute of the interface testing use-case using each interface testing use-case The interface answered is tested.
- 7. the interface test method of application program as claimed in claim 1, it is characterised in that described per group interface test case Including verification data;After the test result obtained per group interface test case, in addition to:By the test result compared with the verification data, and comparative result is write into test report.
- 8. the interface test method of application program as claimed in claim 1, it is characterised in that surveyed in described obtain per group interface After the test result of example on probation, in addition to:When a group interface test case also includes database statement identification code and database verification data, from the number pre-established The corresponding database statement of database statement identification code is obtained according to inquiry in the sentence template of storehouse;Database is checked according to the database statement, obtains the inspection result of the database;By the inspection result compared with the database verification data, and comparative result is write into test report.
- 9. the interface test method of application program as claimed in claim 1, it is characterised in that each interface testing use-case has There is standardised generic structure.
- A kind of 10. interface test device of application program, it is characterised in that including:Interface testing use-case acquisition module, for obtaining at least one interface testing use-case of application program to be measured;Grouping module, for the logical relation according to each interface testing use-case and other interface testing use-cases, to it is described at least One interface testing use-case is grouped, and every group interface test case after packet is at least one;AndTest module, for being tested using per group interface test case corresponding interface, tested with obtaining per group interface The test result of use-case.
- 11. the interface test device of application program as claimed in claim 10, it is characterised in that the logical relation includes only Vertical, each interface testing use-case independently forms a packet.
- 12. the interface test device of application program as claimed in claim 10, it is characterised in that the logical relation includes passing Enter formula, multiple interface testing use-cases with group are arranged in order, if using each interface testing use-case to corresponding interface The output result tested is consistent with the desired value of the interface testing use-case, then is used as and utilizes next interface testing use-case The input parameter tested corresponding interface, and corresponding interface will be surveyed using last interface testing use-case Test result of the output result of examination as the group interface test case.
- 13. the interface test device of application program as claimed in claim 10, it is characterised in that the logical relation is included simultaneously Column, it is arranged in order with the multiple interface testing use-cases organized and corresponding interface is tested with being performed, and will utilizes Last interface testing use-case is to test of the output result that corresponding interface is tested as the group interface test case As a result.
- 14. the interface test device of the application program as any one of claim 10~13, it is characterised in that each Interface testing use-case includes use-case type, confirms that each interface testing use-case is used with other interface testings by the use-case type The logical relation of example.
- 15. the interface test device of the application program as any one of claim 10~13, it is characterised in that each Interface testing use-case includes interface identification code, the interface identification code institute using each interface testing use-case to the interface testing use-case Corresponding interface is tested.
- 16. the interface test device of application program as claimed in claim 10, it is characterised in that the test per group interface is used Example includes verification data;The interface test device of the application program also includes:Correction verification module, for the test result to be write into test report compared with the verification data, and by comparative result Accuse.
- 17. the interface test device of application program as claimed in claim 10, it is characterised in that the interface of the application program Test device also includes:Enquiry module, for when a group interface test case also includes database statement identification code and database verification data, Inquiry obtains the corresponding database statement of database statement identification code from the database statement template pre-established;Module is checked, for being checked according to the database statement database, obtains the inspection result of the database; AndComparison module, for the inspection result compared with the database verification data, and comparative result to be write Test report.
- 18. the interface test device of application program as claimed in claim 10, it is characterised in that each interface testing use-case is equal With standardised generic structure.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510613781.6A CN105138461B (en) | 2015-09-23 | 2015-09-23 | The interface test method and device of a kind of application program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510613781.6A CN105138461B (en) | 2015-09-23 | 2015-09-23 | The interface test method and device of a kind of application program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105138461A CN105138461A (en) | 2015-12-09 |
CN105138461B true CN105138461B (en) | 2018-01-26 |
Family
ID=54723815
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510613781.6A Active CN105138461B (en) | 2015-09-23 | 2015-09-23 | The interface test method and device of a kind of application program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105138461B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107977308A (en) * | 2016-10-25 | 2018-05-01 | 传化物流集团有限公司 | interface test method and device |
CN106528418B (en) * | 2016-10-28 | 2019-01-22 | 广东浪潮大数据研究有限公司 | A kind of test method and device |
CN106776334B (en) * | 2016-12-28 | 2021-03-23 | 北京奇虎科技有限公司 | Comment-based test case generation method and device |
JP6911408B2 (en) * | 2017-03-13 | 2021-07-28 | オムロン株式会社 | Evaluation system, safety controller, evaluation program, and evaluation method |
CN107423211B (en) * | 2017-03-15 | 2020-03-13 | 中国互联网络信息中心 | SDNS interface automatic test system and method |
CN107329861B (en) * | 2017-06-12 | 2020-12-22 | 奇安信科技集团股份有限公司 | Multi-interface testing method and device |
CN107436844B (en) * | 2017-07-07 | 2020-07-14 | 奇安信科技集团股份有限公司 | Method and device for generating interface use case aggregate |
CN107861870B (en) * | 2017-11-02 | 2020-07-24 | 平安科技(深圳)有限公司 | Interface test and test data generation method, device, terminal and storage medium |
CN108959065A (en) * | 2018-05-17 | 2018-12-07 | 烽火通信科技股份有限公司 | The verification method and system of software interface test parameter |
CN109522211B (en) * | 2018-09-29 | 2023-07-18 | 中国平安人寿保险股份有限公司 | Interface parameter transmission method and device, electronic equipment and storage medium |
CN111752821A (en) * | 2019-03-29 | 2020-10-09 | 上海哔哩哔哩科技有限公司 | Method and device for packet pressure measurement, computer equipment and readable storage medium |
CN111163067B (en) * | 2019-12-18 | 2022-05-03 | 支付宝(杭州)信息技术有限公司 | Safety testing method and device and electronic equipment |
CN112559356A (en) * | 2020-12-18 | 2021-03-26 | 杭州兑吧网络科技有限公司 | Automatic software testing method and system |
CN117033253A (en) * | 2023-10-10 | 2023-11-10 | 北京轻松怡康信息技术有限公司 | Interface testing method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1632747A (en) * | 2003-12-22 | 2005-06-29 | 联想(北京)有限公司 | Software interface testing method |
CN102214139A (en) * | 2011-06-01 | 2011-10-12 | 北京航空航天大学 | Automatic test performance control and debugging method facing distributed system |
CN103164312A (en) * | 2011-12-09 | 2013-06-19 | 阿里巴巴集团控股有限公司 | Method and system for preparing interface testing data |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2367129A1 (en) * | 2010-03-19 | 2011-09-21 | Nagravision S.A. | Method for checking data consistency in a system on chip |
-
2015
- 2015-09-23 CN CN201510613781.6A patent/CN105138461B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1632747A (en) * | 2003-12-22 | 2005-06-29 | 联想(北京)有限公司 | Software interface testing method |
CN102214139A (en) * | 2011-06-01 | 2011-10-12 | 北京航空航天大学 | Automatic test performance control and debugging method facing distributed system |
CN103164312A (en) * | 2011-12-09 | 2013-06-19 | 阿里巴巴集团控股有限公司 | Method and system for preparing interface testing data |
Also Published As
Publication number | Publication date |
---|---|
CN105138461A (en) | 2015-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105138461B (en) | The interface test method and device of a kind of application program | |
CN105117345B (en) | The interface test method and device of a kind of application program | |
CN104636254B (en) | Generate method and apparatus, method of testing and the equipment of test case | |
CN104111885B (en) | The method of calibration and device of interface testing result | |
CN107678935B (en) | Data generation method, terminal and computer readable storage medium | |
CN106095673A (en) | Automated testing method based on WEB interface and system | |
CN109857667A (en) | Automatic interface testing method, test device, test equipment and storage medium | |
CN107665171A (en) | Automatic regression test method and device | |
CN107329890A (en) | Test method and device based on Mock and server | |
CN103136095A (en) | Method, device and system of test application program interface | |
CN108446221A (en) | System detection method, device, computer equipment and storage medium | |
CN106961362A (en) | Automated testing method and mobile cloud test system | |
CN106708718A (en) | Service framework interface testing method and device | |
CN104268079A (en) | POS (Point Of Sale) application program testing method and system | |
CN109426611A (en) | A kind of method for testing software and device | |
CN104239206B (en) | Webpage method of testing and device | |
CN105511977A (en) | Vehicle-mounted navigation system testing method and device | |
CN106776319A (en) | Automatic test approach and device | |
TW201216048A (en) | Test system | |
WO2021104387A1 (en) | Method for automatically identifying valid data acquisition module and system | |
CN106059853A (en) | Network connectivity test method and device | |
CN107038120A (en) | A kind of method for testing software and equipment | |
CN106201864A (en) | A kind of application programming interface API method of testing, device and mobile device | |
CN103955425B (en) | Webpage (WEB) exploring testing device and method | |
Takoshima et al. | Assessing the quality of software requirements specifications for automotive software systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |