CN101145993B - A multi-point access interface test method and its test system - Google Patents
A multi-point access interface test method and its test system Download PDFInfo
- Publication number
- CN101145993B CN101145993B CN2007101525577A CN200710152557A CN101145993B CN 101145993 B CN101145993 B CN 101145993B CN 2007101525577 A CN2007101525577 A CN 2007101525577A CN 200710152557 A CN200710152557 A CN 200710152557A CN 101145993 B CN101145993 B CN 101145993B
- Authority
- CN
- China
- Prior art keywords
- test
- interface
- strategy
- interfaces
- data
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention discloses a multi-point accessed interface test method and test system for testing a to-be-tested system including a plurality of interfaces. The test system comprises a plurality of interface test modules, a test data storage module, and a central control module connected with the plurality of interface test module and the test data storage module. Firstly, the plurality of interfaces of a system to be tested is determined, and the test system is accessed to the plurality of interfaces to be tested. Then, a portion of the plurality of interfaces to be tested is selected as the input sources, and the test system transmits test data to other interfaces through the selected input source interfaces. Finally, the test system collects the data of the plurality of interfaces to be tested responding to the test data, and analyzes the collected response data to obtain the test result. The invention can test a plurality of interfaces once, and can discover the data treatment fault existing in different interfaces and the matching problem between the interfaces rapidly and on a real-time basis, thereby improving the test efficiency.
Description
Technical field
The present invention relates to the software interface measuring technology, relate in particular to multiple spot inserts in a kind of software systems interface test method and test macro thereof.
Background technology
In software test, software inhouse or external interface are one of objects of paying close attention to of tester, by obtaining the data of tested software interface, can judge whether the software subsystem data processing exists the interactive information between fault, the subsystem whether normal.
At present, industry to the common way of software interface test is: adopt the instrument of commercial testing tool or independent development to be linked in certain interface of system under test (SUT), extract interface, the docking port data are carried out analyzing and processing, and the automation regression test of carrying out on this basis.The shortcoming of this method is: can only insert in the test interface at every turn, and need extra instrument as input source.Perhaps, utilize testing tool, collect the output information of system under test (SUT) simultaneously, carry out regression test, also can only finish test individual interface or single tested subsystem as input source.
The publication number of submitting on February 27th, 2006 is that the patent application of CN1866221A discloses a kind of software interface test approach and device, when solution changes or changes in the software interface system that tested software is suitable at the tested software interface, by revising descriptor and dynamically generating graphical interfaces, just can realize the test of tested software interface, emphasis is for passing through to revise the test of corresponding descriptor realization to the interface after changing under the situation that individual interface changes.
The existing interface test macro all is the test of only finishing each time individual interface, and the efficient of software test is lower.How further to improve testing efficiency, performance automatic test effect is the right problem of our demand side.If we can insert a plurality of interfaces of system under test (SUT) simultaneously and test, must help the raising of testing efficiency so, help to shorten the R﹠D cycle of product.
Summary of the invention
The technical problem to be solved in the present invention provides interface test method and the test macro thereof that a kind of multiple spot inserts, thus the disposable test of finishing a plurality of interfaces in software test procedure, the testing efficiency when raising is tested many interface systems.
On the one hand, the present invention proposes the interface test method that a kind of multiple spot inserts, and is used for the system under test (SUT) that test system and test comprises a plurality of interfaces, and this method may further comprise the steps:
Need in the system under test (SUT) to determine a plurality of interfaces of testing, test macro is disposable to be linked into the described a plurality of interfaces that need test;
Selection portion divides interface as input source from the described a plurality of interfaces that need to test, and described test macro issues test data by selected input source interface to all the other interfaces;
Described test macro is collected the described response data that needs a plurality of interfaces of test to test data, and the response data analysis of collecting is obtained test result.
In the said method, after determining to need a plurality of interfaces of test, described test macro obtains the access parameter of the described interface that each need be tested, according to each interface of the described needs test of the disposable access of the access parameter that obtains.
In the said method, the Test Strategy that described test macro adopts when the response data of collecting is analyzed comprises a kind of or combination in any in the following strategy:
The synchronism detection strategy;
The asynchronous parallel Test Strategy;
The data extract strategy;
Stakeout ﹠ Homicide Preservation Strategy;
Return comparison strategy.
In the said method, when described Test Strategy comprised the synchronism detection strategy, the step that the response data of collecting is analyzed further comprised:
According to the synchronism detection strategy, will connect with the test data that issues from the input source interface from the response data that the described interface that each need be tested is collected and compare analysis.
In the said method, when described Test Strategy comprised the asynchronous parallel Test Strategy, the step that the response data of collecting is analyzed further comprised:
According to the asynchronous parallel Test Strategy, the response data of collecting from the described interface that each need be tested is carried out the independent parallel analysis.
In the said method, described to issue test data by the input source interface to all the other interfaces be to adopt the mode that issues step by step.
On the other hand, the present invention proposes a kind of test macro that is used for carrying out the test of multiple-contact access interface, be used to test the system under test (SUT) that comprises a plurality of interfaces, the central control module that this test macro comprises a plurality of interface testing modules, test data memory module, links to each other with the test data memory module with a plurality of interface testing modules, wherein:
Described each interface testing module is used for inserting the corresponding interface of the interface of a plurality of needs tests of system under test (SUT) and detects the interface that the inserted response data to test data;
Described test data memory module, the test data that the input source interface of the interface of testing from described a plurality of needs when being used for preserving test issues to all the other interfaces;
Described central control module is used for dividing interface as input source from the interface selection portion of a plurality of needs test, and controls the test that the disposable interface of finishing needs test corresponding in the system under test (SUT) of a plurality of interface testing modules carries out.
In the said system, described central control module further comprises:
Interface extracts parts, is used for extracting the access parameter of each interface that need test of system under test (SUT);
The parameter configuration parts are used to the corresponding interface testing module of access parameter configuration of utilizing interface to extract each interface that parts extracted.
In the said system, described central control module further comprises: the Test Strategy custom component is used to customize the Test Strategy of each interface testing module.
In the said system, the Test Strategy that described Test Strategy custom component is customized comprises a kind of or combination in any in the following strategy:
The synchronism detection strategy;
The asynchronous parallel Test Strategy;
The data extract strategy;
Stakeout ﹠ Homicide Preservation Strategy;
Return comparison strategy.
Advantage and characteristics that the present invention is main are as follows:
1. adopt technique scheme of the present invention, successfully realized the scheme of many interface concurrent tests in the software test procedure, overcome the test problem that present testing tool once can only be finished a subsystem or individual interface.
2. the technical scheme by this invention can be found the data processing mistake that exists in the distinct interface and the matching problem between the interface real-time, has shortened the R﹠D cycle of version.For the developer, test oneself efficient and version development quality have been improved; For the tester, saved cost, improved system testing efficient and version publish quality.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is that need to test with four interfaces in the system under test (SUT) be that example illustrates the system access way of test macro of the present invention when the test.
Fig. 2 is based on the flow chart that access way shown in Figure 1 is carried out the interface test method of multiple spot access.
Fig. 3 is that the system of the embodiment of the invention 1 described test macro when testing in system under test (SUT) inserts block diagram.
Fig. 4 is based on the access way embodiment of the invention shown in Figure 31 described flow chart that carries out the interface test method of multiple spot access.
Embodiment
For the purpose, technical solutions and advantages of the present invention are more readily understood, technical scheme of the present invention is described in further detail below in conjunction with drawings and Examples.
The test process of software interface is the proof procedure of information interaction in fact, and test mainly comprises the content of two aspects: whether the data that (1) checking interface is received are correct; (2) whether the data sent of checking interface are correct.
Fig. 1 is that need to test with four interfaces in the system under test (SUT) be that example illustrates the system access way of test macro of the present invention when the test.This system under test (SUT) comprises first subsystem, second subsystem, the 3rd subsystem, four subsystems, the 5th subsystem ... M subsystem, M+1 subsystem, and M is the integer greater than 1 here.First and second subsystems link to each other by first interface, second links to each other by second interface with the 3rd subsystem, and third and fourth subsystem links to each other by the 3rd interface, and the 4th links to each other by the 4th interface with the 5th subsystem, ..., M links to each other by the M interface with the M+1 subsystem.
Fig. 2 is based on the flow chart that access way shown in Figure 1 is carried out the interface test method of multiple spot access.
Step 1 is determined all interfaces that need test in the system under test (SUT), is confirmed as the interface that needs are tested such as first interface, second interface, the 3rd interface and the 4th interface, and then test macro obtains the access parameter of all interfaces that need test.
Step 2, test macro inserts each according to the access parameter that obtains need survey interface.The communication mode that test macro insert to need is surveyed interface does not have special requirement, adopt the TCP/IP of standard to connect, proprietary protocol connects or other agreements connect all can, if test macro and need to survey interface can proper communication.
Step 4 is to input source interface input test data and be issued to other by this interface and need survey interface.Such as adopting the mode that issues step by step, the test data of importing from first interface sends to second interface by first interface, sends to the 3rd interface by second interface again, sends to the 4th interface by the 3rd interface at last.
Fig. 3 is that the system of the embodiment of the invention 1 described test macro when testing in system under test (SUT) inserts block diagram.This system under test (SUT) comprises client, server, equipment main control unit and EM equipment module unit, wherein, link to each other by the Qx interface between server and the equipment main control unit, link to each other by F interface between client and the server, link to each other by the S interface between equipment main control unit and the EM equipment module unit.
As shown in the figure, this test macro comprise the first interface testing module, the second interface testing module and the 3rd interface testing module ..., N interface testing module, here N is the integer greater than 1, the central control module that also comprises the test data memory module, links to each other with the test data memory module with each interface testing module.Wherein:
Each interface testing module is used for inserting the corresponding interface of the interface of a plurality of needs tests of system under test (SUT) and detects the interface that the inserted response data to test data;
The test data memory module, the test data that issues to other interfaces from the input source interface when being used to preserve test;
Central control module is used for selecting an interface as the input source interface from the interface of a plurality of needs tests, and controls the disposable test of finishing need survey interface corresponding in the system under test (SUT) of a plurality of interface testing modules.
Further, this central control module comprises that interface extracts parts, parameter configuration parts, Test Strategy custom component.Wherein:
Interface extracts parts, and each need survey the access parameter of interface to be used for extracting system under test (SUT);
The parameter configuration parts are used to utilize interface to extract the corresponding interface testing module of access parameter configuration of each interface that parts extracted;
The Test Strategy custom component is used to customize the Test Strategy of each interface testing module.
At this, Test Strategy is meant and is used to finish the various criterions that test is disposed, such as the synchronism detection strategy of each interface testing module, asynchronous parallel Test Strategy, data extract strategy, Stakeout ﹠ Homicide Preservation Strategy, recurrence comparison strategy etc.Wherein, the synchronism detection strategy is meant the control criterion of coordinating to finish a test assignment between each interface testing module.Especially, the present invention in the synchronism detection, also provides the asynchronous parallel test operation between each interface testing module between each interface testing module of realization.
Fig. 4 is based on the access way embodiment of the invention shown in Figure 31 described flow chart that carries out the interface test method of multiple spot access.
Step 401 is analyzed each interface of system under test (SUT), determines the interface of all needs tests in the system under test (SUT) according to software test requirement.In the present embodiment, the need of extraction are surveyed interface and are comprised F interface, Qx interface and S interface, and interface extracts parts and extracts the access parameter that these three need are surveyed interface.
Step 403 is determined the input source interface, and test macro inserts input source interface and other interfaces that need test.In the present embodiment, test macro selects F interface as input source, inserts Qx interface and S interface simultaneously.Each interface testing module inserts the need of each correspondence simultaneously and surveys interface, and promptly first, second inserts F interface, Qx interface and S interface respectively with the 3rd interface testing module.
If test macro adopts the asynchronous parallel Test Strategy, then test macro carries out concurrent testing with a plurality of each interface of need surveying in the interfaces as interface independently, therefore independent mutually between a plurality of interface testing modules, each interface testing module can be controlled the interface that it inserts according to the testing requirement of self, can also adopt different Test Strategies that the interface that is inserted is carried out independently data acquisition and data analysis, such as data extract strategy, Stakeout ﹠ Homicide Preservation Strategy, recurrence comparison strategy etc.
If test macro adopts the synchronism detection strategy, then test macro is finished Synchronization Control between each interface according to synchronization policy, each interface testing module need adopt unified Test Strategy that its corresponding interface is carried out data acquisition, when the data of gathering are analyzed, original test data connects and compares analysis response data that test macro will be collected from each interface and the test data memory module, so that exist in the data between each interface under the situation of certain incidence relation, can correctly finish the data analysis of total interface and handle.
In addition, test macro of the present invention can also be carried out synchronism detection operation and two kinds of Test Strategies of asynchronous parallel test operation simultaneously.
Need to prove that some step can exchange sequence in processing procedure or carry out simultaneously in the interface test method that multiple spot of the present invention inserts, the flow process of describing among the embodiment is wherein a kind of ordering situation just.More than for for the purpose of being easy to illustrate technical scheme of the present invention all a plurality of interfaces with series connection be example, for other various interface connected modes, the interface testing scheme that the present invention provides is suitable equally.
From top description as can be seen, the present invention can insert in a plurality of interfaces of system under test (SUT) simultaneously, and finish the concurrent testing task of all access interfaces according to Test Strategy, overcome the deficiency that single-point inserts test, improved testing efficiency and version quality.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (5)
1. the interface test method that multiple spot inserts is used for the system under test (SUT) that test system and test comprises a plurality of interfaces, it is characterized in that this method may further comprise the steps:
Need in the system under test (SUT) to determine a plurality of interfaces of testing, test macro is disposable to be linked into the described a plurality of interfaces that need test;
Selection portion divides interface as input source from the described a plurality of interfaces that need to test, and described test macro issues test data by selected input source interface to all the other interfaces;
Described test macro is collected the described response data that needs a plurality of interfaces of test to test data, the response data of collecting is adopted the synchronism detection strategy, the asynchronous parallel Test Strategy, the data extract strategy, Stakeout ﹠ Homicide Preservation Strategy, a kind of or the combination in any analysis that returns in the comparison strategy obtains test result, wherein, when the Test Strategy that adopts when described test macro is analyzed the response data of collecting comprises the synchronism detection strategy, the step that the response data of collecting is analyzed further comprises: according to the synchronism detection strategy, will connect with the test data that issues from the input source interface from the response data that each the described interface that need test is collected and compare analysis; When the Test Strategy that adopts when described test macro is analyzed the response data of collecting comprises the asynchronous parallel Test Strategy, the step that the response data of collecting is analyzed further comprises: according to the asynchronous parallel Test Strategy, the response data of collecting from the described interface that each need be tested is carried out the independent parallel analysis.
2. the method for claim 1, it is characterized in that, after determining to need a plurality of interfaces of test, described test macro obtains the access parameter of the described interface that each need be tested, according to each interface of the described needs test of the disposable access of the access parameter that obtains.
3. the method for claim 1 is characterized in that, described to issue test data by the input source interface to all the other interfaces be to adopt the mode that issues step by step.
4. one kind is used for carrying out the test macro that the multiple-contact access interface is tested, be used to test the system under test (SUT) that comprises a plurality of interfaces, it is characterized in that the central control module that this test macro comprises a plurality of interface testing modules, test data memory module, links to each other with the test data memory module with a plurality of interface testing modules, wherein:
Described a plurality of interface testing module, be used for inserting the corresponding interface of the interface of a plurality of needs tests of system under test (SUT) and detect the interface that inserted response data, adopt a kind of or combination in any analysis in synchronism detection strategy, asynchronous parallel Test Strategy, data extract strategy, Stakeout ﹠ Homicide Preservation Strategy, the recurrence comparison strategy to obtain test result the response data of collecting to test data; When the Test Strategy of Test Strategy custom component customization comprises the synchronism detection strategy, be used for according to the synchronism detection strategy, will connect with the test data that issues from the input source interface from the response data that each the described interface that need test is collected and compare analysis; When the Test Strategy of Test Strategy custom component customization comprises the asynchronous parallel Test Strategy, be used for according to the asynchronous parallel Test Strategy, the response data of collecting from the described interface that each need be tested is carried out the independent parallel analysis;
Described test data memory module, the test data that the input source interface of the interface of testing from described a plurality of needs when being used for preserving test issues to all the other interfaces;
Described central control module is used for dividing interface as input source from the interface selection portion of a plurality of needs test, and controls the test that the disposable interface of finishing needs test corresponding in the system under test (SUT) of a plurality of interface testing modules carries out;
Described central control module further comprises: the Test Strategy custom component, be used to customize the Test Strategy of each interface testing module, the Test Strategy that is customized comprises a kind of or combination in any in synchronism detection strategy, asynchronous parallel Test Strategy, data extract strategy, Stakeout ﹠ Homicide Preservation Strategy, the recurrence comparison strategy.
5. system as claimed in claim 4 is characterized in that, described central control module further comprises:
Interface extracts parts, is used for extracting the access parameter of each interface that need test of system under test (SUT);
The parameter configuration parts are used to the corresponding interface testing module of access parameter configuration of utilizing interface to extract each interface that parts extracted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101525577A CN101145993B (en) | 2007-10-11 | 2007-10-11 | A multi-point access interface test method and its test system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101525577A CN101145993B (en) | 2007-10-11 | 2007-10-11 | A multi-point access interface test method and its test system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101145993A CN101145993A (en) | 2008-03-19 |
CN101145993B true CN101145993B (en) | 2011-04-06 |
Family
ID=39208307
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2007101525577A Expired - Fee Related CN101145993B (en) | 2007-10-11 | 2007-10-11 | A multi-point access interface test method and its test system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101145993B (en) |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101262379B (en) * | 2008-04-24 | 2011-04-20 | 中兴通讯股份有限公司 | A real time validation system and method for interface packets |
CN102096631B (en) * | 2009-12-11 | 2013-09-25 | 华为技术有限公司 | Interface testing method and device |
CN102937932B (en) * | 2011-08-16 | 2015-08-19 | ***股份有限公司 | The automatic test device of integrated isomery testing tool and method |
CN102981947B (en) * | 2011-09-07 | 2015-07-08 | 阿里巴巴集团控股有限公司 | Data preparation method in test and system provided with the same |
CN103760894B (en) * | 2014-01-24 | 2016-05-25 | 杭州正嘉数控设备有限公司 | Digital control system full-automatic test system |
CN103914377B (en) * | 2014-03-13 | 2016-08-24 | 中国联合网络通信集团有限公司 | Interface test method and device |
CN106528418B (en) * | 2016-10-28 | 2019-01-22 | 广东浪潮大数据研究有限公司 | A kind of test method and device |
CN107704386B (en) * | 2017-09-25 | 2020-10-30 | 金蝶软件(中国)有限公司 | Unit testing method and device of business process, computer equipment and storage medium |
CN108334428B (en) * | 2017-12-13 | 2021-02-05 | 天津津航计算技术研究所 | Parallel testing method for system functions |
CN110109783B (en) * | 2018-02-01 | 2024-02-02 | 视联动力信息技术股份有限公司 | Debugging method of multi-core system and terminal equipment |
CN110109784B (en) * | 2018-02-01 | 2024-02-02 | 视联动力信息技术股份有限公司 | Debugging method of multi-core system and terminal equipment |
CN109446068B (en) * | 2018-09-26 | 2024-04-05 | 平安健康保险股份有限公司 | Interface test method, device, computer equipment and storage medium |
CN109541434B (en) * | 2018-11-07 | 2021-02-23 | 广州三星通信技术研究有限公司 | Test circuit and test method for electronic equipment |
CN109739700B (en) * | 2018-12-12 | 2023-03-28 | 中国联合网络通信集团有限公司 | Interface testing method and device |
CN110890995B (en) * | 2019-05-14 | 2021-08-13 | 研祥智能科技股份有限公司 | Network port testing method and network port testing device |
CN111897721B (en) * | 2020-07-14 | 2024-04-30 | 重庆长安汽车股份有限公司 | Automatic testing method of API (application program interface) and storage medium |
-
2007
- 2007-10-11 CN CN2007101525577A patent/CN101145993B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN101145993A (en) | 2008-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101145993B (en) | A multi-point access interface test method and its test system | |
CN109361562B (en) | Automatic testing method based on associated network equipment access | |
CN102122265B (en) | System and method for verifying computer software test results | |
CN106330593B (en) | Protocol detection method and device | |
CN109947646A (en) | Interface test method, device, computer equipment and storage medium | |
CN101867501B (en) | Method and system for automatically testing consistence of SNMP (Simple Network Management Protocol) interface information model | |
CN105068929A (en) | Test script generation method, test script generation device, testing method, testing device and testing system | |
CN109766263A (en) | Automatic test analysis and processing method, device, computer equipment and storage medium | |
CN105279090A (en) | Test script generating method and test script generating device applied in financial field | |
US20150169288A1 (en) | System operation tracing method on distributed system | |
US8010849B2 (en) | Diagnosing faults within programs being executed by virtual machines | |
CN106059853B (en) | A kind of network connectivty test method and device | |
CN109491860A (en) | Method for detecting abnormality, terminal device and the medium of application program | |
CN103246606B (en) | The performance test methods of ESB platform and system | |
CN103095475A (en) | Routing Inspection method and system of multimode communication equipment | |
CN106603296A (en) | Log processing method and device | |
CN105405221A (en) | Method and device for automated test | |
CN102148844A (en) | Memory leak positioning method, server, client and system | |
CN107038372A (en) | Leaking data interface detection method and device | |
CN105677567A (en) | Automation testing method and system | |
CN108459850A (en) | method, device and system for generating test script | |
CN105117345A (en) | Interface testing method and device for application program | |
CN109460353A (en) | UDS auto-check system | |
CN111427796A (en) | System testing method and device and electronic equipment | |
CN109617755B (en) | Acceptance method and device of access system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110406 Termination date: 20171011 |
|
CF01 | Termination of patent right due to non-payment of annual fee |