CN102681936B - Verification method and device for test result of financial system - Google Patents

Verification method and device for test result of financial system Download PDF

Info

Publication number
CN102681936B
CN102681936B CN201210135846.7A CN201210135846A CN102681936B CN 102681936 B CN102681936 B CN 102681936B CN 201210135846 A CN201210135846 A CN 201210135846A CN 102681936 B CN102681936 B CN 102681936B
Authority
CN
China
Prior art keywords
propositions
logic
territory
message
relational expression
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.)
Active
Application number
CN201210135846.7A
Other languages
Chinese (zh)
Other versions
CN102681936A (en
Inventor
杨志刚
周期律
郭丽
于进
孟毅颖
涂晓军
蔡仕志
张旭春
王智忠
牛晔
高琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN201210135846.7A priority Critical patent/CN102681936B/en
Publication of CN102681936A publication Critical patent/CN102681936A/en
Application granted granted Critical
Publication of CN102681936B publication Critical patent/CN102681936B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a verification method and system for the test result of a financial system. The verification method for the test result of the financial system comprises the steps that a verification condition set in advance is obtained; the verification condition includes a transaction instruction set and a preset logical relation; the transaction instruction set comprises a plurality of sequentially executed transaction instructions; the preset logical relation comprises the logical relationship between message domains in single transaction and the logical relationship between different message domains of a plurality of transactions; a transaction instruction is executed, and message data corresponding to the transaction instruction is output; the message data is segmented, and segment values of the message domains contained in the preset logical relation are obtained; and calculation is carried out according to the segment values and the preset logical relationship, and whether the preset logical relation is tenable is judged. According to the verification method or system disclosed by the invention, the test result of the related transaction between the different domains can be verified, the operation process of a testing person can be simplified, and the verification efficiency of the test result is improved.

Description

A kind of verification method for financial sector test result and device
Technical field
The present invention relates to electronic banking field, particularly relate to a kind of verification method for financial sector test result and device.
Background technology
In electronic banking field, as long as financial sector has increased new function, just need to test financial sector.Whether, for a simple example, financial sector has increased " depositing in " function newly, needs financial sector to test as follows: 1, " deposit " operation in and can correctly carry out; 2, deposit in before with deposit in after, whether the remaining sum of user account has increased correct number.Conventionally, in this area, the first test is called to the result verification of transaction level, the second test is called to the result verification of logic level.
In prior art, for the method for the result verification of logic level be: some territory in result message is carried out comparing with the identical of character string, if compared successfully, by the result test of logic level.Concrete, being operating as example with above-mentioned " depositing in ", when the remaining sum after depositing in is tested, tester needs correct remaining sum number on first computational logic.For example, initial remaining sum is 300, deposits 500 in, deposits rear remaining sum in and should be 800.Then, tester, by input inquiry instruction, inquires about depositing rear remaining sum in, system finds the territory (being remaining sum) that needs inquiry from the last item Transaction Information, again the character string and 800 under this territory of remaining sum is compared, if equal 800, think by test.
Generally speaking, simply deposit operation in for one, in prior art, need the instruction of the initial remaining sum of first input inquiry, depositing operation in, last input inquiry deposits the instruction of rear remaining sum in, then by system, some territory in result message is carried out comparing with the identical of character string.
In sum, in prior art, when logic level result is verified, operating process complexity, and cannot to not between same area the test result of connected transaction verify.
Summary of the invention
The object of this invention is to provide a kind of verification method for financial sector test result and device, can to not between same area the test result of connected transaction verify, and can simplify tester's operating process, improve the verification efficiency of test result.
For achieving the above object, the invention provides following scheme:
For a verification method for financial sector test result, comprising:
Obtain the verification condition setting in advance; Described verification condition comprises trading instruction collection and logic of propositions relational expression; Described trading instruction collection comprises multiple trading instructions of carrying out successively; Described logic of propositions relational expression comprises the logic of propositions relation between multiple messages territory and described multiple messages territory;
Carry out described trading instruction, export the message data corresponding with described trading instruction;
Described message data is carried out to cutting, obtain the cutting value in the message territory that described logic of propositions relational expression comprises; Described described message data is carried out to cutting, comprising:
Determine length and the form in each message territory that described message data comprises according to message description list, in described message description list, between adjacent two message territories, there is separator;
The message data of described length is chosen in position corresponding to message territory comprising with described logic of propositions relational expression in described message data, obtains meeting the cutting value of described form;
Calculate according to described cutting value and described logic of propositions relation, judge whether described logic of propositions relational expression is set up.
Optionally, comprise the transaction level result mark message territory of correcting errors in message data corresponding to described and described trading instruction, described method also comprises:
Obtain the correct errors value in mark message territory of described transaction level result, judge that whether transaction grade result is correct.
Optionally, described method also comprises:
In the time that described transaction level result is incorrect, obtain the error code of described transaction level result;
Judge that whether described error code matches with default error code, obtains a judged result;
In the time that described judged result represents that described error code and default error code match, generate and represent the correct test result of described test.
Optionally, described logic of propositions relational expression also comprises the logic of propositions relation between the territory in territory and described multiple messages territory and the described tables of data in tables of data, and described method also comprises:
Inquire about the value in the territory in described tables of data;
Calculate according to the value in the territory in cutting value and the described tables of data in described multiple messages territory and described logic of propositions relation, judge whether described logic of propositions relational expression is set up.
Optionally, described method also comprises:
Receive the verification condition of user's setting as the described verification condition setting in advance.
For a verification system for financial sector test result, comprising:
Verification condition acquiring unit, for obtaining the verification condition setting in advance; Described verification condition comprises trading instruction collection and logic of propositions relational expression; Described trading instruction collection comprises multiple trading instructions of carrying out successively; Described logic of propositions relational expression comprises the logic of propositions relation between multiple messages territory and described multiple messages territory;
Trading instruction performance element, for carrying out described trading instruction, exports the message data corresponding with described trading instruction;
Message data cutting unit, for described message data is carried out to cutting, obtains the cutting value in the message territory that described logic of propositions relational expression comprises;
Described message data cutting unit, comprising:
Message structure is determined subelement, for determine length and the form in each message territory that described message data comprises according to message description list, in described message description list, between adjacent two message territories, has separator;
Cutting value is obtained subelement, chooses the message data of described length for position corresponding to message territory comprising with described logic of propositions relational expression at described message data, obtains meeting the cutting value of described form;
The first logic of propositions is related to judging unit, for calculating according to described cutting value and described logic of propositions relation, judges whether described logic of propositions relational expression is set up.
Optionally, comprise the transaction level result mark message territory of correcting errors in message data corresponding to described and described trading instruction, described system also comprises:
A transaction level result judging unit, for obtaining the correct errors value in mark message territory of described transaction level result, judge that whether transaction grade result is correct.
Optionally, described system also comprises:
Error code acquiring unit, in the time that described transaction level result is incorrect, obtains the error code of described transaction level result;
Error code judging unit, for judging that whether described error code matches with default error code, obtains a judged result;
Correct result generation unit, when representing that when described judged result described error code and default error code match, generates and represents the correct test result of described test.
Optionally, described logic of propositions relational expression also comprises the logic of propositions relation between the territory in territory and described multiple messages territory and the described tables of data in tables of data, and described method also comprises:
Tables of data thresholding query unit, for inquiring about the value in territory of described tables of data;
The second logic of propositions is related to judging unit, for calculating according to the value in the territory of the cutting value in described multiple messages territory and described tables of data and described logic of propositions relation, judges whether described logic of propositions relational expression is set up.
Optionally, described method also comprises:
Verification condition receiving element, for receive user set verification condition as the described verification condition setting in advance.
According to specific embodiment provided by the invention, the invention discloses following technique effect:
Verification method for financial sector test result of the present invention and system, by obtaining the verification condition setting in advance; Described verification condition comprises trading instruction; According to described trading instruction, can carry out successively multiple transaction; Described verification condition also comprises logic of propositions relational expression; According to described logic of propositions relational expression, and carry out the message data of exporting after described trading instruction, can verify whether the logical relation of the transaction results between multiple transaction meets logic of propositions relation.Therefore, the present embodiment can to not between same area the test result of connected transaction verify, and can simplify tester's operating process, improve the verification efficiency of test result.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the process flow diagram of the verification method embodiment 1 for financial sector test result of the present invention;
Fig. 2 is the process flow diagram of the verification method embodiment 2 for financial sector test result of the present invention;
Fig. 3 is the process flow diagram of the verification method embodiment 3 for financial sector test result of the present invention;
Fig. 4 is the process flow diagram of the verification method embodiment 4 for financial sector test result of the present invention;
Fig. 5 is the structural drawing of the verification system embodiment 1 for financial sector test result of the present invention;
Fig. 6 is the structural drawing of the verification system embodiment 2 for financial sector test result of the present invention;
Fig. 7 is the structural drawing of the verification system embodiment 3 for financial sector test result of the present invention;
Fig. 8 is the structural drawing of the verification system embodiment 4 for financial sector test result of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
Fig. 1 is the process flow diagram of the verification method embodiment 1 for financial sector test result of the present invention.As shown in Figure 1, the method comprises:
Step 101: obtain the verification condition setting in advance; Described verification condition comprises trading instruction collection and logic of propositions relational expression; Described logic of propositions relational expression comprises the logic of propositions relation between multiple messages territory and described multiple messages territory;
Described trading instruction collection can comprise one group of trading instruction.Described trading instruction at least comprises and depositing in, takes out, and the trading instructions such as inquiry, can also comprise the trading instruction such as transfer accounts.Logic of propositions relational expression comprises arithmetic symbol and comparison operator.
Described trading instruction collection can be set voluntarily by tester.One group of trading instruction that trading instruction is concentrated has successively execution sequence.For example, one group comprises and deposits in, takes out, and the trading instruction of inquiry trading instruction is concentrated, and its execution sequence is: first carry out and deposit instruction in, then carry out and take out instruction, finally carry out query statement.
In described logic of propositions relational expression, can adopt following describing mode for message territory: the 3rd the message territory that represents a certain message with " O3 ".That is, in logic of propositions relational expression, include message territory location identifier, for identifying the position in the message territory that need to obtain thresholding.
Step 102: carry out described trading instruction, export the message data corresponding with described trading instruction;
Often execute a trading instruction, just can export the message data corresponding with described trading instruction.A message data can comprise multiple messages territory, and each message territory has the thresholding corresponding with self.Message data also comprises attribute information, for indicating the attribute in corresponding message territory.For example, can represent that the attribute in certain message territory is Renminbi with 01.
Step 103: described message data is carried out to cutting, obtain the cutting value in the message territory that described logic of propositions relational expression comprises;
Described described message data is carried out to cutting, can comprise:
Determine length and the form in each message territory that described message data comprises according to message description list, in described message description list, between adjacent two message territories, there is separator;
The message data of described length is chosen in position corresponding to message territory comprising with described logic of propositions relational expression in described message data, obtains meeting the cutting value of described form;
Can carry out cutting to described message data according to message description list.In message description list, have about message domain structure and the message territory of some message and describe.Concrete, the form of message domain structure is as %19s%19.2f, wherein, % is cutting symbol, and the content between two cutting symbols is length and the form in this message territory, and for example 19s represents that this message territory is 19 string formats, 19.2f represents 19 floating numbers, has two after radix point.The numerical value in the corresponding message of described cutting value representation territory.In message description list, also there is message territory and describe.For example, card number | the amount of money | in, " | " is cutting symbol, card number just represents corresponding being described as in first message territory " card number ".
In practical application, message data can be the combination of a string character or numeral, for example " 12345100 ".The message domain structure of supposing message data corresponding to certain instruction is %5d%3f, and message territory is described as card number | the amount of money |, so just representing, in this message data, front 5 bit data represent card number, and form is integer type, and rear 3 is the data representation amount of money, and form is floating number.
Step 104: calculate according to described cutting value and described logic of propositions relation, judge whether described logic of propositions relational expression is set up.
In this step, can identify the comparison operator in described logic of propositions relational expression, cutting value is updated in described logic of propositions relational expression, calculates respectively the result of described comparison operator the right and left, judge whether the result of the right and left meets the represented relation of described comparison operator.Described comparison operator at least comprises :=, >, <.
Below by an object lesson explanation, the implementation of the present embodiment.First carry out, successively the trading instruction in the verification condition getting.After trading instruction of every execution, all can obtain corresponding message data (being the execution result of trading instruction).Be operating as example to deposit in, first carry out the operation that queries the balance, then carry out and deposit operation in, after having deposited in, then the execution operation that queries the balance.According to the execution result of every trading instruction, obtain the cutting value in the territory that represents account balance, be updated to described logic of propositions relational expression and calculate.Suppose that initial remaining sum is 300, deposit 500 in, deposit rear remaining sum in and should be 800.If logic of propositions closes be: initial remaining sum+deposit in the amount of money=deposit rear remaining sum in, described logic of propositions relational expression is set up; If logic of propositions closes be: initial remaining sum-deposit in the amount of money=deposit rear remaining sum in, described logic of propositions relational expression is false.Therefore, in the present embodiment, can verify whether logic of propositions relational expression makes mistakes.
In the present embodiment, by obtaining the verification condition setting in advance; Described verification condition comprises trading instruction; According to described trading instruction, can carry out successively multiple transaction; Described verification condition also comprises logic of propositions relational expression; According to described logic of propositions relational expression, and carry out the message data of exporting after described trading instruction, can verify whether the logical relation of the transaction results between multiple transaction meets logic of propositions relation.Therefore, the present embodiment can to not between same area the test result of connected transaction verify, and can simplify tester's operating process, improve the verification efficiency of test result.
Fig. 2 is the process flow diagram of the verification method embodiment 2 for financial sector test result of the present invention.As shown in Figure 2, the method comprises:
Step 201: obtain the verification condition setting in advance; Described verification condition comprises trading instruction and logic of propositions relational expression; Described logic of propositions relational expression comprises the logic of propositions relation between multiple messages territory and described multiple messages territory;
Step 202: carry out described trading instruction, export the message data corresponding with described trading instruction;
Step 203: obtain the correct errors value in mark message territory of described transaction level result, judge that whether transaction grade result is correct;
Transaction level result is correct, represents that this trading instruction runs succeeded; A transaction level erroneous results, represents that this trading instruction carries out unsuccessfully.In message data corresponding to described and described trading instruction, comprise the transaction level result mark message territory of correcting errors.Concrete, can be to correct errors the value in mark message territory during for " N " when described transaction level result, represent that transaction grade result is correct; Correct errors the value in mark message territory during for " E " when described transaction level result, represent a transaction level erroneous results.
In practical application, if a transaction level erroneous results can perform step 204 and step 205.
Step 204: described message data is carried out to cutting, obtain the cutting value in the message territory that described logic of propositions relational expression comprises;
Step 205: calculate according to described cutting value and described logic of propositions relation, judge whether described logic of propositions relational expression is set up.
Visible, in the present embodiment, can to financial sector test result conclude the business level result test.
Fig. 3 is the process flow diagram of the verification method embodiment 3 for financial sector test result of the present invention.As shown in Figure 3, the method comprises:
Step 301: obtain the verification condition setting in advance; Described verification condition comprises trading instruction and logic of propositions relational expression; Described logic of propositions relational expression comprises the logic of propositions relation between multiple messages territory and described multiple messages territory;
Step 302: carry out described trading instruction, export the message data corresponding with described trading instruction;
Step 303: obtain the correct errors value in mark message territory of described transaction level result, judge that whether transaction grade result is correct;
Step 304: in the time that described transaction level result is incorrect, obtain the error code of described transaction level result;
In some cases, the transaction level result of carrying out described trading instruction is exactly incorrect.Now can return to an error code.The remaining sum that the Currency Type of for example, inquiring about certain card number under certain account is dollar.In the time not having under the card number of the account dollar, Query Result will return and represent the transaction level incorrect mark of result " E ".But, also there are error code, for example " 2014 " about this transaction.In step 304, can obtain the error code of this transaction.
Step 305: judge that whether described error code matches with default error code, obtains a judged result;
In the above example, tester just can make estimation to Query Result in advance., can set in advance default error code " 2014 ".Compared in the error code obtaining and " 2014 ", see and whether mate.
Step 306: in the time that described judged result represents that described error code and default error code match, generate and represent the correct test result of described test.
In the above example, if the error code obtaining matches (being also 2014) with " 2014 ", represent that this transaction is correct, can generate and represent the correct test result of described test.
Visible, in the present embodiment, in the time that the incorrect and logic level result of transaction level result is correct, the mode that also can compare by character string financial sector test result is verified.
Fig. 4 is the process flow diagram of the verification method embodiment 4 for financial sector test result of the present invention.As shown in Figure 4, the method comprises:
Step 401: obtain the verification condition setting in advance; Described verification condition comprises trading instruction and logic of propositions relational expression; Described logic of propositions relational expression comprises the logic of propositions relation between multiple messages territory and described multiple messages territory;
Described logic of propositions relational expression also comprises the logic of propositions relation between the territory in territory and described multiple messages territory and the described tables of data in tables of data.
Step 402: carry out described trading instruction, export the message data corresponding with described trading instruction;
Step 403: obtain the correct errors value in mark message territory of described transaction level result, judge that whether transaction grade result is correct;
Step 404: described message data is carried out to cutting, obtain the cutting value in the message territory that described logic of propositions relational expression comprises;
Step 405: the value of inquiring about the territory in described tables of data;
In some cases, cannot obtain the message data of the trading instruction of carrying out before.Now, if include the message territory of the message data of the described trading instruction of carrying out before in logic of propositions relational expression, cannot obtain the value in this message territory.But the message data of the trading instruction of carrying out can be stored in tables of data before.Therefore, can from tables of data, inquire about the value in corresponding territory.
Step 406: calculate according to the value in the territory in cutting value and the described tables of data in described multiple messages territory and described logic of propositions relation, judge whether described logic of propositions relational expression is set up.
In the present embodiment, can the logical relation between message territory and tables of data verify financial sector test result.
It should be noted that, in above-described embodiment of the application's the verification method for financial sector test result, described in the verification condition that sets in advance all can make user set.
The invention also discloses a kind of verification system for financial sector test result.Fig. 5 is the structural drawing of the verification system embodiment 1 for financial sector test result of the present invention.As shown in Figure 5, this system comprises:
Verification condition acquiring unit 501, for obtaining the verification condition setting in advance; Described verification condition comprises trading instruction and logic of propositions relational expression; Described logic of propositions relational expression comprises the logic of propositions relation between multiple messages territory and described multiple messages territory;
Trading instruction performance element 502, for carrying out described trading instruction, exports the message data corresponding with described trading instruction;
Message data cutting unit 503, for described message data is carried out to cutting, obtains the cutting value in the message territory that described logic of propositions relational expression comprises;
Described message data cutting unit, can comprise:
Message structure is determined subelement, for determine length and the form in each message territory that described message data comprises according to message description list, in described message description list, between adjacent two message territories, has separator;
Cutting value is obtained subelement, chooses the message data of described length for position corresponding to message territory comprising with described logic of propositions relational expression at described message data, obtains meeting the cutting value of described form.
The first logic of propositions is related to judging unit 504, for calculating according to described cutting value and described logic of propositions relation, judges whether described logic of propositions relational expression is set up.
In the present embodiment, by obtaining the verification condition setting in advance; Described verification condition comprises trading instruction; According to described trading instruction, can carry out successively multiple transaction; Described verification condition also comprises logic of propositions relational expression; According to described logic of propositions relational expression, and carry out the message data of exporting after described trading instruction, can verify whether the logical relation of the transaction results between multiple transaction meets logic of propositions relation.Therefore, the verification system for financial sector test result in the present embodiment, can to not between same area the test result of connected transaction verify, and can simplify tester's operating process, improve the verification efficiency of test result.
Fig. 6 is the structural drawing of the verification system embodiment 2 for financial sector test result of the present invention.As shown in Figure 6, this system comprises:
Verification condition acquiring unit 501, for obtaining the verification condition setting in advance; Described verification condition comprises trading instruction and logic of propositions relational expression; Described logic of propositions relational expression comprises the logic of propositions relation between multiple messages territory and described multiple messages territory;
Trading instruction performance element 502, for carrying out described trading instruction, exports the message data corresponding with described trading instruction;
A transaction level result judging unit 601, for obtaining the correct errors value in mark message territory of described transaction level result, judge that whether transaction grade result is correct.
Message data cutting unit 503, for described message data is carried out to cutting, obtains the cutting value in the message territory that described logic of propositions relational expression comprises;
The first logic of propositions is related to judging unit 504, for calculating according to described cutting value and described logic of propositions relation, judges whether described logic of propositions relational expression is set up.
Visible, in the present embodiment, can to financial sector test result conclude the business level result test.
Fig. 7 is the structural drawing of the verification system embodiment 3 for financial sector test result of the present invention.As shown in Figure 7, this system comprises:
Verification condition acquiring unit 501, for obtaining the verification condition setting in advance; Described verification condition comprises trading instruction and logic of propositions relational expression; Described logic of propositions relational expression comprises the logic of propositions relation between multiple messages territory and described multiple messages territory;
Trading instruction performance element 502, for carrying out described trading instruction, exports the message data corresponding with described trading instruction;
A transaction level result judging unit 601, for obtaining the correct errors value in mark message territory of described transaction level result, judge that whether transaction grade result is correct.
Error code acquiring unit 701, in the time that described transaction level result is incorrect, obtains the error code of described transaction level result;
Error code judging unit 702, for judging that whether described error code matches with default error code, obtains a judged result;
Correct result generation unit 703, when representing that when described judged result described error code and default error code match, generates and represents the correct test result of described test.
Visible, in the present embodiment, in the time that the incorrect and logic level result of transaction level result is correct, the mode that also can compare by character string financial sector test result is verified.
Fig. 8 is the structural drawing of the verification system embodiment 4 for financial sector test result of the present invention.As shown in Figure 8, this system comprises:
Verification condition acquiring unit 501, for obtaining the verification condition setting in advance; Described verification condition comprises trading instruction and logic of propositions relational expression; Described logic of propositions relational expression comprises the logic of propositions relation between multiple messages territory and described multiple messages territory;
Described logic of propositions relational expression also comprises the logic of propositions relation between the territory in territory and described multiple messages territory and the described tables of data in tables of data.
Trading instruction performance element 502, for carrying out described trading instruction, exports the message data corresponding with described trading instruction;
A transaction level result judging unit 601, for obtaining the correct errors value in mark message territory of described transaction level result, judge that whether transaction grade result is correct.
Message data cutting unit 503, for described message data is carried out to cutting, obtains the cutting value in the message territory that described logic of propositions relational expression comprises;
Tables of data thresholding query unit 801, for inquiring about the value in territory of described tables of data;
The second logic of propositions is related to judging unit 802, for calculating according to the value in the territory of the cutting value in described multiple messages territory and described tables of data and described logic of propositions relation, judges whether described logic of propositions relational expression is set up.
The first logic of propositions is related to judging unit 504, for calculating according to described cutting value and described logic of propositions relation, judges whether described logic of propositions relational expression is set up.
In the present embodiment, can the logical relation between message territory and tables of data verify financial sector test result.
It should be noted that, in above-described embodiment of the application's the verification system for financial sector test result, all can comprise verification condition receiving element, for receive user set verification condition as the described verification condition setting in advance.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.For the disclosed system of embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates referring to method part.
Applied specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications.In sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. for a verification method for financial sector test result, it is characterized in that, comprising:
Obtain the verification condition setting in advance; Described verification condition comprises trading instruction collection and logic of propositions relational expression; Described trading instruction collection comprises one group of trading instruction; Described trading instruction at least comprises and depositing in, takes out inquiry trading instruction; Described logic of propositions relational expression comprises arithmetic symbol and comparison operator; Described trading instruction collection comprises multiple trading instructions of carrying out successively; Described logic of propositions relational expression comprises the logic of propositions relation between multiple messages territory and described multiple messages territory;
Carry out described trading instruction, export the message data corresponding with described trading instruction;
Described message data is carried out to cutting, obtain the cutting value in the message territory that described logic of propositions relational expression comprises; Described described message data is carried out to cutting, comprising:
Determine length and the form in each message territory that described message data comprises according to message description list, in described message description list, between adjacent two message territories, there is separator;
The message data of described length is chosen in position corresponding to message territory comprising with described logic of propositions relational expression in described message data, obtains meeting the cutting value of described form;
Calculate according to described cutting value and described logic of propositions relation, judge whether described logic of propositions relational expression is set up; Describedly judge whether described logic of propositions relational expression is set up and comprise, identify the comparison operator in described logic of propositions relational expression, cutting value is updated in described logic of propositions relational expression, calculate respectively the result of described comparison operator the right and left, judge whether the result of the right and left meets the represented relation of described comparison operator; Described comparison operator at least comprises :=, >, <.
2. method according to claim 1, is characterized in that, comprises the transaction level result mark message territory of correcting errors in message data corresponding to described and described trading instruction, and described method also comprises:
Obtain the correct errors value in mark message territory of described transaction level result, judge that whether transaction grade result is correct.
3. method according to claim 2, is characterized in that, described method also comprises:
In the time that described transaction level result is incorrect, obtain the error code of described transaction level result;
Judge that whether described error code matches with default error code, obtains a judged result;
In the time that described judged result represents that described error code and default error code match, generate and represent the correct test result of described test.
4. method according to claim 1, is characterized in that, described logic of propositions relational expression also comprises the logic of propositions relation between the territory in territory and described multiple messages territory and the described tables of data in tables of data, and described method also comprises:
Inquire about the value in the territory in described tables of data;
Calculate according to the value in the territory in cutting value and the described tables of data in described multiple messages territory and described logic of propositions relation, judge whether described logic of propositions relational expression is set up.
5. according to the method described in claim 1-4 any one, it is characterized in that, described method also comprises:
Receive the verification condition of user's setting as the described verification condition setting in advance.
6. for a verification system for financial sector test result, it is characterized in that, comprising:
Verification condition acquiring unit, for obtaining the verification condition setting in advance; Described verification condition comprises trading instruction collection and logic of propositions relational expression; Described trading instruction collection comprises one group of trading instruction; Described trading instruction at least comprises and depositing in, takes out inquiry trading instruction; Described logic of propositions relational expression comprises arithmetic symbol and comparison operator; Described trading instruction collection comprises multiple trading instructions of carrying out successively; Described logic of propositions relational expression comprises the logic of propositions relation between multiple messages territory and described multiple messages territory;
Trading instruction performance element, for carrying out described trading instruction, exports the message data corresponding with described trading instruction;
Message data cutting unit, for described message data is carried out to cutting, obtains the cutting value in the message territory that described logic of propositions relational expression comprises;
Described message data cutting unit, comprising:
Message structure is determined subelement, for determine length and the form in each message territory that described message data comprises according to message description list, in described message description list, between adjacent two message territories, has separator;
Cutting value is obtained subelement, chooses the message data of described length for position corresponding to message territory comprising with described logic of propositions relational expression at described message data, obtains meeting the cutting value of described form;
The first logic of propositions is related to judging unit, for calculating according to described cutting value and described logic of propositions relation, judges whether described logic of propositions relational expression is set up; Describedly judge whether described logic of propositions relational expression is set up and comprise, identify the comparison operator in described logic of propositions relational expression, cutting value is updated in described logic of propositions relational expression, calculate respectively the result of described comparison operator the right and left, judge whether the result of the right and left meets the represented relation of described comparison operator; Described comparison operator at least comprises :=, >, <.
7. system according to claim 6, is characterized in that, comprises the transaction level result mark message territory of correcting errors in message data corresponding to described and described trading instruction, and described system also comprises:
A transaction level result judging unit, for obtaining the correct errors value in mark message territory of described transaction level result, judge that whether transaction grade result is correct.
8. system according to claim 7, is characterized in that, described system also comprises:
Error code acquiring unit, in the time that described transaction level result is incorrect, obtains the error code of described transaction level result;
Error code judging unit, for judging that whether described error code matches with default error code, obtains a judged result;
Correct result generation unit, when representing that when described judged result described error code and default error code match, generates and represents the correct test result of described test.
9. system according to claim 6, is characterized in that, described logic of propositions relational expression also comprises the logic of propositions relation between the territory in territory and described multiple messages territory and the described tables of data in tables of data, and described system also comprises:
Tables of data thresholding query unit, for inquiring about the value in territory of described tables of data;
The second logic of propositions is related to judging unit, for calculating according to the value in the territory of the cutting value in described multiple messages territory and described tables of data and described logic of propositions relation, judges whether described logic of propositions relational expression is set up.
10. according to the system described in claim 6-9 any one, it is characterized in that, described system also comprises:
Verification condition receiving element, for receive user set verification condition as the described verification condition setting in advance.
CN201210135846.7A 2012-05-03 2012-05-03 Verification method and device for test result of financial system Active CN102681936B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210135846.7A CN102681936B (en) 2012-05-03 2012-05-03 Verification method and device for test result of financial system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210135846.7A CN102681936B (en) 2012-05-03 2012-05-03 Verification method and device for test result of financial system

Publications (2)

Publication Number Publication Date
CN102681936A CN102681936A (en) 2012-09-19
CN102681936B true CN102681936B (en) 2014-11-19

Family

ID=46813899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210135846.7A Active CN102681936B (en) 2012-05-03 2012-05-03 Verification method and device for test result of financial system

Country Status (1)

Country Link
CN (1) CN102681936B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104392381A (en) * 2014-10-29 2015-03-04 中国建设银行股份有限公司 Risk monitoring method of transaction data and system thereof
CN109388570A (en) * 2018-10-12 2019-02-26 东软集团股份有限公司 Service logic detection method, device and computer readable storage medium
CN109583688A (en) * 2018-10-16 2019-04-05 深圳壹账通智能科技有限公司 Performance test methods, device, computer equipment and storage medium
CN113656497A (en) * 2021-08-06 2021-11-16 支付宝(杭州)信息技术有限公司 Data verification method and device based on block chain
CN114338850B (en) * 2021-12-24 2024-03-19 百富计算机技术(深圳)有限公司 Message checking method, device, terminal equipment and computer readable storage medium
CN116483689B (en) * 2023-03-13 2024-01-05 深圳华锐分布式技术股份有限公司 Method, device, equipment and medium for testing option brokerage quick trading system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1539246A (en) * 2001-07-10 2004-10-20 美国快递旅游服务股份有限公司 System and method for payment using radio frequency identifycation contact and contactless transactions
CN101097645A (en) * 2006-06-30 2008-01-02 中国银联股份有限公司 Method for finishing financial data-handling with video terminal and public payment server
CN101458705A (en) * 2008-12-29 2009-06-17 阿里巴巴集团控股有限公司 Data collating method between different utility systems, apparatus and system
CN101527070A (en) * 2009-04-15 2009-09-09 唐宇良 Safe transaction control method and system thereof
CN101799954A (en) * 2009-11-20 2010-08-11 北京飞天诚信科技有限公司 Method for loading double electronic purses
CN101854298A (en) * 2010-05-19 2010-10-06 中国农业银行股份有限公司 Automatic link method of message, account correction method and system
CN102122265A (en) * 2011-03-03 2011-07-13 中国工商银行股份有限公司 System and method for verifying computer software test results

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1539246A (en) * 2001-07-10 2004-10-20 美国快递旅游服务股份有限公司 System and method for payment using radio frequency identifycation contact and contactless transactions
CN101097645A (en) * 2006-06-30 2008-01-02 中国银联股份有限公司 Method for finishing financial data-handling with video terminal and public payment server
CN101458705A (en) * 2008-12-29 2009-06-17 阿里巴巴集团控股有限公司 Data collating method between different utility systems, apparatus and system
CN101527070A (en) * 2009-04-15 2009-09-09 唐宇良 Safe transaction control method and system thereof
CN101799954A (en) * 2009-11-20 2010-08-11 北京飞天诚信科技有限公司 Method for loading double electronic purses
CN101854298A (en) * 2010-05-19 2010-10-06 中国农业银行股份有限公司 Automatic link method of message, account correction method and system
CN102122265A (en) * 2011-03-03 2011-07-13 中国工商银行股份有限公司 System and method for verifying computer software test results

Also Published As

Publication number Publication date
CN102681936A (en) 2012-09-19

Similar Documents

Publication Publication Date Title
CN102681936B (en) Verification method and device for test result of financial system
CN109993651B (en) Data accounting service instruction set checking method, device, computer equipment and medium
CN105610654A (en) Server, and policy online test method and system
CN102033965A (en) Method and system for classifying data based on classification model
CN109582550B (en) Method, device and server for acquiring full-service scene fault set
CN112016919B (en) Data processing method and device for calculating total amount
CN107133856A (en) The control method and device of risk order
WO2022120995A1 (en) Device computing power evaluation method and system based on pow consensus mechanism
CN104574141A (en) Service influence degree analysis method
CN102170378A (en) Web service test method with no need of anticipation
CN103514092A (en) Method for automatic testing of software system of ATM
CN102521713B (en) Data processing equipment and data processing method
CN104317707A (en) Program structure influence sensing based software error positioning method
CN105912602A (en) True-value finding method based on entity attributes
CN104574179A (en) Double-check verification system and double-check verification method for bank card capital settlement platform
CN109934590A (en) A kind of data processing method based on block chain, device, electronic equipment and medium
CN110276609B (en) Business data processing method and device, electronic equipment and computer readable medium
CN117541385A (en) Frequent financial transaction mining method and device based on association rule item
CN117194500A (en) Data index verification method, device, equipment and storage medium
CN111242763A (en) Method and device for determining target user group
CN116938523A (en) Blockchain system, operating method, electronic device and storage medium
CN109166042B (en) Node device, real-time reconciliation method based on blockchain, and storage medium
CN109324963A (en) The method and terminal device of automatic test profitable result
CN106446125B (en) Method and device for improving data quality
CN116244699A (en) Vulnerability risk assessment system based on interactive application security detection

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant