CN106354645A - Test method and test platform based on background system service or interface - Google Patents

Test method and test platform based on background system service or interface Download PDF

Info

Publication number
CN106354645A
CN106354645A CN201610783548.7A CN201610783548A CN106354645A CN 106354645 A CN106354645 A CN 106354645A CN 201610783548 A CN201610783548 A CN 201610783548A CN 106354645 A CN106354645 A CN 106354645A
Authority
CN
China
Prior art keywords
test
interface
background system
system service
configuration
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
CN201610783548.7A
Other languages
Chinese (zh)
Other versions
CN106354645B (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.)
China Minsheng Banking Corp Ltd
Original Assignee
China Minsheng Banking Corp 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 China Minsheng Banking Corp Ltd filed Critical China Minsheng Banking Corp Ltd
Publication of CN106354645A publication Critical patent/CN106354645A/en
Application granted granted Critical
Publication of CN106354645B publication Critical patent/CN106354645B/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/3684Test management for test design, e.g. generating new test cases
    • 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
    • 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/3692Test management for test results analysis

Abstract

The invention provides a test method and test platform based on a background system service or interface. The method comprises the steps that a test case library for synchronous function and performance testing starts to be constructed in the development stage; when the background system service or interface is released externally, test cases in the test case library are executed in parallel to test the background system service or interface; test results of the background system service or interface are analyzed, and a function result analysis report and a performance result analysis report are synchronously generated. The product quality of a system is effectively improved, the development cost is reduced, the development cycle is shortened, the production schedule is accelerated, and integrated function and performance testing is achieved; in the operation process after production, once functions are changed or a platform is updated, complete regression testing can be quickly implemented, and therefore production operation risks are effectively reduced.

Description

Method of testing based on background system service or interface and test platform
Technical field
The present embodiments relate to technical field of measurement and test, more particularly, to a kind of test based on background system service or interface Method and test platform.
Background technology
In the enterprise having a large amount of it systems, such as bank, telecommunications enterprise etc., have hundreds of set it systems, wherein big portion It system is divided to be background system.Service in order to ensure to provide can be smoothed out, and needs background system service or interface are entered Row test.
And the present test for background system service or interface, just enter after the completion of the foreground channel exploitation such as generally requiring Row is tested comprehensively, and when testing to background system service or interface, performance test is separate with functional test.This Plant the method for testing to background system service or interface, make background system rely on foreground system to be tested, extend exploitation Cycle, the operation progress delaying, and the product quality of system cannot ensure, increased operation operation risk, due to function with Performance test is separate, interacts, lead to progress to be delayed during modification problem.
Content of the invention
The embodiment of the present invention provides a kind of method of testing based on background system service or interface, effectively improves the product of system Quality, reduces development cost, shortens the construction cycle and accelerates operation progress, and achieves the integrated test of function and performance Examination.
In a first aspect, the embodiment of the present invention provides a kind of method of testing based on background system service or interface, comprising:
Start to build the test cases storehouse carrying out function and performance synchronization test in the development phase;
When background system service or interface are externally issued, then the test cases in test cases storehouse described in executed in parallel, To test to background system service or interface;
The test result of background system service or interface is analyzed, synchronous systematic function interpretation of result report and performance Interpretation of result is reported.
Second aspect, the embodiment of the present invention provides a kind of test platform based on background system service or interface, comprising:
Build module, for starting to build the test cases storehouse carrying out function and performance synchronization test in the development phase;
Performing module, for when background system service or interface are externally issued, then test cases storehouse described in executed in parallel In test cases, to test to background system service or interface;
Analysis module, for being analyzed to the test result of background system service or interface, synchronous systematic function result Analysis report and results of property analysis report.
The embodiment of the present invention provides a kind of method of testing based on background system service or interface and test platform, the method Including: start to build the test cases storehouse carrying out function and performance synchronization test in the development phase;When background system service or connect When mouth is externally issued, then the test cases in executed in parallel test cases storehouse, to test to background system service or interface; The test result of background system service or interface is analyzed, synchronous systematic function interpretation of result report is analyzed with results of property Report, effectively improves the product quality of system, reduces development cost, shortens the construction cycle and accelerates operation progress, and achieves Function and the integrated testing of performance, in the running after operation, once function change or platform is upgrade, can be quickly real Apply total regression test, thus effectively reducing operation operation risk.
The third aspect, the embodiment of the present invention provides a kind of method of testing based on background system service or interface, comprising:
Start to build the test cases storehouse carrying out function and performance synchronization test in the development phase, in described test cases storehouse It is the corresponding first test cases storehouse of asynchronous transaction system including background system;
Create the test factory for described background system is carried out with test and management;
The configuration that described background system service or interface are currently tested of receiving user's input, wherein, described work as The configuration of front test includes: described test factory is the configuration of asynchronous mode, the corresponding relation in test scene and test workshop Configuration, the configuration of the corresponding relation of test workshop and service or interface, the configuration of function and performance test relevant parameter;
When background system service or interface are externally issued, then the test case in the first test cases storehouse described in executed in parallel Example, to test to background system service or interface;
The test result of background system service or interface is analyzed, synchronous systematic function interpretation of result report and performance Interpretation of result is reported.
Fourth aspect, the embodiment of the present invention provides a kind of test platform based on background system service or interface, comprising:
Build module, for starting to build the test cases storehouse carrying out function and performance synchronization test, institute in the development phase State test cases storehouse to include background system is the corresponding first test cases storehouse of asynchronous transaction system;
Creation module, for creating the test factory for described background system is carried out with test and management;
Receiver module, for receiving user's input to joining that described background system service or interface are currently tested Put, wherein, the configuration of described current test includes: described test factory is configuration, test scene and the test carriage of asynchronous mode Between corresponding relation configuration, the configuration of the corresponding relation of test workshop and service or interface, function is related with performance test to join The configuration of number;
Performing module, for when background system service or interface are externally issued, then the first test case described in executed in parallel Test cases in example storehouse, to test to background system service or interface;
Analysis module, for being analyzed to the test result of background system service or interface, synchronous systematic function result Analysis report and results of property analysis report.
The embodiment of the present invention provides a kind of method of testing based on background system service or interface and test platform, by Development phase starts to build the test cases storehouse carrying out function and performance synchronization test, and test cases storehouse includes background system and is The corresponding first test cases storehouse of asynchronous transaction system;Create the test factory for background system is carried out with test and management;Connect Receive the configuration that background system service or interface are currently tested of user input, wherein, the configuration of current test includes: surveys Trial work factory is the configuration of asynchronous mode, the configuration of test scene and the corresponding relation in test workshop, test workshop and service or connect The configuration of the corresponding relation of mouth, the configuration of function and performance test relevant parameter;When background system service or interface are externally issued When, then the test cases in executed in parallel the first test cases storehouse, to test to background system service or interface;To backstage The test result of system service or interface is analyzed, synchronous systematic function interpretation of result report and results of property analysis report. Due to when background system service or interface are externally issued, start introduce for service or interface test and run through system go into operation Whole life cycle of operation afterwards, by carrying out the survey of function and performance in advance to each background system service or interface synchronization Examination, effectively improves the product quality of system, reduces development cost, shortens the construction cycle and accelerates operation progress it is achieved that function Integrated testing with performance.And it is asynchronous mode by factory-configured will be tested, it is asynchronous for being capable of to background system The function of transaction system and the integrated testing of performance.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description are these Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, acceptable Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart based on the method for testing embodiment one of background system service or interface for the present invention;
Fig. 2 is the flow chart based on the method for testing embodiment two of background system service or interface for the present invention;
Fig. 3 is the structural representation based on the test platform embodiment one of background system service or interface for the present invention;
Fig. 4 is the structural representation based on the test platform embodiment two of background system service or interface for the present invention;
Fig. 5 is the flow chart based on the method for testing embodiment three of background system service or interface for the present invention;
Fig. 6 is the flow chart based on the method for testing example IV of background system service or interface for the present invention;
Fig. 7 is the structural representation based on the test platform embodiment three of background system service or interface for the present invention;
Fig. 8 is the structural representation based on the test platform example IV of background system service or interface for the present invention.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described it is clear that described embodiment is The a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment being obtained under the premise of not making creative work, broadly falls into the scope of protection of the invention.
Fig. 1 is the flow chart based on the method for testing embodiment one of background system service or interface for the present invention, as Fig. 1 institute Show, the executive agent of the present invention is computer or server, then the survey based on background system service or interface that the present invention provides Method for testing includes:
Step 101, started to build the test cases storehouse carrying out function and performance synchronization test in the development phase.
In the present embodiment, test cases storehouse is mainly used to manage test cases, can complete respectively to connect in test cases storehouse The establishment work of mouth test cases and line service.For the test cases in test cases storehouse, background system is supported interior The self-defining basic data type in portion.
And in the present embodiment, test cases storehouse provides Test Case Design and editting function, can also carry out current The debugging of case and operation.During user's design test cases, case and interface packets template carry out Auto-matching, can be directly defeated Enter test data or setting base data type to generate test cases.
Step 102, when background system service or interface are externally issued, then the survey in test cases storehouse described in executed in parallel Examination case, to test to background system service or interface.
In the present embodiment, when background system service or interface can externally be issued in background system service or interface During the development phase, just background system service or interface are tested, change the traditional test flow process of background system, and When background system service or interface are tested, carried out by the way of the test cases in executed in parallel test cases storehouse, Background system service or interface are called by test cases, to test to background system service or interface.
Step 103, is analyzed to the test result of background system service or interface, synchronous systematic function interpretation of result report Accuse and results of property analysis report.
Survey in the present embodiment, after background system service or interface are tested, to background system service or interface Test result is analyzed, and is analyzed including being analyzed to the function of test result and to performance.To test result When function is analyzed, the implementing result of service or the corresponding test cases of interface can be analyzed, the performance to test result When being analyzed, can be to response time, the business transaction amount of service or interface and the resource of service or the corresponding test cases of interface Utilization rate is analyzed.
In the present embodiment, after the test result to background system service or interface is analyzed, synchronous systematic function knot Fruit analysis report and results of property analysis report.Function interpretation of result report and results of property analysis report can divide in a result In analysis report, also can not limit in the present embodiment respectively in different interpretations of result is reported.
The whole life cycle running through system based on the method for testing of background system service or interface that the present embodiment provides, Development phase carries out test design work, forms perfect test cases storehouse.When background system service or interface are successively to outgoing During cloth it is possible to serviced or interface test, until the case of whole services or interface passes through test;Background system is being thrown In the running in puerperal, once function change or platform is upgrade, you can with quick, total regression test is implemented to service or interface.
The method of testing based on background system service or interface that the present embodiment provides, comprising: build and carry out function and property The test cases storehouse of energy synchronism detection;When background system service or interface are externally issued, then in executed in parallel test cases storehouse Test cases, to test to background system service or interface;The test result of background system service or interface is carried out Analysis, synchronous systematic function interpretation of result report and results of property analysis report.Due to external in background system service or interface During issue, start introduce for service or interface test and run through system go into operation after whole life cycle of operation, pass through In advance each background system service or interface synchronization are carried out with the test of function and performance, effectively improves the product quality of system, fall Low development cost, shortens the construction cycle and accelerates operation progress, and achieve the integrated testing of function and performance.After operation Running in, once function change or platform is upgrade, can test with Rapid Implementation total regression, thus effectively reduce go into operation transport Sector-style danger.
Fig. 2 is the flow chart based on the method for testing embodiment two of background system service or interface for the present invention, as Fig. 2 institute Show, what the present embodiment provided is included based on the method for testing of background system service or interface:
Step 201, started to build the test cases storehouse carrying out function and performance synchronization test in the development phase.
In the present embodiment, step 201 and the present invention are based in the method for testing embodiment one of background system service or interface Step 101 identical, this is no longer going to repeat them.
Step 202, creates the test factory for background system is carried out with test and management.
In the present embodiment, test factory is used for carrying out systematized management to the test of background system, with a test factory Complete the daily test and management of a background system.Include testing workshop, test machine people in test factory.
Step 203, the configuration that background system service or interface are currently tested of receiving user's input.
Wherein, the configuration of current test includes: the configuration of test scene and the corresponding relation in test workshop, test workshop with The configuration of the corresponding relation of service or interface, the configuration of function and performance test relevant parameter.
In the present embodiment, user is the user that the test platform to background system service or interface is operated.User can The configuration currently tested to test platform input by the interactive interface of test platform and user.
In the present embodiment, run a test scene, test factory can be made many according to the parallel establishment of configuration of current test Individual test workshop, multiple test workshops of this establishment are corresponding with test scene.It is right to complete in each test either inside One service or the test and management of interface or multiple service that there is input/output relation or interface, this test workshop and inside One service or the service of interface or multiple input/output relation or interface are corresponding.
In the present embodiment, the configuration of function and performance test relevant parameter includes: in test platform when currently being tested Test machine people executes the configuration of the time of test cases, the test machine people of executed in parallel test cases in each test workshop Number configuration, in each test workshop, each test machine people executes configuration of number of times etc. of test cases.The present embodiment In, the configuration of function and performance test relevant parameter may also comprise the configuration of other relevant parameters, does not limit in the present embodiment.
Step 204, when background system service or interface are externally issued, using the test m- test machine of factory-test carriage The system architecture of people, according to the configuration of current test, testing results scene, instruction test factory is parallel to be created and test scene pair The test workshop answered, drives test workshop corresponding with test scene to create test machine people parallel, and divides to test machine people Join test cases, the test cases that instruction test machine people's executed in parallel is distributed, to carry out to background system service or interface Test.
In the present embodiment, the configuration of the corresponding relation in test scene and test workshop and survey in the configuration according to current test Test cell and the configuration of service or the corresponding relation of interface, create test workshop corresponding with test scene parallel, drive and survey Examination hall scape corresponding test workshop creates test machine people according to the configuration of function and performance test relevant parameter, parallel to test Robot allocation for test case, the instruction test cases that distributed of test machine people's executed in parallel, with to background system service or Interface is tested.
Step 205, according to the configuration of function and performance test relevant parameter, background system service to current test or connect The background system service of implementing result, response time and current test of the corresponding test cases of mouth or the corresponding business transaction of interface Amount, resource utilization are monitored.
In the present embodiment, the implementing result of the background system service of current test or the corresponding test cases of interface is divided into correctly Implementing result and wrong implementing result, if the implementing result of test cases illustrates the corresponding of this service or interface for correct result Function is normal, if the implementing result of test cases illustrates this service or the corresponding dysfunction of interface for error result.
In the present embodiment, the response time of the background system service of current test or the corresponding test cases of interface refers to test Case starts to interface or service to return the time of implementing result from test machine people's calling interface or service.After current test Platform system service or interface corresponding business transaction amount refer to that the test machine people of configuration in current test executes test cases Time in each service or the business transaction amount that completes of interface, the resource utilization of the background system of current test refers to simultaneously The utilization rate of the system resource such as background system cpu, internal memory during row execution test cases.
In the present embodiment, by entering to the background system service of current test or the implementing result of the corresponding test cases of interface Row monitoring, obtains the test result to functional test, by corresponding to test case to the background system service of current test or interface The response time of example, the background system service of current test or interface corresponding business transaction amount, resource utilization are monitored, Obtain the test result to performance test.In the present embodiment, by function in test scene and performance test relevant parameter Configuration such as pressing time isoparametric configuration, and the sound of the background system service to current test or the corresponding test cases of interface Between seasonable and the background system service of current test or interface corresponding business transaction amount, resource utilization are monitored, can Detect the performance issue of profound level, such as RAM leakage, stability and robustness problems etc..
Step 206, is analyzed to the test result of background system service or interface, synchronous systematic function interpretation of result report Accuse and results of property analysis report.
Further, in the present embodiment, the test result of background system service or interface is analyzed, synchronous generation work( Can interpretation of result report specifically include with results of property analysis report:
The implementing result of the background system service to current test or the corresponding test cases of interface is analyzed, systematic function Interpretation of result is reported;
Background system service to current test or the response time of the corresponding test cases of interface, and the backstage of current test System service or interface corresponding business transaction amount, resource utilization are analyzed, synchronous generation performance interpretation of result report.
Specifically, in the present embodiment, what the current background system service tested or interface were corresponded to test cases executes knot Fruit is analyzed, and counts the correct implementing result of test cases and wrong implementing result, and systematic function interpretation of result is reported.
The response time of the background system service to current test or the corresponding test cases of interface is analyzed, and will test case The response time of example is compared with corresponding response time threshold value, if the response time of execution test cases is more than corresponding sound Answer time threshold, then explanation result on response time for the performance test is undesirable, if the response time of execution test cases is not More than corresponding response time threshold value, then results contrast on response time for the explanation performance test is preferable.And by comparative result Recorded in results of property analysis report.
Background system service or interface corresponding business transaction amount, resource utilization to current test are analyzed, root According to business transaction amount, resource utilization, the stability of background system, vigorousness and the problem with the presence or absence of RAM leakage are carried out Analysis, and analysis result be recorded in results of property analysis report.
The method of testing based on background system service or interface that the present embodiment provides, carries out function and performance by building The test cases storehouse of synchronism detection, the configuration that background system service or interface are currently tested of receiving user's input, when When background system service or interface are externally issued, using test factory-test carriage m- test machine people system architecture, according to The configuration of current test, testing results scene, instruction test factory creates test workshop corresponding with test scene parallel, drives Test workshop corresponding with test scene creates test machine people parallel, and to test machine people's allocation for test case, instruction is surveyed The test cases that try engine people's executed in parallel is distributed, to test to background system service or interface, according to function and property The configuration of relevant parameter can be tested, the implementing result of the background system service to current test or the corresponding test cases of interface, sound Between seasonable and the background system service of current test or interface corresponding business transaction amount, resource utilization are monitored, to working as The implementing result of front testing background system service or the corresponding test cases of interface is analyzed, and systematic function interpretation of result is reported, Response time to the corresponding test cases of current testing background system service or interface, and current testing background system service or connect The corresponding business transaction amount of mouth, resource utilization are analyzed, synchronous generation performance interpretation of result report.Due in background system Service or interface is when externally issuing, and introduces the whole life for system after the testing and run through of service or interface and runs week Phase, by advance function and performance test being carried out to each background system service or interface synchronization, the product of system can be effectively improved Quality, reduces development cost, shortens the construction cycle and accelerates operation progress, in the integrated test achieving function and performance Examination, effectively reduces operation operation risk.Meanwhile, the performance of background system has been carried out with deeper test it is ensured that backstage The stability of system and vigorousness.
Fig. 3 is the structural representation based on the test platform embodiment one of background system service or interface for the present invention, such as Fig. 3 Shown, what the present embodiment provided is included based on the test platform of background system service or interface: builds module 301, performing module 302 and analysis module 303.
Wherein, build module 301, for starting to build the test case carrying out function and performance synchronization test in the development phase Example storehouse.Performing module 302, for when background system service or interface are externally issued, then in executed in parallel test cases storehouse Test cases, to test to background system service or interface.Analysis module 303, for background system service or interface Test result be analyzed, synchronous systematic function interpretation of result report and results of property analysis report.
The test platform based on background system service or interface that the present embodiment provides can execute method shown in Fig. 1 to be implemented The technical scheme of example, it is realized, and principle is similar with technique effect, and here is omitted.
Fig. 4 is the structural representation based on the test platform embodiment two of background system service or interface for the present invention;As Fig. 4 Shown, what the present embodiment provided is included based on the test platform of background system service or interface: builds module 401, performing module 402, analysis module 403, creation module 404, receiver module 405 and monitoring modular 406.
Wherein, build module 401, for building the test cases storehouse carrying out function and performance synchronization test.Performing module 402, for when background system service or interface are externally issued, then the test cases in executed in parallel test cases storehouse, with right Background system service or interface are tested.Analysis module 403, for carrying out to the test result of background system service or interface Analysis, synchronous systematic function interpretation of result report and results of property analysis report.
Further, creation module 404, for creating the test factory for background system is carried out with test and management.Connect Receive module 405, configuration background system service or interface currently tested for receiving user's input.Wherein, currently The configuration of test includes: the configuration of test scene and the corresponding relation in test workshop, test workshop and service or interface corresponding The configuration of relation, the configuration of function and performance test relevant parameter.
Further, performing module 402 specifically for: when background system service or interface are externally issued, using test The system architecture of factory-test carriage m- test machine people, according to the configuration of current test, testing results scene, instruction test work Factory creates test workshop corresponding with test scene parallel, drives test workshop corresponding with test scene to create test machine parallel Device people, and to test machine people's allocation for test case, indicate the test cases that test machine people's executed in parallel is distributed, with to rear Platform system service or interface are tested.
Further, monitoring modular 406, for the configuration according to function and performance test relevant parameter, test to current Background system service or the corresponding test cases of interface the background system service of implementing result, response time and current test or Interface corresponding business transaction amount, resource utilization are monitored.
Further, analysis module 403, specifically for corresponding to test case to the background system service of current test or interface The implementing result of example is analyzed, and systematic function interpretation of result is reported;Background system service or interface to current test correspond to The response time of test cases, and the current background system service tested or interface corresponding business transaction amount, resource utilization It is analyzed, synchronous generation performance interpretation of result report.
The test platform based on background system service or interface that the present embodiment provides can execute method shown in Fig. 2 to be implemented The technical scheme of example, it is realized, and principle is similar with technique effect, and here is omitted.
Fig. 5 is the flow chart based on the method for testing embodiment three of background system service or interface for the present invention, as Fig. 5 institute Show, the executive agent of the present embodiment is test platform, specifically can arrange on the computer or server, then the present invention provides Method of testing based on background system service or interface, on the basis of embodiment one, comprises the following steps:
Step 501, started to build the test cases storehouse carrying out function and performance synchronization test, test cases in the development phase It is the corresponding first test cases storehouse of asynchronous transaction system that storehouse includes background system.
In the present embodiment, build the implementation of the step 101 in the mode and the embodiment of the present invention one in test cases storehouse Identical, this is no longer going to repeat them.
Wherein, test cases storehouse includes background system is the corresponding first test cases storehouse of asynchronous transaction system.? It is the test cases that service or interface to asynchronous transaction system are tested in one test cases storehouse.Such as asynchronous transaction system For Unionpay's system, the corresponding test cases of asynchronous transaction system is the corresponding test cases of interchanger class.This interchanger can be Unionpay's gold card can also be other card classes, in the present embodiment, this is not limited.
Step 502, creates the test factory for background system is carried out with test and management.
In the present embodiment, test factory is used for carrying out systematized management to the test of background system, with a test factory Complete the daily test and management of a background system.Include testing workshop, test machine people in test factory.
Step 503, the configuration that background system service or interface are currently tested of receiving user's input, wherein, when The configuration of front test includes: test factory is the configuration of asynchronous mode, the configuration of the corresponding relation in test scene and test workshop, The configuration of the corresponding relation of test workshop and service or interface, the configuration of function and performance test relevant parameter.
In the present embodiment, user is the user that the test platform to background system service or interface is operated.User can The configuration currently tested to test platform input by the interactive interface of test platform and user.
Further, in the present embodiment, the state of test factory is configured to asynchronous mode, represents the survey to background system Examination is the test that asynchronous transaction system is carried out, and the transmission of request message and the reception of response message are separated, test platform with Background system is by the way of double channel simplex.I.e. request message is sent to backstage system using first passage from test platform System, response message is sent to test platform using second channel from background system.
In the present embodiment, run a test scene, test factory can be made many according to the parallel establishment of configuration of current test Individual test workshop, multiple test workshops of this establishment are corresponding with test scene.It is right to complete in each test either inside One service or the test and management of interface or multiple service that there is input/output relation or interface, this test workshop and inside One service or the service of interface or multiple input/output relation or interface are corresponding.
In the present embodiment, the configuration of function and performance test relevant parameter includes: in test platform when currently being tested Test machine people executes the configuration of the time of test cases, the test machine people of executed in parallel test cases in each test workshop Number configuration, in each test workshop, each test machine people executes configuration of number of times etc. of test cases.The present embodiment In, the configuration of function and performance test relevant parameter may also comprise the configuration of other relevant parameters, does not limit in the present embodiment.
Step 504, when background system service or interface are externally issued, then the survey in executed in parallel the first test cases storehouse Examination case, to test to background system service or interface.
In the present embodiment, when background system service or interface can externally be issued in background system service or interface During the development phase, just background system service or interface are tested, change the traditional test flow process of background system, and When background system service or interface are tested, entered by the way of the test cases in executed in parallel the first test cases storehouse OK, background system service or interface are called by test cases, to test to background system service or interface.
Specifically, in the present embodiment, can be tested according to current during test cases in executed in parallel the first test cases storehouse Configuration information carry out selecting and executing of test cases.
Step 505, is analyzed to the test result of background system service or interface, synchronous systematic function interpretation of result report Accuse and results of property analysis report.
Survey in the present embodiment, after background system service or interface are tested, to background system service or interface Test result is analyzed, and is analyzed including being analyzed to the function of test result and to performance.To test result When function is analyzed, the implementing result of service or the corresponding test cases of interface can be analyzed, the performance to test result When being analyzed, can be to response time, the business transaction amount of service or interface and the resource of service or the corresponding test cases of interface Utilization rate is analyzed.
In the present embodiment, after the test result to background system service or interface is analyzed, synchronous systematic function knot Fruit analysis report and results of property analysis report.Function interpretation of result report and results of property analysis report can divide in a result In analysis report, also can not limit in the present embodiment respectively in different interpretations of result is reported.
The embodiment of the present invention provides a kind of method of testing based on background system service or interface, by opening in the development phase Begin to build the test cases storehouse carrying out function and performance synchronization test, it is asynchronous transaction system that test cases storehouse includes background system Unite corresponding first test cases storehouse;Create the test factory for background system is carried out with test and management;Receiving user's input The configuration that background system service or interface are currently tested, wherein, the configuration of current test includes: test factory is different The configuration of step state, test scene and the configuration of the corresponding relation in test workshop, test the corresponding pass in workshop and service or interface The configuration of system, the configuration of function and performance test relevant parameter;When background system service or interface are externally issued, then hold parallel Test cases in row the first test cases storehouse, to test to background system service or interface;To background system service or The test result of interface is analyzed, synchronous systematic function interpretation of result report and results of property analysis report.Due on backstage When system service or interface are externally issued, start introduce for service or interface test and run through system go into operation after whole Life cycle of operation, by advance each background system service or interface synchronization are carried out with the test of function and performance, effectively improves The product quality of system, reduces development cost, shortens the construction cycle and accelerates operation progress it is achieved that the one of function and performance Change test.And by test factory-configured for asynchronous mode, be capable of to background system for asynchronous transaction system work( Can be with the integrated testing of performance.
Fig. 6 is the flow chart based on the method for testing example IV of background system service or interface for the present invention, as Fig. 6 institute Show, the executive agent of the present embodiment is test platform, specifically can arrange on the computer or server, then the present invention provides Method of testing based on background system service or interface, on the basis of embodiment three, comprises the following steps.
Step 601, started to build the test cases storehouse carrying out function and performance synchronization test in the development phase.
Wherein, test cases storehouse includes background system is the corresponding first test cases storehouse of asynchronous transaction system, the It is the test cases that service or interface to asynchronous transaction system are tested in one test cases storehouse.
Step 602, according to the test cases in the first test cases storehouse and corresponding message template generation test cases Request message.
Specifically, in the present embodiment, can be by the message template of asynchronous transaction system service or interface and the first test cases Test cases in storehouse is mated, and generates the request message of the test cases in the first test cases storehouse.Asynchronous transaction system The message template of service or interface can be stored in advance.
Illustrate and be: if asynchronous transaction system is Unionpay's system, message template is 8583 message templates, then by asynchronous friendship The message template of easily system service or interface is mated with test cases, the request message of generation test cases particularly as follows:
First, determine the parameter information of 8583 message templates from the 8583 message templates prestoring.
Wherein, the 8583 message templates prestoring can be stored using three arrays.First array stored messages Message bit pattern, it is used for identifying each field domain and whether there is in messages, and second array is used for storing each field domain Corresponding character string information, this character string type is 16 scale codings, and the 3rd array is used for storing the length of each field domain Information.Wherein, the corresponding length information of each field domain is divided into three kinds of situations, the numeral more than 0 for the field domain of regular length Represent, the size of numeral represents the length of field domain, the field length of field not used is expressed as 0, elongated field domain negative Represent, the absolute value of this negative is the length of field domain.
So, the parameter information of the message template getting from 8583 message templates of pre-stored may include that bitmap Information, the corresponding character string information of each field domain and the corresponding length information of each field domain.
Then, by the data in the test data of the test cases in the first test cases storehouse and default fields domain and message Template is mated, and generates request message.
As in 8583 message templates, current time, default fields are inserted in domain 7 in default fields domain, domain 13 and domain 15 6 ordinal numbers of generation, the domain 52 in default fields domain and domain 128 are inserted in domain 11 in domain, by calling asynchronous transaction system Cryptographic services, insert the value of pinblock and mac, and the test data in test cases inserted corresponding field domain and correspond to Position, to generate request message.
In the present embodiment, with asynchronous transaction system for Unionpay's system, message template is 8583 message templates, asks to generating Message is illustrated.But the present embodiment is not carried out to the message template of asynchronous transaction system service or interface and test cases Join, the concrete mode generating the request message of test cases is defined.
Step 603, creates the test factory for background system is carried out with test and management.
Step 604, the configuration that background system service or interface are currently tested of receiving user's input, wherein, when The configuration of front test includes: test factory is the configuration of asynchronous mode, the configuration of the corresponding relation in test scene and test workshop, The configuration of the corresponding relation of test workshop and service or interface, the configuration of function and performance test relevant parameter.
In the present embodiment, step 502 in the implementation of step 603 and step 604 and embodiment three and step 503 Implementation is identical, and this is no longer going to repeat them.
Step 605, when background system service or interface are externally issued, according to the configuration of current test, testing results field Scape simultaneously creates response message port, and instruction test factory creates test workshop corresponding with test scene parallel, drives and test Scene corresponding test workshop creates test machine people parallel, and to test machine people's allocation for test case corresponding request report Literary composition, the request message that instruction test machine people's transmitted in parallel is distributed is to background system.
Further, in the present embodiment, when background system service or interface are externally issued, start test factory, run Test scene, the state due to testing factory in the configuration of current test is asynchronous mode, asynchronous transaction system is surveyed Examination, so needing to create response message port, to receive, by response message port, the message returning.
In the present embodiment, configuration always according to test scene in the configuration of current test and the corresponding relation in test workshop and The configuration of the corresponding relation of test workshop and service or interface, creates test workshop corresponding with test scene parallel, drive and Test scene corresponding test workshop creates test machine people according to the configuration of function and performance test relevant parameter, parallel to survey Try engine people distributes the corresponding request message of test cases in the first test cases storehouse, indicates test machine people's executed in parallel institute The request message of distribution, to test to background system service or interface.
Step 606, has been sent request message and has been stored in queue, and the request message that will be stored in queue is set to Send state.
Further, in the present embodiment, due to dual pathways list is adopted to the service of asynchronous transaction system or the test of interface To communication, send after request message can not real-time reception to response message, so to sending request message with the shape of queue Formula is stored, and the request message that will be stored in queue is set to send state.
Step 607, receives the response message that background system is sent by response message port.
Further, in the present embodiment, response message has corresponding form with request message, such as request message and response Message is respectively 8583 messages.
Step 608, by response message with send request message and mated, determine and send out with what response message matched Send request message.
Further, in the present embodiment, by response message with send request message and mated according to preset rules, come Determine the request message of transmission matching with response message.
In the present embodiment, different with the type of response message according to request message, carry out the preset rules of message coupling Differ.In the present embodiment, the preset rules mated are not limited.
If background system is Unionpay's system, request message and response message are 8583 messages, then by response message with Send request message to be mated, determine that the request message of transmission being matched with response message is specifically included:
First, obtain the corresponding numerical value in preset field domain of response message.
Wherein, this preset field domain includes respectively: domain 7, domain 11, domain 32 and domain 33.
Then, the corresponding numerical value in preset field domain of response message is corresponding with sending preset field domain in request message Numerical value mated.
Specifically, in the present embodiment, by the corresponding numerical value in preset field domain of response message be stored in every in queue The individual corresponding numerical value in preset field domain having sent in request message is mated one by one.
Finally, if the corresponding numerical value in preset field domain and first of response message has sent preset field domain in request message Corresponding numerical value is all equal it is determined that first to have sent request message be the request message of transmission matching with response message.
Specifically, if first has sent domain 7, domain 11, the corresponding numerical value in domain 32 and domain 33 and the response message of request message Domain 7, domain 11, the corresponding numerical value in domain 32 and domain 33 are equal respectively it is determined that first has sent request message and be and response message The request message of transmission matching.
Step 609, obtains the functional test results having sent request message corresponding background system service or interface and property Energy test result, to complete the test to background system service or interface.
Specifically, in the present embodiment, each that can obtain under this test scene has sent the corresponding function of request message Test result, this functional test results is to the service of background system or the functional test results of interface.Calculate this checkout area The performance test results under scape, this performance test results is the performance test results to background system service or interface.
Specifically, in the present embodiment, the result field in the corresponding response message of request message can have been sent according to each Corresponding numerical value, judging that each has sent the corresponding functional test results of request message is correct or mistake.As in 8583 reports In the corresponding response message of literary composition, contrasted with default value by the corresponding numerical value in domain 40, it is corresponding that judgement has sent request message Functional test results are correct or mistake, if the corresponding numerical value in domain 40 is identical with default value reporting it is determined that having sent request The corresponding functional test results of literary composition are correct, otherwise fail.Wherein, default value is the correct value of test.
Further, in the present embodiment, the performance test results of the service or interface that calculate background system can include ringing Between seasonable, business transaction amount, resource utilization etc..
Step 610, is analyzed to the test result of background system service or interface, synchronous systematic function interpretation of result report Accuse and results of property analysis report.
Further, in the present embodiment, the test result of background system service or interface is analyzed, synchronous generation work( Can interpretation of result report specifically include with results of property analysis report:
The current background system service of test or the implementing result of interface corresponding requests message are analyzed, systematic function Interpretation of result is reported;
Background system service to current test or the response time of interface corresponding requests message, and the backstage of current test System service or interface corresponding business transaction amount, resource utilization are analyzed, synchronous generation performance interpretation of result report.
Specifically, the transmission in the present embodiment, to the current background system service tested or the corresponding test cases of interface The implementing result of the response message that request message matches is analyzed, count correct implementing result under this test scene and Mistake implementing result, systematic function interpretation of result is reported.
The response time of the background system service to current test or interface execution test is analyzed, by each test case The corresponding response time of example is compared with response time threshold value, if the response time of execution test cases is more than corresponding response Time threshold, then explanation result on response time for the performance test is undesirable, if the response time of execution test cases is little In corresponding response time threshold value, then results contrast on response time for the explanation performance test is preferable.And comparative result is remembered Record in results of property analysis report.
Background system service or interface corresponding business transaction amount, resource utilization to current test are analyzed, root According to business transaction amount, resource utilization, the stability of background system, vigorousness and the problem with the presence or absence of RAM leakage are carried out Analysis, and analysis result be recorded in results of property analysis report.
The method of testing based on background system service or interface that the present embodiment provides, by starting to build in the development phase Carry out function and the test cases storehouse of performance synchronization test, according to the test cases in the first test cases storehouse and corresponding message The request message of template generation test cases, creates the test factory for background system is carried out with test and management, receive user The configuration that background system service or interface are currently tested of input, when background system service or interface are externally issued, According to the configuration of current test, testing results scene simultaneously creates response message port, and instruction test factory is parallel to be created and test Scene corresponding test workshop, drives test workshop corresponding with test scene to create test machine people parallel, and to test machine The corresponding request message of device people's allocation for test case, the request message that instruction test machine people's transmitted in parallel is distributed is to backstage system System, has been sent request message and has been stored in queue, and the request message that will be stored in queue has been set to send state, connects Receive the response message that sends by response message port of background system, by response message with send request message and mated, Determine the request message of transmission matching with response message, obtain and sent the corresponding functional test results of request message and counted Calculate and sent the corresponding the performance test results of request message, to complete the test to background system service or interface, to backstage be System service or the test result of interface are analyzed, synchronous systematic function interpretation of result report and results of property analysis report, real Show the integrated testing to the function for asynchronous transaction system for the background system and performance, and due to request message and response report Literary composition can correspond, and can make the service to asynchronous transaction system or the integrated testing knot of function that interface is carried out and performance Fruit is more accurate.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each method embodiment can be led to Cross the related hardware of programmed instruction to complete.Aforesaid program can be stored in a computer read/write memory medium.This journey Sequence upon execution, executes the step including above-mentioned each method embodiment;And aforesaid storage medium includes: rom, ram, magnetic disc or Person's CD etc. is various can be with the medium of store program codes.
Fig. 7 is the structural representation based on the test platform embodiment three of background system service or interface for the present invention, such as Fig. 7 Shown, what the present embodiment provided is included based on the test platform of background system service or interface: builds module 701, creation module 702, receiver module 703, performing module 704 and analysis module 705.
Wherein, build module 701, for starting to build the test case carrying out function and performance synchronization test in the development phase Example storehouse, it is the corresponding first test cases storehouse of asynchronous transaction system that test cases storehouse includes background system.Creation module 702, For creating the test factory for background system is carried out with test and management.Receiver module 703, right for receiving user's input The configuration that background system service or interface are currently tested, wherein, the configuration of current test includes: test factory is asynchronous shape The configuration of state, test scene and the configuration of the corresponding relation in test workshop, test workshop and the corresponding relation of service or interface Configuration, the configuration of function and performance test relevant parameter.Performing module 704, for when background system service or interface are to outgoing During cloth, then the test cases in executed in parallel the first test cases storehouse, to test to background system service or interface.Analysis Module 705, for being analyzed to the test result of background system service or interface, synchronous systematic function interpretation of result report with Results of property analysis report.
The test platform based on background system service or interface that the present embodiment provides can execute method shown in Fig. 5 to be implemented The technical scheme of example, it is realized, and principle is similar with technique effect, and here is omitted.
Fig. 8 is the structural representation based on the test platform example IV of background system service or interface for the present invention, such as Fig. 8 Shown, what the present embodiment provided is included based on the test platform of background system service or interface: builds module 801, creation module 802, receiver module 803, performing module 804, analysis module 805, generation module 806, memory module 807 and setup module 808.
Wherein, build module 801, for starting to build the test case carrying out function and performance synchronization test in the development phase Example storehouse, it is the corresponding first test cases storehouse of asynchronous transaction system that test cases storehouse includes background system.Creation module 802, For creating the test factory for background system is carried out with test and management.Receiver module 803, right for receiving user's input The configuration that background system service or interface are currently tested, wherein, the configuration of current test includes: test factory is asynchronous shape The configuration of state, test scene and the configuration of the corresponding relation in test workshop, test workshop and the corresponding relation of service or interface Configuration, the configuration of function and performance test relevant parameter.Performing module 804, for when background system service or interface are to outgoing During cloth, then the test cases in executed in parallel the first test cases storehouse, to test to background system service or interface.Analysis Module 805, for being analyzed to the test result of background system service or interface, synchronous systematic function interpretation of result report with Results of property analysis report.
Further, generation module 806, for according to the test cases in the first test cases storehouse and corresponding message mould Plate generates the request message of test cases.
Further, performing module 804, specifically for: when background system service or interface are externally issued, according to current The configuration of test, testing results scene simultaneously creates response message port, and the parallel establishment of instruction test factory is corresponding with test scene Test workshop, drive test workshop corresponding with test scene create test machine people parallel, and to test machine people distribute The corresponding request message of test cases, the request message that instruction test machine people's transmitted in parallel is distributed is to background system;Receive The response message that background system is sent by response message port;By response message with send request message and mated, really The fixed request message of transmission matching with response message;Obtain and sent request message corresponding background system service or interface Functional test results and the performance test results, to complete the test to background system service or interface.
Further, memory module 807, are stored in queue for sending request message.Setup module 808, uses It is set to send state in will be stored in the request message in queue.
Further, background system is Unionpay's system, and request message and response message are 8583 messages;Correspondingly, execute Module 804 specifically for: obtain response message the corresponding numerical value in preset field domain;The preset field domain of response message is corresponded to Numerical value mated with sending the corresponding numerical value in preset field domain in request message;If the preset field domain pair of response message The numerical value answered with first sent the corresponding numerical value in preset field domain in request message all equal it is determined that first has sent request Message is the request message of transmission matching with response message.
The test platform based on background system service or interface that the present embodiment provides can execute method shown in Fig. 6 to be implemented The technical scheme of example, it is realized, and principle is similar with technique effect, and here is omitted.
Finally it is noted that various embodiments above, only in order to technical scheme to be described, is not intended to limit;To the greatest extent Pipe has been described in detail to the present invention with reference to foregoing embodiments, it will be understood by those within the art that: its according to So the technical scheme described in foregoing embodiments can be modified, or wherein some or all of technical characteristic is entered Row equivalent;And these modifications or replacement, do not make the essence of appropriate technical solution depart from various embodiments of the present invention technology The scope of scheme.

Claims (20)

1. a kind of method of testing based on background system service or interface is it is characterised in that include:
Start to build the test cases storehouse carrying out function and performance synchronization test in the development phase;
When background system service or interface are externally issued, then the test cases in test cases storehouse described in executed in parallel, with right Background system service or interface are tested;
The test result of background system service or interface is analyzed, synchronous systematic function interpretation of result report and results of property Analysis report.
2. method according to claim 1 is it is characterised in that when background system service or interface are externally issued, then simultaneously Row executes the test cases in described test cases storehouse, before background system service or interface are tested, also includes:
Create the test factory for described background system is carried out with test and management;
The configuration that described background system service or interface are currently tested of receiving user's input;
Wherein, the configuration of described current test includes: test scene with test workshop corresponding relation configuration, test workshop with The configuration of the corresponding relation of service or interface, the configuration of function and performance test relevant parameter.
3. method according to claim 2 is it is characterised in that when background system service or interface are externally issued, then simultaneously Row executes the test cases in described test cases storehouse, is specifically included with carrying out test to background system service or interface:
When background system service or interface are externally issued, using the system tray of test factory-test carriage m- test machine people Structure, according to the configuration of described current test, runs described test scene, instruction described test factory is parallel to be created and described test Scene corresponding test workshop, drives test workshop corresponding with described test scene to create test machine people parallel, and to institute State test machine people's allocation for test case, the test cases that instruction test machine people's executed in parallel is distributed, with to background system Service or interface are tested.
4. method according to claim 3 is it is characterised in that the described test result to background system service or interface is entered Row analysis, before synchronous systematic function interpretation of result report and results of property analysis report, also includes:
According to the configuration of described function and performance test relevant parameter, the background system service to current test or interface correspond to and survey The examination background system service of implementing result, response time and described current test of case or interface corresponding business transaction amount, Resource utilization is monitored.
5. method according to claim 4 is it is characterised in that the described test result to background system service or interface is entered Row analysis, synchronous systematic function interpretation of result report is specifically included with results of property analysis report:
The implementing result of the background system service to current test or the corresponding test cases of interface is analyzed, systematic function result Analysis report;
Background system service to current test or the response time of the corresponding test cases of interface, and the backstage of described current test System service or interface corresponding business transaction amount, resource utilization are analyzed, synchronous generation performance interpretation of result report.
6. a kind of test platform based on background system service or interface is it is characterised in that include:
Build module, for starting to build the test cases storehouse carrying out function and performance synchronization test in the development phase;
Performing module, for when background system service or interface are externally issued, then in test cases storehouse described in executed in parallel Test cases, to test to background system service or interface;
Analysis module, for being analyzed to the test result of background system service or interface, synchronous systematic function interpretation of result Report and results of property analysis report.
7. test platform according to claim 6 is it is characterised in that also include:
Creation module, for creating the test factory for described background system is carried out with test and management;
Receiver module, the configuration described background system service or interface currently tested for receiving user's input;
Wherein, the configuration of described current test includes: test scene with test workshop corresponding relation configuration, test workshop with The configuration of the corresponding relation of service or interface, the configuration of function and performance test relevant parameter.
8. test platform according to claim 7 it is characterised in that described performing module specifically for:
When background system service or interface are externally issued, using the system tray of test factory-test carriage m- test machine people Structure, according to the configuration of described current test, runs described test scene, instruction described test factory is parallel to be created and described test Scene corresponding test workshop, drives test workshop corresponding with described test scene to create test machine people parallel, and to institute State test machine people's allocation for test case, the test cases that instruction test machine people's executed in parallel is distributed, with to background system Service or interface are tested.
9. test platform according to claim 8 is it is characterised in that also include:
Monitoring modular, for the configuration according to described function and performance test relevant parameter, the background system clothes to current test The background system service of implementing result, response time and described current test of business or the corresponding test cases of interface or interface correspond to Business transaction amount, resource utilization is monitored.
10. test platform according to claim 9 is it is characterised in that described analysis module, specifically for:
The implementing result of the background system service to current test or the corresponding test cases of interface is analyzed, systematic function result Analysis report;Background system service to current test or the response time of the corresponding test cases of interface, and described current test Background system service or interface corresponding business transaction amount, resource utilization be analyzed, synchronous generate performance interpretation of result Report.
A kind of 11. method of testings based on background system service or interface are it is characterised in that include:
Start to build the test cases storehouse carrying out function and performance synchronization test in the development phase, described test cases storehouse includes Background system is the corresponding first test cases storehouse of asynchronous transaction system;
Create the test factory for described background system is carried out with test and management;
The configuration that described background system service or interface are currently tested of receiving user's input, wherein, described current survey The configuration of examination includes: described test factory is the configuration of asynchronous mode, the configuration of the corresponding relation in test scene and test workshop, The configuration of the corresponding relation of test workshop and service or interface, the configuration of function and performance test relevant parameter;
When background system service or interface are externally issued, then the test cases in the first test cases storehouse described in executed in parallel, To test to background system service or interface;
The test result of background system service or interface is analyzed, synchronous systematic function interpretation of result report and results of property Analysis report.
12. methods according to claim 11 are it is characterised in that described start structure in the development phase and carry out function and property After the test cases storehouse of energy synchronism detection, also include:
Request according to the test cases in described first test cases storehouse and test cases described in corresponding message template generation Message.
13. methods according to claim 12 are it is characterised in that described externally issue when background system service or interface When, then the test cases in test cases storehouse described in executed in parallel, to carry out to background system service or interface testing concrete bag Include:
When background system service or interface are externally issued, according to the configuration of described current test, run described test scene simultaneously Create response message port, instruction described test factory parallel creates test workshop corresponding with described test scene, drive and The corresponding test workshop of described test scene creates test machine people parallel, and distributes described test case to described test machine people The corresponding request message of example, the request message that instruction test machine people's transmitted in parallel is distributed is to described background system;
Receive described background system and pass through the response message that described response message port sends;
By described response message with send request message and mated, determine that the transmission matching with described response message is asked Seek message;
Send request message corresponding background system service or the functional test results of interface described in acquisition and performance test has been tied Really, to complete the test to background system service or interface.
14. methods according to claim 13 are it is characterised in that what described instruction test machine people's transmitted in parallel was distributed After request message is to background system, also include:
Sent request message to be stored in queue;
Will be stored in the request message in queue and be set to send state.
15. methods according to claim 14 it is characterised in that described background system be Unionpay's system, described request report Civilian and described response message is 8583 messages;
Correspondingly, described by described response message with send request message and mated, determine and described response message phase The request message of transmission joined specifically includes:
Obtain the corresponding numerical value in preset field domain of described response message;
By the corresponding numerical value in preset field domain of described response message with described to have sent preset field domain in request message corresponding Numerical value mated;
If the corresponding numerical value in preset field domain of described response message is with first to have sent preset field domain in request message corresponding Numerical value all equal it is determined that described first sent request message be match with described response message transmission request report Literary composition.
A kind of 16. test platforms based on background system service or interface are it is characterised in that include:
Build module, for starting to build the test cases storehouse carrying out function and performance synchronization test, described survey in the development phase It is the corresponding first test cases storehouse of asynchronous transaction system that examination case library includes background system;
Creation module, for creating the test factory for described background system is carried out with test and management;
Receiver module, the configuration described background system service or interface currently tested for receiving user's input, its In, the configuration of described current test includes: described test factory is the configuration of asynchronous mode, and test scene is right with test workshop The joining of the configuration that should be related to, the configuration of the corresponding relation of test workshop and service or interface, function and performance test relevant parameter Put;
Performing module, for when background system service or interface are externally issued, then the first test cases storehouse described in executed in parallel In test cases, to test to background system service or interface;
Analysis module, for being analyzed to the test result of background system service or interface, synchronous systematic function interpretation of result Report and results of property analysis report.
17. test platforms according to claim 16 are it is characterised in that also include:
Generation module, for surveying according to the test cases in described first test cases storehouse and corresponding message template generation The request message of examination case.
18. test platforms according to claim 17 it is characterised in that described performing module, specifically for:
When background system service or interface are externally issued, according to the configuration of described current test, run described test scene simultaneously Create response message port, instruction described test factory parallel creates test workshop corresponding with described test scene, drive and The corresponding test workshop of described test scene creates test machine people parallel, and distributes described test case to described test machine people The corresponding request message of example, the request message that instruction test machine people's transmitted in parallel is distributed is to described background system;Receive institute State background system and pass through the response message that described response message port sends;By described response message with send request message and enter Row coupling, determines the request message of transmission matching with described response message;Request message has been sent corresponding described in acquisition The functional test results of background system service or interface and the performance test results, to complete the survey to background system service or interface Examination.
19. test platforms according to claim 18 are it is characterised in that also include:
Memory module, is stored in queue for sending request message;
Setup module, is set to send state for will be stored in the request message in queue.
20. test platforms according to claim 19 it is characterised in that described background system be Unionpay's system, described please Message and described response message is asked to be 8583 messages;
Correspondingly, described performing module specifically for: obtain described response message the corresponding numerical value in preset field domain;Will be described The corresponding numerical value in preset field domain of response message has sent the corresponding numerical value in preset field domain in request message and has carried out with described Coupling;If the corresponding numerical value in preset field domain of described response message is with first to have sent preset field domain in request message corresponding Numerical value all equal it is determined that described first sent request message be match with described response message transmission request report Literary composition.
CN201610783548.7A 2015-12-16 2016-08-30 Test method and test platform based on background system service or interface Active CN106354645B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2015109471071 2015-12-16
CN201510947107.1A CN105608001A (en) 2015-12-16 2015-12-16 Test method and test platform based on background system service or interface

Publications (2)

Publication Number Publication Date
CN106354645A true CN106354645A (en) 2017-01-25
CN106354645B CN106354645B (en) 2019-12-31

Family

ID=55987953

Family Applications (3)

Application Number Title Priority Date Filing Date
CN201510947107.1A Pending CN105608001A (en) 2015-12-16 2015-12-16 Test method and test platform based on background system service or interface
CN201610783548.7A Active CN106354645B (en) 2015-12-16 2016-08-30 Test method and test platform based on background system service or interface
CN201610994511.9A Active CN106528424B (en) 2015-12-16 2016-11-11 Test method and test platform based on background system service or interface

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201510947107.1A Pending CN105608001A (en) 2015-12-16 2015-12-16 Test method and test platform based on background system service or interface

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201610994511.9A Active CN106528424B (en) 2015-12-16 2016-11-11 Test method and test platform based on background system service or interface

Country Status (1)

Country Link
CN (3) CN105608001A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528424A (en) * 2015-12-16 2017-03-22 中国民生银行股份有限公司 Test method and test platform based on background system service or interface
CN109344183A (en) * 2018-01-30 2019-02-15 深圳壹账通智能科技有限公司 Data interactive method, device, computer equipment and storage medium
CN109614314A (en) * 2018-11-01 2019-04-12 北京奇虎科技有限公司 Performance test methods, device, server and readable storage medium storing program for executing
CN110414242A (en) * 2019-08-02 2019-11-05 中国工商银行股份有限公司 For detecting the method, apparatus, equipment and medium of service logic loophole
CN110650063A (en) * 2019-08-20 2020-01-03 福建省农村信用社联合社 Centralized bank third-party software simulation system and method
CN112346438A (en) * 2020-11-09 2021-02-09 南方电网科学研究院有限责任公司 Distributed synchronous testing device and method of stability control device
CN113395355A (en) * 2021-07-06 2021-09-14 上海通联金融服务有限公司 Message switching system with complex long-connection double-channel background

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021111A (en) * 2016-05-30 2016-10-12 上海携程商务有限公司 Interface testing method and system
CN106502904A (en) * 2016-11-02 2017-03-15 四川长虹电器股份有限公司 A kind of UI automated testing methods of intelligent appliance equipment application
CN108111364B (en) * 2016-11-24 2021-08-17 苏宁易购集团股份有限公司 Service system testing method and device
CN107908559B (en) * 2017-11-15 2021-05-07 中国农业银行股份有限公司 Test case design method and device
CN107957945B (en) * 2017-11-29 2019-06-25 平安科技(深圳)有限公司 Monetary fund system automatic performance test method, device, equipment and storage medium
CN109597753A (en) * 2018-10-22 2019-04-09 平安科技(深圳)有限公司 Method, apparatus, computer equipment and the storage medium of interface testing
CN109582563B (en) * 2018-10-26 2024-04-05 平安科技(深圳)有限公司 Test method, device, computer equipment and storage medium for test cases
CN109634825B (en) * 2018-12-11 2021-11-05 郑州云海信息技术有限公司 Virtualization platform stability testing method
CN109977012B (en) * 2019-03-19 2023-03-21 中国联合网络通信集团有限公司 Joint debugging test method, device, equipment and computer readable storage medium of system
CN110109837B (en) * 2019-05-06 2023-10-13 上海蔚来汽车有限公司 Integrated test method, integrated test device, controller and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8434058B1 (en) * 2006-03-15 2013-04-30 Jpmorgan Chase Bank, N.A. Integrated system and method for validating the functionality and performance of software applications
CN104536890A (en) * 2014-12-26 2015-04-22 小米科技有限责任公司 Testing system, method and device
CN105005532A (en) * 2015-08-05 2015-10-28 广东欧珀移动通信有限公司 System for automatically testing stability of application program interface and method
CN105099801A (en) * 2014-05-07 2015-11-25 中国电信股份有限公司 Testing system for information management system, and testing environment simulation method
CN105608001A (en) * 2015-12-16 2016-05-25 中国民生银行股份有限公司 Test method and test platform based on background system service or interface

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050204201A1 (en) * 2004-03-15 2005-09-15 Ramco Systems Limited Method and system for testing software development activity

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8434058B1 (en) * 2006-03-15 2013-04-30 Jpmorgan Chase Bank, N.A. Integrated system and method for validating the functionality and performance of software applications
CN105099801A (en) * 2014-05-07 2015-11-25 中国电信股份有限公司 Testing system for information management system, and testing environment simulation method
CN104536890A (en) * 2014-12-26 2015-04-22 小米科技有限责任公司 Testing system, method and device
CN105005532A (en) * 2015-08-05 2015-10-28 广东欧珀移动通信有限公司 System for automatically testing stability of application program interface and method
CN105608001A (en) * 2015-12-16 2016-05-25 中国民生银行股份有限公司 Test method and test platform based on background system service or interface
CN106528424A (en) * 2015-12-16 2017-03-22 中国民生银行股份有限公司 Test method and test platform based on background system service or interface

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528424A (en) * 2015-12-16 2017-03-22 中国民生银行股份有限公司 Test method and test platform based on background system service or interface
CN109344183A (en) * 2018-01-30 2019-02-15 深圳壹账通智能科技有限公司 Data interactive method, device, computer equipment and storage medium
CN109344183B (en) * 2018-01-30 2020-11-24 深圳壹账通智能科技有限公司 Data interaction method and device, computer equipment and storage medium
CN109614314A (en) * 2018-11-01 2019-04-12 北京奇虎科技有限公司 Performance test methods, device, server and readable storage medium storing program for executing
CN109614314B (en) * 2018-11-01 2024-03-01 北京奇虎科技有限公司 Performance test method, device, server and readable storage medium
CN110414242A (en) * 2019-08-02 2019-11-05 中国工商银行股份有限公司 For detecting the method, apparatus, equipment and medium of service logic loophole
CN110650063A (en) * 2019-08-20 2020-01-03 福建省农村信用社联合社 Centralized bank third-party software simulation system and method
CN112346438A (en) * 2020-11-09 2021-02-09 南方电网科学研究院有限责任公司 Distributed synchronous testing device and method of stability control device
CN112346438B (en) * 2020-11-09 2022-02-15 南方电网科学研究院有限责任公司 Distributed synchronous testing device and method of stability control device
CN113395355A (en) * 2021-07-06 2021-09-14 上海通联金融服务有限公司 Message switching system with complex long-connection double-channel background

Also Published As

Publication number Publication date
CN105608001A (en) 2016-05-25
CN106528424B (en) 2019-11-12
CN106528424A (en) 2017-03-22
CN106354645B (en) 2019-12-31

Similar Documents

Publication Publication Date Title
CN106354645A (en) Test method and test platform based on background system service or interface
WO2018006789A1 (en) Parameter checking method and apparatus, and network management server and computer storage medium
CN107562635A (en) Embedded software test accessory system
CN109582301A (en) Method for processing business, device, equipment and the medium of task based access control scheduling system
CN105786695B (en) Data test method and system
CN104580451B (en) Realize the method and system and electronic equipment of multi-platform account synchronization
CN107294808A (en) The methods, devices and systems of interface testing
CN106484622A (en) Method of testing, apparatus and system
CN102799519A (en) Automatic test method for cluster file system
CN107659434A (en) A kind of automatic test approach of Devices to test, apparatus and system
CN107315586A (en) Using the methods, devices and systems of packing
CN107870948A (en) Method for scheduling task and device
CN106293920A (en) Method for scheduling task and device
CN113422794A (en) Traffic recording and playback processing method and device and electronic equipment
CN110209584A (en) A kind of automatic generation of test data and relevant apparatus
CN104239217B (en) The method and system of railway signal software test
CN111324480B (en) Large-scale host transaction fault positioning system and method
CN110262978A (en) It is a kind of based on long process automation test interface retry method and data flow
CN114003451A (en) Interface test method, device, system and medium
CN105550103A (en) Custom test script based automated testing method
CN109542589A (en) A kind of monitoring system and method that the operation towards block chain intelligence contract is lossless
CN105554496B (en) Multi signal passage automatic checkout system and method
CN105159162B (en) The processing method of non-metering data in metering system
CN116436540A (en) LED display screen receiving card testing method and device, testing card and storage medium
CN109783368A (en) Trapezoidal pattern programming software testing system and method

Legal Events

Date Code Title Description
C06 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