CN106021111A - Interface testing method and system - Google Patents

Interface testing method and system Download PDF

Info

Publication number
CN106021111A
CN106021111A CN201610370537.6A CN201610370537A CN106021111A CN 106021111 A CN106021111 A CN 106021111A CN 201610370537 A CN201610370537 A CN 201610370537A CN 106021111 A CN106021111 A CN 106021111A
Authority
CN
China
Prior art keywords
test
interface
protos
module
test case
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610370537.6A
Other languages
Chinese (zh)
Inventor
张洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Ctrip Business Co Ltd
Original Assignee
Shanghai Ctrip Business Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Ctrip Business Co Ltd filed Critical Shanghai Ctrip Business Co Ltd
Priority to CN201610370537.6A priority Critical patent/CN106021111A/en
Publication of CN106021111A publication Critical patent/CN106021111A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an interface testing method and system. The interface testing method comprises the steps of guiding in a testing interface; adding at least one testing case to the testing interface; setting a testing scene, wherein the testing scene comprises an execution sequence of the testing case and scene parameters; adding the testing case to at least one testing suite; operating the testing suite; according to an operation result of the testing suite, generating a report. According to the interface testing method and system, the defect that batch testing cannot be performed on interfaces rapidly in the prior art can be overcome, various interface technologies can be comprehensively supported, language, environment and other factors achieved by service interfaces are not limited, various kinds of interfaces are supported, and rapid testing on the interfaces for various different requirements can be achieved by arranging testing cases, testing scenes and testing suites.

Description

Interface test method and system
Technical field
The invention belongs to software test field, especially belong to a kind of interface test method and system.
Background technology
Most current tests the test of team's docking port, is the request group realizing interface based on programming mode Dress, sends, and receives and verifies returning response message.Require that tester have to be understood that programming skill Art, docking port call method and verification method to have deep understanding and experience.This mode is not only developed Cycle is long, but also requires that tester is familiar with surveying mouth test code, and causing can not fast speed docking port Carry out batch testing.
Summary of the invention
The technical problem to be solved in the present invention is to overcome in prior art the test mode of docking port not The only construction cycle is long, but also requires that tester is familiar with surveying mouth test code, and causing can not fast speed Docking port carries out the defect of batch testing, it is provided that a kind of interface test method and system.
The present invention is to solve above-mentioned technical problem by the following technical programs:
The present invention provides a kind of interface test method, is characterized in, including:
S1, import test interface;
S2, to described test interface add at least one test case;
S3, set test scene, described test scene includes execution sequence and the scene of described test case Parameter;
S4, add described test case at least one protos test suite PROTOS;
S5, run described protos test suite PROTOS;
S6, generate report according to the operation result of described protos test suite PROTOS.
The technical program can support all kinds of interfacing comprehensively, is not restricted to the language that service interface realizes, The factors such as environment, support each class interface.By configuration testing use-case, test scene and protos test suite PROTOS, real The test of all kinds of different demands of existing docking port.The technical program also less demanding, just to tester Realize interface testing in tester, especially batch testing, accelerate test speed, shorten exploitation Cycle.
It is preferred that described interface test method is additionally included in execution S1Afterwards and perform S2Perform before Following steps:
S11, according to the back end of XML (extensible markup language) or Json (a kind of lightweight Data interchange format) back end generate figure tree node;
S12, single or multiple described figure tree node are carried out parametrization;
S2Including: described test interface is added at least one parameterized test case.
It is preferred that S2Also include: the response message of described test interface is added checking.
It is preferred that described interface test method is additionally included in execution S1Perform following steps before:
Setting some account executives, described account executive has importing test interface and management at least is alternative The authority of test case group, described alternative test case group includes some alternative test cases;Or, prestore Described some alternative test cases are divided at least one alternative test case group by some alternative test cases, And be each alternative test case group allocation manager account respectively, described account executive has importing test and connects The authority of the alternative test case group that mouth and management are allocated;
S1Also include: identify the account executive importing described test interface;
S2The test case of middle interpolation belongs to the alternative test case group of the account executive management recognized.
Owing in prior art, statistics and the management of docking port test be not directly perceived, especially connect to test In the case of mouth is numerous with tester, the test assignment of tester is the most reasonably distributed, causes Later stage is cumbersome in the test case of maintenance interface.All of test case is carried out point by the technical program Group management, and it is assigned with the account executive of correspondence, so not only contribute to management and the maintenance of test case, The workload of tester can also be decreased and improve work efficiency.
It is preferred that described account executive also has the authority of management at least one protos test suite PROTOS;
Described interface test method also includes S4Replace with: described test case added to be recognized At least one protos test suite PROTOS of account executive management.
The technical program carries out grouping management further to all of protos test suite PROTOS, and is assigned with the pipe of correspondence Reason account, is conducive to management and the maintenance of protos test suite PROTOS further, reduces the workload of tester and carry High workload efficiency.
It is preferred that S5Including: in a Jenkins (open source software project a, it is desirable to provide opening is easy Software platform) in create Job (a kind of file format) file, and by the chain of described protos test suite PROTOS Connect and copy to described Job file runs.
The technical program can realize the continuous integrating of test case.
It is preferred that described interface test method is for carrying out functional test and/or performance test to test interface;
When test interface is carried out functional test, S2In test case that described test interface is added be For the test case of functional test, S6The functional test that is reported as of middle generation is reported;
When test interface is carried out performance test, S2In test case that described test interface is added be For the test case of performance test, by S3-S6Replace with: distributing sustainable time and configuration parameter, root Start thread according to configuration, within the described persistent period, send described test case to test interface, statistically Energy index, generates performance test report;
Described configuration parameter includes one or more in following parameter: task name, task description, virtual Number of users, request message, transmission types, request message parameter sets and parameter value type.
The technical program by being respectively used to the test case of functional test and being used for performance by test case The test case of test, it is achieved that functional test and the performance test to test interface, it is possible to comprehensively meet Various test requests.
The present invention also provides for a kind of interface test system, is characterized in, including:
Import module, be used for importing test interface;
Test case module, for adding at least one test case to described test interface;
Setting module, is used for setting test scene, and described test scene includes the execution of described test case Order and scenario parameters;
Protos test suite PROTOS module, for adding described test case at least one protos test suite PROTOS;
Run module, be used for running described protos test suite PROTOS;
Reporting modules, generates report for the operation result according to described protos test suite PROTOS.
It is preferred that described interface test system also includes node module, described node module is for described Call after importing module and before described test case module, including:
Node signal generating unit, the back end for the back end according to XML or Json generates figure Tree node;
Parameterized units, for carrying out parametrization to single or multiple described figure tree node;
Described test case module is for adding at least one parameterized test case to described test interface.
It is preferred that described test case module is additionally operable to the response message to described test interface adds checking.
It is preferred that described interface test system also includes:
Management module, for before calling described importing module, sets some account executives, described pipe Reason account has the authority importing test interface with management at least one alternative test case group, described alternative survey Example group on probation includes some alternative test cases;Or, for before calling described importing module, prestore Described some alternative test cases are divided at least one alternative test case group by some alternative test cases, And be each alternative test case group allocation manager account respectively, described account executive has importing test and connects The authority of the alternative test case group that mouth and management are allocated;
Described importing module, is additionally operable to identify the account executive importing described test interface;
In described test case module add test case belong to recognize account executive management standby Select test case group.
It is preferred that described account executive also has the authority of management at least one protos test suite PROTOS;
Described protos test suite PROTOS module replaces with: for described test case is added to the management account recognized At least one protos test suite PROTOS of family management.
It is preferred that described operation module is for creating Job file in Jenkins, and by described test The link of external member copies to run in described Job file.
It is preferred that described interface test system is for carrying out functional test and/or performance test to test interface;
When test interface is carried out functional test, described test interface is added by described test case module The test case added is the test case for functional test, and generate in described reporting modules is reported as merit Can test report;
When test interface is carried out performance test, described test interface is added by described test case module The test case added is the test case for performance test, by described setting module, described protos test suite PROTOS Module, described operation module and described reporting modules replace with:
Configuration module, for distributing sustainable time and configuration parameter, described configuration parameter includes following parameter In one or more: task name, task description, Virtual User number, request message, transmission types, Request message parameter sets and parameter value type;
Start module, for starting thread according to configuration, within the described persistent period, send described test use Example is to test interface;
Statistical module, for statistic property index, generates performance test report.
On the basis of meeting common sense in the field, above-mentioned each optimum condition, can combination in any, i.e. get Ben Fa Bright each preferred embodiments.
The most progressive effect of the present invention is: the present invention can support all kinds of interfacing comprehensively, does not limits It is formed on the language that service interface realizes, the factor such as environment, supports each class interface;By configuration testing use-case, Test scene and protos test suite PROTOS, it is achieved the test of all kinds of different demands of docking port;Have tester Less demanding, it is simple to tester realizes interface testing, accelerates test speed, shortens the construction cycle etc. Advantage.Simultaneously, moreover it is possible to by setting the authority of account executive, to all of test case and protos test suite PROTOS Carry out grouping management, not only contribute to test case and the management of protos test suite PROTOS and maintenance, moreover it is possible to reduce The workload of tester and improve work efficiency.
Accompanying drawing explanation
Fig. 1 is the flow chart of a kind of interface test method of a preferred embodiment of the present invention 1.
Fig. 2 is the block diagram of a kind of interface test system of a preferred embodiment of the present invention 2.
Detailed description of the invention
Further illustrate the present invention below by the mode of embodiment, but the most therefore limit the present invention to Among described scope of embodiments.
Embodiment 1
A kind of interface test method, as it is shown in figure 1, include:
Step 101, setting some account executives, described account executive has importing test interface and management The authority of at least one alternative test case group.Described alternative test case group includes some alternative test cases, Then step 102 is performed.
In another preferred embodiment of the present invention, step 101 can also be replaced with following steps: prestore Described some alternative test cases are divided at least one alternative test case group by some alternative test cases, And be each alternative test case group allocation manager account respectively, described account executive has importing test and connects The authority of the alternative test case group that mouth and management are allocated, performs step 102 the most equally.
Step 102, importing test interface also identify the account executive importing described test interface.
Step 103, back end according to the back end of XML or Json generate figure tree node. This step can be passed through Javascript (a kind of literal translation formula script) and resolve XML data or Json Data realize.
Step 104, single or multiple described figure tree node are carried out parametrization.
Wherein, the interface requests message parameterization of described figure tree node support can include herein below One or more:
1) dynamic time of user-defined format;
2) the dynamic date of user-defined format;
3) random integer numeral (designation number length);
4) random floating point number (appointment figure place);
5) random string (designated length);
6) Guid (GUID) is generated;
7) random value from array;
8) multi-stage serial connection mouth;
9) data base's value or execution;
10) node calculates;
11) use-case adds variable.
Wherein, the interface response message checking of described figure tree node support includes the one of herein below Or multiple:
1) the result node more than/equal to/less than/more than or equal to/less than or equal to value;
2) the result node is not empty;
3) the result node comprise/do not comprise value;
4) the result node is not belonging to value range;
5) certain number of nodes of the result;
6) whether the result node mates regular expression;
7) checking entire contents result;
8) the result node matching request message;
9) the result nodal community be equal to/is not equal to value;
10) the result node whether matching primitives result;
11) the result node contrasts with another node.
Step 105, described test interface is added at least one parameterized test case to described test The response message of interface adds checking.Wherein, the test case of interpolation belongs to the account executive pipe recognized The alternative test case group of reason.Usual parameterized test case includes testing logic and test data.Institute State in the content that the interface requests message parameter that test data are described figure tree node support includes One or more, and described figure tree node support interface response message checking content in one Plant or multiple.
Step 106, setting test scene, described test scene includes the execution sequence of described test case And scenario parameters.Described scenario parameters is identical with the parametrization of above-mentioned node.
Step 107, by described test case add at least one protos test suite PROTOS.The described test of this step is used Example refers to the test case added in step 105.
In another preferred embodiment of the present invention, described account executive can also have management at least one survey The authority of examination external member, replaces with step 107: described test case is added to the management account recognized At least one protos test suite PROTOS of family management.
Step 108, run described protos test suite PROTOS.Now can directly run described protos test suite PROTOS, or Can: in Jenkins, create Job file, and the link of described protos test suite PROTOS is copied to described Job File runs, realizes the continuous integrating of test case with this.
Step 109, generate report according to the operation result of described protos test suite PROTOS.Described report can be can Depending on the report changed, concrete Report Type can be mail report or the report of web (webpage) page.
The interface test method of the present embodiment may be used for test interface is carried out functional test, it is also possible to right The performance test of test interface.
When test interface is carried out functional test, the test in step 105, described test interface added Use-case is the test case for functional test, corresponding, the function that is reported as generated in step 109 is surveyed Examination report.Described functional test report can include one or more of herein below: test case classification, Test case is total, successfully number, unsuccessfully number, test case checking count, running environment, the operation time, The account executive etc. that running status, running log are corresponding with test case.
When test interface is carried out performance test, the test in step 105, described test interface added Use-case is the test case for performance test, corresponding, step 106-109 is replaced with: configuration is held Continuous time and configuration parameter, described configuration parameter includes task name, task description, Virtual User number, asks Ask message, transmission types (including concurrently or sequentially), request message parameter sets and parameter value type (including random or order), start thread according to configuration, within the described persistent period, send described test Use-case, to test interface, statistic property index, generates performance test report.Wherein, described performance test Report includes that performance indications, described performance indications include: by the response message time of test interface, send out The amount of sending, total time-consuming and result, the Best-case Response Time of the test interface calculated, maximum response time, Median response time, average response time, 90% response time, TPS, standard variance, number of concurrent, Success number, unsuccessfully number, throughput of system, the CPU of tested interface server and the tendency of internal memory and always Time-consuming etc..
Embodiment 2
A kind of interface test system, as in figure 2 it is shown, include: management module 201, import module 202, Node module 203, test case module 204, setting module 205, protos test suite PROTOS module 206, operation Module 207 and reporting modules 208.
Described management module 201, is used for setting some account executives, and described account executive has importing and surveys The authority that trying mouth and manages at least one alternative test case group, described alternative test case group includes some Alternative test case.
It is also possible that state management module 201 and replace with in another preferred embodiment of the present invention: be used for Prestore some alternative test cases, and described some alternative test cases are divided at least one alternative test case Group, and be each alternative test case group allocation manager account respectively, described account executive has importing and surveys The authority of the alternative test case group that mouth of trying is allocated with management.
Described importing module 202, for importing test interface and identifying the management importing described test interface Account.
Described node module 203 includes:
Node signal generating unit 2031, the back end for the back end according to XML or Json generates Figure tree node.Specifically can pass through Javascript (a kind of literal translation formula script) and resolve XML Data or Json data realize.
Parameterized units 2032, for carrying out parametrization to single or multiple described figure tree node.
Wherein, the interface requests message parameterization of described figure tree node support can include herein below One or more:
1) dynamic time of user-defined format;
2) the dynamic date of user-defined format;
3) random integer numeral (designation number length);
4) random floating point number (appointment figure place);
5) random string (designated length);
6) Guid (GUID) is generated;
7) random value from array;
8) multi-stage serial connection mouth;
9) data base's value or execution;
10) node calculates;
11) use-case adds variable.
Wherein, the interface response message checking of described figure tree node support includes the one of herein below Or multiple:
1) the result node more than/equal to/less than/more than or equal to/less than or equal to value;
2) the result node is not empty;
3) the result node comprise/do not comprise value;
4) the result node is not belonging to value range;
5) certain number of nodes of the result;
6) whether the result node mates regular expression;
7) checking entire contents result;
8) the result node matching request message;
9) the result nodal community be equal to/is not equal to value;
10) the result node whether matching primitives result;
11) the result node contrasts with another node.
Described test case module 204, for adding at least one parameterized test to described test interface The response message of described test interface is also added checking by use-case.Wherein, the test case of interpolation belongs to knowledge The alternative test case group of the account executive management being clipped to.Usual parameterized test case includes that test is patrolled Collect and test data.Described test data are the interface requests message parameter that described figure tree node is supported Change one or more in the content included, and the interface response message of described figure tree node support is tested One or more in the content of card.
Described setting module 205, is used for setting test scene, and described test scene includes that described test is used The execution sequence of example and scenario parameters.Described scenario parameters is identical with the parametrization of above-mentioned node.
Described protos test suite PROTOS module 206, for adding described test case at least one protos test suite PROTOS. The described test case of this module refers to the test case added in described test case module 204.
In another preferred embodiment of the present invention, described account executive can also have management at least one survey The authority of examination external member, replaces with described protos test suite PROTOS module 206: add described test case to knowledge At least one protos test suite PROTOS of the account executive management being clipped to.
Described operation module 207, is used for running described protos test suite PROTOS.Now can directly run described survey Examination external member, or can: in Jenkins, create Job file, and by the link of described protos test suite PROTOS Copy to described Job file runs, realize the continuous integrating of test case with this.
Described reporting modules 208, generates report for the operation result according to described protos test suite PROTOS.
The interface test system of the present embodiment is for carrying out functional test and/or performance test to test interface.
When test interface is carried out functional test, described test is connect by described test case module 204 The test case that mouth adds is the test case for functional test, generates in described reporting modules 208 It is reported as functional test report.Described functional test report can include one or more of herein below: Test case classification, test case are total, successfully number, unsuccessfully number, test case checking are counted, run Environment, run time, running status, account executive etc. that running log is corresponding with test case.
When test interface is carried out performance test, described test is connect by described test case module 204 Mouthful test case added is the test case for performance test, corresponding, by described setting module 205, Described protos test suite PROTOS module 206, described operation module 207 and described reporting modules 208 replace with:
Configuration module, for distributing sustainable time and configuration parameter, described configuration parameter include task name, Task description, Virtual User number, request message, transmission types (including concurrently or sequentially), request report Literary composition parameter sets and parameter value type (including random or order);
Start module, for starting thread according to configuration, within the described persistent period, send described test use Example is to test interface;
Statistical module, for statistic property index, generates performance test report.Wherein, described performance is surveyed Examination report include that performance indications, described performance indications include: by the Best-case Response Time of test interface, Maximum response time, median response time, average response time, 90% response time, TPS, mark Quasi-variance, number of concurrent, successfully number, unsuccessfully number, throughput of system, the CPU of tested interface server With the tendency of internal memory and the most time-consuming etc..
The interface test method of embodiment 1 and the interface test system of embodiment 2 are distinguished in actual applications Can be designed to the platform of a kind of interface automatic test, prestored in the backstage of platform exercisable figure Tree node, various test case, protos test suite PROTOS, front end display login page, by for tester Show that the different pages guides tester to complete interface testing.The operation of platform and tester is permissible Designing as follows: first, tester logs in described platform by input management account;Platform checking and After identifying management account, show the interface management page, select to need the test of test for tester Interface, adds test case;Then show the operational management page, add for tester and run and survey Examination external member, and export the report of operation result.
Although the foregoing describing the detailed description of the invention of the present invention, but those skilled in the art should managing Solving, these are merely illustrative of, and protection scope of the present invention is defined by the appended claims.This The technical staff in field, can be to these embodiment party on the premise of without departing substantially from the principle of the present invention and essence Formula makes various changes or modifications, but these changes and amendment each fall within protection scope of the present invention.

Claims (14)

1. an interface test method, it is characterised in that including:
S1, import test interface;
S2, to described test interface add at least one test case;
S3, set test scene, described test scene includes execution sequence and the scene of described test case Parameter;
S4, add described test case at least one protos test suite PROTOS;
S5, run described protos test suite PROTOS;
S6, generate report according to the operation result of described protos test suite PROTOS.
2. interface test method as claimed in claim 1, it is characterised in that described interface testing side Method is additionally included in execution S1Afterwards and perform S2Perform following steps before:
S11, generate figure tree node according to the back end of the back end of XML or Json;
S12, single or multiple described figure tree node are carried out parametrization;
S2Including: described test interface is added at least one parameterized test case.
3. interface test method as claimed in claim 2, it is characterised in that S2Also include: to institute The response message stating test interface adds checking.
4. interface test method as claimed in claim 1, it is characterised in that described interface testing side Method is additionally included in execution S1Perform following steps before:
Setting some account executives, described account executive has importing test interface and management at least is alternative The authority of test case group, described alternative test case group includes some alternative test cases;Or, prestore Described some alternative test cases are divided at least one alternative test case group by some alternative test cases, And be each alternative test case group allocation manager account respectively, described account executive has importing test and connects The authority of the alternative test case group that mouth and management are allocated;
S1Also include: identify the account executive importing described test interface;
S2The test case of middle interpolation belongs to the alternative test case group of the account executive management recognized.
5. interface test method as claimed in claim 4, it is characterised in that described account executive is also There is the authority of management at least one protos test suite PROTOS;
Described interface test method also includes S4Replace with: described test case added to be recognized At least one protos test suite PROTOS of account executive management.
6. interface test method as claimed in claim 1, it is characterised in that S5Including: at Jenkins Middle establishment Job file, and copy to the link of described protos test suite PROTOS described Job file runs.
7. interface test method as claimed in claim 1, it is characterised in that described interface testing side Method is for carrying out functional test and/or performance test to test interface;
When test interface is carried out functional test, S2In test case that described test interface is added be For the test case of functional test, S6The functional test that is reported as of middle generation is reported;
When test interface is carried out performance test, S2In test case that described test interface is added be For the test case of performance test, by S3-S6Replace with: distributing sustainable time and configuration parameter, root Start thread according to configuration, within the described persistent period, send described test case to test interface, statistically Energy index, generates performance test report;
Described configuration parameter includes one or more in following parameter: task name, task description, virtual Number of users, request message, transmission types, request message parameter sets and parameter value type.
8. an interface test system, it is characterised in that including:
Import module, be used for importing test interface;
Test case module, for adding at least one test case to described test interface;
Setting module, is used for setting test scene, and described test scene includes the execution of described test case Order and scenario parameters;
Protos test suite PROTOS module, for adding described test case at least one protos test suite PROTOS;
Run module, be used for running described protos test suite PROTOS;
Reporting modules, generates report for the operation result according to described protos test suite PROTOS.
9. interface test system as claimed in claim 8, it is characterised in that described interface testing system System also includes node module, and described node module is for after described importing module and in described test use Call before example module, including:
Node signal generating unit, the back end for the back end according to XML or Json generates figure Tree node;
Parameterized units, for carrying out parametrization to single or multiple described figure tree node;
Described test case module is for adding at least one parameterized test case to described test interface.
10. interface test system as claimed in claim 9, it is characterised in that described test case mould Block is additionally operable to the response message to described test interface and adds checking.
11. interface test systems as claimed in claim 8, it is characterised in that described interface testing system System also includes:
Management module, for before calling described importing module, sets some account executives, described pipe Reason account has the authority importing test interface with management at least one alternative test case group, described alternative survey Example group on probation includes some alternative test cases;Or, for before calling described importing module, prestore Described some alternative test cases are divided at least one alternative test case group by some alternative test cases, And be each alternative test case group allocation manager account respectively, described account executive has importing test and connects The authority of the alternative test case group that mouth and management are allocated;
Described importing module, is additionally operable to identify the account executive importing described test interface;
In described test case module add test case belong to recognize account executive management standby Select test case group.
12. interface test systems as claimed in claim 11, it is characterised in that described account executive Also there is the authority of management at least one protos test suite PROTOS;
Described protos test suite PROTOS module replaces with: for described test case is added to the management account recognized At least one protos test suite PROTOS of family management.
13. interface test systems as claimed in claim 8, it is characterised in that described operation module is used In creating Job file in Jenkins, and the link of described protos test suite PROTOS is copied to described Job file Middle operation.
14. interface test systems as claimed in claim 8, it is characterised in that described interface testing system System is for carrying out functional test and/or performance test to test interface;
When test interface is carried out functional test, described test interface is added by described test case module The test case added is the test case for functional test, and generate in described reporting modules is reported as merit Can test report;
When test interface is carried out performance test, described test interface is added by described test case module The test case added is the test case for performance test, by described setting module, described protos test suite PROTOS Module, described operation module and described reporting modules replace with:
Configuration module, for distributing sustainable time and configuration parameter, described configuration parameter includes following parameter In one or more: task name, task description, Virtual User number, request message, transmission types, Request message parameter sets and parameter value type;
Start module, for starting thread according to configuration, within the described persistent period, send described test use Example is to test interface;
Statistical module, for statistic property index, generates performance test report.
CN201610370537.6A 2016-05-30 2016-05-30 Interface testing method and system Pending CN106021111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610370537.6A CN106021111A (en) 2016-05-30 2016-05-30 Interface testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610370537.6A CN106021111A (en) 2016-05-30 2016-05-30 Interface testing method and system

Publications (1)

Publication Number Publication Date
CN106021111A true CN106021111A (en) 2016-10-12

Family

ID=57092339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610370537.6A Pending CN106021111A (en) 2016-05-30 2016-05-30 Interface testing method and system

Country Status (1)

Country Link
CN (1) CN106021111A (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357466A (en) * 2016-11-10 2017-01-25 福州智永信息科技有限公司 Monitoring method for internet products and monitoring system
CN106484624A (en) * 2016-10-21 2017-03-08 天津海量信息技术股份有限公司 The method of testing of interface automatic test
CN106502887A (en) * 2016-10-13 2017-03-15 郑州云海信息技术有限公司 A kind of stability test method, test controller and system
CN106776307A (en) * 2016-12-05 2017-05-31 广州唯品会信息科技有限公司 Method for testing software and system
CN106776280A (en) * 2016-11-24 2017-05-31 上海携程商务有限公司 Configurable performance test device
CN107894955A (en) * 2017-12-05 2018-04-10 浪潮金融信息技术有限公司 A kind of method based on multithreading test third party's interface stability
CN107977308A (en) * 2016-10-25 2018-05-01 传化物流集团有限公司 interface test method and device
CN108108297A (en) * 2016-11-25 2018-06-01 腾讯科技(深圳)有限公司 The method and apparatus of automatic test
CN108519948A (en) * 2018-04-04 2018-09-11 上海携程商务有限公司 The automatic interface testing method and system of daily record driving
CN108804327A (en) * 2018-06-12 2018-11-13 北京京东金融科技控股有限公司 A kind of method and apparatus of automatic Data Generation Test
WO2019085087A1 (en) * 2017-11-02 2019-05-09 平安科技(深圳)有限公司 Interface testing and test data generation method, device, terminal, and storage medium
CN109739760A (en) * 2018-12-28 2019-05-10 东信和平科技股份有限公司 A kind of code commissioning test method and device, storage medium
WO2019153472A1 (en) * 2018-02-07 2019-08-15 平安科技(深圳)有限公司 Automated interface testing method, device, equipment, and storage medium
CN110781076A (en) * 2019-09-23 2020-02-11 成都四方伟业软件股份有限公司 Test case batch test method and device
CN111290956A (en) * 2020-02-17 2020-06-16 贵阳货车帮科技有限公司 Brain graph-based testing method and device, electronic equipment and storage medium
WO2020155778A1 (en) * 2019-02-03 2020-08-06 苏州市龙测智能科技有限公司 Interface automation test method, test apparatus, test device and storage medium
CN111767218A (en) * 2020-06-24 2020-10-13 北京思特奇信息技术股份有限公司 Automatic testing method, equipment and storage medium for continuous integration
CN112035303A (en) * 2020-09-01 2020-12-04 腾讯科技(深圳)有限公司 Data testing method and device, computer and readable storage medium
WO2021223214A1 (en) * 2020-05-08 2021-11-11 深圳市欢太科技有限公司 Interface performance test method and apparatus, and server and computer-readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1632747A (en) * 2003-12-22 2005-06-29 联想(北京)有限公司 Software interface testing method
CN1851665A (en) * 2005-11-07 2006-10-25 华为技术有限公司 Method for completing product automation test utilizing test kit
CN102096631A (en) * 2009-12-11 2011-06-15 华为技术有限公司 Interface testing method and device
CN104866422A (en) * 2015-05-20 2015-08-26 中国互联网络信息中心 Web Service automatic test system and method
CN105373469A (en) * 2014-08-25 2016-03-02 广东金赋信息科技有限公司 Interface based software automation test method
CN105608001A (en) * 2015-12-16 2016-05-25 中国民生银行股份有限公司 Test method and test platform based on background system service or interface

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1632747A (en) * 2003-12-22 2005-06-29 联想(北京)有限公司 Software interface testing method
CN1851665A (en) * 2005-11-07 2006-10-25 华为技术有限公司 Method for completing product automation test utilizing test kit
CN102096631A (en) * 2009-12-11 2011-06-15 华为技术有限公司 Interface testing method and device
CN105373469A (en) * 2014-08-25 2016-03-02 广东金赋信息科技有限公司 Interface based software automation test method
CN104866422A (en) * 2015-05-20 2015-08-26 中国互联网络信息中心 Web Service automatic test system and method
CN105608001A (en) * 2015-12-16 2016-05-25 中国民生银行股份有限公司 Test method and test platform based on background system service or interface

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宫云战: "《软件测试教程》", 30 September 2008 *

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502887A (en) * 2016-10-13 2017-03-15 郑州云海信息技术有限公司 A kind of stability test method, test controller and system
CN106484624A (en) * 2016-10-21 2017-03-08 天津海量信息技术股份有限公司 The method of testing of interface automatic test
CN107977308A (en) * 2016-10-25 2018-05-01 传化物流集团有限公司 interface test method and device
CN106357466B (en) * 2016-11-10 2019-06-21 福州智永信息科技有限公司 A kind of internet product monitoring method and monitoring system
CN106357466A (en) * 2016-11-10 2017-01-25 福州智永信息科技有限公司 Monitoring method for internet products and monitoring system
CN106776280B (en) * 2016-11-24 2020-10-16 上海携程商务有限公司 Configurable performance testing device
CN106776280A (en) * 2016-11-24 2017-05-31 上海携程商务有限公司 Configurable performance test device
CN108108297B (en) * 2016-11-25 2021-05-18 腾讯科技(深圳)有限公司 Method and device for automatic testing
CN108108297A (en) * 2016-11-25 2018-06-01 腾讯科技(深圳)有限公司 The method and apparatus of automatic test
CN106776307A (en) * 2016-12-05 2017-05-31 广州唯品会信息科技有限公司 Method for testing software and system
WO2019085087A1 (en) * 2017-11-02 2019-05-09 平安科技(深圳)有限公司 Interface testing and test data generation method, device, terminal, and storage medium
CN107894955A (en) * 2017-12-05 2018-04-10 浪潮金融信息技术有限公司 A kind of method based on multithreading test third party's interface stability
WO2019153472A1 (en) * 2018-02-07 2019-08-15 平安科技(深圳)有限公司 Automated interface testing method, device, equipment, and storage medium
CN108519948A (en) * 2018-04-04 2018-09-11 上海携程商务有限公司 The automatic interface testing method and system of daily record driving
CN108804327A (en) * 2018-06-12 2018-11-13 北京京东金融科技控股有限公司 A kind of method and apparatus of automatic Data Generation Test
CN109739760A (en) * 2018-12-28 2019-05-10 东信和平科技股份有限公司 A kind of code commissioning test method and device, storage medium
CN109739760B (en) * 2018-12-28 2022-07-08 东信和平科技股份有限公司 Code debugging test method and device and storage medium
WO2020155778A1 (en) * 2019-02-03 2020-08-06 苏州市龙测智能科技有限公司 Interface automation test method, test apparatus, test device and storage medium
CN110781076A (en) * 2019-09-23 2020-02-11 成都四方伟业软件股份有限公司 Test case batch test method and device
CN111290956A (en) * 2020-02-17 2020-06-16 贵阳货车帮科技有限公司 Brain graph-based testing method and device, electronic equipment and storage medium
CN111290956B (en) * 2020-02-17 2023-09-01 贵阳货车帮科技有限公司 Brain graph-based test method and device, electronic equipment and storage medium
WO2021223214A1 (en) * 2020-05-08 2021-11-11 深圳市欢太科技有限公司 Interface performance test method and apparatus, and server and computer-readable storage medium
CN111767218A (en) * 2020-06-24 2020-10-13 北京思特奇信息技术股份有限公司 Automatic testing method, equipment and storage medium for continuous integration
CN111767218B (en) * 2020-06-24 2023-11-10 北京思特奇信息技术股份有限公司 Automatic test method, equipment and storage medium for continuous integration
CN112035303A (en) * 2020-09-01 2020-12-04 腾讯科技(深圳)有限公司 Data testing method and device, computer and readable storage medium
CN112035303B (en) * 2020-09-01 2021-08-24 腾讯科技(深圳)有限公司 Data testing method and device, computer and readable storage medium

Similar Documents

Publication Publication Date Title
CN106021111A (en) Interface testing method and system
CN110309071B (en) Test code generation method and module, and test method and system
CN110321113B (en) Integrated assembly line system taking project batches as standards and working method thereof
US8930918B2 (en) System and method for SQL performance assurance services
CN105955878A (en) Server-side test method and system
CN109617759A (en) Block catenary system stability test method, apparatus, equipment and storage medium
Sneed et al. Wsdltest-a tool for testing web services
US20060041539A1 (en) Method and apparatus for organizing, visualizing and using measured or modeled system statistics
CN106326088B (en) Method and device for realizing construction of test object and device for realizing service configuration test
CN101090295A (en) Test system and method for ASON network
CN109783364A (en) A kind of block chain Performance Test System and method
CN101867501A (en) Method and system for automatically testing consistence of SNMP (Simple Network Management Protocol) interface information model
CN112631846A (en) Fault drilling method and device, computer equipment and storage medium
CN108111364B (en) Service system testing method and device
JP2012123789A (en) Parallel work load simulation for application performance test
CN105335287A (en) Automatic test method and device
Wang et al. A model-based framework for cloud API testing
CN107577709B (en) Graphical management method of information system resource model
CN113342679A (en) Interface test method and test device
Chung et al. Testing of concurrent programs based on message sequence charts
Li Design and Implementation of Software Testing Platform for SOA-Based System
CN111478823A (en) Multi-cloud management platform testing method and device
CN114003293B (en) Interface management method, device, electronic equipment and readable storage medium
CN115269415A (en) Interface test system and method based on simulation scene use case
CN108984401A (en) A kind of solution decoupling detecting method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161012