CN106506283A - Bank and the service test method and device of enterprise's docking system - Google Patents
Bank and the service test method and device of enterprise's docking system Download PDFInfo
- Publication number
- CN106506283A CN106506283A CN201611124573.0A CN201611124573A CN106506283A CN 106506283 A CN106506283 A CN 106506283A CN 201611124573 A CN201611124573 A CN 201611124573A CN 106506283 A CN106506283 A CN 106506283A
- Authority
- CN
- China
- Prior art keywords
- message
- adapter
- net silver
- bank
- response message
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses the operational trials device of the service test method and device, the service test method of ERP system and device and bank and enterprise's docking system of Net silver adapter, wherein, the service test method of Net silver adapter includes:The working method of simulation ERP system, sends service request message to Net silver adapter;The working method of simulated bank's front end processor, receives the request message after conversion, and the bank's response message generated after carrying out correctness verification returns to Net silver adapter;Response message after the conversion that Net silver adapter is returned is contrasted with the standard Net silver adapter message in message store, carries out correctness verification, completes to test thread.By technical scheme, can bank pre-machine not in place in the case of carry out the test of bank's docking system, and reduce difficulty of test, it is achieved that automatization, mass test.
Description
Technical field
The present invention relates to bank's docking system technical field, in particular to a kind of operational trials of Net silver adapter
Method, a kind of operational trials device of Net silver adapter, a kind of service test method of ERP system, a kind of business of ERP system
The operational trials device of test device, a kind of bank and enterprise's docking system.
Background technology
As economic develops rapidly, the operation of bank and enterprise, how capital works are constantly brought forth new ideas, but due to enterprise
The complexity and uniqueness of ERP operation systems, is also specifically designed for company ERP system and Net silver adapter without a on market
Carry out the device of operational trials.In prior art, the operational trials scheme for the direct-connected module of ERP banks of enterprise is by modification
The mode of code is returned to obtain to respond, and this scheme exists and can only be operated by developer, and test function is complicated, lack of standardization.
Be unfavorable for product maintenance the shortcomings of;And the testing scheme for being directed to Net silver adapter is the response message for writing test in advance, deposit
Corresponding catalogue is placed on, and the mode of operation for changing Net silver adapter is test pattern, industry has been sent out in interface testing node middle mold
Business request, checks test process by checking the daily record of Net silver adapter, and the defect that this scheme is present is it should be understood that Net silver
The working mechanism of adapter, and learn the message switching strategy of different bank distinct interface, learning cost is high, and can only be independent
Tested, it is impossible to reach the testing requirement of the automatization of batch.
Therefore, how to design a kind of difficulty of test low, and can automatization, the method for testing of batch testing become and urgently solve
Technical problem certainly.
Content of the invention
It is contemplated that at least solving one of technical problem present in above-mentioned prior art or correlation technique.
For this purpose, it is an object of the present invention to proposing a kind of service test method of Net silver adapter.
Further object is that correspondingly providing a kind of operational trials device of Net silver adapter.
Another object of the present invention is to propose a kind of service test method of ERP system.
Another object of the present invention is the operational trials device for correspondingly providing a kind of ERP system.
It is yet a further object of the present invention to provide the operational trials device of a kind of bank and enterprise's docking system.
For achieving the above object, a kind of embodiment according to the first aspect of the invention, it is proposed that industry of Net silver adapter
Business method of testing, including:The working method of simulation ERP system, sends service request message, wherein, Net silver to Net silver adapter
Adapter sends the request message after conversion according to service request message;The working method of simulated bank's front end processor, receives conversion
Request message afterwards, the standard message of the request message in message store after coupling conversion carry out correctness verification, and in message
Coupling bank's response message corresponding with the standard message of the request message after conversion in storehouse;Life after correctness verification will be carried out
Into bank's response message return to Net silver adapter, wherein, Net silver adapter carries out message conversion to bank's response message, and
Return the response message after conversion;Response message after by conversion is contrasted with the standard Net silver adapter message in message store, is entered
Row correctness is verified, and completes to test thread.
The service test method of the Net silver adapter of embodiment according to a first aspect of the present invention, Net silver adapter is enterprise
ERP system and the communication bridge of bank pre-machine, can change to the message for receiving, by the message of operation system Plays
Carry out being converted into the discernible communication message of each bank.The present invention is by the operational trials work of Net silver adapter by simulation
Two aspects of ERP system and bank pre-machine are carried out, and one side simulated enterprise ERP carries out initiating business request and receive Net silver fitting
The response of orchestration, another aspect simulated bank receive the request of Net silver adapter and provide response, are able to form a communication
Closed-loop path.This technical scheme is applicable not only to the test that ERP system docks banking system, is of course also apply to other types of
Financial software and the test job of docking of bank, need only to the standard report that collects in message node and message store is received every time
Text is compared, and just may determine that the correctness of the message that device is received.So as to reach the effect of automatic test.
In the above embodiment, it is preferable that also including:The standard industry that ERP system is communicated is collected with Net silver adapter quality inspection
Business message and Net silver adapter and the communication message of multiple bank pre-machines, generate message store, in xml format message store are entered
Row storage, so as to follow-up maintenance and expansion.
In this embodiment, the communication message of corresponding service is collected before test job, and standard is mated by message store
The mode of message avoids the high-tech threshold that " modification code " test and " daily record checked by modification Net silver adapter " test bring,
Adopt JAVA technology simultaneously, friendly operation interface is provided by Swing, support to carry out message interpolation, modification etc. by interface
Operation, whole message store are stored according to certain naming rule using XML file, so also allow for departing from interface safeguard by hand and
Expand.
In the above embodiment, it is preferable that also including:Multiple test threads are executed by way of thread pool, so as to
Batch testing tasks in parallel is executed.
In this embodiment, support batch-automated test to be carried out for Net silver interface by multithreading, overcome
Conventional test methodologies technical threshold height is unable to multitask while the defect of test.This technical scheme is also applied for of the invention another simultaneously
The service test method of the ERP system on the one hand proposing, makes the operational trials of ERP system also realize at multi-threaded parallel
Reason.
A kind of embodiment according to a second aspect of the present invention, it is also proposed that service test method of ERP system, including:Connect
Receive the service request message of ERP system;Parsing service request message, mates sound corresponding with service request message in message store
Answer message;After effectiveness process is done to response message using Substitution Rules, generate and return response message;Response message will be returned
Return to the company ERP system.
The service test method of the ERP system of embodiment according to a second aspect of the present invention, the business for receiving ERP system please
Message is sought, mates response message corresponding with service request message in message store;Response message is done using Substitution Rules
After effect property is processed, generate and return response message;Response message will be returned and return to the company ERP system.On the whole, pass through
Servlet is relied on div+css technology to provide friendly operation interface, provides day by log4j responding the request of enterprise ERP
Will is monitored, and Substitution Rules strategy and configurationization are operated and cause test job to become efficient, convenient and be beneficial to expansion.
In the above embodiment, it is preferable that also including:The standard industry that ERP system is communicated is collected with Net silver adapter quality inspection
Business message and Net silver adapter and the communication message of multiple bank pre-machines, generate message store, in xml format message store are entered
Row storage, so as to follow-up maintenance and expansion.
In this embodiment, the communication message of corresponding service is collected before test job, and standard is mated by message store
The mode of message avoids the high-tech threshold that " modification code " test and " daily record checked by modification Net silver adapter " test bring,
Adopt JAVA technology simultaneously, friendly operation interface is provided by Swing, support to be replaced rules modification, report by interface
The operations such as text adds, message modification, whole message store are stored according to certain naming rule using XML file, are so also allowed for
Depart from interface to safeguard by hand and expand.
In the above embodiment, it is preferable that after doing effectiveness process to response message using Substitution Rules, generating and returning
Response message, specifically includes:The identification information of service request message is extracted, and corresponding in response message is replaced using identification information
Part, generates and returns response message.
In this embodiment, because the data being related in real trade message are multifarious at random, and collect in advance
The data being related in message are single, so actual multiformity cannot be tackled, effectiveness process is to ensure that simulation
Message meets operational trials scene.For example, when doing inquiry into balance, the remaining sum response message that collects in advance is account A, but test
When account to be inquired about be account B, if the remaining sum response message that simply simple return is collected in advance can not be provided effectively
Operational trials scene, by Substitution Rules, accounts information to be checked can be extracted while analysis request message, obtained
Accounts information is replaced when getting response message, it is ensured that the concordance of information.
A kind of embodiment according to a third aspect of the present invention, it is also proposed that operational trials device of Net silver adapter, including:
Simulation ERP units, simulate the working method of ERP system, send service request message to Net silver adapter, and wherein, Net silver is adapted to
Device sends the request message after conversion according to service request message;Simulation front end processor unit, the work side of simulated bank's front end processor
Formula, receives the request message after conversion, and the standard message of the request message in message store after coupling conversion carries out correctness school
Test, and coupling bank's response message corresponding with the standard message of the request message after conversion in message store;First verification is single
Unit, the bank's response message generated after carrying out correctness verification return to Net silver adapter, and wherein, Net silver adapter is to silver
Row response message carries out message conversion, and returns the response message after conversion;Second verification unit, by conversion after response message
Contrast with the standard Net silver adapter message in message store, carry out correctness verification, complete to test thread.
The operational trials device of the Net silver adapter of embodiment according to a third aspect of the present invention, Net silver adapter is enterprise
ERP system and the communication bridge of bank pre-machine, can change to the message for receiving, by the message of operation system Plays
Carry out being converted into the discernible communication message of each bank.The present invention is by the operational trials work of Net silver adapter by simulation
Two aspects of ERP system and bank pre-machine are carried out, and one side simulated enterprise ERP carries out initiating business request and receive Net silver fitting
The response of orchestration, another aspect simulated bank receive the request of Net silver adapter and provide response, are able to form a communication
Closed-loop path.This technical scheme is applicable not only to the test that ERP system docks banking system, is of course also apply to other types of
Financial software and the test job of docking of bank, need only to the standard report that collects in message node and message store is received every time
Text is compared, and just may determine that the correctness of the message that device is received.So as to reach the effect of automatic test.
In the above embodiment, it is preferable that also including:Message library unit, is collected ERP system and is led to the quality inspection of Net silver adapter
The benchmark service message and Net silver adapter of letter and the communication message of multiple bank pre-machines, generate message store, in xml format
Message store is stored, so as to follow-up maintenance and expansion.
In this embodiment, the communication message of corresponding service is collected before test job, and standard is mated by message store
The mode of message avoids the high-tech threshold that " modification code " test and " daily record checked by modification Net silver adapter " test bring,
Adopt JAVA technology simultaneously, friendly operation interface is provided by Swing, support to carry out message interpolation, modification etc. by interface
Operation, whole message store are stored according to certain naming rule using XML file, so also allow for departing from interface safeguard by hand and
Expand.
In the above embodiment, it is preferable that also including:Multiple thread units, execute multiple surveys by way of thread pool
Examination thread, so that batch testing tasks in parallel is executed.
In this embodiment, multiple test threads, and the side by concurrent enumerator are executed by way of thread pool
Counting of the formula to test assignment, reaches the effect of batch testing tasks in parallel execution.Overcoming conventional test methodologies can not many
The defect of business test simultaneously.This technical scheme is also applied for the operational trials of the ERP system of another aspect of the present invention proposition simultaneously
Method, makes the operational trials of ERP system also realize multi-threading parallel process.
A kind of embodiment according to a fourth aspect of the present invention, it is also proposed that the operational trials device of ERP system, including:Connect
Unit is received, the service request message of ERP system is received;Matching unit, parses service request message, coupling and industry in message store
The corresponding response message of business request message;Replacement unit, after doing effectiveness process to response message using Substitution Rules, generates
Return response message;Returning unit, will return response message and returns to company ERP system.
The operational trials device of the ERP system of embodiment according to a fourth aspect of the present invention, receives ERP by Servlet
The service request message of system, mates response message corresponding with service request message in message store;Using Substitution Rules pair
After response message does effectiveness process, generate and return response message;Response message will be returned and return to the enterprise ERP systems
System.On the whole, the request of enterprise ERP is responded by Servlet, is relied on div+css technology to provide friendly operation interface, is led to
Cross log4j and daily record monitoring is provided, whole device is run independently of enterprise ERP, Substitution Rules strategy and configurationization operate and cause to survey
Trial work make become efficient, convenient and beneficial to expand.The configuration of Substitution Rules of the device comprising a set of acquiescence itself and the silver of standard
Direct-connected message configuration is looked forward to, if just need not configure without special testing requirement, directly use device operational trials can be carried out.
In the above embodiment, it is preferable that also including:Message library unit, is collected ERP system and is led to the quality inspection of Net silver adapter
The benchmark service message and Net silver adapter of letter and the communication message of multiple bank pre-machines, generate message store, in xml format
Message store is stored, so as to follow-up maintenance and expansion.
In this embodiment, the communication message of corresponding service is collected before test job, and standard is mated by message store
The mode of message avoids the high-tech threshold that " modification code " test and " daily record checked by modification Net silver adapter " test bring,
Adopt JAVA technology simultaneously, friendly operation interface is provided by Swing, support to be replaced rules modification, report by interface
The operations such as text adds, message modification, whole message store are stored according to certain naming rule using XML file, are so also allowed for
Depart from interface to safeguard by hand and expand.
In the above embodiment, it is preferable that replacement unit, specifically for:Extract the identification information of service request message, profit
The corresponding part in response message is replaced with identification information, is generated and is returned response message.
In this embodiment, because the data being related in real trade message are multifarious at random, and collect in advance
The data being related in message are single, so actual multiformity cannot be tackled, effectiveness process is to ensure that simulation
Message meets operational trials scene.For example, when doing inquiry into balance, the remaining sum response message that collects in advance is account A, but test
When account to be inquired about be account B, if the remaining sum response message that simply simple return is collected in advance can not be provided effectively
Operational trials scene, by Substitution Rules, accounts information to be checked can be extracted while analysis request message, obtained
Accounts information is replaced when getting response message, it is ensured that the concordance of information.
A kind of embodiment according to a fifth aspect of the present invention, it is also proposed that the operational trials dress of bank and enterprise's docking system
Put, including:Operational trials device such as the Net silver adapter that above-mentioned technical scheme is provided;And/or such as the offer of above-mentioned technical scheme
ERP system operational trials device.
The operational trials device of the bank of embodiment according to a fifth aspect of the present invention and enterprise's docking system, being capable of basis
The operational trials device of the Net silver adapter that for example above-mentioned technical scheme of demand integration is provided and/or the operational trials dress of ERP system
Put.The test and/or the test of Net silver adapter to ERP interfaces is realized, the complicated complexity of test job, specification can be reduced
Testing process, and the easily test mode such as multitask test, automatic test is provided, it is also possible to do not arrive in bank pre-machine
Solve in the case of position ERP system and Net silver adapter cannot operational trials a difficult problem.
The technical scheme provided by the present invention can reduce the test complexity of the direct-connected system of bank, reduce test difficult
Degree, while automatization's batch multitask test can be completed, is conducive to product maintenance, normative testing flow process.
The additional aspect and advantage of the present invention will be set forth in part in the description, and partly will become from the following description
Obtain substantially, or recognized by the practice of the present invention.
Description of the drawings
The flow chart that Fig. 1 shows the service test method of the Net silver adapter of embodiment according to a first aspect of the present invention.
The flow chart that Fig. 2 shows the service test method of the ERP system of embodiment according to a second aspect of the present invention.
Fig. 3 shows the block diagram of the operational trials device of the Net silver adapter of embodiment according to a third aspect of the present invention.
Fig. 4 shows the block diagram of the operational trials device of the ERP system of embodiment according to a fourth aspect of the present invention.
Fig. 5 shows the operational trials device of the bank of embodiment and enterprise's docking system according to a fifth aspect of the present invention
Block diagram.
Fig. 6 shows test device constituent schematic diagram according to embodiments of the present invention.
Fig. 7 shows Net silver adaptor interface automatic test logic chart according to embodiments of the present invention.
Fig. 8 shows company ERP system test logic chart according to embodiments of the present invention.
Fig. 9 shows Substitution Rules treatment mechanism block diagram according to embodiments of the present invention.
Specific embodiment
In order to be more clearly understood that the above objects, features and advantages of the present invention, below in conjunction with the accompanying drawings and concrete real
Apply mode to be further described in detail the present invention.It should be noted that in the case where not conflicting, the enforcement of the application
Feature in example and embodiment can be mutually combined.
A lot of details are elaborated in the following description in order to fully understand the present invention, but, the present invention may be used also
Implemented with being different from other modes described here using other, therefore, protection scope of the present invention is not by described below
Specific embodiment restriction.
The flow chart that Fig. 1 shows the service test method of the Net silver adapter of embodiment according to a first aspect of the present invention.
As shown in figure 1, the embodiment of first aspect present invention proposes a kind of service test method of Net silver adapter, bag
Include:Step 102, simulates the working method of ERP system, sends service request message to Net silver adapter, wherein, Net silver adapter
Request message after conversion is sent according to service request message;Step 104, the working method of simulated bank's front end processor are received and are turned
Request message after changing, the standard message of the request message in message store after coupling conversion carry out correctness verification, and in report
Coupling bank's response message corresponding with the standard message of the request message after conversion in library;Step 106, will carry out correctness
The bank's response message generated after verification returns to Net silver adapter, and wherein, Net silver adapter is carried out to bank's response message
Message is changed, and returns the response message after conversion;Step 108, by conversion after response message and message store in standard network
Silver-colored adapter message contrast, carries out correctness verification, completes to test thread.
The service test method of the Net silver adapter of embodiment according to a first aspect of the present invention, Net silver adapter is enterprise
ERP system and the communication bridge of bank pre-machine, can change to the message for receiving, by the message of operation system Plays
Carry out being converted into the discernible communication message of each bank.The present invention is by the operational trials work of Net silver adapter by simulation
Two aspects of ERP system and bank pre-machine are carried out, and one side simulated enterprise ERP carries out initiating business request and receive Net silver fitting
The response of orchestration, another aspect simulated bank receive the request of Net silver adapter and provide response, are able to form a communication
Closed-loop path.This technical scheme is applicable not only to the test that ERP system docks banking system, is of course also apply to other types of
Financial software and the test job of docking of bank, need only to the standard report that collects in message node and message store is received every time
Text is compared, and just may determine that the correctness of the message that device is received.So as to reach the effect of automatic test.
The service test method of the Net silver adapter of embodiment according to a first aspect of the present invention, it is preferable that also include:Collect
The communication of benchmark service message that ERP system is communicated with Net silver adapter quality inspection and Net silver adapter and multiple bank pre-machines
Message, generates message store, in xml format message store is stored, so as to follow-up maintenance and expansion.
In this embodiment, the communication message of corresponding service is collected before test job, and standard is mated by message store
The mode of message avoids the high-tech threshold that " modification code " test and " daily record checked by modification Net silver adapter " test bring,
Adopt JAVA technology simultaneously, friendly operation interface is provided by Swing, support to carry out message interpolation, modification etc. by interface
Operation, whole message store are stored according to certain naming rule using XML file, so also allow for departing from interface safeguard by hand and
Expand.
The service test method of the Net silver adapter of embodiment according to a first aspect of the present invention, it is preferable that also include:Pass through
The mode of thread pool executing multiple test threads, so that batch testing tasks in parallel is executed.
In this embodiment, support batch-automated test to be carried out for Net silver interface by multithreading, overcome
Conventional test methodologies technical threshold height is unable to multitask while the defect of test.This technical scheme is also applied for of the invention another simultaneously
The service test method of the ERP system on the one hand proposing, makes the operational trials of ERP system also realize at multi-threaded parallel
Reason.
The flow chart that Fig. 2 shows the service test method of the ERP system of embodiment according to a second aspect of the present invention.
As shown in Fig. 2 the embodiment of second aspect present invention also proposed a kind of service test method of ERP system, bag
Include:Step 202, receives the service request message of ERP system;Step 204, parses service request message, mates in message store
Response message corresponding with service request message;Step 206, after doing effectiveness process to response message using Substitution Rules,
Generate and return response message;Step 208, will return response message and returns to the company ERP system.
The service test method of the ERP system of embodiment according to a second aspect of the present invention, the business for receiving ERP system please
Message is sought, mates response message corresponding with service request message in message store;Response message is done using Substitution Rules
After effect property is processed, generate and return response message;Response message will be returned and return to the company ERP system.On the whole, pass through
Servlet is relied on div+css technology to provide friendly operation interface, provides day by log4j responding the request of enterprise ERP
Will is monitored, and Substitution Rules strategy and configurationization are operated and cause test job to become efficient, convenient and be beneficial to expansion.
The service test method of the ERP system of embodiment according to a second aspect of the present invention, it is preferable that also include:Collect
The communication of benchmark service message that ERP system is communicated with Net silver adapter quality inspection and Net silver adapter and multiple bank pre-machines
Message, generates message store, in xml format message store is stored, so as to follow-up maintenance and expansion.
In this embodiment, the communication message of corresponding service is collected before test job, and standard is mated by message store
The mode of message avoids the high-tech threshold that " modification code " test and " daily record checked by modification Net silver adapter " test bring,
Adopt JAVA technology simultaneously, friendly operation interface is provided by Swing, support to be replaced rules modification, report by interface
The operations such as text adds, message modification, whole message store are stored according to certain naming rule using XML file, are so also allowed for
Depart from interface to safeguard by hand and expand.
The service test method of the ERP system of embodiment according to a second aspect of the present invention, step 206 are specifically included:Carry
The identification information of service request message is taken, the corresponding part in response message is replaced using identification information, generate and return response report
Text.
In this embodiment, because the data being related in real trade message are multifarious at random, and collect in advance
The data being related in message are single, so actual multiformity cannot be tackled, effectiveness process is to ensure that simulation
Message meets operational trials scene.For example, when doing inquiry into balance, the remaining sum response message that collects in advance is account A, but test
When account to be inquired about be account B, if the remaining sum response message that simply simple return is collected in advance can not be provided effectively
Operational trials scene, by Substitution Rules, accounts information to be checked can be extracted while analysis request message, obtained
Accounts information is replaced when getting response message, it is ensured that the concordance of information.
Fig. 3 shows the block diagram of the operational trials device of the Net silver adapter of embodiment according to a third aspect of the present invention.
As shown in figure 3, the embodiment of third aspect present invention also proposed a kind of operational trials device of Net silver adapter
300, including:Simulation ERP units 302, simulate the working method of ERP system, send service request message to Net silver adapter, its
In, Net silver adapter sends the request message after conversion according to service request message;Simulation front end processor unit 304, simulated bank
The working method of front end processor, receives the request message after conversion, the standard report of the request message in message store after coupling conversion
Text carries out correctness verification, and coupling bank's response report corresponding with the standard message of the request message after conversion in message store
Text;First verification unit 306, the bank's response message generated after carrying out correctness verification return to Net silver adapter, its
In, Net silver adapter carries out message conversion to bank's response message, and returns the response message after conversion;Second verification unit
308, by conversion after response message and message store in the contrast of standard Net silver adapter message, carry out correctness verification, complete
Test thread.
The operational trials device 300 of the Net silver adapter of embodiment according to a third aspect of the present invention, Net silver adapter is
Company ERP system and the communication bridge of bank pre-machine, can change to the message for receiving, by operation system Plays
Message carries out being converted into the discernible communication message of each bank.The operational trials work of Net silver adapter is passed through mould by the present invention
Intending two aspects of ERP system and bank pre-machine is carried out, and one side simulated enterprise ERP carries out initiating business request and receives Net silver
The response of adapter, another aspect simulated bank receive the request of Net silver adapter and provide response, are able to form a communication
Closed-loop path.This technical scheme is applicable not only to the test that ERP system docks banking system, is of course also apply to other types
Financial software and bank test job of docking, need only to the standard that collects in message node and message store is received every time
Message is compared, and just may determine that the correctness of the message that device is received.So as to reach the effect of automatic test.
The operational trials device 300 of the Net silver adapter of embodiment according to a third aspect of the present invention, it is preferable that also wrap
Include:Message library unit 310, collects benchmark service message and Net silver adapter that ERP system is communicated with Net silver adapter quality inspection
With the communication message of multiple bank pre-machines, message store is generated, in xml format message store is stored, so as to follow-up maintenance
And expansion.
In this embodiment, the communication message of corresponding service is collected before test job, and standard is mated by message store
The mode of message avoids the high-tech threshold that " modification code " test and " daily record checked by modification Net silver adapter " test bring,
Adopt JAVA technology simultaneously, friendly operation interface is provided by Swing, support to carry out message interpolation, modification etc. by interface
Operation, whole message store are stored according to certain naming rule using XML file, so also allow for departing from interface safeguard by hand and
Expand.
The operational trials device 300 of the Net silver adapter of embodiment according to a third aspect of the present invention, it is preferable that also wrap
Include:Multiple thread units 312, execute multiple test threads by way of thread pool, so that batch testing tasks in parallel is executed.
In this embodiment, multiple test threads, and the side by concurrent enumerator are executed by way of thread pool
Counting of the formula to test assignment, reaches the effect of batch testing tasks in parallel execution.Overcoming conventional test methodologies can not many
The defect of business test simultaneously.This technical scheme is also applied for the operational trials of the ERP system of another aspect of the present invention proposition simultaneously
Method, makes the operational trials of ERP system also realize multi-threading parallel process.
Fig. 4 shows the block diagram of the operational trials device of the ERP system of embodiment according to a fourth aspect of the present invention.
As shown in figure 4, the embodiment of fourth aspect present invention also proposed a kind of operational trials device 400 of ERP system,
Including:Receiving unit 402, receives the service request message of ERP system;Matching unit 404, parses service request message, in report
Mate response message corresponding with service request message in library;Replacement unit 406, has been done to response message using Substitution Rules
After effect property is processed, generate and return response message;Returning unit 408, will return response message and returns to company ERP system.
The operational trials device 400 of the ERP system of embodiment according to a fourth aspect of the present invention, is received by Servlet
The service request message of ERP system, mates response message corresponding with service request message in message store;Using Substitution Rules
After effectiveness process is done to response message, generate and return response message;Response message will be returned and return to the enterprise ERP systems
System.On the whole, the request of enterprise ERP is responded by Servlet, is relied on div+css technology to provide friendly operation interface, is led to
Cross log4j and daily record monitoring is provided, whole device is run independently of enterprise ERP, Substitution Rules strategy and configurationization operate and cause to survey
Trial work make become efficient, convenient and beneficial to expand.The configuration of Substitution Rules of the device comprising a set of acquiescence itself and the silver of standard
Direct-connected message configuration is looked forward to, if just need not configure without special testing requirement, directly use device operational trials can be carried out.
The operational trials device 400 of the ERP system of embodiment according to a fourth aspect of the present invention, it is preferable that also include:Report
Library unit 410, collect the benchmark service message that communicates with Net silver adapter quality inspection of ERP system and Net silver adapter with multiple
The communication message of bank pre-machine, generates message store, in xml format message store is stored, so as to follow-up maintenance and expansion.
In this embodiment, the communication message of corresponding service is collected before test job, and standard is mated by message store
The mode of message avoids the high-tech threshold that " modification code " test and " daily record checked by modification Net silver adapter " test bring,
Adopt JAVA technology simultaneously, friendly operation interface is provided by Swing, support to be replaced rules modification, report by interface
The operations such as text adds, message modification, whole message store are stored according to certain naming rule using XML file, are so also allowed for
Depart from interface to safeguard by hand and expand.
The operational trials device 400 of the ERP system of embodiment according to a fourth aspect of the present invention, it is preferable that the replacement
Unit 406 specifically for:The identification information of service request message is extracted, and the corresponding portion in response message is replaced using identification information
Point, generate and return response message.
In this embodiment, because the data being related in real trade message are multifarious at random, and collect in advance
The data being related in message are single, so actual multiformity cannot be tackled, effectiveness process is to ensure that simulation
Message meets operational trials scene.For example, when doing inquiry into balance, the remaining sum response message that collects in advance is account A, but test
When account to be inquired about be account B, if the remaining sum response message that simply simple return is collected in advance can not be provided effectively
Operational trials scene, by Substitution Rules, accounts information to be checked can be extracted while analysis request message, obtained
Accounts information is replaced when getting response message, it is ensured that the concordance of information.
Fig. 5 shows the operational trials device of the bank of embodiment and enterprise's docking system according to a fifth aspect of the present invention
Block diagram.
As shown in figure 5, the embodiment of fifth aspect present invention also proposed the business of a kind of bank and enterprise's docking system
Test device 500, including:Operational trials device 300 such as the Net silver adapter that above-mentioned technical scheme is provided;And/or as described above
The operational trials device 400 of the ERP system that technical scheme is provided.
The operational trials device 500 of the bank of embodiment according to a fifth aspect of the present invention and enterprise's docking system, can
The operational trials device 300 of the integrated Net silver adapter provided such as above-mentioned technical scheme (as shown in Figure 3 and Figure 4) according to demand
And/or the operational trials device 400 of ERP system.The test and/or the test of Net silver adapter to ERP interfaces is realized, can be dropped
The complicated complexity of low test job, normative testing flow process, and multitask test, automatic test etc. are provided easily test
Mode, it is also possible to bank pre-machine not in place in the case of solve ERP system and Net silver adapter cannot operational trials difficulty
Topic.
Fig. 6 shows test device constituent schematic diagram according to embodiments of the present invention.
As shown in fig. 6, test device 600 is mainly directed towards company ERP system and Net silver adapter is tested, in order to test
More targetedly and professional, test device 600 includes:Company ERP system test device 602, Net silver adapter test dress
Put 604 and message store 606.Wherein, the test of company ERP system test device 602 and Net silver adapter test device 604 is patrolled
Collect figure to elaborate in figures 7 and 8;Message store 606 is used for storing the service message required for test device, including enterprise
The communication of benchmark service message that ERP system is communicated with Net silver adapter quality inspection and Net silver adapter and each big bank's front end processor
Message.Before test job is carried out, need collect corresponding service communication message, whole message store using XML file according to
Certain naming rule storage, so also allows for departing from interface maintenance and expansion by hand, additionally, test device 600 is provided passing through
The mode at interface such as carries out increasing, changes at the operation to message.
Fig. 7 shows Net silver adaptor interface automatic test logic chart according to embodiments of the present invention.
As shown in fig. 7, testing tool is the operational trials device of the Net silver adapter disclosed in above-described embodiment.Tested
Data flow in journey mainly includes:Testing tool (simulated enterprise ERP) 702 initiates NC request messages, net to Net silver adapter 704
Silver-colored adapter 704 carries out message conversion, after message conversion, initiates request message to testing tool (simulated bank) 706, then
Testing tool (simulated bank) 706 initiates message after request standard handovers to message store 708, is mated in message store 708
Afterwards, message store 708 returns message after standard handovers to testing tool (simulated bank) 706, and testing tool (simulated bank) 706 enters
Row message correctness is verified, then sends request Standard Bank response message instruction to message store 708, and message store 708 is by standard silver
Row response message returns to testing tool (simulated bank) 706;The Standard Bank for returning is rung by testing tool (simulated bank) 706
Answer message to be sent to Net silver adapter 704, Net silver adapter 704 carries out message conversion, by conversion after Net silver adapter message
Testing tool (simulated enterprise ERP) 702 is sent to, testing tool (simulated enterprise ERP) 702 is fitted to message store request standard Net silver
Orchestration response message, after being mated, standard Net silver adapter response message is returned to testing tool (simulated enterprise by message store
ERP) 702, testing tool (simulated enterprise ERP) 702 carries out message correctness verification, completes a test thread.
This device adopts JAVA technology, provides friendly operation interface by Swing;This device is supported for by interface
The operation such as Substitution Rules, message are added, are changed, meanwhile, this device can constitute one with Net silver adapter and communicate
Closed-loop path, needs only to compare with the standard message of collection in message store in the reception message node of device, just every time
The correctness of the message that device is received is may determine that, so as to reach the effect of automatic test.Additionally, can be by the side of thread pool
Formula is executing multiple test threads.And the counting by way of concurrent enumerator to test assignment, so as to reach batch testing
The effect that tasks in parallel is executed.
Fig. 8 shows company ERP system test logic chart according to embodiments of the present invention.
As shown in figure 8, testing tool 804 is the operational trials device of the ERP system that above-described embodiment is provided, test process
In data flow mainly include:, to 804 initiating business request message of testing tool, the parsing of testing tool 804 please for enterprise ERP 802
Message being sought, then request response message being initiated to message store 806, corresponding response message returns to testing tool 804, tests work
Tool 804 is effectively treated using Substitution Rules, process after response message send to enterprise ERP 802, enterprise ERP 802
Completion system is tested.
This device responds the request of enterprise ERP using Web technology by Servlet.Div+css technology is relied on to provide
Friendly operation interface;And daily record monitoring is provided by log4j, whole device is run independently of enterprise ERP, Substitution Rules strategy
Operate with configurationization and cause test job to become efficient, convenient and be conducive to expanding.
Fig. 9 shows Substitution Rules treatment mechanism block diagram according to embodiments of the present invention.
As shown in figure 9, the working mechanism of Substitution Rules in Fig. 8 is shown, due to the data being related in real trade message
It is multifarious at random, and the data being related in the message that collects in advance are single, so actual multiformity cannot be tackled.
Fig. 9 is illustrated to Substitution Rules treatment mechanism by taking inquiry into balance as an example, and enterprise ERP inquirys into balance request message 902 is required
The accounts information of inquiry is 0000000001, and 904 corresponding accounts information of message store response message is 0000000006, if
The remaining sum response message that simply simple return is collected in advance can not provide effective operational trials scene.By Substitution Rules
906 the accounts information in response message is substituted for the accounts information in request message, then show in inquiry into balance response message 908
The accounts information for showing is 0000000001, therefore, it can extract accounts information to be checked while analysis request message,
Accounts information is replaced when response message is got.
Additionally, said apparatus are supported by way of interface to increase Substitution Rules newly and changed operation, simultaneously because
All of configuration information is stored in the form of XML file in local file, it is also possible to by newly-increased or modification configuration
The mode of file departs from Substitution Rules being safeguarded and being expanded for interface craft;And replacement of the device comprising a set of acquiescence itself
Bank's direct-connected message configuration of rule configuration and standard, if without special testing requirement just need not configuration, directly use
Device carries out operational trials.
Technical scheme is described in detail above in association with accompanying drawing, the present invention proposes a kind of new Net silver adapter
Service test method and ERP system service test method, can reduce the test complexity of the direct-connected system of bank, reduce surveying
Examination difficulty, while automatization's batch multitask test can be completed, is conducive to product maintenance, normative testing flow process.
Step in present invention method can carry out order adjustment according to actual needs, merge and delete, this
Part in bright embodiment can be merged according to actual needs, divides and be deleted.The foregoing is only the preferred of the present invention
Embodiment, is not limited to the present invention, for a person skilled in the art, the present invention can have various change and
Change.All any modification, equivalent substitution and improvements that within the spirit and principles in the present invention, is made etc., should be included in this
Within bright protection domain.
Claims (13)
1. a kind of service test method of Net silver adapter, it is characterised in that include:
The working method of simulation ERP system, sends service request message to the Net silver adapter, wherein, the Net silver adaptation
Device sends the request message after conversion according to the service request message;
The working method of simulated bank's front end processor, receives the request message after the conversion, mates the conversion in message store
The standard message of request message afterwards carries out correctness verification, and mates in the message store and the request report after the conversion
The corresponding bank's response message of literary standard message;
The bank's response message generated after correctness verification being carried out returns to the Net silver adapter, wherein, described
Net silver adapter carries out message conversion to bank's response message, and returns the response message after conversion;
Response message after the conversion is contrasted with the standard Net silver adapter message in the message store, correctness school is carried out
Test, complete to test thread.
2. method according to claim 1, it is characterised in that also include:
Collect benchmark service message that the ERP system communicated with the Net silver adapter quality inspection and the Net silver adapter with
The communication message of multiple bank pre-machines, generates the message store, in xml format the message store is stored, with after an action of the bowels
Continuous maintenance and expansion.
3. method according to claim 1, it is characterised in that also include:
Multiple test threads are executed by way of thread pool, so that batch testing tasks in parallel is executed.
4. a kind of service test method of ERP system, it is characterised in that include:
Receive the service request message of the ERP system;
The service request message is parsed, mates response message corresponding with the service request message in message store;
After effectiveness process is done to the response message using Substitution Rules, generate and return response message;
The return response message is returned to the company ERP system.
5. method according to claim 4, it is characterised in that also include:
Collect benchmark service message that the ERP system communicated with Net silver adapter quality inspection and the Net silver adapter with multiple
The communication message of bank pre-machine, generates the message store, in xml format the message store is stored, so as to follow-up dimension
Shield and expansion.
6. method according to claim 4, it is characterised in that the utilization Substitution Rules are done effectively to the response message
Property process after, generate return response message, specifically include:
The identification information of the service request message is extracted, and the corresponding portion in the response message is replaced using the identification information
Point, generate the return response message.
7. a kind of operational trials device of Net silver adapter, it is characterised in that include:
Simulation ERP units, simulate the working method of ERP system, send service request message to the Net silver adapter, wherein,
The Net silver adapter sends the request message after conversion according to the service request message;
Simulation front end processor unit, the working method of simulated bank's front end processor receive the request message after the conversion, in message store
The standard message of the request message after the conversion of middle coupling carries out correctness verification, and mate in the message store with described
The corresponding bank's response message of the standard message of the request message after conversion;
First verification unit, the bank's response message generated after carrying out correctness verification return to the Net silver adaptation
Device, wherein, the Net silver adapter carries out message conversion to bank's response message, and returns the response message after conversion;
Second verification unit, by the standard Net silver adapter message pair in the response message after the conversion and the message store
Than carrying out correctness verification, completing to test thread.
8. device according to claim 7, it is characterised in that also include:
Message library unit, collects benchmark service message that the ERP system communicated and described with the Net silver adapter quality inspection
Net silver adapter and the communication message of multiple bank pre-machines, generate the message store, in xml format the message store are carried out
Storage, so as to follow-up maintenance and expansion.
9. device according to claim 7, it is characterised in that also include:
Multiple thread units, execute multiple test threads by way of thread pool, so that batch testing tasks in parallel is held
OK.
10. the operational trials device of a kind of ERP system, it is characterised in that include:
Receiving unit, receives the service request message of the ERP system;
Matching unit, parses the service request message, mates response corresponding with the service request message in message store
Message;
Replacement unit, after doing effectiveness process to the response message using Substitution Rules, generates and returns response message;
The return response message is returned to the company ERP system by returning unit.
11. devices according to claim 10, it is characterised in that also include:
Message library unit, collects benchmark service message and the Net silver that the ERP system is communicated with Net silver adapter quality inspection
Adapter and the communication message of multiple bank pre-machines, generate the message store, in xml format the message store are deposited
Storage, so as to follow-up maintenance and expansion.
12. devices according to claim 10, it is characterised in that the replacement unit, specifically for:
The identification information of the service request message is extracted, and the corresponding portion in the response message is replaced using the identification information
Point, generate the return response message.
A kind of 13. banks and the operational trials device of enterprise's docking system, it is characterised in that include:
The operational trials device of the Net silver adapter as any one of claim 7 to 9;And/or
The operational trials device of the ERP system as any one of claim 10 to 12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611124573.0A CN106506283B (en) | 2016-12-08 | 2016-12-08 | Business test method and device of bank and enterprise docking system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611124573.0A CN106506283B (en) | 2016-12-08 | 2016-12-08 | Business test method and device of bank and enterprise docking system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106506283A true CN106506283A (en) | 2017-03-15 |
CN106506283B CN106506283B (en) | 2020-01-21 |
Family
ID=58329949
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611124573.0A Active CN106506283B (en) | 2016-12-08 | 2016-12-08 | Business test method and device of bank and enterprise docking system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106506283B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107113196A (en) * | 2017-04-12 | 2017-08-29 | 深圳怡化电脑股份有限公司 | ATM business softwares exploitation adjustment method, system and a kind of simulation ATMP systems |
CN107688537A (en) * | 2017-08-25 | 2018-02-13 | 泰康保险集团股份有限公司 | Method of testing, device and front end processor |
CN108280635A (en) * | 2017-12-27 | 2018-07-13 | 山东浪潮通软信息科技有限公司 | A kind of method, apparatus and system of configuration Internetbank payment template |
CN108614777A (en) * | 2018-05-08 | 2018-10-02 | 山东浪潮通软信息科技有限公司 | A kind of financial transaction test system and test method based on actual services |
CN110309022A (en) * | 2019-05-22 | 2019-10-08 | 平安银行股份有限公司 | Method, simulator, equipment and the storage medium of mock trading test |
CN110580225A (en) * | 2019-09-20 | 2019-12-17 | 中国银行股份有限公司 | Simulation method and device of service system |
CN110661671A (en) * | 2018-06-28 | 2020-01-07 | 中兴通讯股份有限公司 | Service detection method, device and equipment and storage medium |
CN110837470A (en) * | 2019-11-06 | 2020-02-25 | 中国银行股份有限公司 | Method and device for testing bank card network transaction |
CN111865726A (en) * | 2020-07-29 | 2020-10-30 | 中国工商银行股份有限公司 | Service message testing method, device, computer system and storage medium |
CN112994959A (en) * | 2019-12-02 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Service test control system, method, device and storage medium |
CN114374615A (en) * | 2021-12-30 | 2022-04-19 | 中企云链(北京)金融信息服务有限公司 | Data virtual interaction simulation method and device, storage medium and electronic device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102156944A (en) * | 2010-02-11 | 2011-08-17 | 中国工商银行股份有限公司 | Data processing method and system for realizing bank-enterprise interconnection |
US20120221279A1 (en) * | 2009-11-23 | 2012-08-30 | Zte Corporation | Automatic Test System for Distributed Comprehensive Service and Method Thereof |
CN103023708A (en) * | 2011-09-20 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Method and system for testing communication protocol interface |
-
2016
- 2016-12-08 CN CN201611124573.0A patent/CN106506283B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120221279A1 (en) * | 2009-11-23 | 2012-08-30 | Zte Corporation | Automatic Test System for Distributed Comprehensive Service and Method Thereof |
CN102156944A (en) * | 2010-02-11 | 2011-08-17 | 中国工商银行股份有限公司 | Data processing method and system for realizing bank-enterprise interconnection |
CN103023708A (en) * | 2011-09-20 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Method and system for testing communication protocol interface |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107113196A (en) * | 2017-04-12 | 2017-08-29 | 深圳怡化电脑股份有限公司 | ATM business softwares exploitation adjustment method, system and a kind of simulation ATMP systems |
CN107688537A (en) * | 2017-08-25 | 2018-02-13 | 泰康保险集团股份有限公司 | Method of testing, device and front end processor |
CN108280635A (en) * | 2017-12-27 | 2018-07-13 | 山东浪潮通软信息科技有限公司 | A kind of method, apparatus and system of configuration Internetbank payment template |
CN108614777A (en) * | 2018-05-08 | 2018-10-02 | 山东浪潮通软信息科技有限公司 | A kind of financial transaction test system and test method based on actual services |
CN110661671A (en) * | 2018-06-28 | 2020-01-07 | 中兴通讯股份有限公司 | Service detection method, device and equipment and storage medium |
CN110309022A (en) * | 2019-05-22 | 2019-10-08 | 平安银行股份有限公司 | Method, simulator, equipment and the storage medium of mock trading test |
CN110580225A (en) * | 2019-09-20 | 2019-12-17 | 中国银行股份有限公司 | Simulation method and device of service system |
CN110837470A (en) * | 2019-11-06 | 2020-02-25 | 中国银行股份有限公司 | Method and device for testing bank card network transaction |
CN110837470B (en) * | 2019-11-06 | 2024-01-23 | 中国银行股份有限公司 | Bank card network transaction testing method and device |
CN112994959A (en) * | 2019-12-02 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Service test control system, method, device and storage medium |
CN112994959B (en) * | 2019-12-02 | 2022-05-31 | 腾讯科技(深圳)有限公司 | Service test control system, method, device and storage medium |
CN111865726A (en) * | 2020-07-29 | 2020-10-30 | 中国工商银行股份有限公司 | Service message testing method, device, computer system and storage medium |
CN111865726B (en) * | 2020-07-29 | 2022-03-08 | 中国工商银行股份有限公司 | Service message testing method, device, computer system and storage medium |
CN114374615A (en) * | 2021-12-30 | 2022-04-19 | 中企云链(北京)金融信息服务有限公司 | Data virtual interaction simulation method and device, storage medium and electronic device |
CN114374615B (en) * | 2021-12-30 | 2023-11-28 | 中企云链(北京)金融信息服务有限公司 | Data virtual interaction simulation method and device, storage medium and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN106506283B (en) | 2020-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106506283A (en) | Bank and the service test method and device of enterprise's docking system | |
CN110472809A (en) | Calculate the basic reason and forecast analysis of Environmental Technology problem | |
US20160004517A1 (en) | SOFTWARE DEVELOPMENT IMPROVEMENT TOOL - iREVIEW | |
CN105721193A (en) | Method and device for system information monitoring | |
Kaveh et al. | Deadlock detection in distribution object systems | |
WO2019104916A1 (en) | Development role creation method, device and equipment for test case, and storage medium | |
CN104111888A (en) | Code evaluation method, device and system for teaching | |
Aniche et al. | Current challenges in practical object-oriented software design | |
Aagesen et al. | The entanglement of enterprise architecture and IT-governance: The cases of Norway and the Netherlands | |
CN108704312A (en) | The test method and device of fine arts resource | |
CN104090839A (en) | Simulation test method and device for abnormal scene | |
CN110347580A (en) | A method of building non-embedded software reliability test process model | |
CN109658003A (en) | A kind of property facility equipment management system and method | |
US9569516B2 (en) | Method and device for executing an enterprise process | |
Giannasi et al. | Enhancing confidence in discrete event simulations | |
CN104038388B (en) | Based on distributed Internet of Things Auto-Test System and method of testing | |
CN109885483A (en) | Log method for visualizing and system for operating status in Real-time Feedback game | |
US20220138604A1 (en) | Software cobot engineering, execution, and monitoring | |
Carrasquel et al. | Modelling and validation of trading and multi-agent systems: an approach based on process mining and petri nets | |
CN109191271A (en) | Fund collection method, device, computer equipment and storage medium | |
CN104182591A (en) | Software test requirement modeling method | |
CN103577940A (en) | Method and device for diagnosing service model | |
Lima et al. | An approach for automated scenario-based testing of distributed and heterogeneous systems | |
Culic et al. | Development platform for building advanced Internet of Things systems | |
CN109491898A (en) | Testing efficiency method for improving and equipment based on automatic test and case management |
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 |