CN106802864A - A kind of method of testing and device based on financial sector - Google Patents

A kind of method of testing and device based on financial sector Download PDF

Info

Publication number
CN106802864A
CN106802864A CN201611265971.4A CN201611265971A CN106802864A CN 106802864 A CN106802864 A CN 106802864A CN 201611265971 A CN201611265971 A CN 201611265971A CN 106802864 A CN106802864 A CN 106802864A
Authority
CN
China
Prior art keywords
transaction
service invocation
invocation request
digital simulation
simulation layer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611265971.4A
Other languages
Chinese (zh)
Inventor
林辉
朱理
高晓灵
查骏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Unionpay Co Ltd
Original Assignee
China Unionpay 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 China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN201611265971.4A priority Critical patent/CN106802864A/en
Publication of CN106802864A publication Critical patent/CN106802864A/en
Pending legal-status Critical Current

Links

Classifications

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

Abstract

The present invention relates to field of computer technology, more particularly to a kind of method of testing and device based on financial sector, the speed of foreground system request data and mitigation background system pressure when being used to improve software test, including:A data simulation layer is increased between foreground system and background system, foreground system sends service invocation request to digital simulation layer, when digital simulation layer determines that digital simulation layer is stored with the corresponding response contents of service invocation request according to service invocation request, then directly obtained from digital simulation layer and response contents and feed back to foreground system, the data of request are needed because digital simulation layer has prestored foreground system, therefore digital simulation layer can directly to foreground system feedback response contents, therefore improve the speed that foreground system obtains data, and alleviate the pressure of background system.

Description

A kind of method of testing and device based on financial sector
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method of testing and device based on financial sector.
Background technology
Automatic test is defined:Software test is that program is operated under conditions of regulation, with discovery procedure mistake, Software quality is weighed, and whether the process that design requirement is estimated can be met to it.Automatic test is then artificially to drive Dynamic behavioral test is converted into a kind of process of machine execution.
The financial payment systems foreground system and background system for being currently based on layered framework are all two of independent deployment System, is carried out data transmission by the message protocol of regulation between the two.Foreground system regression test depends on whole background system, only There is the test that foreground system can be just carried out after the data of background system are all ready to complete.Simultaneously as in business for Data have a dependence condition, and regression test case to have performed once have to afterwards and reset database data and can just re-execute.In order to Ensure the case energy execution out of order of each test scene, it is necessary to be the different test numbers of the test cases distribution of different scenes According to.With the growth of regression test casebook, the preparation of data will more and more huger and complexity.
In sum, prior art is when software test is done back, when foreground system is to backstage system request data, backstage system System feedback data not in time, meanwhile, also can cause larger pressure to background system.
The content of the invention
The present invention provides a kind of method of testing and device based on financial sector, foreground system when being used to improve software test The speed and mitigation background system pressure of request data.
In a first aspect, the embodiment of the present invention provides a kind of method of testing based on financial sector, including:
Digital simulation layer receives the service invocation request of the foreground system of financial sector;
If digital simulation layer determines that the digital simulation layer is stored with the service according to the service invocation request The corresponding response contents of call request, then obtain the response contents from digital simulation layer;
The response contents are fed back to the foreground system by the digital simulation layer.
Alternatively, methods described also includes:If the digital simulation layer determines the number according to the service invocation request The corresponding response contents of the service invocation request are not stored according to simulation layer, then the service invocation request is forwarded to the gold Melt the background system of system;
The digital simulation layer receives the response contents corresponding with the service invocation request of the background system feedback, And feed back to the foreground system.
Alternatively, the digital simulation layer receives the sound corresponding with the service invocation request of the background system feedback Answer after content, also include:
With the response contents be associated the service invocation request and the clothes are stored in by the digital simulation layer The log recording table of the corresponding transaction of business call request.
Alternatively, command word and the response contents in the service invocation request that the digital simulation layer will be obtained Before being associated, also include:
The digital simulation layer determines that the corresponding type of transaction of the service invocation request belongs to type of transaction row to be recorded Table, the transaction type list to be recorded includes the type of transaction for needing record.
Alternatively, if digital simulation layer has determined digital simulation layer storage according to the service invocation request The corresponding response contents of service invocation request are stated, including:
The digital simulation layer determines that the service invocation request for receiving is that message sign test and the message sign test are present The log recording table of corresponding transaction, then obtain the log recording table of the transaction;
The digital simulation layer obtains the command word in the service invocation request;
The digital simulation layer compares the command word with the log recording table of the transaction, however, it is determined that the friendship Included and the command word identical command word in easy log recording table, it is determined that digital simulation layer is stored with the clothes The corresponding response contents of business call request.
Alternatively, after the log recording table for obtaining the transaction, also include:By the log recording table of the transaction Transaction label association corresponding with the service invocation request.
Alternatively, if digital simulation layer has determined digital simulation layer storage according to the service invocation request The corresponding response contents of service invocation request are stated, including:
The digital simulation layer determines that the service invocation request for receiving is not that message sign test and the service call are asked Corresponding transaction label is asked to there is the log recording table of the transaction of association, the digital simulation layer obtains the service invocation request In command word;
The digital simulation layer compares the command word with the log recording table of the transaction, however, it is determined that the friendship Included and the command word identical command word in easy log recording table, it is determined that digital simulation layer is stored with the clothes The corresponding response contents of business call request
Optionally it is determined that the digital simulation layer is stored with before the corresponding response contents of the service invocation request, also Including:
The digital simulation layer determines the corresponding request content of command word in the service invocation request and the transaction Log recording table in record request content corresponding with the command word it is identical.
Second aspect, the embodiment of the present invention provides a kind of test device based on financial sector, including:
Receiving unit, the service invocation request of the foreground system for receiving financial sector;
Acquiring unit, if for determining that the test device is stored with the service call according to the service invocation request Corresponding response contents are asked, then obtains the response contents from the test device;
Transmitting element, for the response contents to be fed back into the foreground system.
Alternatively, the transmitting element, is additionally operable to:If determining that the test device is not deposited according to the service invocation request The corresponding response contents of the service invocation request are stored up, then the service invocation request is forwarded to the backstage of the financial sector System;And the response contents of the background system feedback for receiving the receiving unit feed back to the foreground system;
The receiving unit, is additionally operable to receive the response corresponding with the service invocation request of the background system feedback Content.
Alternatively, the test device also includes memory cell, is used for:
After receiving the response contents corresponding with the service invocation request of background system feedback, by the service Call request is associated with the response contents and is stored in the log recording table of the corresponding transaction of the service invocation request.
Alternatively, the memory cell, the command word being additionally operable in the service invocation request that will be obtained and the sound Before answering content to be associated, determine that the corresponding type of transaction of the service invocation request belongs to transaction type list to be recorded, The transaction type list to be recorded includes the type of transaction for needing record.
Alternatively, the test device also includes judging unit, is used for:
It is determined that there is the day of corresponding transaction for message sign test and the message sign test in the service invocation request for receiving Will record sheet, then obtain the log recording table of the transaction;
Obtain the command word in the service invocation request;
The command word is compared with the log recording table of the transaction, however, it is determined that the log recording table of the transaction In include and the command word identical command word, it is determined that the test device service invocation request that is stored with is corresponding Response contents.
Alternatively, the judging unit, is additionally operable to:
After obtaining the log recording table of the transaction, by the log recording table of the transaction and the service invocation request Corresponding transaction label association.
Alternatively, the test device also includes judging unit, is used for:
It is determined that the service invocation request for receiving is not message sign test and the corresponding trading standard of the service invocation request Number there is the log recording table of the transaction of association, obtain the command word in the service invocation request;
The command word is compared with the log recording table of the transaction, however, it is determined that the log recording table of the transaction In include and the command word identical command word, it is determined that the test device service invocation request that is stored with is corresponding Response contents
Alternatively, the judging unit, is additionally operable to:Determine that the test device is stored with the service invocation request correspondingly Response contents before, determine the daily record note of the corresponding request content of command word in the service invocation request and the transaction The request content corresponding with the command word recorded in record table is identical.
The embodiment of the present invention, increased a data simulation layer between foreground system and background system, foreground system to Digital simulation layer sends service invocation request, when digital simulation layer determines that digital simulation layer is stored with clothes according to service invocation request The business corresponding response contents of call request, then directly obtain from digital simulation layer response contents and feed back to foreground system, by Having prestored foreground system in digital simulation layer needs the data of request, therefore digital simulation layer can be directly anti-to foreground system Feedback response contents, therefore the speed of foreground system acquisition data is improve, and alleviate the pressure of background system.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will make needed for embodiment description Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these accompanying drawings His accompanying drawing.
Fig. 1 is the method for testing flow chart based on financial sector provided in an embodiment of the present invention;
Fig. 2 is log recording table recording process schematic diagram provided in an embodiment of the present invention;
Fig. 3 is the method for testing detail flowchart based on financial sector provided in an embodiment of the present invention;
Fig. 4 is the test device schematic diagram based on financial sector provided in an embodiment of the present invention.
Specific embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with accompanying drawing the present invention is made into One step ground is described in detail, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole implementation Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made All other embodiment, belongs to the scope of protection of the invention.
The embodiment of the present invention is described in further detail with reference to Figure of description.
As shown in figure 1, the method for testing based on financial sector provided in an embodiment of the present invention, including:
Step 101, digital simulation layer receive the service invocation request of the foreground system of financial sector;
If step 102, digital simulation layer determine that digital simulation layer is stored with the service call according to service invocation request Corresponding response contents are asked, then obtains response contents from digital simulation layer;
Response contents are fed back to foreground system by step 103, digital simulation layer.
The embodiment of the present invention, increased a data simulation layer between foreground system and background system, foreground system to Digital simulation layer sends service invocation request, when digital simulation layer determines that digital simulation layer is stored with clothes according to service invocation request The business corresponding response contents of call request, then directly obtain from digital simulation layer response contents and feed back to foreground system, by Having prestored foreground system in digital simulation layer needs the data of request, therefore digital simulation layer can be directly anti-to foreground system Feedback response contents, therefore the speed of foreground system acquisition data is improve, and alleviate the pressure of background system.
In above-mentioned steps 102, alternatively, if digital simulation layer determines digital simulation layer not according to service invocation request The corresponding response contents of storage service call request, then service invocation request is forwarded to the background system of financial sector;Data Simulation layer receives the response contents corresponding with service invocation request of background system feedback, and feeds back to foreground system.
That is, when digital simulation layer is local is not stored in the corresponding response contents of service invocation request, then by service call Request is forwarded to the background system of financial sector, and corresponding response contents are got simultaneously according to service invocation request by background system Digital simulation layer is fed back to, foreground system is forwarded to by digital simulation layer again.
Wherein, be stored with digital simulation layer it is pre-defined the need for the log recording table of test cases recorded.
Alternatively, digital simulation layer receive background system feedback response contents corresponding with service invocation request it Afterwards, with response contents be associated service invocation request and the corresponding friendship of the service invocation request is stored in by digital simulation layer Easy log recording table.
That is, if digital simulation layer itself does not store the content of foreground system request, obtained to backstage system request, so After feed back to foreground system, and the response contents that itself will also get are stored in transaction corresponding with service invocation request In log recording table.
Alternatively, command word and the response contents in the service invocation request that the digital simulation layer will be obtained Before being associated, digital simulation layer determines that the corresponding type of transaction of the service invocation request belongs to type of transaction row to be recorded Table, the transaction type list to be recorded includes the type of transaction for needing record.
That is, in the embodiment of the present invention, the transaction only important to part of digital simulation layer is just recorded in log recording table In, for example, it is { card information is inquired about, and transaction initiation is looked into newly, Transaction Inquiries } to pre-define transaction type list to be recorded, therefore count According to simulation layer when it is determined that the corresponding type of transaction of service invocation request belongs to the transaction type list to be recorded, just can be to backstage The response contents of system feedback are associated and recorded in log recording table with the command word in service invocation request.
In above-mentioned steps 102, specifically, digital simulation layer judges whether digital simulation layer is stored with clothes according to following manner The corresponding response contents of business call request:
Step 1, digital simulation layer determine whether the service invocation request for receiving is message sign test;If so, then going to step 2, if it is not, then going to step 6;
Step 2, if it is determined that there is the log recording table of corresponding transaction in message sign test, then obtain the daily record note of the transaction Record table;
Wherein, file name to be tested is included in message sign test, can be used to determine whether be stored in this in digital simulation layer The corresponding log recording table of message sign test, for example, digital simulation layer is stored with the corresponding log recording table a of test file A, The corresponding log recording table c of test file B corresponding log recording table b, test file C.
If including test file title B in authentication of message, then log recording table b is obtained;If included in authentication of message Test file title D, then cannot get corresponding log recording table.
Step 3, by the log recording table of the transaction it is corresponding with the service invocation request transaction label association.
Wherein, transaction label is used for the corresponding transaction of one service invocation request of expression, therefore will conclude the business label and daily record Record sheet is associated, and may be such that foreground system directly gets corresponding response data from the log recording table of association.
Step 4, digital simulation layer obtain the command word in service invocation request;
Step 5, digital simulation layer compare command word with the log recording table of transaction, however, it is determined that the daily record note of transaction Included in record table and service invocation request in command word identical command word, it is determined that digital simulation layer is stored with the service The corresponding response contents of call request.
The storage form of log recording table is:Every record includes command word and the corresponding request content of command word and response Content.
For example, command word A, has corresponded to request content a1, has corresponded to response contents a2, wherein, request content A1 derives from the service invocation request of foreground system, and response contents a2 derives from the response contents of background system, each command word Corresponding request content and response contents, store when log recording table is recorded in daily record, also, log recording table is the During software test during foreground system acquisition request data, during by background system feedback response content, recorded by analogue data layer System.
Optionally it is determined that digital simulation layer is stored with before the corresponding response contents of service invocation request, digital simulation layer Also need to determine service invocation request in the corresponding request content of command word with transaction log recording table in record with life Make the corresponding request content of word identical.
Illustrate that the command word that is stored with log recording table A has corresponded to request content a1, by taking above example as an example Through having corresponded to response contents a2, it is assumed that include command word A in the service invocation request of current foreground system, then it needs to be determined that service Request content in call request is identical with the request content a1 stored in log recording table.
Step 6, digital simulation layer determine that the corresponding transaction label of service invocation request has the daily record note of the transaction of association Record table, digital simulation layer obtains the command word in the service invocation request;
Step 7, digital simulation layer compare command word with the log recording table of transaction, however, it is determined that the daily record note of transaction Included in record table and service invocation request in command word identical command word, it is determined that digital simulation layer is stored with service call Ask corresponding response contents.
Optionally it is determined that digital simulation layer is stored with before the corresponding response contents of service invocation request, digital simulation layer Also need to determine service invocation request in the corresponding request content of command word with transaction log recording table in record with life Make the corresponding request content of word identical.
The present invention proposes one data simulation layer of increase, the number when foreground system and background system carry out message transmissions The service invocation request of foreground system is received and identified according to simulation layer, and it is corresponding to maintain a set of various gateway payment scenes The mock data of service call.The service call of all foreground systems is all directed to digital simulation layer, and digital simulation layer is to request Service carries out screening and filtering, identifies a need for the service of parameter verification, and required parameter is compared one by one with desired value, Daily record exports comparison result, and returns to desired mock data to meeting expected request;Digital simulation layer is not to needing simultaneously The service of parameter verification is carried out, background system request is directly constructed, service result is obtained, and return to foreground system as requested System.The present invention shields the complexity of background system, demonstrates whether service call parameter meets desired value, solves automation Background system is difficult to meet the problem of test request in regression test.
It is specifically described below in conjunction with the accompanying drawings, wherein, Fig. 2 is log recording table provided in an embodiment of the present invention record Process schematic processed, it is specific that each back office interface calls the command word parameter in service invocation request to determine to call Service.Digital simulation layer has all carried out daily record recording, such as order pretreatment interface, card information inquiry to regular trading emphasis interface Interface, Transaction Inquiries interface etc. are initiated in interface, transaction.Simultaneously.Digital simulation layer also maintains a set of need not recording (subsequently still Be required for calling background system to obtain content) interface list, the Groups List includes buffer service, encryption equipment service, public ginseng Number synchronous service etc..For the order for needing to record, system calls the method class recorded dedicated for daily record, records request content In response contents to log recording table.
When foreground system calls back office interface, order of the digital simulation layer in the service invocation request of foreground system Word is called carrying out background system, and background system determines current interface according to command word feedback response result by digital simulation layer Whether need to record and (pre-process interface for order, interface is initiated in card information query interface, transaction, and Transaction Inquiries interface is Need to record), when it is determined that needing to record, then the request data and response data of current interface be recorded into log recording table In, returned packet is then directly constructed when it is determined that need not record and foreground system is fed back to, wherein, include in returned packet The response contents of background system.
Foreground system carries out Hou Su logical process after obtaining the response asked, and such as continues to ask or stop to ask.
It is the method for testing detail flowchart based on financial sector provided in an embodiment of the present invention with reference to Fig. 3, i.e., by figure Flow shown in 2 has been carried out after the recording of the log recording table of digital simulation layer, subsequently enters line number for test cases again During according to request, then due to storing and ask accordingly corresponding response contents in digital simulation layer, then can directly by data mould Intending layer carries out the feedback of respective response content.
Reference picture 3, foreground system calls back office interface, digital simulation layer judge foreground system service invocation request whether It is message sign test, if so, then according to the corresponding log recording table of sign test data acquisition, and initialized in order according to file content Log recording content, and transaction label in the transaction is associated, and further, returns to sign test success, and construct with this Returned packet carries out subsequent logic treatment to foreground system by foreground system.
After foreground system receives message successful comprising message sign test, continue to send service call to digital simulation layer Request, now, the service invocation request message is no longer message sign test, but comprising specific command word and transaction label, because This, digital simulation layer finds corresponding log recording table according to transaction label, and takes out the order in corresponding log recording table The corresponding request of word and response contents, then by the corresponding request content of command word and log recording table in service invocation request In the request content of command word be compared, when comparing successfully, then return to response contents, and returned packet is constructed extremely with this Foreground system.
So as to based on said process, complete from digital simulation layer to foreground system feedback response contents, so as to improve Request of data efficiency and background system resource is saved.
The newly-increased digital simulation service layer of the present invention realizes parsing foreground system request message, as requested returning result The functions such as message, while digital simulation layer also can directly initiate request call background system.Whole automatic test is in two steps Carry out, the first step is that the daily record for carrying out arm's length dealing scene is recorded, and the log recording for treating analogue data can be generated by the step Table;Second step is playback transaction scene, and the log recording table that the first step is collected is collected and configured pretreatment, passes through by system The special field of merchant requests message up sending identifies whether the corresponding transaction of current order needs to carry out digital simulation, for needing Each interface interchange of order that digital simulation the returns then follow-up order transaction is wanted all to be simulated the comparison and return of data, The result of the various comparisons of log recording simultaneously.
The advantage of the embodiment of the present invention is:Any code of foreground system and background system need not be changed, in tested Hold without any intrusion.The present invention shields the complexity of background system, demonstrates whether service call parameter meets desired value, is Whether regression test result of determination successfully provides reference value, and background system is difficult in effectively solving Automation regression testing Meet the problem of test request.
Based on identical technology design, the embodiment of the present invention also provides a kind of test device based on financial sector, such as Fig. 4 It is shown, including:
Receiving unit 401, the service invocation request of the foreground system for receiving financial sector;
Acquiring unit 402, if for determining that the test device is stored with the service according to the service invocation request The corresponding response contents of call request, then obtain the response contents from the test device;
Transmitting element 403, for the response contents to be fed back into the foreground system.
Alternatively, the transmitting element 403, is additionally operable to:If determining the test device according to the service invocation request The corresponding response contents of the service invocation request are not stored, then the service invocation request is forwarded to the financial sector Background system;And the receiving unit 401 is received the background system feedback response contents feed back to it is described before Platform system;
The receiving unit 401, is additionally operable to receive the corresponding with the service invocation request of the background system feedback Response contents.
Alternatively, the test device also includes memory cell 404, is used for:
After receiving the response contents corresponding with the service invocation request of background system feedback, by the service Call request is associated with the response contents and is stored in the log recording table of the corresponding transaction of the service invocation request.
Alternatively, the memory cell 404, be additionally operable to will obtain the service invocation request in command word with it is described Before response contents are associated, determine that the corresponding type of transaction of the service invocation request belongs to type of transaction row to be recorded Table, the transaction type list to be recorded includes the type of transaction for needing record.
Alternatively, the test device also includes judging unit 405, is used for:
It is determined that there is the day of corresponding transaction for message sign test and the message sign test in the service invocation request for receiving Will record sheet, then obtain the log recording table of the transaction;
Obtain the command word in the service invocation request;
The command word is compared with the log recording table of the transaction, however, it is determined that the log recording table of the transaction In include and the command word identical command word, it is determined that the test device service invocation request that is stored with is corresponding Response contents.
Alternatively, the judging unit 405, is additionally operable to:
After obtaining the log recording table of the transaction, by the log recording table of the transaction and the service invocation request Corresponding transaction label association.
Alternatively, the test device also includes judging unit 405, is used for:
It is determined that the service invocation request for receiving is not message sign test and the corresponding trading standard of the service invocation request Number there is the log recording table of the transaction of association, obtain the command word in the service invocation request;
The command word is compared with the log recording table of the transaction, however, it is determined that the log recording table of the transaction In include and the command word identical command word, it is determined that the test device service invocation request that is stored with is corresponding Response contents
Alternatively, the judging unit 405, is additionally operable to:Determine that the test device is stored with the service invocation request Before corresponding response contents, the day of the corresponding request content of command word and the transaction in the service invocation request is determined The request content corresponding with the command word recorded in will record sheet is identical.
The embodiment of the present invention, increased a data simulation layer between foreground system and background system, foreground system to Digital simulation layer sends service invocation request, when digital simulation layer determines that digital simulation layer is stored with clothes according to service invocation request The business corresponding response contents of call request, then directly obtain from digital simulation layer response contents and feed back to foreground system, by Having prestored foreground system in digital simulation layer needs the data of request, therefore digital simulation layer can be directly anti-to foreground system Feedback response contents, therefore the speed of foreground system acquisition data is improve, and alleviate the pressure of background system.
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.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without deviating from essence of the invention to the present invention God and scope.So, if these modifications of the invention and modification belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising these changes and modification.

Claims (16)

1. a kind of method of testing based on financial sector, it is characterised in that including:
Digital simulation layer receives the service invocation request of the foreground system of financial sector;
If digital simulation layer determines that the digital simulation layer is stored with the service call according to the service invocation request Corresponding response contents are asked, then obtains the response contents from digital simulation layer;
The response contents are fed back to the foreground system by the digital simulation layer.
2. method according to claim 1, it is characterised in that methods described also includes:
If the digital simulation layer determines that the digital simulation layer does not store the service call according to the service invocation request Corresponding response contents are asked, then the service invocation request is forwarded to the background system of the financial sector;
The digital simulation layer receives the response contents corresponding with the service invocation request of the background system feedback, and instead It is fed to the foreground system.
3. method according to claim 2, it is characterised in that the digital simulation layer receives the background system feedback After response contents corresponding with the service invocation request, also include:
With the response contents be associated the service invocation request and the service is stored in and adjust by the digital simulation layer With the log recording table for asking corresponding transaction.
4. method according to claim 3, it is characterised in that the service call that the digital simulation layer will be obtained please Before the command word asked is associated with the response contents, also include:
The digital simulation layer determines that the corresponding type of transaction of the service invocation request belongs to transaction type list to be recorded, institute State transaction type list to be recorded and include the type of transaction for needing record.
5. method according to claim 1, it is characterised in that if digital simulation layer is according to the service invocation request Determine that digital simulation layer is stored with the corresponding response contents of the service invocation request, including:
The digital simulation layer determines the service invocation request for receiving for message sign test and the message sign test is in the presence of correspondence Transaction log recording table, then obtain the log recording table of the transaction;
The digital simulation layer obtains the command word in the service invocation request;
The digital simulation layer compares the command word with the log recording table of the transaction, however, it is determined that the transaction Included and the command word identical command word in log recording table, it is determined that the service that is stored with of digital simulation layer is adjusted With the corresponding response contents of request.
6. method according to claim 5, it is characterised in that after the log recording table of the acquisition transaction, also Including:
By the transaction label association corresponding with the service invocation request of the log recording table of the transaction.
7. method according to claim 1, it is characterised in that if digital simulation layer is according to the service invocation request Determine that digital simulation layer is stored with the corresponding response contents of the service invocation request, including:
The digital simulation layer determines that the service invocation request for receiving is not message sign test and the service invocation request pair There is the log recording table of the transaction of association in the transaction label answered, the digital simulation layer is obtained in the service invocation request Command word;
The digital simulation layer compares the command word with the log recording table of the transaction, however, it is determined that the transaction Included and the command word identical command word in log recording table, it is determined that the service that is stored with of digital simulation layer is adjusted With the corresponding response contents of request.
8. the method according to claim 5 or 7, it is characterised in that determine that the digital simulation layer is stored with the service Before the corresponding response contents of call request, also include:
The digital simulation layer determines the day of the corresponding request content of command word and the transaction in the service invocation request The request content corresponding with the command word recorded in will record sheet is identical.
9. a kind of test device based on financial sector, it is characterised in that including:
Receiving unit, the service invocation request of the foreground system for receiving financial sector;
Acquiring unit, if for determining that the test device is stored with the service invocation request according to the service invocation request Corresponding response contents, then obtain the response contents from the test device;
Transmitting element, for the response contents to be fed back into the foreground system.
10. device according to claim 9, it is characterised in that the transmitting element, is additionally operable to:If according to the service Call request determines that the test device does not store the corresponding response contents of the service invocation request, then by the service call Request is forwarded to the background system of the financial sector;And the background system feedback for receiving the receiving unit Response contents feed back to the foreground system;
The receiving unit, is additionally operable to receive in the response corresponding with the service invocation request that the background system feeds back Hold.
11. devices according to claim 10, it is characterised in that the test device also includes memory cell, is used for:
After receiving the response contents corresponding with the service invocation request of background system feedback, by the service call Ask to be associated with the response contents and be stored in the log recording table of the corresponding transaction of the service invocation request.
12. devices according to claim 11, it is characterised in that the memory cell, are additionally operable to the clothes that will be obtained Before command word in business call request is associated with the response contents, the corresponding transaction of the service invocation request is determined Type belongs to transaction type list to be recorded, and the transaction type list to be recorded includes the type of transaction for needing record.
13. devices according to claim 9, it is characterised in that the test device also includes judging unit, is used for:
It is determined that there is the daily record note of corresponding transaction for message sign test and the message sign test in the service invocation request for receiving Record table, then obtain the log recording table of the transaction;
Obtain the command word in the service invocation request;
The command word is compared with the log recording table of the transaction, however, it is determined that wrapped in the log recording table of the transaction Containing with the command word identical command word, it is determined that the test device is stored with the corresponding response of the service invocation request Content.
14. devices according to claim 13, it is characterised in that the judging unit, are additionally operable to:
It is after obtaining the log recording table of the transaction, the log recording table of the transaction is corresponding with the service invocation request Transaction label association.
15. devices according to claim 9, it is characterised in that the test device also includes judging unit, is used for:
It is determined that the service invocation request for receiving is not message sign test and the corresponding transaction label of the service invocation request depositing In the log recording table of the transaction of association, the command word in the service invocation request is obtained;
The command word is compared with the log recording table of the transaction, however, it is determined that wrapped in the log recording table of the transaction Containing with the command word identical command word, it is determined that the test device is stored with the corresponding response of the service invocation request Content.
16. device according to claim 13 or 15, it is characterised in that the judging unit, is additionally operable to:Determine the survey Trial assembly is put and is stored with before the corresponding response contents of the service invocation request, determines the command word in the service invocation request Corresponding request content is identical with the request content corresponding with the command word recorded in the log recording table of the transaction.
CN201611265971.4A 2016-12-30 2016-12-30 A kind of method of testing and device based on financial sector Pending CN106802864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611265971.4A CN106802864A (en) 2016-12-30 2016-12-30 A kind of method of testing and device based on financial sector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611265971.4A CN106802864A (en) 2016-12-30 2016-12-30 A kind of method of testing and device based on financial sector

Publications (1)

Publication Number Publication Date
CN106802864A true CN106802864A (en) 2017-06-06

Family

ID=58985368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611265971.4A Pending CN106802864A (en) 2016-12-30 2016-12-30 A kind of method of testing and device based on financial sector

Country Status (1)

Country Link
CN (1) CN106802864A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108111368A (en) * 2017-12-19 2018-06-01 中国银联股份有限公司 The function test method and device of a kind of transaction system
CN108304309A (en) * 2018-02-24 2018-07-20 中国农业银行股份有限公司 A kind of method and device of automation contrast test data
CN109688029A (en) * 2019-01-28 2019-04-26 浪潮金融信息技术有限公司 A kind of method and system at the simulation end P applied to financial self-service equipment
CN109739726A (en) * 2018-12-29 2019-05-10 阿里巴巴集团控股有限公司 A kind of health examination method, device and electronic equipment
CN110580224A (en) * 2019-09-20 2019-12-17 中国银行股份有限公司 System testing method, device and equipment
CN111190811A (en) * 2019-12-05 2020-05-22 东方微银科技(北京)有限公司 Method, device, equipment and storage medium for testing resource allocation system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678105A (en) * 2012-09-17 2014-03-26 百度在线网络技术(北京)有限公司 Page code testing method and device
CN103685354A (en) * 2012-09-05 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for testing based on RMI protocol
CN103795762A (en) * 2012-11-01 2014-05-14 百度在线网络技术(北京)有限公司 Reverse agent test system and method
CN104965784A (en) * 2015-06-16 2015-10-07 广州华多网络科技有限公司 Automatic test method and apparatus
CN105450476A (en) * 2015-12-07 2016-03-30 北京先进数通信息技术股份公司 Regression test system and test method
CN105515883A (en) * 2014-09-22 2016-04-20 阿里巴巴集团控股有限公司 Test method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685354A (en) * 2012-09-05 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for testing based on RMI protocol
CN103678105A (en) * 2012-09-17 2014-03-26 百度在线网络技术(北京)有限公司 Page code testing method and device
CN103795762A (en) * 2012-11-01 2014-05-14 百度在线网络技术(北京)有限公司 Reverse agent test system and method
CN105515883A (en) * 2014-09-22 2016-04-20 阿里巴巴集团控股有限公司 Test method and system
CN104965784A (en) * 2015-06-16 2015-10-07 广州华多网络科技有限公司 Automatic test method and apparatus
CN105450476A (en) * 2015-12-07 2016-03-30 北京先进数通信息技术股份公司 Regression test system and test method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108111368A (en) * 2017-12-19 2018-06-01 中国银联股份有限公司 The function test method and device of a kind of transaction system
CN108304309A (en) * 2018-02-24 2018-07-20 中国农业银行股份有限公司 A kind of method and device of automation contrast test data
CN108304309B (en) * 2018-02-24 2021-01-01 中国农业银行股份有限公司 Method and device for automatically comparing test data
CN109739726A (en) * 2018-12-29 2019-05-10 阿里巴巴集团控股有限公司 A kind of health examination method, device and electronic equipment
CN109688029A (en) * 2019-01-28 2019-04-26 浪潮金融信息技术有限公司 A kind of method and system at the simulation end P applied to financial self-service equipment
CN110580224A (en) * 2019-09-20 2019-12-17 中国银行股份有限公司 System testing method, device and equipment
CN111190811A (en) * 2019-12-05 2020-05-22 东方微银科技(北京)有限公司 Method, device, equipment and storage medium for testing resource allocation system

Similar Documents

Publication Publication Date Title
CN106802864A (en) A kind of method of testing and device based on financial sector
CN107645562A (en) Data transmission processing method, device, equipment and system
CN113037831B (en) Service gateway message processing method and device
CN106339222B (en) A kind of service implementing method and device
CN107819861A (en) Business data processing method, apparatus and system
CN107908680A (en) Management method, electronic device and the computer-readable recording medium of wechat public platform
CN107295031A (en) A kind of method of data synchronization and device
CN105207881A (en) Message sending method and equipment
CN112799970B (en) Test data processing method, device, electronic equipment and medium
CN111556209B (en) Customer service switching method and device, storage medium and electronic equipment
CN113115304B (en) Virtual number request and transmission method, device and storage medium
US11108759B2 (en) Message authenticated communication sessions
CN106302770A (en) The based reminding method of business information and system
CN107291777A (en) A kind of method and apparatus of hot spot data identification and processing
CN114416854B (en) Data conversion processing method and system
CN114677138A (en) Data processing method, data processing equipment and computer readable storage medium
CN112101810A (en) Risk event control method, device and system
CN112101915A (en) Financial service management and control data processing method and device
CN112579764A (en) Method, device, equipment and storage medium for generating court trial outline
CN106991017A (en) Event-handling method and device
CN107977380A (en) Method and apparatus for generating the page
CN115514993B (en) Operation control method and operation control system of cloud machine
CN112381642B (en) Dot management system and method based on dot robot
CN116405598B (en) Telephone deployment method and device and electronic equipment
CN106201842A (en) A kind of general report method and system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170606