CN106776300A - The pressure testing system and method for a kind of intermediate system - Google Patents

The pressure testing system and method for a kind of intermediate system Download PDF

Info

Publication number
CN106776300A
CN106776300A CN201611088781.XA CN201611088781A CN106776300A CN 106776300 A CN106776300 A CN 106776300A CN 201611088781 A CN201611088781 A CN 201611088781A CN 106776300 A CN106776300 A CN 106776300A
Authority
CN
China
Prior art keywords
message
intermediate system
test
gear
pressure
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
CN201611088781.XA
Other languages
Chinese (zh)
Other versions
CN106776300B (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.)
Beijing Gallop Information Engineering Co Ltd
Original Assignee
Beijing Gallop Information Engineering Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gallop Information Engineering Co Ltd filed Critical Beijing Gallop Information Engineering Co Ltd
Priority to CN201611088781.XA priority Critical patent/CN106776300B/en
Publication of CN106776300A publication Critical patent/CN106776300A/en
Application granted granted Critical
Publication of CN106776300B publication Critical patent/CN106776300B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Abstract

The invention provides the pressure testing system and method for a kind of intermediate system, the pressure testing system includes:One master control forcing press and at least one test pressure machine being connected with master control forcing press;Master control forcing press is used to create performance test operation plan, to control the test pressure machine to carry out pressure test to tested intermediate system;Test pressure machine is used for the transaction initiator in the performance test operation plan simulation test environment, to tested intermediate system Batch sending transaction request message, so that tested intermediate system generates corresponding message according to the transaction request message;Test pressure machine be additionally operable to according to counterparty side's batch of the performance test operation plan simulation transaction initiator receive the tested intermediate system according to transaction request message generate come account message, according to carrying out the generation of account message in response to the returning gear message and issuing tested intermediate system in batches come account message.

Description

The pressure testing system and method for a kind of intermediate system
Technical field
The present invention relates to software testing technology field, more particularly to a kind of intermediate system pressure testing system and method.
Background technology
With the continuous social and economic development, payment activity is increasingly frequent, and market is for payment technical field computer system Requirement improve constantly, be mainly manifested in following two aspects:1) cycle develop, test, reached the standard grade is shorter and shorter;2) system branch The portfolio of support is increasing.
Payment system relevant enterprise is when two above requirement is tackled, it can be seen that due to lacking automatic test and suitable Test environment, test activity turns into the bottlenecks of whole engineering activity at many aspects.Tester needs rapid deployment suitable Test environment, but suitable test environment is often difficult to build, for example:
1) system being associated with goal systems, also in synchronous development, is still currently unavailable or unstable version, is used Unstable interconnected system is tested, the accuracy of test result it is difficult to ensure that.
2) system being associated with goal systems does not allow to be accessed due to security reason.
3) overall system resource of test environment is much smaller than production environment, and when performance test is carried out, often use will be System resource is concentrated in single goal systems, and the peripheral system being associated with goal systems does not have enough system resource, During being interacted between causing system, peripheral system turns into the bottleneck of whole test environment, and cannot accurately obtain goal systems Performance data.
At present, test environment is virtualized into shorten the effective ways in research and development of products cycle.Environment virtualization instrument passes through Analog interface, service, data behavior, using and infrastructure help the development teams to carry out the system debug of early stage, help survey Examination team carries out integration test.
Environment virtualization instrument can be with the interconnected system (peripheral system) of simulated target system, and receive goal systems carrys out account Message, suitable response is given to the request that goal systems sends and is replied.Instrument is virtualized by environment, tester need not The peripheral system being associated with goal systems is built again, the time cost for building environment is reduced, and is reduced to physical environment Take, reduce because of the inaccurate possibility of test result caused by unstable peripheral environment.
What existing environment virtual method one (unit one process) solved is the message time gear in functional test procedures, is adopted Suitable response is given to the message that goal systems sends with unit one process and is replied.When performance test is carried out, this kind of ring Border virtualization instrument can inherently turn into performance bottleneck.Because with increasingly frequent, the single payment system of market payment behavior Throughput peaks often reach thousands of pens per second even up to ten thousand business, and this environment virtual method is due to its unit The limitation of one process architecture design, program synchronization be only capable of taking CPU (if multi thread CPU, synchronization It is only capable of taking a thread in a CPU), its disposal ability is very limited, the type of message common for payment system, its Per second to be only capable for the treatment of strokes, tens messages, its handling capacity greatly differs from each other with the business objective of thousands of pens per second or even up to ten thousand. Also, this environment virtual method can not be by longitudinal dilatation (increasing the system resources such as the CPU of unit) or horizontal of system The dilatation number of computers of parallel processing (increase) improves handling capacity.
Existing environment virtual method two (unit multi-process) solves the nothing of unit one process framework to a certain extent The concurrent limitation of method, it uses native codes to realize the framework of multi-process, the message that goal systems sends is given concurrent Response and reply.First, the framework of this multi-process does not often possess ability extending transversely, if that is, the disposal ability of unit is not Foot, it is impossible to manage many computers of parallel processing by single master control system to increase the disposal ability of whole system.Secondly, The multi-process framework program that this use native codes are realized can not accurately, stably control concurrent speed.
Existing environment virtual method three (third party's performance testing tool) solves unit multi-process framework not to be possessed The problem of ability extending transversely, but existing third party's performance testing tool at present only be used for simulate payment system test in report Literary initiator, and the analogue for being unable to analog message feeds back corresponding receipt message.
The content of the invention
In order to solve the above technical problems, the invention provides the pressure testing system and method for a kind of intermediate system.
On the one hand the embodiment of the present invention provides a kind of pressure testing system of intermediate system, the pressure testing system bag Include:One master control forcing press and at least one test pressure machine being connected with the master control forcing press;
The master control forcing press is used to create performance test operation plan, to control the test pressure machine to tested middle System carries out pressure test;
The test pressure machine is used for the transaction initiator in the performance test operation plan simulation test environment, To tested intermediate system Batch sending transaction request message, so that the tested intermediate system is given birth to according to the transaction request message Into corresponding message;
The test pressure machine is additionally operable to the transaction according to the performance test operation plan simulation transaction initiator Analogue batch receive the tested intermediate system according to the transaction request message generate come account message, according to described come account Message generation in response to it is described come account message return gear message and batch issue the tested intermediate system.
On the other hand the embodiment of the present invention additionally provides a kind of pressure testing system using above-mentioned intermediate system to centre The method that system carries out pressure test, the method for testing pressure includes:
The master control forcing press creates performance test operation plan, to control the test pressure machine to being tested intermediate system Carry out pressure test;
According to the performance test operation plan, the transaction initiator in the test pressure machine simulation test environment, to The tested intermediate system Batch sending transaction request message, so that the tested intermediate system is according to the transaction request message Generate corresponding message;
Counterparty side's batch of the test pressure machine simulation transaction initiator receives the tested intermediate system According to the transaction request message generate come account message, and according to it is described come account message generation in response to described come account message The gear that returns message and issue the tested intermediate system in batches.
The embodiment of the present invention solves the problems, such as that traditional test environment virtual method does not reach high throughput, solves Traditional test environment virtual method does not reach the problem for accurately, stably controlling handling capacity, solves traditional test environment empty Planization method can only transact business the problem of initiator and the analogue that can not transact business.By pressure testing system of the present invention And method, virtualization test environment can be by longitudinal dilatation (increasing the system resources such as the CPU of unit) of system or laterally expansion Hold (number of computers for increasing parallel processing) to improve handling capacity, realize the handling capacity of accurate stabilization.For tested middle system The common type of message of system, the disposal ability for virtualizing test environment can easily bring up to thousands of messages per second, Jin Erbang Help tested intermediate system tester is carried out effectively in the case where the peripheral system being associated with goal systems is not built Performance test, reduces the time cost for building environment, reduces the occupancy to actual physical situation, reduces because of peripheral environment The inaccurate possibility of the performance test results caused by physical resource is not enough.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the structural representation of the pressure testing system of embodiment of the present invention intermediate system;
Fig. 2 is the schematic flow sheet of the method for testing pressure of embodiment of the present invention intermediate system.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
The intermediate system being related in the present invention refers to that can receive the message that transaction initiator sends, again can be according to message The system that property sends message to counterparty side, the ebanking services system for for example being paid for inter-bank.Operation system is by disappearing Breath middleware (for example, IBM MQ, TongTech Tonglink) transmits payment transaction message (for example, Net silver credit service message, net Silver-colored debit transaction message), payment transaction message is responsible for the funds transfer between account and account.
Fig. 1 is the structural representation of the pressure testing system of embodiment of the present invention intermediate system.As shown in figure 1, the pressure Test system includes a master control forcing press and at least one test pressure machine being connected with the master control forcing press.The master control pressure Power machine is used to create performance test operation plan, to control each test pressure machine to carry out pressure test to tested intermediate system.This The performance test operation plan at place includes and test is grouped, and creates the transaction initiation that user's group is come in simulation test environment Side and counterparty side.
After performance test plan is created, test pressure machine is according to the performance test operation plan simulation test ring for creating Transaction initiator in border, to tested intermediate system Batch sending transaction request message, so that tested intermediate system is according to Transaction request message generates corresponding message.
Test pressure machine is additionally operable to according to the corresponding counterparty of the performance test operation plan simulation transaction initiator Side's batch receive tested intermediate system according to the transaction request message generate come account message, responded according to the generation of account message is carried out In it is described come account message return gear message and batch issues tested intermediate system, complete the pressure test to being tested intermediate system.
A kind of solution of the test environment virtualization of intermediate system batch service is the embodiment of the invention provides, is solved Test environment virtual method does not reach the problem of high throughput in the prior art so that only need simple system longitudinally to expand Exhibition is extending transversely and be aided with suitable configuration, you can the disposal ability for virtualizing test environment is reached into preset value higher, And virtual environment disposal ability is unstable under solving the problems, such as existing concurrent multi-process mode.
By pressure testing system provided in an embodiment of the present invention, the tester of intermediate system can be helped not take Effective performance test is quickly carried out in the case of building interconnected system (peripheral system).
Due to tested intermediate system be associated transaction initiate method, system, counterparty's method, system may synchronously open Hair, is still currently unavailable or unstable version, or the system being associated with tested intermediate system may be former due to safety Because not allowing to be accessed, or the system being associated with tested intermediate system may do pressure and survey without sufficient system resource Examination.Therefore, by pressure testing system provided in an embodiment of the present invention, the tester of intermediate system can be helped not take Effective performance test is quickly carried out in the case of building interconnected system (peripheral system).
In one embodiment, message is provided with above-mentioned test pressure machine and initiates unit, message initiates unit is used for mould Intend the transaction in test environment and initiate the tested intermediate system Batch sending transaction request message in direction.
After tested intermediate system receives a large amount of transaction request messages that transaction initiator sends, according to the transaction request report The requirement of text, is transmitted to corresponding counterparty side.
The embodiment of the present invention is additionally provided with message receiving unit on test pressure machine and message returns gear unit.The message Receiving unit be used to receiving tested intermediate system according to the transaction request message generate come account message, the message returns gear singly Unit issues tested intermediate system for keeping off message in response to accordingly carrying out returning for account message come the generation of account message according to described, with Pressure test is carried out to tested intermediate system.
Because not all of transaction request message is required for corresponding counterparty side to return gear, in one embodiment, on The message receiving unit stated receive that tested intermediate system sends carry out account message after, in addition it is also necessary to judge whether this carrys out account message Gear is needed back, if this carrys out account message and need not return gear, this is carried out into account packet loss;Then start message time if necessary to return gear Gear unit carries out back gear.
Normally, above-mentioned message returns gear unit includes template load-on module and message generation module.Template load-on module is used Corresponding message template is loaded in the template type of the message sent according to tested intermediate system;Message generation module is used to obtain It is described come account message in transmission every trade number, receive every trade number, and using the transmission every trade number replace the message template Reception every trade number, the transmission every trade number in the message template is replaced using the reception every trade number, it is described to generate correspondence That carrys out account message returns gear message, and is sent to tested intermediate system.
In one embodiment, above-mentioned message returns gear unit also includes a message ID generation module, and it is according to default Message ID create-rules generate globally unique message ID, and the message ID is added in corresponding time gear message, so that Each of embodiment of the present invention generation returns gear message has global uniqueness.
For example, first returning gear message class (such as in instantiation message template generation function (catptools.jar):IBPS102 Message), and call init_pfm () method to initialize described time gear message (such as:IBPS102 message template).Obtain always The transmission every trade number extracted in account message, every trade number, business hours, the information such as message ID are received, according to shown in following example, Calling correlation function carries out message key element replacement.
Example:SetWorkdate () method is called to replace the message template (such as:IBPS102 the business hours);Call Init_build () method is replaced and sends row, receives row and the message serial number of former message.
The present invention is only illustrated by taking a specific message as an example, is not intended to limitation of the present invention.Ultimately produce complete Unique message ID in the range of office, message ID herein refer to back the ID for keeping off message.It is unique in so-called global scope, be It is necessary to ensure that the message ID is not repeated when referring to that many forcing presses generate message ID simultaneously.Every forcing press is according to tester The message ID initial values and each iteration of its distribution need increased value to calculate the report that current iteration sends on this forcing press Literary No. ID.Therefore, tester needs to ensure to be that the message ID initial values that every forcing press is distributed are different, and each Difference before ID initial values needs the product of increased value and iterations not less than each iteration.
Normally, also need to carry out treatment of endorsing to the signature string for returning gear message after key element replacement is carried out, to prove The identity of transaction initiator and counterparty side, such as right using function Sign.getElctrncSgntr () in payment process Gear message is returned to be endorsed.Alternatively, if necessary to encrypted transmission, then also need to be encrypted to returning gear message, for example, make It is encrypted to returning gear message with function PmtsU.pmtsEu (), finally, can be using the method for JMS agreements (javax.jms.BytesMessage.writeBytes ()) will return gear message and send, that is, be sent to system in the middle of tested System.
Based on the pressure testing system identical inventive concept with intermediate system shown in Fig. 1, the embodiment of the present invention is also provided A kind of method for carrying out pressure test to intermediate system using pressure testing system shown in Fig. 1.Due to the method solve problem Principle it is similar to the pressure testing system of intermediate system shown in Fig. 1, therefore the method the implementation pressure that may refer in Fig. 1 The implementation of test system, repeats part and repeats no more.
In another embodiment, present invention also offers a kind of method for testing pressure, as shown in Fig. 2 the method is mainly wrapped Include following steps:
Step S1, master control forcing press create performance test operation plan, to control test pressure machine to being tested intermediate system Carry out pressure test.
Step S2, according to the performance test operation plan, the transaction initiator in test pressure machine simulation test environment, To tested intermediate system Batch sending transaction request message, tested intermediate system is set to be generated according to the transaction request message corresponding Message.
Step S3, counterparty side's batch of the test pressure machine simulation transaction initiator receive tested intermediate system According to the generation of transaction request message come account message, and gear report is returned come account message in response to this come the generation of account message according to described Text, and batch issues tested intermediate system.
In one embodiment, test pressure machine is receiving generating according to the transaction request message for tested intermediate system After carrying out account message, in addition it is also necessary to judge it is described come account message whether need back gear, and needs back keep off when according to described come account message Generate in response to it is described come account message return gear message, it is not necessary to return gear when account packet loss in future.
In one embodiment, after receiving and carrying out account message, the parsing of syntax and semantics is carried out to carrying out account message, obtains and The template type of account message and come transmission every trade number contained in account message, receive every trade number, according to the mould come account message Plate type loads corresponding message template.Then the reception every trade in the message template is replaced using the transmission every trade number Number, using the transmission every trade number received during every trade number replaces the message template, with generate correspondence it is described come account message return gear Message.
Normally, when gear message is generated back, it is necessary to generate globally unique report according to default message ID create-rules Literary ID, and the message ID is added to corresponding returning in gear message.
The embodiment of the present invention solves the problems, such as that traditional test environment virtual method does not reach high throughput, solves Traditional test environment virtual method does not reach the problem for accurately, stably controlling handling capacity, solves traditional test environment empty Planization method can only transact business the problem of initiator and the analogue that can not transact business.By pressure testing system of the present invention And method, virtualization test environment can be by longitudinal dilatation (increasing the system resources such as the CPU of unit) of system or laterally expansion Hold (number of computers for increasing parallel processing) to improve handling capacity, realize the handling capacity of accurate stabilization.For tested middle system The common type of message of system, the disposal ability for virtualizing test environment can easily bring up to thousands of messages per second, Jin Erbang Help tested intermediate system tester is carried out effectively in the case where the peripheral system being associated with goal systems is not built Performance test, reduces the time cost for building environment, reduces the occupancy to actual physical situation, reduces because of peripheral environment The inaccurate possibility of the performance test results caused by physical resource is not enough.
Virtual Environment Implementation Batch sending message, batch return gear message, and are precisely controlled the handling capacity for sending and returning gear, are Performance test operation plan is created by main control computer, controls what one or more forcing press was realized jointly by main control computer.
To be illustrated more clearly that the pressure testing system and method for intermediate system provided in an embodiment of the present invention, the present invention is real Apply example and use PC ends performance testing tool (such as:RPT, LoadRunner, Jmeter) it is virtual environment infrastructure, build and pay It is used for the peripheral environment of batch service test in industry computer system.
Using third party's performance testing tool as virtualized environment infrastructure, by many forcing press parallel runnings Virtual environment disposal ability (handling capacity) of tripartite's performance testing tool to provide batch, stablize.Master control forcing press can be using peace PC equipped with Windows operating system as physical carrier main body, it is necessary to set on master control forcing press during specific implementation The control end software of tripartite's performance testing tool is used as main control server.Test pressure machine is also called proxy machine, can be using installation There are the Power machines of the PC of Windows operating system or the PC of (SuSE) Linux OS or AIX operating system as its physics Arrying main body, is provided with the agent side software of the testing tool on test pressure machine, and the main control server is used for concurrently Control agent end software.There can be one or more test pressure machine in the test environment to payment system.
Message is initiated into program, message and returns gear program insertion third party's performance testing tool, payment system simulated respectively and is surveyed Transaction initiator and its corresponding counterparty side in test ring border.Main control server by third party's performance testing tool is concurrent Message in the middle of scheduling proxy server initiates program, and mock trading initiator initiates to tested intermediate system in batches, stably Message.Gear program, mould are returned by the message in the middle of the main control server concurrent scheduling proxy server of third party's performance testing tool Intend counterparty side (interconnected system) batch, stably return the tested intermediate system of gear carry out account message.The virtualized environment return Gear ability can be obtained by the one-of-a-kind system resource for increasing virtualized environment or the number of servers for increasing virtualized environment Lifting.
1. performance test operation plan is created on master control forcing press.By taking third party's performance testing tool RPT as an example, open RPT softwares on master control forcing press, and " scheduling " catalogue is found under " test omniselector " window, newly-built one under the catalogue " performance scheduling ".
Third party's performance testing tool has the ability of handling capacity of being precisely controlled, and user preset handling capacity is pre- actually gulps down for its Deviation between the amount of telling is very small;And also with ability extending transversely, i.e., by increasing the quantity of proxy machine, can obtain approximate Linear handling capacity increases.
2. user's group is added.Test is grouped and newly-built user's group, so as to simulate different type user.One of them User's group represents transaction initiator, and another user's group represents counterparty side i.e. message and goes back to gear side.
Virtual User number in each user's group is set, for example, setting the use that 100 Virtual User represent transaction initiator Family group, represents that 100 transaction initiators of simulation are common and sends transaction request report to tested payment system (being tested intermediate system) Text.100 Virtual User are set and represent the user's group that message goes back to gear side, represent that 100 counterparty sides of simulation generate back gear report The past account message that text and batch are returned needed for keeping off the tested payment system.
3. the run location of user's group is specified.Specify be arranged at message in third party's performance testing tool initiate program and Message returns the test pressure machine of gear program operation, may specify many forcing presses to increase time gear ability of virtual environment.
4. added in user's group kind and tested.Test is that a user carries out a process for case execution, i.e., described message Initiation program or the message return gear program by adding different tests in different user groups, so as to simulate the outer collarette of difference The operation in border, to realize virtualized environment.One of user's group represents transaction initiator, is that its described message of configuration initiates journey Sequence;Another user's group represents counterparty side i.e. message and goes back to gear side, is that its described message of configuration returns gear program.If a test Forcing press should mock trading initiator, again mock trading analogue, then need to be set simultaneously on the test pressure machine Message initiates program and message returns gear program.
5. test iterative parameter is set, that is, time interval, the iterations per class testing are set, to control every class testing Perform duration and handling capacity, i.e. unit interval transmission or return the quantity of gear message.
6. after performance test operation plan is set, in addition it is also necessary to which a data pool is set.During test is performed, for every Queue that individual user's group is used, passage, the type of message for receiving, type of message etc. for needing back gear may be not quite similar, because This, it is necessary to by message return gear program in the above be set to parameter, perform test when replace with the middle of data pool specify Value.Parameter value newdata pond or importing data with existing pond according to needed for this test;Read data pool and tested to this Required parameter assignment.
7. operation plan is performed to start the virtualized environment.Start virtualized environment and (start the master control forcing press On operation plan) after, the virtualized environment can be to tested payment system Batch sending test packet, and batch receives tested branch What the system of paying sent comes account message, and the past account message that batch is returned needed for gear is tested payment system.
Using the tested payment system of third party's performance testing tool simulation being arranged on many forcing presses of parallel running Counterparty side (i.e. message recipient), batch receive tested payment system according to transaction request message generate come account report Text, the specific implementation step for receiving message is as follows:The message being arranged in third party's performance testing tool receives program and uses JMS Mode receives message from the downlink business queue of tested payment system.Receiver function in message reception program is using the resistance for circulating Plug mode, the block type mode can be constantly in blocked state when queue does not receive message.Receiver function is one " atomic operation ", need to ensure the integrality that message is received, in the case of no message time-out or message-oriented middleware exception, message Reception program carries out calling for receiver function and will return to a complete message.
Tester returns gear list by setting message in message reception program, and realization carrys out the batch of account message to specifying Return gear.Message receive program receive carry out account message after judge the type for carrying out account message whether need back gear treatment, if desired, Then enter message and return the treatment of gear program;If need not, message is directly abandoned, message receives program and is carried out into subsequent cycle The reception processing of next message.Wherein, message reception procedure subject is as follows:
Then, paid using the third party's performance testing tool simulation being arranged on many forcing presses of parallel running is tested Counterparty side (i.e. message recipient) Batch sending of system returns gear message to the payment system.Using being arranged on separate unit pressure Third party's performance testing tool on power machine carries out message and returns gear.
The message being arranged in third party's performance testing tool return gear program receive message receive program obtain carry out account report Wen Hou, to it is described come account message carry out the parsing of syntax and semantics, parse it is described come account message XML message form, and use String.subString (idx1, idx2) method, extracts it and sends every trade number, reception every trade according to the position specified in message Number wait key element.Specified type is generated by the message template generation function in message time gear program returns gear message mould Plate, is carried out value and is replaced using the transmission every trade number and reception every trade number extract in account message to the relevant factor in template Change, the message returned in gear program using message function pair of endorsing is returned gear message and carries out treatment of endorsing, if desired, can be with Message encryption function pair time gear message in gear program is returned using the message to be encrypted, described will finally return and keep off message hair Deliver to the payment system.
The embodiment of the present invention has the ability for being precisely controlled handling capacity, and the situation of bottleneck is not constituted in the resource of physical environment Under, system goodput is consistent with user preset handling capacity;Possess ability extending transversely, i.e., by increasing proxy machine quantity, Handling capacity can obtain the growth of approximately linear.The embodiment of the present invention uses third party's performance testing tool, due to third party's performance Testing tool typically is provided with the function interface of User Defined code, can add User Defined operation, realizes personalized survey Examination.Also, the main control server of third party's performance testing tool can be soft with the agent side on many test pressure machines of con current control Part, so as to realize high-volume, accurately stabilization, message time gear.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.And, the present invention can be used and wherein include the computer of computer usable program code at one or more The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) is produced The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram are described.It should be understood that every first-class during flow chart and/or block diagram can be realized by computer program instructions The combination of flow and/or square frame in journey and/or square frame and flow chart and/or block diagram.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices The device of the function of being specified in present one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Apply specific embodiment in the present invention to be set forth principle of the invention and implementation method, above example Explanation be only intended to help and understand the method for the present invention and its core concept;Simultaneously for those of ordinary skill in the art, According to thought of the invention, will change in specific embodiments and applications, in sum, in this specification Appearance should not be construed as limiting the invention.

Claims (10)

1. a kind of pressure testing system of intermediate system, it is characterised in that the pressure testing system includes:One master control forcing press And at least one test pressure machine being connected with the master control forcing press;
The master control forcing press is used to create performance test operation plan, to control the test pressure machine to being tested intermediate system Carry out pressure test;
The test pressure machine is used for the transaction initiator in the performance test operation plan simulation test environment, to quilt Intermediate system Batch sending transaction request message is surveyed, so that the tested intermediate system is right according to transaction request message generation The message answered;
The test pressure machine is additionally operable to the counterparty according to the performance test operation plan simulation transaction initiator Side receive in batches the tested intermediate system according to the transaction request message generate come account message, according to described come account message Generate in response to it is described come account message return gear message and batch issue the tested intermediate system.
2. the pressure testing system of intermediate system according to claim 1, it is characterised in that set on the test pressure machine It is equipped with message and initiates unit, the tested intermediate system in direction is initiated in the transaction that the message is initiated unit and is used in simulation test environment Batch sending transaction request message.
3. the pressure testing system of intermediate system according to claim 1, it is characterised in that set on the test pressure machine It is equipped with message receiving unit and message returns gear unit, the message receiving unit is used to receive the tested intermediate system according to institute That states the generation of transaction request message carrys out account message, and the message returns gear unit to be used to be generated in response to institute come account message according to described State and carry out returning gear message and issuing the tested intermediate system for account message.
4. the pressure testing system of intermediate system according to claim 3, it is characterised in that the message receiving unit is also For judge it is described come account message whether need back gear, when gear need not be returned by it is described come account packet loss, is needing back keep off Message described in Shi Qidong returns gear unit.
5. the pressure testing system of intermediate system according to claim 3, it is characterised in that the message returns gear unit bag Include template load-on module and message generation module;Wherein,
The template load-on module is used to load corresponding message template according to the template type come account message;
Message generation module be used for obtain it is described come account message in transmission every trade number, receive every trade number, and utilize the transmission Every trade number replaces the reception every trade number in the message template, and the hair in the message template is replaced using the reception every trade number See off line number, with generate correspondence it is described come account message return gear message.
6. the pressure testing system of intermediate system according to claim 5, it is characterised in that the message returns gear unit also Including message ID generation modules, for generating globally unique message ID according to default message ID create-rules, and by the report Literary ID is added to corresponding returning in gear message.
7. a kind of pressure testing system of intermediate system using described in claim 1 carries out the side of pressure test to intermediate system Method, it is characterised in that the method for testing pressure includes:
The master control forcing press creates performance test operation plan, to control the test pressure machine to carry out tested intermediate system Pressure test;
According to the performance test operation plan, the transaction initiator in the test pressure machine simulation test environment, to described Tested intermediate system Batch sending transaction request message, so that the tested intermediate system is generated according to the transaction request message Corresponding message;
Counterparty side's batch of the test pressure machine simulation transaction initiator receives the root of the tested intermediate system Carry out account message according to what the transaction request message was generated, and generated in response to the returning come account message come account message according to described Gear message simultaneously issues the tested intermediate system in batches.
8. method for testing pressure according to claim 7, it is characterised in that receiving the basis of the tested intermediate system After what the transaction request message was generated carrys out account message, the method for testing pressure also includes:
Judge it is described come account message whether need back gear;
When gear need not be returned by it is described come account packet loss, need back gear when, according to it is described come account message generation in response to It is described come account message return gear message.
9. method for testing pressure according to claim 7, it is characterised in that described to be responded according to described generation come account message In it is described come account message return gear message, including:
Corresponding message template is loaded according to the template type come account message;
Obtain it is described come account message in transmission every trade number, receive every trade number, and replace the report using the transmission every trade number Reception every trade number in literary template, the transmission every trade number in the message template is replaced using the reception every trade number, to generate Correspondence it is described come account message return gear message.
10. method for testing pressure according to claim 9, it is characterised in that generation correspondence it is described come account message return During gear message, the method for testing pressure also includes:
Globally unique message ID is generated according to default message ID create-rules, and the message ID is added to corresponding returning and kept off In message.
CN201611088781.XA 2016-12-01 2016-12-01 Pressure testing system and method for intermediate system Active CN106776300B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611088781.XA CN106776300B (en) 2016-12-01 2016-12-01 Pressure testing system and method for intermediate system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611088781.XA CN106776300B (en) 2016-12-01 2016-12-01 Pressure testing system and method for intermediate system

Publications (2)

Publication Number Publication Date
CN106776300A true CN106776300A (en) 2017-05-31
CN106776300B CN106776300B (en) 2020-12-11

Family

ID=58915293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611088781.XA Active CN106776300B (en) 2016-12-01 2016-12-01 Pressure testing system and method for intermediate system

Country Status (1)

Country Link
CN (1) CN106776300B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107302476A (en) * 2017-08-04 2017-10-27 上海爱数信息技术股份有限公司 A kind of automated testing method and system for testing asynchronous interactive system
CN108334442A (en) * 2017-01-20 2018-07-27 武汉斗鱼网络科技有限公司 A kind of test method and device of simulation search main broadcaster
CN109284227A (en) * 2018-09-06 2019-01-29 政采云有限公司 A kind of automation method for testing pressure and device calculate equipment and storage medium
CN110213120A (en) * 2019-04-24 2019-09-06 深圳智链物联科技有限公司 A kind of the pressure survey method, apparatus and terminal device of message-oriented middleware
CN110581787A (en) * 2019-09-11 2019-12-17 成都安恒信息技术有限公司 Application layer data quantity multiplication method applied to performance test
CN110618922A (en) * 2019-08-15 2019-12-27 平安普惠企业管理有限公司 Performance test method and related equipment
CN111190785A (en) * 2019-12-24 2020-05-22 中国航空工业集团公司西安飞机设计研究所 Automatic test method for modular electromechanical integrated management system
CN111858200A (en) * 2020-06-22 2020-10-30 银清科技有限公司 Throughput control method and device in system test and electronic equipment
CN113419972A (en) * 2021-08-25 2021-09-21 成方金融科技有限公司 Throughput control method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1975694A (en) * 2006-12-22 2007-06-06 中国建设银行股份有限公司 Bank main machine pressure testing method and tester
CN1996374A (en) * 2006-12-30 2007-07-11 中国建设银行股份有限公司 Method, device, and system for testing advanced apparatus
CN101089903A (en) * 2006-06-14 2007-12-19 中国银联股份有限公司 Bank card transaction test method and system
CN101409655A (en) * 2008-11-12 2009-04-15 中兴通讯股份有限公司 Message-driven automation test system and implementing method
CN104008054A (en) * 2014-05-28 2014-08-27 中国工商银行股份有限公司 Device and method for testing software performance
CN105207844A (en) * 2015-09-07 2015-12-30 浪潮(北京)电子信息产业有限公司 Method for testing server stability and system thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089903A (en) * 2006-06-14 2007-12-19 中国银联股份有限公司 Bank card transaction test method and system
CN1975694A (en) * 2006-12-22 2007-06-06 中国建设银行股份有限公司 Bank main machine pressure testing method and tester
CN1996374A (en) * 2006-12-30 2007-07-11 中国建设银行股份有限公司 Method, device, and system for testing advanced apparatus
CN101409655A (en) * 2008-11-12 2009-04-15 中兴通讯股份有限公司 Message-driven automation test system and implementing method
CN104008054A (en) * 2014-05-28 2014-08-27 中国工商银行股份有限公司 Device and method for testing software performance
CN105207844A (en) * 2015-09-07 2015-12-30 浪潮(北京)电子信息产业有限公司 Method for testing server stability and system thereof

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108334442B (en) * 2017-01-20 2021-05-28 武汉斗鱼网络科技有限公司 Test method and device for simulating search anchor
CN108334442A (en) * 2017-01-20 2018-07-27 武汉斗鱼网络科技有限公司 A kind of test method and device of simulation search main broadcaster
CN107302476A (en) * 2017-08-04 2017-10-27 上海爱数信息技术股份有限公司 A kind of automated testing method and system for testing asynchronous interactive system
CN107302476B (en) * 2017-08-04 2021-07-09 上海爱数信息技术股份有限公司 Automatic testing method and system for testing asynchronous interactive system
CN109284227A (en) * 2018-09-06 2019-01-29 政采云有限公司 A kind of automation method for testing pressure and device calculate equipment and storage medium
CN110213120A (en) * 2019-04-24 2019-09-06 深圳智链物联科技有限公司 A kind of the pressure survey method, apparatus and terminal device of message-oriented middleware
CN110618922A (en) * 2019-08-15 2019-12-27 平安普惠企业管理有限公司 Performance test method and related equipment
CN110581787B (en) * 2019-09-11 2020-12-22 成都安恒信息技术有限公司 Application layer data quantity multiplication method applied to performance test
CN110581787A (en) * 2019-09-11 2019-12-17 成都安恒信息技术有限公司 Application layer data quantity multiplication method applied to performance test
CN111190785A (en) * 2019-12-24 2020-05-22 中国航空工业集团公司西安飞机设计研究所 Automatic test method for modular electromechanical integrated management system
CN111190785B (en) * 2019-12-24 2023-08-04 中国航空工业集团公司西安飞机设计研究所 Automatic test method for modularized electromechanical integrated management system
CN111858200A (en) * 2020-06-22 2020-10-30 银清科技有限公司 Throughput control method and device in system test and electronic equipment
CN111858200B (en) * 2020-06-22 2023-10-20 银清科技有限公司 Throughput control method and device in system test and electronic equipment
CN113419972A (en) * 2021-08-25 2021-09-21 成方金融科技有限公司 Throughput control method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN106776300B (en) 2020-12-11

Similar Documents

Publication Publication Date Title
CN106776300A (en) The pressure testing system and method for a kind of intermediate system
JP7057903B2 (en) How and systems to schedule computer processes or tasks in a distributed system
Pena et al. A complete and efficient CUDA-sharing solution for HPC clusters
Di et al. GloudSim: Google trace based cloud simulator with virtual machines
CN105872083A (en) Method and system supporting server access by different types of clients as well as server
Lin et al. ABS-YARN: A formal framework for modeling Hadoop YARN clusters
CN107958010A (en) Method and system for online data migration
CN111930365A (en) Qt-based application program rapid development framework, development method and operation method
CN102117294A (en) Information system based on Ajax (Asynchronous JavaScript and XML) technology
CN109656646A (en) A kind of long- distance tabletop control method, apparatus, equipment and virtualization chip
KR20190028210A (en) Cloud service method and system for deployment of artificial intelligence application using container
Xin et al. An implementation of GPU accelerated MapReduce: Using Hadoop with OpenCL for data-and compute-intensive jobs
Reano et al. Improving the user experience of the rCUDA remote GPU virtualization framework
CN115309387A (en) Method for generating API (application program interface) based on dynamic SQL (structured query language) configuration
CN103562864A (en) Executing a start operator message command
CN103562877B (en) Processing operator message commands
CN103597462A (en) Transmitting operator message commands to a coupling facility
Boudeville et al. RELEASE: A High-Level Paradigm for Reliable Large-Scale Server Software: (Project Paper)
Tomov et al. Design and Implementation for FFT-ECP on\\Distributed Accelerated Systems}}
CN109408092A (en) Method and device, storage medium and the electronic equipment of front end version publication
US20230118303A1 (en) Asynchronous distributed data flow for machine learning workloads
Liu et al. BSPCloud: A hybrid distributed-memory and shared-memory programming model
Ulmer et al. Extending composable data services into smartnics
Carracciuolo et al. Benchmarking a high performance computing heterogeneous cluster
Saračević et al. Comparative analysis of AMF, JSON and XML technologies for data transfer between the server and the client

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100195 1st Floor 112-113, Building 3, South District, Beiwu Innovation Park, 23 Beiwucun Road, Haidian District, Beijing

Applicant after: Yinqing Science and Technology (Beijing) Co., Ltd.

Address before: Room 510, 5th floor, C Block, Jiahao International Center, 116 Zizhuyuan Road, Haidian District, Beijing, 100097

Applicant before: Beijing gallop Information Engineering Co., Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100195 1st Floor 112-113, Building 3, South District, Beiwu Innovation Park, 23 Beiwucun Road, Haidian District, Beijing

Applicant after: Yinqing Technology Co., Ltd

Address before: 100195 1st Floor 112-113, Building 3, South District, Beiwu Innovation Park, 23 Beiwucun Road, Haidian District, Beijing

Applicant before: Yinqing Science and Technology (Beijing) Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant