CN106803202A - The extracting method and device of a kind of transaction record to be tested - Google Patents
The extracting method and device of a kind of transaction record to be tested Download PDFInfo
- Publication number
- CN106803202A CN106803202A CN201611199162.8A CN201611199162A CN106803202A CN 106803202 A CN106803202 A CN 106803202A CN 201611199162 A CN201611199162 A CN 201611199162A CN 106803202 A CN106803202 A CN 106803202A
- Authority
- CN
- China
- Prior art keywords
- transaction
- transaction record
- record
- information
- major key
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/02—Banking, e.g. interest calculation or account maintenance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/174—Redundancy elimination performed by the file system
- G06F16/1748—De-duplication implemented within the file system, e.g. based on file segments
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/1805—Append-only file systems, e.g. using logs or journals to store data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2291—User-Defined Types; Storage management thereof
Abstract
The present embodiments relate to the communications field, more particularly to a kind of transaction record to be tested extracting method and device, for improving testing efficiency.In the embodiment of the present invention, Transaction Information in N bar transaction records, and N bar transaction records is obtained;N is the integer more than 1;The Transaction Information of every transaction record in N bar transaction records, determines the corresponding business scenario information of this transaction record;Deduplication operation is carried out to the business scenario a plurality of transaction record of information identical in N bar transaction records, K bar transaction records are obtained;K is the integer more than or equal to 1 and less than or equal to N;K bar transaction records are defined as transaction record to be tested.Because business scenario identical transaction record carries out deduplication operation in the N bar transaction records to getting, therefore obtain not including identical services scene transaction record in transaction record to be tested, and then treat test transaction record and test and can avoid to identical services scene retest problem, improve testing efficiency.
Description
Technical field
The present embodiments relate to the communications field, more particularly to a kind of transaction record to be tested extracting method and device.
Background technology
With the development of bank transaction business, transaction business scene is also gradually increasing, such as:Internet service goes out
Existing, the appearance of new business is likely to result in old system can not meet new demand, accordingly, it would be desirable to be changed to system;Again
Or upgrading, the change of system institute running environment of hardware system, it is required to change system;But system variation can be right
Business produces influence, accordingly, it would be desirable to test transaction record, is easy to whether checking system can use.
In the prior art, for the test of transaction record, the method for using concurrent testing, i.e.,:Selection 1 is several
The transaction record of the individual day of trade carries out playback test.Test process is:The new and old two sets of production environments of simulation are built in test environment,
Played back using instrument and concluded the business, be verification standard with result with reference to variance analysis result is needed, and by Classifying Sum, bright
Thin core Peer is analyzed with result, the correctness of validation test environment transaction test result, so as to reach
The purpose verified to new system with transaction prototype.This method of testing, it is impossible to determine the coverage rate of business scenario, Jin Erzao
It is inaccurate into test result, and identical transaction record can retest, it is high in turn result in test job redundancy, test effect
Rate is low.
The content of the invention
The extracting method and device of a kind of transaction record to be tested are the embodiment of the invention provides, for improving test effect
Rate.
The embodiment of the present invention provides a kind of extracting method of transaction record to be tested, including:
Obtain the Transaction Information of every transaction record in N bar transaction records, and N bar transaction records;Wherein, N is big
In 1 integer;The Transaction Information of every transaction record in N bar transaction records, determines that this transaction record is corresponding
Business scenario information;Deduplication operation is carried out to the business scenario a plurality of transaction record of information identical in N bar transaction records, K is obtained
Bar transaction record;Wherein, K is the integer more than or equal to 1 and less than or equal to N;K bar transaction records are defined as transaction to be tested
Record.
Alternatively, the Transaction Information of every transaction record in N bar transaction records, and N bar transaction records, bag are obtained
Include:Obtain the corresponding multiple messages of N bar transaction records;Wherein, every transaction record correspondence at least one is reported in N bars transaction record
Text;Each message includes the corresponding Transaction Information of transaction major key at least one message;According to each message bag in multiple messages
The corresponding Transaction Information of transaction major key for including, matches in N bar transaction records corresponding at least one message of every transaction record;
Wherein, the corresponding Transaction Information phase of transaction major key that wantonly four messages include in corresponding at least one message of every transaction record
Together;For every transaction record in N bar transaction records, according to each message in corresponding at least one message of this transaction record
Including Transaction Information, determine the Transaction Information of this transaction record.
Alternatively, the corresponding business scenario information of every transaction record in N bars transaction record includes:Every transaction record
Case description and case sequence number;Alternatively, the Transaction Information of every transaction record in N bar transaction records, determines
The corresponding business scenario information of this transaction record, including:For every transaction record in N bar transaction records, perform:According to
The Transaction Information of this transaction record determines the corresponding Transaction Information of transaction major key that this transaction record includes;And true
In the case that the Transaction Information of fixed this transaction record includes the corresponding Transaction Information of historical trading major key, determine that this hands over
The corresponding Transaction Information of historical trading major key for easily recording;The corresponding Transaction Information of transaction major key according to N bar transaction records and
The corresponding Transaction Information of historical trading major key, determines from remaining N-1 bar transaction record and is associated with the presence of this transaction record
Every time of origin of transaction record is successively suitable in the M bar transaction records of relation, and this transaction record and M bar transaction records
Sequence;Wherein, M is the integer more than or equal to zero;According to every transaction of transaction record in this transaction record and M bar transaction records
Every time of origin sequencing of transaction record, determines this in information, and this transaction record and M bar transaction records
Transaction record and the corresponding case description of M bar transaction records;According to every transaction note in this transaction record and M bar transaction records
The time of origin sequencing of record, for every transaction record in this transaction record and M bar transaction records distributes case sequence number.
Alternatively, the corresponding Transaction Information of transaction major key according to N bar transaction records and the corresponding friendship of historical trading major key
Easy information, determines the M bar transaction records that there is incidence relation with this transaction record from remaining N-1 bar transaction record, wraps
Include:For the nth bar transaction record in the N-1 bar transaction records in addition to this transaction record, n is more than or equal to 1 and is less than
Integer equal to N-1, performs:Do not include the corresponding Transaction Information of historical trading major key in this transaction record, and nth bar is concluded the business
In the case that record includes the corresponding Transaction Information of historical trading major key:It is determined that the transaction major key correspondence of nth bar transaction record
Transaction Information or the corresponding Transaction Information of historical trading major key, friendship corresponding with the transaction major key that this transaction record includes
Credulity manner of breathing determines that nth bar transaction record has incidence relation with this transaction record in the case of;In this transaction record
Including the corresponding Transaction Information of historical trading major key, and nth bar transaction record does not include the corresponding transaction letter of historical trading major key
In the case of breath:It is determined that the corresponding Transaction Information of transaction major key of nth bar transaction record, include with this transaction record
In the case of the corresponding Transaction Information of transaction major key or the corresponding Transaction Information identical of historical trading major key, determine that nth bar is concluded the business
There is incidence relation with this transaction record in record;Include the corresponding Transaction Information of historical trading major key in this transaction record,
And in the case that nth bar transaction record includes the corresponding Transaction Information of historical trading major key:It is determined that the friendship of nth bar transaction record
The easy corresponding Transaction Information of major key or the corresponding Transaction Information of historical trading major key, the transaction master included with this transaction record
In the case of the corresponding Transaction Information of key or the corresponding Transaction Information identical of historical trading major key, determine nth bar transaction record with
There is incidence relation in this transaction record.
Alternatively, according to every Transaction Information of transaction record in this transaction record and M bar transaction records, and this
Every time of origin sequencing of transaction record, determines this transaction record and M bars in transaction record and M bar transaction records
The corresponding case description of transaction record, including:According to every transaction of transaction record in this transaction record and M bar transaction records
Information, determines the corresponding transaction letter of default element of transaction of every transaction record in this transaction record and M bar transaction records
Breath;According to every time of origin sequencing of transaction record in this transaction record and M bar transaction records, this is concluded the business and is remembered
Record Transaction Information corresponding with the default element of transaction of every transaction record in M bar transaction records is combined, and obtains this friendship
Easily record case description corresponding with M bar transaction records.
Alternatively, deduplication operation is carried out to the business scenario a plurality of transaction record of information identical in N bar transaction records, is wrapped
Include:For every transaction record in N bar transaction records, perform:It is determined that being retouched in the presence of case corresponding with this transaction record
In the case of stating with the transaction record of case sequence number identical at least one, at least one transaction record is deleted.
The embodiment of the present invention provides a kind of device of the extraction of transaction record to be tested, including:
Acquiring unit, the transaction for obtaining every transaction record in N bar transaction records, and N bar transaction records is believed
Breath;Wherein, N is the integer more than 1;Determining unit, for the transaction letter of every transaction record in N bar transaction records
Breath, determines the corresponding business scenario information of this transaction record;K bar transaction records are defined as transaction record to be tested;Place
Reason unit, for carrying out deduplication operation to the business scenario a plurality of transaction record of information identical in N bar transaction records, obtains K bars
Transaction record;Wherein, K is the integer more than or equal to 1 and less than or equal to N.
Alternatively, acquiring unit, is used for:Obtain the corresponding multiple messages of N bar transaction records;Wherein, in N bars transaction record
Every transaction record at least one message of correspondence;Each message includes the corresponding transaction letter of transaction major key at least one message
Breath;Processing unit, is used for:According to the corresponding Transaction Information of transaction major key that each message in multiple messages includes, N bars are matched
Corresponding at least one message of every transaction record in transaction record;Wherein, corresponding at least one message of every transaction record
In the corresponding Transaction Information of transaction major key that includes of wantonly four messages it is identical;Determining unit, is used for:For in N bar transaction records
Every transaction record, according to the Transaction Information that each message in corresponding at least one message of this transaction record includes, it is determined that
Go out the Transaction Information of this transaction record.
Alternatively, the corresponding business scenario information of every transaction record in N bars transaction record includes:Every transaction record
Case description and case sequence number;Determining unit, is used for:To every transaction record in N bar transaction records, perform:N bars are concluded the business
The corresponding Transaction Information of transaction major key and the corresponding Transaction Information of historical trading major key of record, from remaining N-1 bar transaction record
In determine the M bar transaction records that there is incidence relation with this transaction record, and this transaction record and M bar transaction records
In every time of origin sequencing of transaction record;Wherein, M is the integer more than or equal to zero;According to this transaction record and M
Every transaction note in every Transaction Information of transaction record in bar transaction record, and this transaction record and M bar transaction records
The time of origin sequencing of record, determines this transaction record and the corresponding case description of M bar transaction records;Processing unit,
For:According to every time of origin sequencing of transaction record in this transaction record and M bar transaction records, for this concludes the business
Every transaction record distribution case sequence number in record and M bar transaction records.
Optionally it is determined that unit, is used for:To the nth bar transaction in the N-1 bar transaction records in addition to this transaction record
Record, n is the integer more than or equal to 1 and less than or equal to N-1, is performed:Include historical trading major key correspondence in this transaction record
Transaction Information, and nth bar transaction record include the corresponding Transaction Information of historical trading major key in the case of:It is determined that nth bar
The corresponding Transaction Information of transaction major key or the corresponding Transaction Information of historical trading major key of transaction record, in this transaction record
Including the corresponding Transaction Information of transaction major key or the corresponding Transaction Information identical of historical trading major key in the case of, determine n-th
There is incidence relation with this transaction record in bar transaction record.
Optionally it is determined that unit, is used for:According to every friendship of transaction record in this transaction record and M bar transaction records
Easy information, determines every corresponding transaction of default element of transaction of transaction record in this transaction record and M bar transaction records
Information;Processing unit, is used for:According to every time of origin of transaction record in this transaction record and M bar transaction records successively
Sequentially, the corresponding Transaction Information of default element of transaction of every transaction record in this transaction record and M bar transaction records is entered
Row combination, obtains this transaction record and the corresponding case description of M bar transaction records.
Alternatively, processing unit, is used for:For every transaction record in N bar transaction records, perform:It is determined that in the presence of
In the case of case description corresponding with this transaction record and the transaction record of case sequence number identical at least one, delete at least
One transaction record.
Due in the embodiment of the present invention, obtaining every transaction record in N bar transaction records, and N bar transaction records
Transaction Information;Wherein, N is the integer more than 1;The Transaction Information of every transaction record in N bar transaction records, determines
The corresponding business scenario information of this transaction record;To the business scenario a plurality of transaction record of information identical in N bar transaction records
Deduplication operation is carried out, K bar transaction records are obtained;Wherein, K is the integer more than or equal to 1 and less than or equal to N;K bars are concluded the business and is remembered
Record is defined as transaction record to be tested;Because business scenario identical transaction record is carried out in the N bar transaction records to getting
The transaction record of identical services scene will not be included in deduplication operation, therefore the transaction record to be tested for obtaining, and then to be measured
Examination transaction record can avoid the problem to identical services scene retest when being tested, improve testing efficiency.
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.
Fig. 1 is a kind of extracting method schematic flow sheet of transaction record to be tested provided in an embodiment of the present invention;
Fig. 2 is the extracting method schematic flow sheet of another transaction record to be tested provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of third-party application provided in an embodiment of the present invention.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
The extracting method flow that Fig. 1 illustrates a kind of transaction record to be tested provided in an embodiment of the present invention is illustrated
Figure, as shown in figure 1, the extracting method of the transaction record to be tested is comprised the following steps:
Step 101, obtains the Transaction Information of every transaction record in N bar transaction records, and N bar transaction records;Its
In, N is the integer more than 1;
Step 102, the Transaction Information of every transaction record in N bar transaction records, determines this transaction record
Corresponding business scenario information;
Step 103, deduplication operation is carried out to the business scenario a plurality of transaction record of information identical in N bar transaction records, is obtained
To K bar transaction records;Wherein, K is the integer more than or equal to 1 and less than or equal to N;
Step 104, transaction record to be tested is defined as by K bar transaction records.
Due in the embodiment of the present invention, obtaining every transaction record in N bar transaction records, and N bar transaction records
Transaction Information;Wherein, N is the integer more than 1;The Transaction Information of every transaction record in N bar transaction records, determines
The corresponding business scenario information of this transaction record;To the business scenario a plurality of transaction record of information identical in N bar transaction records
Deduplication operation is carried out, K bar transaction records are obtained;Wherein, K is the integer more than or equal to 1 and less than or equal to N;K bars are concluded the business and is remembered
Record is defined as transaction record to be tested;Because business scenario identical transaction record is carried out in the N bar transaction records to getting
The transaction record of identical services scene will not be included in deduplication operation, therefore the transaction record to be tested for obtaining, and then to be measured
Examination transaction record can avoid the problem to identical services scene retest when being tested, improve testing efficiency.
Alternatively, in the embodiment of the present invention, every transaction record in N bar transaction records, and N bar transaction records is obtained
Transaction Information, including:Obtain the corresponding multiple messages of N bar transaction records;Wherein, every transaction record in N bars transaction record
At least one message of correspondence;Each message includes the corresponding Transaction Information of transaction major key at least one message;Reported according to multiple
The corresponding Transaction Information of transaction major key that each message includes in text, matches every transaction record correspondence in N bar transaction records
At least one message;Wherein, the transaction major key that wantonly four messages include in corresponding at least one message of every transaction record
Corresponding Transaction Information is identical;For every transaction record in N bar transaction records, according to this transaction record corresponding at least
The Transaction Information that each message includes in individual message, determines the Transaction Information of this transaction record.
Alternatively, it is described in detail so that 9 are concluded the business as an example in the embodiment of the present invention.
Assuming that 9 transaction are respectively:Transaction 1:Internet consumer sale;Transaction 2:Internet consumer sale;Transaction 3:Mutually
Networking consumer sale;Transaction 4:Consumption for transaction 3 cancels transaction;Transaction 5:Internet consumer sale;Transaction 6:For friendship
The easy 5 positive transaction of consumption punching;Transaction 7:POS consumer sales;Transaction 8:POS consumer sales;Transaction 9:POS for transaction 8 disappears
Take revocation.
Alternatively, the Transaction Information being originally taken not is transaction record one by one, but transaction record correspondence
Multiple messages;Alternatively, each transaction record 4 messages of correspondence, 4 messages are respectively and accept request message, and hair fastener please
Message is sought, response message, hair fastener response message is accepted;What is be originally taken is 9 corresponding 36 messages of concluding the business;Wherein, often
Individual message includes conclude the business transmission time, device tracking number, accepting institution's code and some other Transaction Informations, such as card sender
Structure, accepting institution forwards mechanism, accepts type of transaction, hair fastener type of transaction, single double transition flags, transaction channel, class of concluding the business
Type, merchant type, medium of concluding the business, can property, card product accepts answer back code, hair fastener answer back code, the product of purchase, production unit cost;
Wherein, device tracking number can uniquely identify terminal;Alternatively, by transmission time of concluding the business, device tracking number, accepting institution's generation
Used as transaction major key, transaction major key includes the historical trading major key of the transaction major key of current transaction and current transaction to code.
Alternatively, unpacking treatment is carried out to 36 compressed packages of message for getting, 36 after being unpacked message;Hand over
Easy major key can uniquely identify a transaction record, and 36 messages are matched according to transaction major key;In 36 messages,
Transaction major key identical message is defined as a transaction, such as accepts the corresponding Transaction Information of transaction major key of request message
For:Transaction transmission time is 2016.12.15-10:10:10, system tracking number 001, accepting institution's code 100;And hair fastener please
The corresponding Transaction Information of transaction major key of message is sought, the corresponding Transaction Information of transaction major key and the hair fastener response of response message is accepted
The corresponding Transaction Information of transaction major key of message is:Transaction transmission time is 2016.12.15-10:10:10, system tracking number
001, accepting institution's code 100;This four message one transaction records of correspondence are then can determine that, in this way, can be true by 36 messages
It is set to 9 transaction.
Alternatively, for ease of the understanding of scheme, 9 corresponding transaction records of concluding the business are presented in the form of a table, and transaction
With transaction channel, as a example by type of transaction, transaction major key 1-9 represents the transaction major key of the transaction record of serial number 1-9 to information respectively
Corresponding Transaction Information;Historical trading major key 1-9 represents that the historical trading major key of the transaction record of serial number 1-9 is corresponding respectively
Transaction Information;Table 1 shows 9 transaction records of transaction matched according to transaction major key, wherein, sequence number is represented and is stored in table 1
In transaction record order, can for numeral can also for letter;Message represents corresponding 4 messages of every transaction record,
Represented with 4 message 1-9 respectively;As shown in table 1.
9 transaction records that table 1 is matched according to transaction major key:
Alternatively, according to every Transaction Information of transaction record, every default element of transaction pair of transaction record is determined
The Transaction Information answered;With the default corresponding Transaction Information of element of transaction it is type of transaction in the embodiment of the present invention and transaction channel is
Example is illustrated;Default element of transaction is more, and the result of the test according to K bars transaction record to be tested is more accurate;According to default friendship
Easy key element is organized to 9 transaction records in table 1, obtains 9 trading record sheets 2 according to default element of transaction tissue,
As shown in table 2.
It is introduced by taking the first row in table 1 as an example, sequence number 1 represents the 1st article of sequence number of transaction, type of transaction and transaction channel
It is two default element of transactions, it is the 1st article of corresponding Transaction Information of type of transaction of transaction to consume, internet is the 1st article of transaction
The corresponding Transaction Information of transaction channel, transaction major key 1 be the 1st article transaction the corresponding Transaction Information of transaction major key, do not go through
The corresponding Transaction Information of history transaction major key, 4 messages 1 represent the 1st article of 4 message informations of transaction.By the default key element in table 1
Corresponding Transaction Information is combined, and obtains table 2.
9 transaction records that table 2 is combined according to default element of transaction
Alternatively, can be described as organizing transaction record from transverse dimensions according to default element of transaction tissue.
Alternatively, the Transaction Information of every transaction record in N bar transaction records, determines this transaction record pair
The business scenario information answered, including:For every transaction record in N bar transaction records, perform:According to this transaction record
Transaction Information determines the corresponding Transaction Information of transaction major key that this transaction record includes;And it is determined that this transaction record
Transaction Information include the corresponding Transaction Information of historical trading major key in the case of, determine this transaction record history hand over
The corresponding Transaction Information of easy major key;The corresponding Transaction Information of transaction major key and historical trading major key pair according to N bar transaction records
The Transaction Information answered, determines the M bars transaction note that there is incidence relation with this transaction record from remaining N-1 bar transaction record
Record, and every time of origin sequencing of transaction record in this transaction record and M bar transaction records;Wherein, M be more than
Null integer.
Optionally it is determined that the mode of incidence relation can be between transaction:Transaction major key according to N bar transaction records is corresponding
Transaction Information and the corresponding Transaction Information of historical trading major key, determine to be concluded the business with this from remaining N-1 bar transaction record and remember
The M bar transaction records in incidence relation are recorded, including:For n-th in the N-1 bar transaction records in addition to this transaction record
Bar transaction record, n is the integer more than or equal to 1 and less than or equal to N-1, is performed:Do not include historical trading in this transaction record
The corresponding Transaction Information of major key, and nth bar transaction record is including in the case of the corresponding Transaction Information of historical trading major key:True
Determine the corresponding Transaction Information of transaction major key or the corresponding Transaction Information of historical trading major key of nth bar transaction record, handed over this
Easily record in the case of the corresponding Transaction Information identical of transaction major key for including, determine that nth bar transaction record is concluded the business with this
There is incidence relation in record;Include the corresponding Transaction Information of historical trading major key, and nth bar transaction record in this transaction record
In the case of not including the corresponding Transaction Information of historical trading major key:It is determined that the transaction major key of nth bar transaction record is corresponding
Transaction Information, Transaction Information corresponding with the transaction major key that this transaction record includes or the corresponding transaction of historical trading major key
In the case of information identical, determine that nth bar transaction record has incidence relation with this transaction record;In this bar transaction record bag
The corresponding Transaction Information of historical trading major key is included, and nth bar transaction record includes the corresponding Transaction Information of historical trading major key
In the case of:It is determined that the corresponding transaction letter of the corresponding Transaction Information of transaction major key or historical trading major key of nth bar transaction record
Breath, Transaction Information corresponding with the transaction major key that this transaction record includes or the corresponding Transaction Information phase of historical trading major key
In the case of, determine that nth bar transaction record has incidence relation with this transaction record.
Illustrated by taking 9 transaction records in table 2 as an example:
To be concluded the business transmission time, device tracking number, and accepting institution's code is every in transaction major key 1-9 as transaction major key
Individual transaction major key is differed, by table 2 it can be found that the 1st, 2,3,5,7,8 transaction record does not include historical trading major key pair
The Transaction Information answered;4th, 6,9 transaction record includes the corresponding Transaction Information of historical trading major key;And the 4th article of transaction note
The corresponding Transaction Information of the historical trading major key 3 transaction letter corresponding with the transaction major key 3 that the 3rd article of transaction record includes that record includes
Manner of breathing is same, it is determined that there is incidence relation between the 3rd article of transaction and the 4th article of transaction;The 5th article of correspondence of transaction major key 5 of transaction record
Transaction Information it is identical with the 6th article of corresponding Transaction Information of the historical trading major key of transaction record 5, it is determined that the 5th article transaction and
There is incidence relation, same method between the 6th article of transaction, it may be determined that there is incidence relation between the 8th article of transaction and the 9th article of transaction.
Alternatively, the transaction that there will be incidence relation is divided into a case group, does not have the transaction record of incidence relation independent
It is a case group, each case group is numbered, and is described to represent case group with corresponding case;Case group # can be with
It is made up of numeral or letter, for being different from other case groups, facilitates the inquiry and extraction of case;One case group includes
At least one transaction record;Case sequence number is distributed to the case in each case group.
Alternatively, it is every implementation method of transaction record distribution case sequence number:Concluded the business according to this transaction record and M bars
Every time of origin sequencing of transaction record in record, is every transaction in this transaction record and M bar transaction records
Record distribution case sequence number.
Such as, in table 2, the 3rd article of transaction and the 4th article of transaction are a case group, according to the sequencing that case occurs, will
3rd article transaction record distributes Case No. 1, and Case No. 2 is distributed by the 4th article of transaction record;5th article of transaction and the 6th article of transaction are one
Individual case group, according to the sequencing that case occurs, Case No. 1 is distributed by the 5th article of transaction record, by the 6th article of transaction record point
With Case No. 2;8th article of transaction and the 9th article of transaction are a case group, according to the sequencing that case occurs, by the 8th article of transaction
Record distribution Case No. 1, Case No. 2 is distributed by the 9th article of transaction record.
Alternatively, other do not exist the transaction of incidence relation, individually as a case group, only one transaction of each group
Record, to every transaction record distribution Case No. 1.
Alternatively, according to every Transaction Information of transaction record in this transaction record and M bar transaction records, and this
Every time of origin sequencing of transaction record, determines this transaction record and M bars in transaction record and M bar transaction records
The corresponding case description of transaction record, including:According to every transaction of transaction record in this transaction record and M bar transaction records
Information, determines the corresponding transaction letter of default element of transaction of every transaction record in this transaction record and M bar transaction records
Breath;According to every time of origin sequencing of transaction record in this transaction record and M bar transaction records, this is concluded the business and is remembered
Record Transaction Information corresponding with the default element of transaction of every transaction record in M bar transaction records is combined, and obtains this friendship
Easily record case description corresponding with M bar transaction records.
Alternatively, it is corresponding with the default element of transaction of every transaction record in M bar transaction records according to this transaction record
Transaction Information, and every case sequence number of transaction record in this transaction record and M bar transaction records determines that this hands over
Easily record case description corresponding with M bar transaction records;Wherein, case sequence number can be made up of numeral or letter, for distinguishing
In other cases.
Alternatively, the form of case description is the form of " A+B ", and A represents the pre- of case group the last item transaction record
If key element, B represents that the group works as the default key element of previous bar transaction record, such as:The 3rd article of default key element of transaction disappears for internet
Take, the default key element of the 4th transaction is consumed for internet and cancelled, and the 3rd article of case serial number 1 of transaction, the 4th article of case of transaction
The default key element that the transaction of example serial number 2, i.e., the 4th article is concluded the business for the last item of the case group;So the 3rd article of case of transaction
Description can be " internet consumption revocation+internet consumption ", and the 4th article of case description of transaction can be for " internet consumption is removed
The consumption of pin+internet is cancelled ";Same method, it may be determined that the transaction the 5th and the description of the 6th article of case for going out association are respectively:
" just+internet consumption is rushed in internet consumption " and " internet consumption is rushed just+internet consumption and rushed just ";Determine the transaction of association
8th and the 9th article of case description is respectively:" POS consumption revocation+POS consumption " and " POS consumption revocation+POS consumption revocation ".
Alternatively, for the transaction record in the absence of incidence relation, case is described with the default transaction of this transaction record
The corresponding Transaction Information of key element.
It is introduced by taking the first row in table 1 as an example, sequence number 1 represents the 1st article of sequence number of transaction, type of transaction and transaction channel
It is two default element of transactions, it is the 1st article of corresponding Transaction Information of type of transaction of transaction to consume, internet is the 1st article of transaction
The corresponding Transaction Information of transaction channel, transaction major key 1 be the 1st article transaction the corresponding Transaction Information of transaction major key, do not go through
The corresponding Transaction Information of history transaction major key, 4 messages 1 represent the 1st article of 4 message informations of transaction.By the default key element in table 1
Corresponding Transaction Information is combined, and obtains table 2.
9 transaction records in table 2 are grouped in the embodiment of the present invention, the default key element in table 2 are combined,
Table 3 is obtained, table 3 illustrates the signal table after being grouped to 9 transaction.It is introduced by taking the first row in table 3 as an example,
Sequence number 1 represents the 1st article of sequence number of transaction, and case description represents the 1st article of combination of the default element of transaction of transaction, case group #
1 Case No for representing the first case group, case sequence number 1 represents the 1st article of transaction record in the 1st case group, and internet is
The 1st article of corresponding Transaction Information of transaction channel of transaction, transaction major key 1 is the corresponding transaction letter of transaction major key of the 1st article of transaction
Breath, does not have the corresponding Transaction Information of historical trading major key, and 4 messages 1 represent the 1st article of 4 message informations of transaction.By in table 2
The corresponding Transaction Information of default key element be combined, increase and decrease case group #, and to the transaction record in each case group point
With case sequence number, table 3 is obtained.
9 transaction records of table 3 pair are grouped
Alternatively, deduplication operation is carried out to the business scenario a plurality of transaction record of information identical in N bar transaction records, is wrapped
Include:For every transaction record in N bar transaction records, perform:It is determined that being retouched in the presence of case corresponding with this transaction record
In the case of stating with the transaction record of case sequence number identical at least one, at least one transaction record is deleted.
Alternatively, the corresponding business scenario information of every transaction record in N bars transaction record includes:Every transaction record
Case description and case sequence number.
Alternatively, using case description and case sequence number as major key, because the value of major key is used to uniquely identifying in table
A certain bar record, can only there is a major key in a table, if setting up major key in other fields, major key originally will take
Disappear.The corresponding business scenario of every transaction record includes the case description of every transaction record and case sequence number, i.e. business scenario
As major key, using business scenario as major key store when, when identical business scenario carries out second storage with major key, can and it is preceding
There is conflict in major key once, therefore secondary business scenario is deleted;In this way, the business scenario for repeating will not repeat tested
Examination, can improve testing efficiency.
Alternatively, illustrated by taking table 3 as an example, the 1st article of business scenario of transaction is " consuming and 1 internet ", the 2nd transaction
Business scenario is " consuming and 1 internet ", therefore, the business scenario and the 2nd business scenario concluded the business of the 1st article of transaction are identical, and the 2nd
When the business scenario of transaction is stored, there is major key conflict, abandon the business scenario of the 2nd transaction.In this way, identical business scenario is only
Save once, therefore, will not retest identical business scenario, and then testing efficiency can be improved.Except the 2nd hands in table 3
Easy business scenario conflicts with the business scenario of the 1st transaction, other equal only one of which business scenarios, therefore business scenario can be with one
It is straight cumulative, the coverage rate of business scenario can be improved, and then improve the accuracy of test result.
In the embodiment of the present invention, 8 obtained after the case description in table 3 and case sequence number are preserved as major key
The table of transaction to be tested, as shown in table 4.
8 transaction records to be tested that table 4 is determined
Alternatively, according at least one Transaction Information screening displaying transaction record to be tested;Such as according to type of transaction and friendship
Easy channel shows transaction record to be tested;Or, show all transaction records to be tested.
Alternatively, when transaction record to be tested is tested, instrument simulation mechanism initiates communication connection to test system, can be with
The all or part of transaction record to be tested of selection is initiated.Alternatively, when transaction record to be tested is selected, traversal is chosen
Whole transaction records, in each case group, send all of transaction record according to case sequence number order from small to large, often
The transmission logic of bar transaction record accepts response message according to request message, hair fastener request message, hair fastener response message is accepted
Order is sent, and whether compare new system is determined new system by response message and hair fastener request message and old system
Whether can use.
It should be noted is that:The explanation of the above-mentioned extraction process for transaction record to be tested is only exemplary reconciliation
The property released, it is not intended to limit the present invention.
Above method flow is introduced in order to clearer, Fig. 2 illustrates another kind provided in an embodiment of the present invention
The method of the extraction of transaction record to be tested.
, it is necessary to detect whether new system can use during system variation, new system is detected usually using transaction record, this
Inventive embodiments determine K bars transaction record to be tested, and this K bars transaction record to be tested can cover all existing business
Scape, therefore, compared to prior art, improve business scenario coverage rate;And, can be the minimum for covering all business scenarios
Set, in this way, avoiding the situation that identical services scene is tested repeatedly, and then improves testing efficiency.Transaction record to be tested
The process of extracting method see below content.
As shown in Fig. 2 the method includes:
Step 201, obtains the corresponding multiple messages of N bar transaction records;Wherein, every transaction record in N bars transaction record
At least one message of correspondence;Each message includes the corresponding Transaction Information of transaction major key at least one message;
Alternatively, every transaction record four messages of correspondence, respectively accept request message, accept response message, hair fastener
Request message, hair fastener response message;Include transaction major key in each message, wherein, the corresponding Transaction Information bag of transaction major key
Include transaction transmission time, system tracking number, accepting institution's code;
Alternatively, multiple messages of acquisition are the modes of compressed package, after multiple messages are got, multiple are reported first
Text is unpacked, and gets the multiple messages after unpacking;
Step 202, according to the corresponding Transaction Information of transaction major key that each message in multiple messages includes, matches N bars
Corresponding at least one message of every transaction record in transaction record;Wherein, corresponding at least one message of every transaction record
In the corresponding Transaction Information of transaction major key that includes of wantonly four messages it is identical;
Alternatively, the corresponding Transaction Information of transaction major key in corresponding four messages of same transaction record be it is identical,
The corresponding Transaction Information identical message of major key of concluding the business is defined as a message for transaction record;
Step 203, for every transaction record in N bar transaction records, according to this transaction record corresponding at least one
The Transaction Information that each message includes in message, determines the Transaction Information of this transaction record;
Step 204, obtains the Transaction Information of every transaction record in N bar transaction records, and N bar transaction records;Its
In, N is the integer more than 1;
Alternatively, for ease of understanding, N bar transaction records are presented in the form of a table, as shown in table 1.The friendship of transaction record
Easy information includes the corresponding Transaction Information of transaction major key, card sending mechanism, and accepting institution forwards mechanism, single double transition flags, transaction
Channel, type of transaction, merchant type, medium of concluding the business, can property, card product accepts answer back code, hair fastener answer back code, the product of purchase
The information such as product, production unit cost;
Step 205, the corresponding Transaction Information of transaction major key and the corresponding friendship of historical trading major key according to N bar transaction records
Easy information, determines the M bar transaction records that there is incidence relation with this transaction record from remaining N-1 bar transaction record, with
And every time of origin sequencing of transaction record in this transaction record and M bar transaction records;Wherein, M be more than or equal to
Zero integer;
Alternatively, the matching of multiple messages is concluded the business for N bars according to the corresponding Transaction Information of transaction major key in step 202. and is remembered
Record, while concluded the business during every transaction record can the be determined corresponding Transaction Information of major key and the corresponding information of historical trading major key;
Corresponding Transaction Information is remembered to determine to be concluded the business with this respectively for transaction major key and historical trading major key according to this transaction record
The relevant M bar transaction records of record;And can be by the friendship of this transaction record and the M being associated bar transaction records
The easy corresponding Transaction Information of major key and the corresponding Transaction Information of historical trading major key determine this transaction record and are associated with
M bars transaction record occur time order and function sequentially;
Step 206, it is successively suitable according to every time of origin of transaction record in this transaction record and M bar transaction records
Sequence, for every transaction record in this transaction record and M bar transaction records distributes case sequence number;
Alternatively, the M bar transaction records for having incidence relation by this transaction record and with this transaction record are divided into one
Individual case group, and to each transaction record in the case group by the time order and function order-assigned case sequence number for occurring;Case sequence
Number can be represented with numeral, it is also possible to represented with letter;
Step 207, determines every corresponding Transaction Information of default element of transaction of transaction record;
Alternatively, preset element of transaction corresponding Transaction Information can for transaction channel, type of transaction, merchant type, receive
Manage mechanism, card sending mechanism, accept answer back code, hair fastener answer back code;
Step 208, according to every Transaction Information of transaction record in this transaction record and M bar transaction records, determines
Every corresponding Transaction Information of default element of transaction of transaction record in this transaction record and M bar transaction records;
Optionally it is determined that go out the default element of transaction of this transaction, and the M bars transaction note associated with this transaction record
Every corresponding Transaction Information of default element of transaction of transaction record in record;
Step 209, it is successively suitable according to every time of origin of transaction record in this transaction record and M bar transaction records
Sequence, the corresponding Transaction Information of default element of transaction of every transaction record in this transaction record and M bar transaction records is carried out
Combination, obtains this transaction record and the corresponding case description of M bar transaction records;
Alternatively, the combination of default element of transaction can be:" form of A+B ", A represents that the case group the last item is handed over
The corresponding Transaction Information of default key element for easily recording, B represents that the case group is corresponding when the default key element of previous bar transaction record
Transaction Information;
Step 210, the Transaction Information of every transaction record in N bar transaction records, determines this transaction record
Corresponding business scenario information;Wherein, the corresponding business scenario information of every transaction record in N bars transaction record includes:Often
The case description of bar transaction record and case sequence number;
Step 211, deduplication operation is carried out to the business scenario a plurality of transaction record of information identical in N bar transaction records, is obtained
To K bar transaction records;Wherein, K is the integer more than or equal to 1 and less than or equal to N;
Alternatively, deduplication operation is carried out to the transaction record with identical services scene, the multiple business scenario of counterweight can be avoided
Tested, and then testing efficiency can be improved.
Step 212;K bar transaction records are defined as transaction record to be tested.
It can be seen from the above:Due in the embodiment of the present invention, obtaining N bar transaction records, and N bar transaction records
In every transaction record Transaction Information;Wherein, N is the integer more than 1;Every transaction note in N bar transaction records
The Transaction Information of record, determines the corresponding business scenario information of this transaction record;To business scenario information in N bar transaction records
The a plurality of transaction record of identical carries out deduplication operation, obtains K bar transaction records;Wherein, K is more than or equal to 1 and less than or equal to N
Integer;K bar transaction records are defined as transaction record to be tested;Due to business scenario in the N bar transaction records to getting
Identical transaction record carries out that in deduplication operation, therefore the transaction record to be tested for obtaining the friendship of identical services scene will not be included
Easily record, and then treat the problem that can be avoided when test transaction record is tested to identical services scene retest, improve
Testing efficiency.
Fig. 3 illustrates a kind of extraction element structural representation of transaction record to be tested provided in an embodiment of the present invention
Figure.
Based on same idea, the embodiment of the present invention provides a kind of extraction element of transaction record to be tested, as shown in figure 3,
The extraction element 300 of transaction record to be tested includes acquiring unit 301, determining unit 302 and processing unit 303.Wherein:
Acquiring unit, for determining unit, for the Transaction Information of every transaction record in N bar transaction records,
Determine the corresponding business scenario information of this transaction record;K bar transaction records are defined as transaction record to be tested;Treatment is single
Unit, for carrying out deduplication operation to the business scenario a plurality of transaction record of information identical in N bar transaction records, obtains the transaction of K bars
Record;Wherein, K is the integer more than or equal to 1 and less than or equal to N.
Alternatively, acquiring unit, is used for:Obtain the corresponding multiple messages of N bar transaction records;Wherein, in N bars transaction record
Every transaction record at least one message of correspondence;Each message includes the corresponding transaction letter of transaction major key at least one message
Breath;Processing unit, is used for:According to the corresponding Transaction Information of transaction major key that each message in multiple messages includes, N bars are matched
Corresponding at least one message of every transaction record in transaction record;Wherein, corresponding at least one message of every transaction record
In the corresponding Transaction Information of transaction major key that includes of wantonly four messages it is identical;Determining unit, is used for:For in N bar transaction records
Every transaction record, according to the Transaction Information that each message in corresponding at least one message of this transaction record includes, it is determined that
Go out the Transaction Information of this transaction record.
Selection of land, the corresponding business scenario information of every transaction record in N bar transaction records includes:Every transaction record
Case is described and case sequence number;Determining unit, is used for:To every transaction record in N bar transaction records, perform:N bars transaction note
The corresponding Transaction Information of transaction major key and the corresponding Transaction Information of historical trading major key of record, from remaining N-1 bar transaction record
The M bar transaction records that there is incidence relation with this transaction record are determined, and in this transaction record and M bar transaction records
Every time of origin sequencing of transaction record;Wherein, M is the integer more than or equal to zero;According to this transaction record and M bars
Every transaction record in every Transaction Information of transaction record in transaction record, and this transaction record and M bar transaction records
Time of origin sequencing, determine this transaction record and the description of M bar transaction records corresponding case;Processing unit, uses
In:According to every time of origin sequencing of transaction record in this transaction record and M bar transaction records, remember for this concludes the business
Every transaction record distribution case sequence number in record and M bar transaction records.
Selection of land, determining unit is used for:Nth bar in N-1 bar transaction records in addition to this transaction record is concluded the business and is remembered
Record, n is the integer more than or equal to 1 and less than or equal to N-1, is performed:Include that historical trading major key is corresponding in this transaction record
Transaction Information, and nth bar transaction record is including in the case of the corresponding Transaction Information of historical trading major key:It is determined that nth bar is handed over
Easily wrapped in the corresponding Transaction Information of transaction major key or the corresponding Transaction Information of historical trading major key, with this transaction record of record
In the case of the corresponding Transaction Information identical of the corresponding Transaction Information of transaction major key or historical trading major key for including, nth bar is determined
There is incidence relation with this transaction record in transaction record.
Optionally it is determined that unit, is used for:According to every friendship of transaction record in this transaction record and M bar transaction records
Easy information, determines every corresponding transaction of default element of transaction of transaction record in this transaction record and M bar transaction records
Information;Processing unit, is used for:According to every time of origin of transaction record in this transaction record and M bar transaction records successively
Sequentially, the corresponding Transaction Information of default element of transaction of every transaction record in this transaction record and M bar transaction records is entered
Row combination, obtains this transaction record and the corresponding case description of M bar transaction records.
Alternatively, processing unit, is used for:For every transaction record in N bar transaction records, perform:It is determined that in the presence of
In the case of case description corresponding with this transaction record and the transaction record of case sequence number identical at least one, delete at least
One transaction record.
It can be seen from the above:In the embodiment of the present invention, due to obtaining N bar transaction records in the embodiment of the present invention,
And the Transaction Information of every transaction record in N bar transaction records;Wherein, N is the integer more than 1;According to N bar transaction records
In every transaction record Transaction Information, determine the corresponding business scenario information of this transaction record;To N bar transaction records
The middle a plurality of transaction record of business scenario information identical carries out deduplication operation, obtains K bar transaction records;Wherein, K be more than or equal to
1 and the integer less than or equal to N;K bar transaction records are defined as transaction record to be tested;Due to note of being concluded the business to the N bars for getting
Business scenario identical transaction record will not include in deduplication operation, therefore the transaction record to be tested for obtaining identical in record
The transaction record of business scenario, and then treat test transaction record and can avoid to identical services scene retest when being tested
Problem, improve testing efficiency.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method or computer program product.
Therefore, the present invention can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Form.And, the present invention can be used to be can use in one or more computers for wherein including computer usable program code and deposited
The shape of the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (device) 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 (12)
1. a kind of extracting method of transaction record to be tested, it is characterised in that including:
Obtain the Transaction Information of every transaction record in N bar transaction records, and the N bars transaction record;Wherein, N is big
In 1 integer;
The Transaction Information of every transaction record in the N bars transaction record, determines the corresponding industry of this transaction record
Business scene information;
Deduplication operation is carried out to the business scenario a plurality of transaction record of information identical in the N bars transaction record, the transaction of K bars is obtained
Record;Wherein, the K is the integer more than or equal to 1 and less than or equal to N;
The K bars transaction record is defined as transaction record to be tested.
2. the method for claim 1, it is characterised in that the acquisition N bar transaction records, and N bars transaction note
The Transaction Information of every transaction record in record, including:
Obtain the corresponding multiple messages of the N bars transaction record;Wherein, every transaction record correspondence in the N bars transaction record
At least one message;Each message includes the corresponding Transaction Information of transaction major key at least one message;
According to the corresponding Transaction Information of transaction major key that each message in the multiple message includes, the N bars transaction is matched
Corresponding at least one message of every transaction record in record;Wherein, every transaction record it is corresponding it is described at least
The corresponding Transaction Information of transaction major key that wantonly four messages include in one message is identical;
For every transaction record in the N bars transaction record, according to every in corresponding at least one message of this transaction record
The Transaction Information that individual message includes, determines the Transaction Information of this transaction record.
3. method as claimed in claim 2, it is characterised in that every transaction record in the N bars transaction record is corresponding
Business scenario information includes:Every the case of transaction record is described and case sequence number;
The Transaction Information of every transaction record in the N bars transaction record, determines this transaction record correspondence
Business scenario information, including:
For every transaction record in the N bars transaction record, perform:
Transaction Information according to this transaction record determines the corresponding transaction letter of transaction major key that this transaction record includes
Breath;And in the case of it is determined that the Transaction Information of this transaction record includes the corresponding Transaction Information of historical trading major key, really
Make the corresponding Transaction Information of historical trading major key of this transaction record;
The corresponding Transaction Information of transaction major key and the corresponding Transaction Information of historical trading major key according to N bar transaction records, from it
The M bar transaction records that there is incidence relation with this transaction record, and this transaction note are determined in remaining N-1 bars transaction record
Every time of origin sequencing of transaction record in record and the M bars transaction record;Wherein, the M is more than or equal to zero
Integer;
According to every Transaction Information of transaction record in this transaction record and the M bars transaction record, and this transaction note
Every time of origin sequencing of transaction record in record and the M bars transaction record, determines this transaction record and the M
The corresponding case description of bar transaction record;
It is this according to every time of origin sequencing of transaction record in this transaction record and the M bars transaction record
Every transaction record distribution case sequence number in transaction record and the M bars transaction record.
4. method as claimed in claim 3, it is characterised in that the corresponding friendship of transaction major key according to N bar transaction records
Easy information and the corresponding Transaction Information of historical trading major key, determine and this transaction record from remaining N-1 bar transaction record
There is the M bar transaction records of incidence relation, including:
For the nth bar transaction record in the N-1 bar transaction records in addition to this transaction record, the n be more than or equal to 1 and
Integer less than or equal to N-1, performs:
Do not include the corresponding Transaction Information of historical trading major key in this transaction record, and the nth bar transaction record includes going through
In the case of the corresponding Transaction Information of history transaction major key:It is determined that the corresponding transaction of transaction major key of the nth bar transaction record
Information or the corresponding Transaction Information of historical trading major key, Transaction Information corresponding with the transaction major key that this transaction record includes
In the case of identical, determine that the nth bar transaction record has incidence relation with this transaction record;
Include the corresponding Transaction Information of historical trading major key in this transaction record, and the nth bar transaction record does not include going through
In the case of the corresponding Transaction Information of history transaction major key:It is determined that the corresponding transaction of transaction major key of the nth bar transaction record
Information, Transaction Information corresponding with the transaction major key that this transaction record includes or the corresponding Transaction Information of historical trading major key
In the case of identical, determine that the nth bar transaction record has incidence relation with this transaction record;
Include the corresponding Transaction Information of historical trading major key in this transaction record, and the nth bar transaction record includes history
In the case of the corresponding Transaction Information of transaction major key:It is determined that the corresponding transaction letter of the transaction major key of the nth bar transaction record
Breath or the corresponding Transaction Information of historical trading major key, Transaction Information corresponding with the transaction major key that this transaction record includes or
In the case of the corresponding Transaction Information identical of historical trading major key, determine that the nth bar transaction record is deposited with this transaction record
In incidence relation.
5. method as claimed in claim 3, it is characterised in that described according to this transaction record and the M bars transaction record
In every hair of transaction record in every Transaction Information of transaction record, and this transaction record and the M bars transaction record
Raw time order and function sequentially, determines this transaction record and the corresponding case description of the M bars transaction record, including:
According to every Transaction Information of transaction record in this transaction record and the M bars transaction record, determine that this concludes the business
Record Transaction Information corresponding with the default element of transaction of every transaction record in the M bars transaction record;
According to every time of origin sequencing of transaction record in this transaction record and the M bars transaction record, by this
The corresponding Transaction Information of default element of transaction of every transaction record is combined in transaction record and the M bars transaction record,
Obtain this transaction record and the corresponding case description of the M bars transaction record.
6. method as claimed in claim 3, it is characterised in that described to business scenario information phase in the N bars transaction record
Same a plurality of transaction record carries out deduplication operation, including:
For every transaction record in the N bars transaction record, perform:
It is determined that in the presence of case corresponding with this transaction record description and case sequence number identical at least one transaction record
In the case of, delete at least one transaction record.
7. a kind of extraction element of transaction record to be tested, it is characterised in that including:
Acquiring unit, the transaction for obtaining every transaction record in N bar transaction records, and the N bars transaction record is believed
Breath;Wherein, N is the integer more than 1;
Determining unit, for the Transaction Information of every transaction record in the N bars transaction record, determines that this concludes the business
Record corresponding business scenario information;The K bars transaction record is defined as transaction record to be tested;
Processing unit, for carrying out duplicate removal behaviour to the business scenario a plurality of transaction record of information identical in the N bars transaction record
Make, obtain K bar transaction records;Wherein, the K is the integer more than or equal to 1 and less than or equal to N.
8. device as claimed in claim 7, it is characterised in that the acquiring unit, is used for:
Obtain the corresponding multiple messages of the N bars transaction record;Wherein, every transaction record correspondence in the N bars transaction record
At least one message;Each message includes the corresponding Transaction Information of transaction major key at least one message;
The processing unit, is used for:
According to the corresponding Transaction Information of transaction major key that each message in the multiple message includes, the N bars transaction is matched
Corresponding at least one message of every transaction record in record;Wherein, every transaction record it is corresponding it is described at least
The corresponding Transaction Information of transaction major key that wantonly four messages include in one message is identical;
The determining unit, is used for:
For every transaction record in the N bars transaction record, according to every in corresponding at least one message of this transaction record
The Transaction Information that individual message includes, determines the Transaction Information of this transaction record.
9. device as claimed in claim 8, it is characterised in that every transaction record in the N bars transaction record is corresponding
Business scenario information includes:Every the case of transaction record is described and case sequence number;
The determining unit, is used for:
For every transaction record in the N bars transaction record, perform:Transaction Information according to this transaction record is determined
The corresponding Transaction Information of transaction major key that this transaction record includes;And it is determined that being wrapped in the Transaction Information of this transaction record
In the case of including the corresponding Transaction Information of historical trading major key, the corresponding friendship of historical trading major key of this transaction record is determined
Easy information;The corresponding Transaction Information of transaction major key and the corresponding Transaction Information of historical trading major key according to N bar transaction records, from
The M bar transaction records that there is incidence relation with this transaction record, and this transaction are determined in remaining N-1 bar transaction record
Every time of origin sequencing of transaction record in record and the M bars transaction record;Wherein, the M is more than or equal to zero
Integer;According to every Transaction Information of transaction record in this transaction record and the M bars transaction record, and this transaction
Every time of origin sequencing of transaction record in record and the M bars transaction record, determines this transaction record and institute
State the corresponding case description of M bar transaction records;
The processing unit, is used for:
It is this according to every time of origin sequencing of transaction record in this transaction record and the M bars transaction record
Every transaction record distribution case sequence number in transaction record and the M bars transaction record.
10. device as claimed in claim 8, it is characterised in that the determining unit, is used for:
For the nth bar transaction record in the N-1 bar transaction records in addition to this transaction record, the n be more than or equal to 1 and
Integer less than or equal to N-1, performs:Do not include the corresponding Transaction Information of historical trading major key in this transaction record, and it is described
In the case that nth bar transaction record includes the corresponding Transaction Information of historical trading major key:It is determined that the nth bar transaction record
The corresponding Transaction Information of transaction major key or the corresponding Transaction Information of historical trading major key, the transaction included with this transaction record
In the case of the corresponding Transaction Information identical of major key, determine that the nth bar transaction record exists with this transaction record and associate
System;Include the corresponding Transaction Information of historical trading major key in this transaction record, and the nth bar transaction record does not include history
In the case of the corresponding Transaction Information of transaction major key:It is determined that the corresponding transaction letter of the transaction major key of the nth bar transaction record
Breath, Transaction Information corresponding with the transaction major key that this transaction record includes or the corresponding Transaction Information phase of historical trading major key
In the case of, determine that the nth bar transaction record has incidence relation with this transaction record;Include in this transaction record
The corresponding Transaction Information of historical trading major key, and the nth bar transaction record includes the corresponding Transaction Information of historical trading major key
In the case of:It is determined that the corresponding Transaction Information of transaction major key or historical trading major key of the nth bar transaction record are corresponding
Transaction Information, Transaction Information corresponding with the transaction major key that this transaction record includes or the corresponding transaction of historical trading major key
In the case of information identical, determine that the nth bar transaction record has incidence relation with this transaction record.
11. devices as claimed in claim 8, it is characterised in that the determining unit, are used for:
According to every Transaction Information of transaction record in this transaction record and the M bars transaction record, determine that this concludes the business
Record Transaction Information corresponding with the default element of transaction of every transaction record in the M bars transaction record;
The processing unit, is used for:
According to every time of origin sequencing of transaction record in this transaction record and the M bars transaction record, by this
The corresponding Transaction Information of default element of transaction of every transaction record is combined in transaction record and the M bars transaction record,
Obtain this transaction record and the corresponding case description of the M bars transaction record.
12. devices as claimed in claim 8, it is characterised in that the processing unit, are used for:
For every transaction record in the N bars transaction record, perform:
It is determined that in the presence of case corresponding with this transaction record description and case sequence number identical at least one transaction record
In the case of, delete at least one transaction record.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611199162.8A CN106803202B (en) | 2016-12-22 | 2016-12-22 | Method and device for extracting transaction records to be tested |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611199162.8A CN106803202B (en) | 2016-12-22 | 2016-12-22 | Method and device for extracting transaction records to be tested |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106803202A true CN106803202A (en) | 2017-06-06 |
CN106803202B CN106803202B (en) | 2021-02-09 |
Family
ID=58984828
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611199162.8A Active CN106803202B (en) | 2016-12-22 | 2016-12-22 | Method and device for extracting transaction records to be tested |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106803202B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110084699A (en) * | 2019-04-30 | 2019-08-02 | 深圳前海微众银行股份有限公司 | Polymerization, device, transaction List Table system and the storage medium of transaction record |
CN110377522A (en) * | 2019-07-22 | 2019-10-25 | 中国工商银行股份有限公司 | The test method for scene of trading, calculates equipment and medium at device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102053872A (en) * | 2009-11-06 | 2011-05-11 | 中国银联股份有限公司 | Method for testing transaction performance of terminal |
US20150026027A1 (en) * | 2009-06-12 | 2015-01-22 | Guardian Analytics, Inc. | Fraud detection and analysis |
CN105930259A (en) * | 2015-12-23 | 2016-09-07 | 中国银联股份有限公司 | Method and apparatus for WEB regression testing |
-
2016
- 2016-12-22 CN CN201611199162.8A patent/CN106803202B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150026027A1 (en) * | 2009-06-12 | 2015-01-22 | Guardian Analytics, Inc. | Fraud detection and analysis |
CN102053872A (en) * | 2009-11-06 | 2011-05-11 | 中国银联股份有限公司 | Method for testing transaction performance of terminal |
CN105930259A (en) * | 2015-12-23 | 2016-09-07 | 中国银联股份有限公司 | Method and apparatus for WEB regression testing |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110084699A (en) * | 2019-04-30 | 2019-08-02 | 深圳前海微众银行股份有限公司 | Polymerization, device, transaction List Table system and the storage medium of transaction record |
CN110377522A (en) * | 2019-07-22 | 2019-10-25 | 中国工商银行股份有限公司 | The test method for scene of trading, calculates equipment and medium at device |
CN110377522B (en) * | 2019-07-22 | 2023-10-03 | 中国工商银行股份有限公司 | Transaction scene testing method, device, computing equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN106803202B (en) | 2021-02-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105930259B (en) | A kind of method and apparatus of WEB regression tests | |
CN107193973A (en) | The field recognition methods of semanteme parsing information and device, equipment and computer-readable recording medium | |
CN107239954A (en) | It is a kind of to improve the method and device that block produces speed | |
CN109711996A (en) | The double record file quality detecting methods of declaration form, device, equipment and readable storage medium storing program for executing | |
CN110222293B (en) | Form page generation method and device | |
CN108228463A (en) | For detecting the method and apparatus of initial screen time | |
CN108764908A (en) | A kind of assets method for anti-counterfeit and system, equipment and storage medium | |
CN107547759A (en) | A kind of quality detecting method and device to contact staff's call | |
CN110377522A (en) | The test method for scene of trading, calculates equipment and medium at device | |
CN108509458A (en) | A kind of business object recognition methods and device | |
CN109408468A (en) | Document handling method and device calculate equipment and storage medium | |
CN110009480A (en) | The recommended method in judicial collection path, device, medium, electronic equipment | |
CN108108260A (en) | The method of calibration and device of a kind of resource file | |
CN106803202A (en) | The extracting method and device of a kind of transaction record to be tested | |
Sun | The incremental informativeness of the sentiment of conference calls for internal control material weaknesses | |
CN109284482A (en) | Write plateform system and the article dissemination method for writing platform | |
Syah et al. | Understanding the technology acceptance model in the QRIS usage: Evidence from SMEs in Indonesia | |
WO2021093320A1 (en) | Method and apparatus for outputting information | |
CN112309565A (en) | Method, apparatus, electronic device, and medium for matching drug information and disorder information | |
CN106920124A (en) | A kind of Data acquisition and issuance method and device | |
CN110619564B (en) | Anti-fraud feature generation method and device | |
CN110544166A (en) | Sample generation method, device and storage medium | |
US20230325757A1 (en) | Computer-implemented method and system for testing a model | |
Daas et al. | Quality framework for the evaluation of administrative data | |
CN109902698A (en) | Information generating method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |