CN110109837A - Integration test method, device and controller and medium - Google Patents

Integration test method, device and controller and medium Download PDF

Info

Publication number
CN110109837A
CN110109837A CN201910373142.5A CN201910373142A CN110109837A CN 110109837 A CN110109837 A CN 110109837A CN 201910373142 A CN201910373142 A CN 201910373142A CN 110109837 A CN110109837 A CN 110109837A
Authority
CN
China
Prior art keywords
integration testing
verifying
verified
data
interaction point
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.)
Granted
Application number
CN201910373142.5A
Other languages
Chinese (zh)
Other versions
CN110109837B (en
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.)
NIO Co Ltd
Original Assignee
NIO 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 NIO Co Ltd filed Critical NIO Co Ltd
Priority to CN201910373142.5A priority Critical patent/CN110109837B/en
Publication of CN110109837A publication Critical patent/CN110109837A/en
Application granted granted Critical
Publication of CN110109837B publication Critical patent/CN110109837B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

The present invention relates to a kind of integration test method, device and controller and media, and the method includes obtaining all auxiliary verifying systems included in the corresponding integrated system of current integration testing and be verified interface data corresponding to system;The corresponding interface data of all auxiliary verifying systems is assembled according to the operation flow of integration testing, generates the business process script of integration testing;The business process script of integration testing is cut in data interaction point, generates script execution segment;Script execution segment and all corresponding interface data of system that are verified are assembled according to the operation flow of integration testing, the interaction point to set interval is needed to be separated preset, corresponding check post is set in the preset interaction point verified, so that generating integrated automatized script executes integration testing.The present invention releases integration testing resource, reduces manpower intervention operation, reduces cost of human resources and time cost, improve integration testing efficiency.

Description

Integration test method, device and controller and medium
Technical field
The present invention relates to the field of test technology more particularly to a kind of integration test methods, device and controller and medium.
Background technique
With being widely applied for micro services framework, service and system quantity grow exponentially, the calling between system are closed System becomes intricate, brings huge challenge to product design, exploitation, test, O&M etc..Integration testing is to include The test of multiple systems, by taking single process under electric business application program (Application, foreign language abbreviation: App) as an example: integration testing Corresponding integrated system includes several systems such as ordering system, payment system and warehousing system, needs these phases in test The tester of relationship system cooperates just together can guarantee and be completed in a relatively short time current integration servers, this integrated survey The time of the cost of examination is 2 days, i.e., the working hour of minimum 12 man day.There can be such integration testing in each iteration version to appoint Business, few then ten or twenty, up to five or six ten, it can thus be appreciated that the task weight of integration testing, the time of consumption and human cost are high, Testing efficiency is low.
Summary of the invention
Technical problem to be solved by the present invention lies in provide a kind of integration test method, device and controller and Jie Matter releases integration testing resource, reduces manpower intervention operation, reduces cost of human resources and time cost, improve Integration testing efficiency.
In order to solve the above-mentioned technical problem, according to a first embodiment of the present invention, a kind of integration test method is provided, is wrapped It includes:
It obtains all auxiliary verifying systems included in the corresponding integrated system of current integration testing and is verified system Corresponding interface data;
Group is carried out to the corresponding interface data of all auxiliary verifying systems according to the operation flow of the integration testing Dress, generates the business process script of integration testing;
The business process script of the integration testing is cut in data interaction point, generates script execution segment, In, the auxiliary verifying system is that the system transmission test data place that is verified is the data interaction point;
By the script execution segment and all it is verified that system is corresponding to be connect according to the operation flow of the integration testing Mouth data are assembled, and are needed the interaction point to set interval to be separated preset, are verified preset Interaction point corresponding check post is set, so that generating integrated automatized script executes integration testing.
Further, described to obtain all auxiliary verifying systems included in the corresponding integrated system of current integration testing Before interface data corresponding to the system that is verified, the method also includes:
In advance obtain integration testing needed for interface data simultaneously store into database, the interface data include request header, Request body, asserts the parameter that content and response results need to extract at request address.
It is further, described to need the interaction point to set interval to be separated preset, comprising:
It needs the interaction point to set interval addition breakpoint control assembly to be separated preset, tests foot when executing When this thread is explained and runs to the breakpoint control assembly, by thread suspension, by this after receiving thread wakening order The thread of hang-up reawakes and continues to execute follow-up process.
It is further, described to need the interaction point to set interval to be separated preset, comprising:
The interaction point to set interval addition interval time control assembly is needed to be separated preset, the interval Time control assembly is used for setting time interval, when executing test script and running to the interval time control assembly, pause Subsequent step process is continued to execute after set time interval.
It is further, described to generate integrated automatized script execution integration testing, comprising:
For the system that is verified according to integrated automation script progress verification operation, single check post verification meets industry Subsequent integrated automation script execution test operation is driven after business demand is expected, circulation executes, until all check posts are verified It finishes and meets demand and be expected, complete this integration testing, if there is single check post authentication failed, then terminate current integrated Test checks error reason and restarts the integration testing of a new round after repairing, wherein the verification operation packet of the check post Include web front end show verifying, the front end APP show verifying, database data verifying and interface data return verifying one of or It is a variety of.
Further, it is described it is preset need the interaction point that sets interval include need to set interval wait it is auxiliary It helps verifying system and is verified the interaction point that the interface data operation of system is completed, and need to set interval etc. to be verified Point completes the interaction point of verifying.
Further, the interface for being verified system includes first kind interface and the second class interface, and the first kind connects Data after the data progress business logic processing that the mouth reception auxiliary verifying system provides are not necessarily to be verified, and described second Data after the data progress business logic processing that auxiliary verifying system described in class interface provides need to be arranged corresponding test Whether card point verifying logical process result meets expection;
The preset interaction point verified is that the second class interface progress business logic processing is corresponding Interaction point.
Second embodiment according to embodiments of the present invention provides a kind of integrated test set, comprising:
Interface data obtains module, is configured to obtain all auxiliary included in the corresponding integrated system of current integration testing It helps verifying system and is verified interface data corresponding to system;
Operation flow assembles module, is configured to the operation flow according to the integration testing to all auxiliary verifyings system Corresponding interface data of uniting is assembled, and the business process script of integration testing is generated;
Operation flow cutting module is configured to cut the business process script of the integration testing in data interaction point It cuts, generates script execution segment, wherein the auxiliary verifying system is that the system transmission test data place that is verified is institute State data interaction point;
Integration testing module is configured to the script execution segment and all according to the operation flow of the integration testing It is verified the corresponding interface data of system to be assembled, needs the interaction point to set interval to be separated preset, Corresponding check post is arranged in the preset interaction point verified, so that generating integrated automatized script executes integrated survey Examination.
Further, described device further includes test data memory module, is configured to obtain in advance and connects needed for integration testing Mouth data are simultaneously stored into database, and the interface data includes request header, request body, request address, asserts content and response As a result the parameter for needing to extract.
Further, the operation flow cutting module includes the first isolation block, is configured to need to be arranged preset The interaction point of time interval is added breakpoint control assembly and is separated, when the thread for executing test script is explained and is run to described When breakpoint control assembly, by thread suspension, this thread hung up is reawaked and continued after receiving thread wakening order Execute follow-up process.
Further, the operation flow cutting module includes the second isolation block, is configured to need to be arranged preset The interaction point of time interval is added interval time control assembly and is separated, and the interval time control assembly is used for setting time Continue to hold after suspending set time interval when executing test script and running to the interval time control assembly in interval Row subsequent step process
Further, the integration testing module concrete configuration are as follows:
For the system that is verified according to integrated automation script progress verification operation, single check post verification meets industry Subsequent integrated automation script execution test operation is driven after business demand is expected, circulation executes, until all check posts are verified It finishes and meets demand and be expected, complete this integration testing, if there is single check post authentication failed, then terminate current integrated Test checks error reason and restarts the integration testing of a new round after repairing;Wherein, the verification operation packet of the check post Include web front end show verifying, the front end APP show verifying, database data verifying and interface data return verifying one of or It is a variety of.
Further, it is described it is preset need the interaction point that sets interval include need to set interval wait it is auxiliary It helps verifying system and is verified the interaction point that the interface data operation of system is completed, and need to set interval etc. to be verified Point completes the interaction point of verifying.
Further, the interface for being verified system includes first kind interface and the second class interface, and the first kind connects Data after the data progress business logic processing that the mouth reception auxiliary verifying system provides are not necessarily to be verified, and described second Data after the data progress business logic processing that auxiliary verifying system described in class interface provides need to be arranged corresponding test Whether card point verifying logical process result meets expection;
The preset interaction point verified is that the second class interface progress business logic processing is corresponding Interaction point.
According to a third embodiment of the present invention, a kind of controller is provided comprising memory and processor, the memory are deposited Contain computer program, the step of described program can be realized the method when being executed by the processor.
According to a fourth embodiment of the present invention, a kind of computer readable storage medium is provided, for storing computer instruction, institute State the step of instruction realizes the method when by a computer or processor execution.
The present invention has obvious advantages and beneficial effects compared with the existing technology.By above-mentioned technical proposal, the present invention A kind of integration test method, device and controller and medium can reach comparable technical progress and practicability, and have and produce Extensive utility value in industry, at least has the advantage that
The present invention is assembled by the interface data for verifying system to all auxiliary in integration testing, generates integrated survey The business process script of examination, and according to auxiliary verifying system in current integration testing and the position of system interaction point is verified to life It is cut at the business process script of integration testing, partition, check post is arranged in corresponding interaction point according to business demand, from And generate integrated automatized script and execute integration testing, integration testing resource is released, manpower intervention operation is reduced, reduces manpower Resources costs and time cost improve integration testing efficiency.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects, features and advantages of the invention can It is clearer and more comprehensible, it is special below to lift preferred embodiment, and cooperate attached drawing, detailed description are as follows.
Detailed description of the invention
Fig. 1 provides integration test method flow chart for one embodiment of the invention;
Fig. 2 is the integrated test set schematic diagram that one embodiment of the invention provides.
[symbol description]
1: interface data obtains module 2: operation flow assembles module
3: operation flow cutting module 4: integration testing module
Specific embodiment
It is of the invention to reach the technical means and efficacy that predetermined goal of the invention is taken further to illustrate, below in conjunction with Attached drawing and preferred embodiment, to the tool of a kind of integration test method proposed according to the present invention, device and controller and medium Body embodiment and its effect, detailed description is as follows.
Integration testing refers to assisting integrated system to be tested using automation means.The integrated system includes extremely A few auxiliary verifying system is verified system at least one, and the auxiliary verifying system refers to for being tested in integration testing Card system provides the system of test data, is verified system for auxiliary and is verified, the survey that default auxiliary verifying system provides Examination data are trust data, do not carry out inspection verifying to the result of this system.The system that is verified refers to according to the auxiliary The data that verifying system provides carry out business logic processing, and to the system that logical process result is verified, wherein described auxiliary It is data interaction point that help verifying system, which be the position for being verified system transmission test data,.
The embodiment of the invention provides a kind of integration test methods, as shown in Figure 1, which comprises
Step S1, all auxiliary verifying systems included in the corresponding integrated system of current integration testing are obtained and are tested Interface data corresponding to card system.
As an example, before step S1, the method also includes interfaces needed for step S0, preparatory acquisition integration testing Data are simultaneously stored into database, and the interface data includes request header, request body, request address, asserts content and response knot Fruit needs the parameter extracted.Integration testing task related data can be stored into database in advance by step S0, for Existing interface data can be imported directly in database by electronic equipment.
The interface for being verified system includes first kind interface and the second class interface, described in the first kind interface Data after the data progress business logic processing that auxiliary verifying system provides are without being verified, the second class interface Data after the data progress business logic processing that the auxiliary verifying system provides need to be arranged corresponding check post verifying and patrol Collect whether processing result meets expection.
Step S2, according to the operation flow of the integration testing to the corresponding interface data of all auxiliary verifying systems It is assembled, generates the business process script of integration testing.
It should be noted that including multiple interface data in automatic test, by multiple interface data according to operation flow The process combined, as " assembling " described in the embodiment of the present invention.
Step S3, the business process script of the integration testing is cut in data interaction point, generates script execution Segment, wherein the auxiliary verifying system is that the system transmission test data place that is verified is the data interaction point.
Step S4, system pair by the script execution segment and all is verified according to the operation flow of the integration testing The interface data answered is assembled, and needs the interaction point that sets interval to be separated preset, it is preset need into Corresponding check post is arranged in the interaction point of row verifying, so that generating integrated automatized script executes integration testing.
As an example, in step S4, the interaction point to set interval is needed to be separated preset, it is specific to wrap It includes:
It needs the interaction point to set interval addition breakpoint control assembly to be separated preset, tests foot when executing When this thread is explained and runs to the breakpoint control assembly, by thread suspension, by this after receiving thread wakening order The thread of hang-up reawakes and continues to execute follow-up process.It is added between each system of breakpoint control assembly analog integration testing Coordinated manipulation.
As an example, in step S4, the interaction point to set interval is needed to be separated preset, comprising:
The interaction point to set interval addition interval time control assembly is needed to be separated preset, the interval Time control assembly is used for setting time interval, when executing test script and running to the interval time control assembly, pause Subsequent step process is continued to execute after set time interval.It is added between interval time control assembly analog test macro Interval time, thus effective coordination integration testing process.
It is as an example, described to generate integrated automatized script execution integration testing in step S4, comprising:
For the system that is verified according to integrated automation script progress verification operation, single check post verification meets industry The subsequent integrated automation script execution test operation of driving, is recycled to row after after business demand is expected, until all verifyings are examined item by item End of certificate, which finishes and meets demand, is expected, and completes this integration testing, if there is single check post authentication failed, then terminates current collection At test, checks error reason and restart the integration testing of a new round after repairing.The verification operation of the check post includes Web front end shows that verifying, the front end APP show that verifying, database data verifying and interface data return to one of verifying or more Kind.
As an example, it is described it is preset need the interaction point that sets interval include need to set interval wait it is auxiliary It helps verifying system and is verified the interaction point that the interface data operation of system is completed, and need to set interval etc. to be verified Point completes the interaction point of verifying.
The preset interaction point verified is that the second class interface progress business logic processing is corresponding Interaction point.
It follows that may only carry out separating or being added check post at interaction point, it is also possible to carry out partition and also add Check post is entered, or had not both been separated or check post is not added, depending on specific business need.
The above method is further described below by way of a specific embodiment:
Assuming that the current corresponding integrated system of integration testing includes ordering system, payment system, warehousing system, wherein order Single system is the system that is verified, and payment system and warehousing system are auxiliary verifying system, and ordering system includes that addition shopping cart connects Mouthful, order creation interface, order inquiries interface;Payment system includes creation payment serial number interface and order payment interface;Storehouse Storage system includes inquiring stock interface and creation logistics odd numbers interface.
The integration testing process of the present embodiment specifically includes the following steps:
Step S101, ordering system, payment system, interface data corresponding to warehousing system are obtained, ordering system includes Shopping cart interface is added, order creation interface, order inquiries interface, payment system includes creation payment serial number interface and order Two interfaces are paid, warehousing system includes inquiring stock interface and creation logistics odd numbers interface, wherein ordering system is to be verified System, adds shopping cart interface and order creation interface is first kind interface, and order inquiries interface is the second class interface;
Step S102, according to the operation flow of the integration testing to number of ports corresponding to payment system and warehousing system According to being assembled, the business process script of integration testing is generated: inquiring stock → creation payment serial number → order payment → wound Build logistics odd numbers.
Step S103, in data interaction point to the business process script of the integration testing: inquiring stock → creation payment Serial number → order is paid → creates logistics odd numbers and is cut, and generates script execution segment: inquiring stock segment, creation payment Serial number segment, order payment segment and creation logistics odd numbers segment.
Step S103, the interface of ordering system, including addition shopping cart, order creation, three interfaces of order inquiries are obtained.
Step S104, system by the script execution segment and all is verified according to the operation flow of current integration testing Corresponding interface is assembled, and according to business demand, is being needed the interaction point to set interval to be separated, is being needed to carry out Corresponding check post is arranged in the interaction point of verifying, obtains integrated automation script:
Add shopping → inquiring stock → order creation → order inquiries → the first breakpoint control assembly → first check post (for verifying whether order status is not pay and without payment serial number) → creation payment serial number → the second breakpoint control Component → order inquiries → the second check post (for verifying whether order status is not pay and have payment serial number) → order Payment → order inquiries → third breakpoint control assembly → third check post (for verifying whether order status is to have paid) → creation logistics odd numbers → first interval time control assembly (waiting 3s) → order inquiries → the 4th check post (are ordered for verifying Single state whether be it is non-shipment, have logistics odd numbers).
Integration testing is executed according to above-mentioned automatized script, the verification of the first check post meets after business demand is expected after driving Continuous integrated automation script execution test operation, so circulation execute, until the first verifying is examined item by item, the-the four check post is verified It finishes and meets demand and be expected, complete this integration testing, if single check post authentication failed occurs in midway, terminate current Integration testing checks error reason and restarts the integration testing of a new round after repairing.
The embodiment of the invention also provides a kind of integrated test sets, as shown in Fig. 2, include interface data obtain module 1, Operation flow assembles module 2, operation flow cutting module 3 and integrated test module 4, wherein interface data obtains module 1 and configures To obtain all auxiliary verifying systems included in the corresponding integrated system of current integration testing and being verified corresponding to system Interface data;Operation flow assembling module 2 is configured to test all auxiliary according to the operation flow of the integration testing The corresponding interface data of card system is assembled, and the business process script of integration testing is generated;Operation flow cutting module 3 configures To cut in data interaction point to the business process script of the integration testing, script execution segment is generated, wherein described Auxiliary verifying system is that the system transmission test data place that is verified is the data interaction point;Integration testing module 4 is matched It is set to the script execution segment according to the operation flow of the integration testing and all is verified the corresponding number of ports of system According to being assembled, the interaction point to set interval is needed to be separated preset, in the preset friendship verified Mutually corresponding check post is arranged in point, so that generating integrated automatized script executes integration testing.
As an example, described device further includes test data memory module, is configured to obtain integration testing institute in advance Need interface data and store into database, the interface data include request header, request body, request address, assert content and Response results need the parameter extracted.By test data memory module can in advance by integration testing task related data store to In database, for already present interface data, can directly it be imported in database by electronic equipment.
As an example, the operation flow cutting module 3 includes the first isolation block, is configured in preset needs The interaction point to set interval is added breakpoint control assembly and is separated, when the thread for executing test script is explained and is run to When the breakpoint control assembly, thread suspension reawakes this thread hung up simultaneously after receiving thread wakening order Follow-up process is continued to execute, the coordinated manipulation between each system of breakpoint control assembly analog integration testing is added.
The operation flow cutting module 3 includes the second isolation block, is configured to set interval in preset needs Interaction point be added interval time control assembly separated, the interval time control assembly be used for setting time interval, when When executing test script and running to the interval time control assembly, subsequent step is continued to execute after suspending set time interval The interval time between interval time control assembly analog test macro is added, thus effective coordination integration testing in rapid process Process.
As an example, 4 concrete configuration of integration testing module are as follows: the system that is verified integrates certainly according to described Dynamicization script carries out verification operation, and single check post verification, which meets after business demand is expected, drives subsequent integrated automation script Test operation is executed, circulation executes, it is expected until all check posts verify and meet demand, completes this integration testing, If there is single check post authentication failed, then current integration testing is terminated, check error reason and restarted after repairing new The integration testing of one wheel;Wherein, the verification operation of the check post include web front end show verifying, the front end APP show verifying, Database data verifying and interface data return to one of verifying or a variety of.
As an example, the interaction point that the preset needs set interval includes needing to set interval The interaction point that verifying system to be assisted and the interface data operation for being verified system are completed, and need the waiting that sets interval Complete the interaction point of verifying in check post.
The interface for being verified system includes first kind interface and the second class interface, described in the first kind interface Data after the data progress business logic processing that auxiliary verifying system provides are without being verified, the second class interface Data after the data progress business logic processing that the auxiliary verifying system provides need to be arranged corresponding check post verifying and patrol Collect whether processing result meets expection;The preset interaction point verified is that the second class interface carries out business The corresponding interaction point of logical process, it follows that may only carry out separating or being added check post at interaction point, it is also possible into Partition of having gone also joined check post, or had not both been separated or check post is not added, according to specific business need Depending on.
The embodiment of the present invention also provides a kind of controller comprising memory and processor, the memory are stored with meter The step of calculation machine program, described program can be realized the integration test method when being executed by the processor.
The embodiment of the present invention also provides a kind of computer readable storage medium, for storing computer instruction, described instruction The step of realizing the integration test method when by a computer or processor execution.
The embodiment of the present invention is assembled by the interface data for verifying system to all auxiliary in integration testing, is generated The business process script of integration testing, and according to auxiliary verifying system in current integration testing and the position for being verified system interaction point It sets and the business process script for generating integration testing is cut, be arranged according to business demand in corresponding interaction point and separate, test Point is demonstrate,proved, so that generating integrated automatized script executes integration testing, integration testing resource is released, reduces manpower intervention operation, Cost of human resources and time cost are reduced, integration testing efficiency is improved.
The above described is only a preferred embodiment of the present invention, be not intended to limit the present invention in any form, though So the present invention has been disclosed as a preferred embodiment, and however, it is not intended to limit the invention, any technology people for being familiar with this profession Member, without departing from the scope of the present invention, when the technology contents using the disclosure above make a little change or modification For the equivalent embodiment of equivalent variations, but anything that does not depart from the technical scheme of the invention content, according to the technical essence of the invention Any simple modification, equivalent change and modification to the above embodiments, all of which are still within the scope of the technical scheme of the invention.

Claims (16)

1. a kind of integration test method, which is characterized in that
It obtains all auxiliary verifying systems included in the corresponding integrated system of current integration testing and a system that is verified is right The interface data answered;
The corresponding interface data of all auxiliary verifying systems is assembled according to the operation flow of the integration testing, it is raw At the business process script of integration testing;
The business process script of the integration testing is cut in data interaction point, generates script execution segment, wherein institute It is the data interaction point that state auxiliary verifying system, which be described be verified in place of system transmission test data,;
By the script execution segment and all the corresponding number of ports of system is verified according to the operation flow of the integration testing According to being assembled, the interaction point to set interval is needed to be separated preset, in the preset friendship verified Mutually corresponding check post is arranged in point, so that generating integrated automatized script executes integration testing.
2. integration test method according to claim 1, which is characterized in that
It is described to obtain all auxiliary verifying systems included in the corresponding integrated system of current integration testing and be verified system Before corresponding interface data, the method also includes:
Interface data needed for obtaining integration testing in advance is simultaneously stored into database, and the interface data includes request header, request Body, asserts the parameter that content and response results need to extract at request address.
3. integration test method according to claim 1, which is characterized in that
It is described to need the interaction point to set interval to be separated preset, comprising:
The interaction point to set interval addition breakpoint control assembly is needed to be separated preset, when execution test script When thread is explained and runs to the breakpoint control assembly, thread suspension hangs up this after receiving thread wakening order Thread reawake and continue to execute follow-up process.
4. integration test method according to claim 1, which is characterized in that
It is described to need the interaction point to set interval to be separated preset, comprising:
The interaction point to set interval addition interval time control assembly is needed to be separated preset, the interval time Control assembly is used for setting time interval, when executing test script and running to the interval time control assembly, set by pause Subsequent step process is continued to execute after fixed time interval.
5. integration test method according to claim 1, which is characterized in that
It is described to generate integrated automatized script execution integration testing, comprising:
According to integrated automation script progress verification operation, single check post verification meets business to be needed the system that is verified Subsequent integrated automation script execution test operation is driven after asking expected, circulation executes, until all check posts verify And meet demand and be expected, this integration testing is completed, if there is single check post authentication failed, then terminates current integrated survey Examination checks error reason and restarts the integration testing of a new round after repairing, wherein the verification operation of the check post includes Web front end shows that verifying, the front end APP show that verifying, database data verifying and interface data return to one of verifying or more Kind.
6. integration test method described in any one of -5 according to claim 1, which is characterized in that
It is described it is preset need the interaction point that sets interval include need to set interval waiting auxiliary verifying system and It is verified the interaction point that the interface data operation of system is completed, and needs to set interval and check post is waited to complete verifying Interaction point.
7. integration test method described in any one of -5 according to claim 1, which is characterized in that
The interface for being verified system includes first kind interface and the second class interface, is assisted described in the first kind interface Data after the data progress business logic processing that verifying system provides are without being verified, described in the second class interface Data after the data progress business logic processing that auxiliary verifying system provides need to be arranged at corresponding check post verifying logic Whether reason result meets expection;
The preset interaction point verified is that the second class interface carries out the corresponding interaction of business logic processing Point.
8. a kind of integrated test set characterized by comprising
Interface data obtains module, is configured to obtain all auxiliary included in the corresponding integrated system of current integration testing and tests Card system and it is verified interface data corresponding to system;
Operation flow assembles module, is configured to the operation flow according to the integration testing to all auxiliary verifying systems pair The interface data answered is assembled, and the business process script of integration testing is generated;
Operation flow cutting module is configured to cut the business process script of the integration testing in data interaction point, Generate script execution segment, wherein the auxiliary verifying system is that the system transmission test data place that is verified is described Data interaction point;
Integration testing module is configured to the script execution segment according to the operation flow of the integration testing and all is tested The corresponding interface data of card system is assembled, and needs the interaction point to set interval to be separated preset, default The interaction point verified that carries out corresponding check post is set, so that generating integrated automatized script executes integration testing.
9. integrated test set according to claim 8, which is characterized in that
Described device further includes test data memory module, be configured to interface data needed for obtaining integration testing in advance and store to In database, the interface data includes request header, request body, request address, asserts that content and response results needs are extracted Parameter.
10. integrated test set according to claim 8, which is characterized in that
The operation flow cutting module includes the first isolation block, is configured in the preset interaction for needing to set interval Point is added breakpoint control assembly and is separated, when the thread for executing test script is explained and runs to the breakpoint control assembly When, by thread suspension, this thread hung up is reawaked after receiving thread wakening order and continues to execute follow-up process.
11. integrated test set according to claim 8, which is characterized in that
The operation flow cutting module includes the second isolation block, is configured in the preset interaction for needing to set interval Point is added interval time control assembly and is separated, and the interval time control assembly is used for setting time interval, when executing survey When this operation of training to the interval time control assembly, subsequent step stream is continued to execute after suspending set time interval Journey.
12. integrated test set according to claim 8, which is characterized in that
The integration testing module concrete configuration are as follows:
According to integrated automation script progress verification operation, single check post verification meets business to be needed the system that is verified Subsequent integrated automation script execution test operation is driven after asking expected, circulation executes, until all check posts verify And meet demand and be expected, this integration testing is completed, if there is single check post authentication failed, then terminates current integrated survey Examination checks error reason and restarts the integration testing of a new round after repairing;Wherein, the verification operation of the check post includes Web front end shows that verifying, the front end APP show that verifying, database data verifying and interface data return to one of verifying or more Kind.
13. the integration test method according to any one of claim 8-12, which is characterized in that
It is described it is preset need the interaction point that sets interval include need to set interval waiting auxiliary verifying system and It is verified the interaction point that the interface data operation of system is completed, and needs to set interval and check post is waited to complete verifying Interaction point.
14. the integration test method according to any one of claim 8-12, which is characterized in that
The interface for being verified system includes first kind interface and the second class interface, is assisted described in the first kind interface Data after the data progress business logic processing that verifying system provides are without being verified, described in the second class interface Data after the data progress business logic processing that auxiliary verifying system provides need to be arranged at corresponding check post verifying logic Whether reason result meets expection;
The preset interaction point verified is that the second class interface carries out the corresponding interaction of business logic processing Point.
15. a kind of controller comprising memory and processor, it is characterised in that: the memory is stored with computer program, Described program can be realized method described in any one of claim 1 to 7 claim when being executed by the processor The step of.
16. a kind of computer readable storage medium, for storing computer instruction, it is characterised in that: described instruction is by a meter The step of calculation machine or processor realize the method as described in any one of claim 1 to 7 claim when executing.
CN201910373142.5A 2019-05-06 2019-05-06 Integrated test method, integrated test device, controller and medium Active CN110109837B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910373142.5A CN110109837B (en) 2019-05-06 2019-05-06 Integrated test method, integrated test device, controller and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910373142.5A CN110109837B (en) 2019-05-06 2019-05-06 Integrated test method, integrated test device, controller and medium

Publications (2)

Publication Number Publication Date
CN110109837A true CN110109837A (en) 2019-08-09
CN110109837B CN110109837B (en) 2023-10-13

Family

ID=67488358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910373142.5A Active CN110109837B (en) 2019-05-06 2019-05-06 Integrated test method, integrated test device, controller and medium

Country Status (1)

Country Link
CN (1) CN110109837B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110659870A (en) * 2019-08-14 2020-01-07 平安普惠企业管理有限公司 Business audit test method, device, equipment and storage medium
CN112131136A (en) * 2020-11-24 2020-12-25 智道网联科技(北京)有限公司 Automatic interactive testing method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241467A (en) * 2008-03-05 2008-08-13 罗笑南 Automatized white box test system and method facing to WEB application
EP2953072A1 (en) * 2014-06-06 2015-12-09 Accenture Global Services Limited Workflow test case generation
CN106528424A (en) * 2015-12-16 2017-03-22 中国民生银行股份有限公司 Test method and test platform based on background system service or interface
CN107832207A (en) * 2017-10-16 2018-03-23 深圳市牛鼎丰科技有限公司 Interface performance test method, apparatus, storage medium and computer equipment
CN108345532A (en) * 2017-01-23 2018-07-31 中国移动通信集团浙江有限公司 A kind of automatic test cases generation method and device
CN108415832A (en) * 2018-02-07 2018-08-17 平安科技(深圳)有限公司 Automatic interface testing method, device, equipment and storage medium
CN108470004A (en) * 2018-04-09 2018-08-31 平安普惠企业管理有限公司 Test script generation method, test method, device, equipment and storage medium
CN109542765A (en) * 2018-10-18 2019-03-29 深圳壹账通智能科技有限公司 Database script verification method, device, computer equipment and storage medium
CN109597754A (en) * 2018-10-22 2019-04-09 中国平安财产保险股份有限公司 Operation flow interface test method, device, computer equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241467A (en) * 2008-03-05 2008-08-13 罗笑南 Automatized white box test system and method facing to WEB application
EP2953072A1 (en) * 2014-06-06 2015-12-09 Accenture Global Services Limited Workflow test case generation
CN106528424A (en) * 2015-12-16 2017-03-22 中国民生银行股份有限公司 Test method and test platform based on background system service or interface
CN108345532A (en) * 2017-01-23 2018-07-31 中国移动通信集团浙江有限公司 A kind of automatic test cases generation method and device
CN107832207A (en) * 2017-10-16 2018-03-23 深圳市牛鼎丰科技有限公司 Interface performance test method, apparatus, storage medium and computer equipment
CN108415832A (en) * 2018-02-07 2018-08-17 平安科技(深圳)有限公司 Automatic interface testing method, device, equipment and storage medium
CN108470004A (en) * 2018-04-09 2018-08-31 平安普惠企业管理有限公司 Test script generation method, test method, device, equipment and storage medium
CN109542765A (en) * 2018-10-18 2019-03-29 深圳壹账通智能科技有限公司 Database script verification method, device, computer equipment and storage medium
CN109597754A (en) * 2018-10-22 2019-04-09 中国平安财产保险股份有限公司 Operation flow interface test method, device, computer equipment and storage medium

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
JOSE LOSADA等: "Optimization Techniques to Speed Up the Page Loading in Custom Web Browsers", 《2015 IEEE 12TH INTERNATIONAL CONFERENCE ON E-BUSINESS ENGINEERING》, pages 7 - 14 *
LOVESOO: "接口自动化测试,完整入门篇", Retrieved from the Internet <URL:《https://blog.csdn.net/lovesoo/article/details/78558303》> *
付雪梅: "基于SOA接口自动化功能测试系统设计与实现", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》, no. 01, pages 138 - 72 *
王凤妮: "SIT自动化测试集成系统的研究与实现", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》, no. 03, pages 138 - 781 *
王游等: "基于脚本的流程自适应自动化测试研究", 《计算机与现代化》, no. 2, pages 95 - 100 *
范典华等: "自动化测试在业务支撑系统接口测试中的应用设计", 《电信工程技术与标准化》, no. 4, pages 63 - 67 *
蒋灵仙: "基于Testng的Web接口测试的自动化框架设计与实现", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》, no. 06, pages 138 - 807 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110659870A (en) * 2019-08-14 2020-01-07 平安普惠企业管理有限公司 Business audit test method, device, equipment and storage medium
CN112131136A (en) * 2020-11-24 2020-12-25 智道网联科技(北京)有限公司 Automatic interactive testing method and device

Also Published As

Publication number Publication date
CN110109837B (en) 2023-10-13

Similar Documents

Publication Publication Date Title
CN106528424B (en) Test method and test platform based on background system service or interface
US9262254B2 (en) Method and apparatus to manage information between a scan tool and networked devices
CN111142867A (en) Service visual arrangement system and method under micro-service architecture
CN110232014A (en) Operation flow automated testing method, device, controller and medium
RU2648966C2 (en) Apparatus and method for processing multiple open api
CN104580451B (en) Realize the method and system and electronic equipment of multi-platform account synchronization
CN104268079B (en) A kind of method and system of POS Application testings
CN112131126B (en) Switching method and device of test environment
CN105610819B (en) The method and apparatus of the query service of server info are provided
CN104520812A (en) Automated method of detecting pattern matches between converged infrastructure models and an operating converged infrastructure
CN110109837A (en) Integration test method, device and controller and medium
CN109670081A (en) The method and device of service request processing
CN110175165A (en) Transaction account checking method, device, computer equipment and storage medium
CN106873957A (en) The processing method and equipment of a kind of operation flow
CN105843697B (en) A kind of the interruption restoration methods and system of browser control part
CN109240908A (en) Abnormality test use-case template establishment method and device
CN110297771A (en) Distributed test method and device for the warehouse receipt page
CN109446064A (en) A kind of interactive testing method based on browser
CN104836831B (en) A kind of object method of servicing for Internet of Things
US20090254885A1 (en) System and a method for managing configurations of automatic tests
CN104572921B (en) A kind of method of data synchronization and device across data center
CN112134764B (en) Method and device for determining connectivity of test environment
CN109343891A (en) System, the method and device of data processing
CN105138342B (en) A kind of service development method and apparatus
CN105389253B (en) The method and system of NE management are performed based on multithreading simulant-client

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant