CN106557421A - POS applied program testing methods and device - Google Patents
POS applied program testing methods and device Download PDFInfo
- Publication number
- CN106557421A CN106557421A CN201610886176.0A CN201610886176A CN106557421A CN 106557421 A CN106557421 A CN 106557421A CN 201610886176 A CN201610886176 A CN 201610886176A CN 106557421 A CN106557421 A CN 106557421A
- Authority
- CN
- China
- Prior art keywords
- test
- request message
- pos terminal
- test cases
- pos
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of POS applied program testing methods, including step:Test event data message is set, and test event data message includes project name, listening port and test cases information;The request message of POS terminal is sent to the listening port of project name matching;Corresponding test cases information is obtained according to the numeric field data in request message;Numeric field data in request message is carried out into contrast verification with the numeric field data in test cases information;When checking is completed, returning result information to POS terminal is modified to test cases information and statistical analysis.The invention also discloses a kind of POS Application testings device.The present invention arranges the test cases information of multiple projects in test platform, project and the case test information for carrying out according to belonging to POS terminal carries out comparison of classification checking, one test platform can be realized carrying out multiple transaction tests to the POS under multiple projects, test platform function is more, test process efficiency high.
Description
Technical field
The present invention relates to communication technique field, more particularly to a kind of POS applied program testing methods and device.
Background technology
POS terminal is widely used in various payment scenes, and third-party channel of disbursement is also more next more.POS terminal is being accessed respectively
Before planting channel of disbursement, need to carry out stability of the substantial amounts of transaction test to verify POS terminal and POS terminal application program.It is
It is no normally POS terminal to be carried out accessing the major issue that test has become the access of POS terminal project.But general connect
Enter test and be all directly to Unionpay's test platform or Third-party payment platform is tested, or even there are Partial flats not
Test environment can be provided, it is necessary to test in real production environment.POS terminal is so caused to be surveyed by Unionpay when accessing test
The impact of examination platform or Third-party payment platform is too big, belongs to uncontrollable factor, it is impossible to ensure that project is surveyed at the appointed time
Examination is completed.
For this problem, corresponding test platform is had been developed for, simulate the various transaction industry of POS center processings POS
The test of business, but existing test platform is once only capable of carrying out simple transaction test to the POS under a project, when to POS
Machine carries out the transaction test of other classifications and/or changes POS under disparity items when being tested, and needs to change test cases
Information, test platform single function cause test process efficiency low.
The above is only used for auxiliary and understands technical scheme, does not represent and recognizes that the above is existing skill
Art.
The content of the invention
Present invention is primarily targeted at providing a kind of POS applied program testing methods and device, it is intended to solve existing
Test platform is once only capable of carrying out the POS under a project simple transaction test, test platform single function, causes test
The low problem of process efficiency.
For achieving the above object, a kind of POS applied program testing methods that the present invention is provided, comprise the following steps:
Test event data message is set, and the test event data message includes project name, listening port and test
Case information;
The request message of POS terminal is sent to the listening port of project name matching;
Corresponding test cases information is obtained according to the numeric field data in request message;
Numeric field data in request message is carried out into contrast verification with the numeric field data in test cases information;
When checking is completed, returning result information to POS terminal is modified to test cases information and statistical analysis.
Preferably, it is described by the request message of POS terminal send to project name matching listening port the step of include:
Start the listening port of test event;
According to the project name matching listening port carried in the request message that POS terminal sends;
The request message that POS terminal sends is sent to the listening port of project name matching.
Preferably, the step of numeric field data according in request message obtains corresponding test cases information includes:
Request message is gone out into numeric field data with the corresponding domain format analysis of listening port;
The type of transaction of request message is determined according to the traded elements in numeric field data;
Test cases information corresponding with the type of transaction is obtained by test interface.
Preferably, the numeric field data by request message carries out contrast verification with the numeric field data in test cases information
Step includes:
Numeric field data in request message is contrasted with the numeric field data in test cases information;
Verify key code system, request domain method and the message data logic of POS terminal.
Preferably, the checking is when completing, returning result information to POS terminal, test cases information is modified and
The step of statistical analysis, includes:
Returned data or returns to field usage according to configuring in test cases information carries out returns to field assignment;
The returns to field of assignment is transmitted to POS terminal;
Transaction journal and test result in test cases information is modified and preserved;
Statistical analysis is carried out to transaction journal and test result.
Additionally, for achieving the above object, the present invention also provides a kind of POS Application testings device, including:
Setup module, for arranging test event data message, the test event data message includes project name, prison
Listen port and test cases information;
Sending module, for sending the request message of POS terminal to the listening port of project name matching;
Acquisition module, for obtaining corresponding test cases information according to the numeric field data in request message;
Authentication module, tests for the numeric field data in the numeric field data in request message and test cases information is carried out contrast
Card;
Analysis module, when completing for checking, returning result information to POS terminal is modified to test cases information
And statistical analysis.
Preferably, the sending module includes:
Start unit, for starting the listening port of test event;
Matching unit, for the project name matching listening port carried in the request message that sent according to POS terminal;
Transmitting element, the request message for POS terminal is sent are sent to the listening port of project name matching.
Preferably, the acquisition module includes:
Resolution unit, for request message is gone out numeric field data with listening port corresponding domain format analysis;
Determining unit, for the type of transaction of request message is determined according to the traded elements in numeric field data;
Acquiring unit, for obtaining test cases information corresponding with the type of transaction by test interface.
Preferably, the authentication module includes:
Comparison unit, for the numeric field data in request message is contrasted with the numeric field data in test cases information;
Authentication unit, for verifying key code system, request domain method and the message data logic of POS terminal.
Preferably, the analysis module includes:
Assignment unit, for carrying out returns to field tax according to the returned data or returns to field usage that configure in test cases information
Value;
Transmitting element, for the returns to field of assignment is transmitted to POS terminal;
Memory cell, for the transaction journal and test result in test cases information is modified and preserved;
Analytic unit, for carrying out statistical analysis to transaction journal and test result.
The present invention includes project name, monitors by arranging test event data message, the test event data message
Port and test cases information;The request message of POS terminal is sent to the listening port of project name matching;According to request report
Numeric field data in text obtains corresponding test cases information;By the domain number in the numeric field data in request message and test cases information
According to carrying out contrast verification;When checking is completed, returning result information to POS terminal is modified and is counted to test cases information
Analysis.The present invention arranges the test cases information of multiple projects in test platform, when testing to POS terminal, according to POS
Project and the case test information for carrying out belonging to terminal carries out comparison of classification checking, and a test platform can be realized to multiple
POS under project carries out multiple transaction tests, and test platform function is more, test process efficiency high.
Description of the drawings
Fig. 1 is the schematic flow sheet of the preferred embodiment of POS applied program testing methods of the present invention;
Fig. 2 is the refinement schematic flow sheet of mono- embodiment of step S20 in Fig. 1;
Fig. 3 is the refinement schematic flow sheet of mono- embodiment of step S30 in Fig. 1;
Fig. 4 is the refinement schematic flow sheet of mono- embodiment of step S40 in Fig. 1;
Fig. 5 is the refinement schematic flow sheet of mono- embodiment of step S50 in Fig. 1;
Fig. 6 is the high-level schematic functional block diagram of the preferred embodiment of POS Application testings device of the present invention;
Fig. 7 is the refinement high-level schematic functional block diagram of one embodiment of sending module in Fig. 6;
Fig. 8 is the refinement high-level schematic functional block diagram of one embodiment of acquisition module in Fig. 6;
Fig. 9 is the refinement high-level schematic functional block diagram of one embodiment of authentication module in Fig. 6;
Figure 10 is the refinement high-level schematic functional block diagram of one embodiment of analysis module in Fig. 6.
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
The present invention provides a kind of POS applied program testing methods.
With reference to Fig. 1, Fig. 1 is the schematic flow sheet of the preferred embodiment of POS applied program testing methods of the present invention.
In one embodiment, the POS applied program testing methods include:
Step S10, arranges test event data message, and the test event data message includes project name, monitors end
Mouth and test cases information;
POS needs to test through a series of software and hardware, for production firm from production to normally coming into operation
Speech, from customer consignment is received to examination is paid, in order to be able to the order that completes guaranteed both quality and quantity in fixed time limit, is needed in process of production
POS is tested, but, Unionpay's test platform or the test environment of Third-party payment platform are typically tested in payment
Time receiving can just open, or even have Partial flats can not provide test environment, it is necessary to test in real production environment, because
This, production firm's test in process of production needs by test platform to simulate the various transaction industry of POS center processings POS
The test of business, the customized product of different clients is different, the product of the different batches of same custom is likely to difference, each class
Product all can be carried out production test as a project;Test cases information includes polytype test cases, for example,
Register, sign-out, inquiry into balance, consumption, consumption cancel, transfer accounts, only consume one also include magnetic stripe debit card consume, magnetic stripe IC
Compound debit card consumption, credit card consumption etc.;As the type of service for needing to test is more, data volume is big, and test platform is to surveying
The classification feature of examination data is poor, and existing test platform is once only capable of carrying out simple transaction test to the POS under a project,
When the transaction test that other classifications are carried out to POS and/or the POS changed under disparity items are tested, modification is needed
Test cases information, test platform single function cause test process efficiency low.During in view of actual establishment test cases, meeting
Test cases is classified according to project, therefore, one embodiment of the invention arrange test event data message when, according to item
Mesh title is classified to test cases, and the test event data message of same project is classified as a class, and listening port is set with
Reception belongs to the data message of the test event.
Step S20, the request message of POS terminal is sent to the listening port of project name matching;
In registering, the different state such as sign-out and consumption when, the information for receiving can be passed through different ends by POS terminal
Mouth sends, and can carry the information such as project name, as it was previously stated, the survey of same project in the request message that POS terminal sends
Examination project data information is classified as a class, and corresponding listening port has unique identification information to recognize that residing for which be which is surveyed
Examination project, then can be sent request message classification to corresponding listening port by matching entries title.Certainly, POS terminal
Numbering be unique, the information such as the numbering of itself can be carried in the request message that POS terminal sends, it is also possible in advance in test
By the classification numbering of POS terminal corresponding with project name in platform, determine to send according to the numbering of POS terminal in request message and be somebody's turn to do
The POS terminal of request message belongs to any project.
With reference to Fig. 2, Fig. 2 is the refinement schematic flow sheet of mono- embodiment of step S20 in Fig. 1;Step S20 includes:
Step S21, starts the listening port of test event;
Step S22, according to the project name matching listening port carried in the request message that POS terminal sends;
Step S23, the request message that POS terminal sends is sent to the listening port of project name matching.
As it was previously stated, the test event data message of same project is classified as a class, report will be asked by matching entries title
Text classification is sent to corresponding listening port, therefore, it can when test event data message is arranged, and setting can be monitored and be connect
The listening port of the request message that receipts are matched with project name;POS terminal be configured with the IP of deploying servers to be sent to and
The listening port of project name matching, when being tested, the request message that POS terminal sends is sent to project name and is matched
Listening port, listening port receive POS terminal send request message;It is possible to further be arranged on listening port docking
The request message of receipts verified, for example, carries project name, when listening port connects in the request message that POS terminal sends
When receiving the request message of POS terminal transmission, compare the project name and the test event residing for listening port in request message
Project name it is whether consistent, when project name is consistent, then the request message is received by the listening port.
Step S30, obtains corresponding test cases information according to the numeric field data in request message;
By taking consumer test cases as an example, other test cases situation types, test cases information include the silver consumed
The information such as the accounts information and key of row card, the data for receiving to test process carry out the checking of logic and security;
When being tested, i.e., the bank card is brushed in POS terminal and is consumed, then this is carried in the request message that POS terminal sends
The accounts information of bank card, spending amount etc., in numeric field data of these data storages in request message, then according to request message
In numeric field data obtain corresponding test cases information, by the information in request message and test cases information are carried out
Match somebody with somebody, you can judge whether encryption and decryption of POS terminal etc. is correct, i.e., whether the function is normal.
With reference to Fig. 3, Fig. 3 is the refinement schematic flow sheet of mono- embodiment of step S30 in Fig. 1;Step S30 includes:
Request message is gone out numeric field data with the corresponding domain format analysis of listening port by step S31;
Step S32, determines the type of transaction of request message according to the traded elements in numeric field data;
Step S33, obtains test cases information corresponding with the type of transaction by test interface.
The request message that POS terminal sends belongs to the agreement of 8583 forms of Unionpay's standard, and 8583 agreements are to be based on
The communications protocol of the bag form of ISO8583 message international standards, 8583 bags are at most made up of 128 field domains, and each domain has
Unified regulation, and have fixed length to divide with elongated.8583 bag above one section be bitmap, it be packing unpack determine field domain pass
Key replaces.Request message is made up of a number of domain, and there are several forms of regulation in each domain;Domain lattice are configured in listening port
Request message, when listening port receives request message, is gone out numeric field data with the corresponding domain format analysis of listening port by formula;Domain
Data include traded elements, can determine the type of transaction of request message according to traded elements;By test interface obtain with
Whether the corresponding test cases information of the type of transaction is normal with the function of verifying POS terminal.
Numeric field data in request message is carried out contrast verification with the numeric field data in test cases information by step S40;
Numeric field data in test cases information is pre-set when test event data message is arranged, to POS ends
When end is tested, according to the corresponding data of test cases information input for pre-setting, POS terminal is carried out to corresponding data
The operation such as encryption generates request message, and request message is sent to test platform, by test platform by the domain in request message
Whether data carry out contrast verification with the numeric field data in test cases information, normal with the function of verifying POS terminal.Contrast
Checking also includes that the numeric field data in request message is identical with the numeric field data in test cases information, or the domain number in request message
Meet the modes such as default rule according to the mode of encryption and decryption.
With reference to Fig. 4, Fig. 4 is the refinement schematic flow sheet of mono- embodiment of step S40 in Fig. 1;Step S40 includes:
Step S41, the numeric field data in request message is contrasted with the numeric field data in test cases information;
Step S42, verifies key code system, request domain method and the message data logic of POS terminal.
Bankcard network security system employs three-level key management system, is master key, key friendship from top to down successively
Change key, data key.Higher level's key is used to encrypt subordinate's key, specific as follows:1. master key is close for encrypted key exchange
Key and data key make locally stored;2. key exchange key makees network transmission for encrypted data key;3. data key is used
In carrying out encryption and decryption to data.Information in request message in the form of numeric field data, by the numeric field data in request message with
Numeric field data in test cases information is contrasted, and verifies key code system, request domain method and the message data logic of POS terminal
Whether design requirement is met Deng various functions.
Step S50, when checking is completed, returning result information to POS terminal is modified and is counted to test cases information
Analysis.
The result of this case test when checking is completed, can be produced, may be likely to not by checking, POS by checking
The function of terminal normally may be likely to it is abnormal, for example, during bankcard consumption, when the password of input is correct, request message
If the processes such as the encryption and decryption of bank card account number and password of middle carrying are correct, verify that the function of POS terminal is normal, return
The normal information of consumption is returned to POS terminal, if the dysfunction of POS terminal, is returned and is represented parafunctional information extremely
POS terminal;For example, 00 expression POS terminal is concluded the business successfully, honours or concludes the business successfully;01 represents POS terminal Fail Transaction, please join
It is credit card issuer, looks into credit card issuer or check remaining sum in card;55 represent that password is wrong, please retry;A case test is completed, it is right to need
Test cases information is modified, and for example, is as a result the remaining sum change feelings of shroff account number successfully or not successfully, after bankcard consumption
Condition etc.;After all test cases tests of POS terminal terminate, statistical analysis is carried out to all of test information, is easy to tester
Whether the various functions that member analyzes the POS terminal are normal, if parafunctional, specifically which dysfunction etc..Also wrap
Include the state to test cases to modify, for example, in being not carried out or performing, to perform terminate, can also increase successfully or
Unsuccessful status indication.
With reference to Fig. 5, Fig. 5 is the refinement schematic flow sheet of mono- embodiment of step S50 in Fig. 1;Step S50 includes:
Step S51, carries out returns to field assignment according to the returned data or returns to field usage that configure in test cases information;
Step S52, the returns to field of assignment is transmitted to POS terminal;
Step S53, modifies and preserves to the transaction journal and test result in test cases information;
Step S54, carries out statistical analysis to transaction journal and test result.
POS terminal is sent to that the request message of test platform is carried out plus the dissatisfied mode such as close is processed, and test platform is returned
To the data of POS terminal, also returns to field tax should be carried out according to the returned data or returns to field usage that configure in test cases information
Value;The returns to field of assignment is transmitted to POS terminal;Transaction journal and test result in test cases information is repaiied
Change and preserve;Statistical analysis is carried out to transaction journal and test result.For example, after a certain amount of money of bankcard consumption, what this was consumed
The just corresponding reduction of the amount of money in card, after deduction transaction procedure takes, the account amount of money of trade company accordingly increases, and to count transaction journal is
It is no normal.After all test cases tests of POS terminal terminate, statistical analysis is carried out to all of test information, is easy to test
Whether the various functions that personnel analyze the POS terminal are normal, if parafunctional, specifically which dysfunction etc., and system
The result of meter analysis can be embodied by modes such as forms.
The present embodiment is being tested to POS terminal by the test cases information in the multiple projects of test platform setting
When, the project and the case test information for carrying out according to belonging to POS terminal carries out comparison of classification checking, and a test platform can
Realization carries out multiple transaction tests to the POS under multiple projects, and test platform function is more, test process efficiency high.
In order to above-mentioned POS Application testings scheme is better described, below specific explanations will be carried out by an example.
POS terminal under multiple projects is tested simultaneously in same test platform, now with 2 relatives of Taiwan compatriots living on the Mainland under disparity items
POS terminal simultaneously tested as a example by illustrate, numbering is that the POS terminal of a belongs to first project, the account of the trade company that collects money
Number belong to A banks, a test cases is 200 yuan of the magnetic stripe debit card of brush one's own profession;Another numbering is that the POS terminal of b belongs to
Second project, the account of the trade company that collects money belong to B banks, and a test cases is to brush 200 yuan of the magnetic stripe debit card that he manages it.
200 yuan are consumed in the magnetic stripe debit card of 2 POS terminal brush A banks, when the input amount of money, swipe the card, be input into it is correctly close
After code, according to the request message that POS terminal sends, test platform understands that a request message belongs to first project, a request message
Belong to second project, then the request message for belonging to first project is received by the listening port of first project, is connect by the listening port of second project
Receipts belong to the request message of second project.
After parsing to request message, determine the type of transaction of request message, obtained and the friendship by test interface
The corresponding test cases information of easy type.It is right that numeric field data in numeric field data in request message and test cases information is carried out
Than;Verify key code system, request domain method and the message data logic of POS terminal.After the completion of checking, as a result for numbering be a's
POS terminal encryption and decryption functions exception;Another numbering is that the POS terminal function of b is normal, meanwhile, test cases information is changed, across
2 yuan of service charge is received in row transaction, and the B Bank Account Numbers of the trade company that collects money increase by 198 yuan.
The present invention further provides a kind of POS Application testings device.
With reference to Fig. 6, Fig. 6 is the high-level schematic functional block diagram of the preferred embodiment of POS Application testings device of the present invention.
In one embodiment, the POS Application testings device includes:Setup module 10, sending module 20, acquisition mould
Block 30, authentication module 40 and analysis module 50.
The setup module 10, for arranging test event data message, the test event data message includes project
Title, listening port and test cases information;
POS needs to test through a series of software and hardware, for production firm from production to normally coming into operation
Speech, from customer consignment is received to examination is paid, in order to be able to the order that completes guaranteed both quality and quantity in fixed time limit, is needed in process of production
POS is tested, but, Unionpay's test platform or the test environment of Third-party payment platform are typically tested in payment
Time receiving can just open, or even have Partial flats can not provide test environment, it is necessary to test in real production environment, because
This, production firm's test in process of production needs by test platform to simulate the various transaction industry of POS center processings POS
The test of business, the customized product of different clients is different, the product of the different batches of same custom is likely to difference, each class
Product all can be carried out production test as a project;Test cases information includes polytype test cases, for example,
Register, sign-out, inquiry into balance, consumption, consumption cancel, transfer accounts, only consume one also include magnetic stripe debit card consume, magnetic stripe IC
Compound debit card consumption, credit card consumption etc.;As the type of service for needing to test is more, data volume is big, and test platform is to surveying
The classification feature of examination data is poor, and existing test platform is once only capable of carrying out simple transaction test to the POS under a project,
When the transaction test that other classifications are carried out to POS and/or the POS changed under disparity items are tested, modification is needed
Test cases information, test platform single function cause test process efficiency low.During in view of actual establishment test cases, meeting
Test cases is classified according to project, therefore, one embodiment of the invention arrange test event data message when, according to item
Mesh title is classified to test cases, and the test event data message of same project is classified as a class, and listening port is set with
Reception belongs to the data message of the test event.
The sending module 20, for sending the request message of POS terminal to the listening port of project name matching;
In registering, the different state such as sign-out and consumption when, the information for receiving can be passed through different ends by POS terminal
Mouth sends, and can carry the information such as project name, as it was previously stated, the survey of same project in the request message that POS terminal sends
Examination project data information is classified as a class, and corresponding listening port has unique identification information to recognize that residing for which be which is surveyed
Examination project, then can be sent request message classification to corresponding listening port by matching entries title.Certainly, POS terminal
Numbering be unique, the information such as the numbering of itself can be carried in the request message that POS terminal sends, it is also possible in advance in test
By the classification numbering of POS terminal corresponding with project name in platform, determine to send according to the numbering of POS terminal in request message and be somebody's turn to do
The POS terminal of request message belongs to any project.
With reference to Fig. 7, Fig. 7 is the refinement high-level schematic functional block diagram of 20 1 embodiment of sending module in Fig. 6;The sending module
20 include:
Start unit 21, for starting the listening port of test event;
Matching unit 22, for the project name matching listening port carried in the request message that sent according to POS terminal;
Transmitting element 23, the request message for POS terminal is sent are sent to the listening port of project name matching.
As it was previously stated, the test event data message of same project is classified as a class, report will be asked by matching entries title
Text classification is sent to corresponding listening port, therefore, it can when test event data message is arranged, and setting can be monitored and be connect
The listening port of the request message that receipts are matched with project name;POS terminal be configured with the IP of deploying servers to be sent to and
The listening port of project name matching, when being tested, the request message that POS terminal sends is sent to project name and is matched
Listening port, listening port receive POS terminal send request message;It is possible to further be arranged on listening port docking
The request message of receipts verified, for example, carries project name, when listening port connects in the request message that POS terminal sends
When receiving the request message of POS terminal transmission, compare the project name and the test event residing for listening port in request message
Project name it is whether consistent, when project name is consistent, then the request message is received by the listening port.
The acquisition module 30, for obtaining corresponding test cases information according to the numeric field data in request message;
By taking consumer test cases as an example, other test cases situation types, test cases information include the silver consumed
The information such as the accounts information and key of row card, the data for receiving to test process carry out the checking of logic and security;
When being tested, i.e., the bank card is brushed in POS terminal and is consumed, then this is carried in the request message that POS terminal sends
The accounts information of bank card, spending amount etc., in numeric field data of these data storages in request message, then according to request message
In numeric field data obtain corresponding test cases information, by the information in request message and test cases information are carried out
Match somebody with somebody, you can judge whether encryption and decryption of POS terminal etc. is correct, i.e., whether the function is normal.
With reference to Fig. 8, Fig. 8 is the refinement high-level schematic functional block diagram of 30 1 embodiment of acquisition module in Fig. 6;The acquisition module
30 include:
Resolution unit 31, for request message is gone out numeric field data with listening port corresponding domain format analysis;
Determining unit 32, for the type of transaction of request message is determined according to the traded elements in numeric field data;
Acquiring unit 33, for obtaining test cases information corresponding with the type of transaction by test interface.
The request message that POS terminal sends belongs to the agreement of 8583 forms of Unionpay's standard, and 8583 agreements are to be based on
The communications protocol of the bag form of ISO8583 message international standards, 8583 bags are at most made up of 128 field domains, and each domain has
Unified regulation, and have fixed length to divide with elongated.8583 bag above one section be bitmap, it be packing unpack determine field domain pass
Key replaces.Request message is made up of a number of domain, and there are several forms of regulation in each domain;Domain lattice are configured in listening port
Request message, when listening port receives request message, is gone out numeric field data with the corresponding domain format analysis of listening port by formula;Domain
Data include traded elements, can determine the type of transaction of request message according to traded elements;By test interface obtain with
Whether the corresponding test cases information of the type of transaction is normal with the function of verifying POS terminal.
The authentication module 40, it is right for the numeric field data in the numeric field data in request message and test cases information is carried out
Than checking;
Numeric field data in test cases information is pre-set when test event data message is arranged, to POS ends
When end is tested, according to the corresponding data of test cases information input for pre-setting, POS terminal is carried out to corresponding data
The operation such as encryption generates request message, and request message is sent to test platform, by test platform by the domain in request message
Whether data carry out contrast verification with the numeric field data in test cases information, normal with the function of verifying POS terminal.Contrast
Checking also includes that the numeric field data in request message is identical with the numeric field data in test cases information, or the domain number in request message
Meet the modes such as default rule according to the mode of encryption and decryption.
With reference to Fig. 9, Fig. 9 is the refinement high-level schematic functional block diagram of 40 1 embodiment of authentication module in Fig. 6;The authentication module
40 include:
Comparison unit 41, for the numeric field data in request message is contrasted with the numeric field data in test cases information;
Authentication unit 42, for verifying key code system, request domain method and the message data logic of POS terminal.
Bankcard network security system employs three-level key management system, is master key, key friendship from top to down successively
Change key, data key.Higher level's key is used to encrypt subordinate's key, specific as follows:1. master key is close for encrypted key exchange
Key and data key make locally stored;2. key exchange key makees network transmission for encrypted data key;3. data key is used
In carrying out encryption and decryption to data.Information in request message in the form of numeric field data, by the numeric field data in request message with
Numeric field data in test cases information is contrasted, and verifies key code system, request domain method and the message data logic of POS terminal
Whether design requirement is met Deng various functions.
The analysis module 50, when completing for checking, returning result information to POS terminal is entered to test cases information
Row modification and statistical analysis.
The result of this case test when checking is completed, can be produced, may be likely to not by checking, POS by checking
The function of terminal normally may be likely to it is abnormal, for example, during bankcard consumption, when the password of input is correct, request message
If the processes such as the encryption and decryption of bank card account number and password of middle carrying are correct, verify that the function of POS terminal is normal, return
The normal information of consumption is returned to POS terminal, if the dysfunction of POS terminal, is returned and is represented parafunctional information extremely
POS terminal;For example, 00 expression POS terminal is concluded the business successfully, honours or concludes the business successfully;01 represents POS terminal Fail Transaction, please join
It is credit card issuer, looks into credit card issuer or check remaining sum in card;55 represent that password is wrong, please retry;A case test is completed, it is right to need
Test cases information is modified, and for example, is as a result the remaining sum change feelings of shroff account number successfully or not successfully, after bankcard consumption
Condition etc.;After all test cases tests of POS terminal terminate, statistical analysis is carried out to all of test information, is easy to tester
Whether the various functions that member analyzes the POS terminal are normal, if parafunctional, specifically which dysfunction etc..Also wrap
Include the state to test cases to modify, for example, in being not carried out or performing, to perform terminate, can also increase successfully or
Unsuccessful status indication.
With reference to Figure 10, Figure 10 is the refinement high-level schematic functional block diagram of 50 1 embodiment of analysis module in Fig. 6;The analysis mould
Block 50 includes:
Assignment unit 51, for carrying out returns to field according to the returned data or returns to field usage that configure in test cases information
Assignment;
Transmitting element 52, for the returns to field of assignment is transmitted to POS terminal;
Memory cell 53, for the transaction journal and test result in test cases information is modified and preserved;
Analytic unit 54, for carrying out statistical analysis to transaction journal and test result.
POS terminal is sent to that the request message of test platform is carried out plus the dissatisfied mode such as close is processed, and test platform is returned
To the data of POS terminal, also returns to field tax should be carried out according to the returned data or returns to field usage that configure in test cases information
Value;The returns to field of assignment is transmitted to POS terminal;Transaction journal and test result in test cases information is repaiied
Change and preserve;Statistical analysis is carried out to transaction journal and test result.For example, after a certain amount of money of bankcard consumption, what this was consumed
The just corresponding reduction of the amount of money in card, after deduction transaction procedure takes, the account amount of money of trade company accordingly increases, and to count transaction journal is
It is no normal.After all test cases tests of POS terminal terminate, statistical analysis is carried out to all of test information, is easy to test
Whether the various functions that personnel analyze the POS terminal are normal, if parafunctional, specifically which dysfunction etc., and system
The result of meter analysis can be embodied by modes such as forms.
The present embodiment is being tested to POS terminal by the test cases information in the multiple projects of test platform setting
When, the project and the case test information for carrying out according to belonging to POS terminal carries out comparison of classification checking, and a test platform can
Realization carries out multiple transaction tests to the POS under multiple projects, and test platform function is more, test process efficiency high.
The preferred embodiments of the present invention are these are only, the scope of the claims of the present invention is not thereby limited, it is every using this
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of POS applied program testing methods, it is characterised in that comprise the following steps:
Test event data message is set, and the test event data message includes project name, listening port and test cases
Information;
The request message of POS terminal is sent to the listening port of project name matching;
Corresponding test cases information is obtained according to the numeric field data in request message;
Numeric field data in request message is carried out into contrast verification with the numeric field data in test cases information;
When checking is completed, returning result information to POS terminal is modified to test cases information and statistical analysis.
2. POS applied program testing methods as claimed in claim 1, it is characterised in that the request message by POS terminal
Send to project name matching listening port the step of include:
Start the listening port of test event;
According to the project name matching listening port carried in the request message that POS terminal sends;
The request message that POS terminal sends is sent to the listening port of project name matching.
3. POS applied program testing methods as claimed in claim 1, it is characterised in that the domain according in request message
The step of data acquisition corresponding test cases information, includes:
Request message is gone out into numeric field data with the corresponding domain format analysis of listening port;
The type of transaction of request message is determined according to the traded elements in numeric field data;
Test cases information corresponding with the type of transaction is obtained by test interface.
4. POS applied program testing methods as claimed in claim 1, it is characterised in that the domain number by request message
According to test cases information in numeric field data carry out contrast verification the step of include:
Numeric field data in request message is contrasted with the numeric field data in test cases information;
Verify key code system, request domain method and the message data logic of POS terminal.
5. POS applied program testing methods as any one of Claims 1-4, it is characterised in that the checking is completed
When, returning result information to POS terminal is modified to test cases information and is included the step of statistical analysis:
Returned data or returns to field usage according to configuring in test cases information carries out returns to field assignment;
The returns to field of assignment is transmitted to POS terminal;
Transaction journal and test result in test cases information is modified and preserved;
Statistical analysis is carried out to transaction journal and test result.
6. a kind of POS Application testings device, it is characterised in that include:
Setup module, for arranging test event data message, the test event data message includes project name, monitors end
Mouth and test cases information;
Sending module, for sending the request message of POS terminal to the listening port of project name matching;
Acquisition module, for obtaining corresponding test cases information according to the numeric field data in request message;
Authentication module, for the numeric field data in request message is carried out contrast verification with the numeric field data in test cases information;
Analysis module, when completing for checking, returning result information to POS terminal is modified and is united to test cases information
Meter analysis.
7. POS Application testings device as claimed in claim 6, it is characterised in that the sending module includes:
Start unit, for starting the listening port of test event;
Matching unit, for the project name matching listening port carried in the request message that sent according to POS terminal;
Transmitting element, the request message for POS terminal is sent are sent to the listening port of project name matching.
8. POS Application testings device as claimed in claim 6, it is characterised in that the acquisition module includes:
Resolution unit, for request message is gone out numeric field data with listening port corresponding domain format analysis;
Determining unit, for the type of transaction of request message is determined according to the traded elements in numeric field data;
Acquiring unit, for obtaining test cases information corresponding with the type of transaction by test interface.
9. POS Application testings device as claimed in claim 6, it is characterised in that the authentication module includes:
Comparison unit, for the numeric field data in request message is contrasted with the numeric field data in test cases information;
Authentication unit, for verifying key code system, request domain method and the message data logic of POS terminal.
10. POS Application testing devices as any one of claim 6 to 9, it is characterised in that the analysis mould
Block includes:
Assignment unit, for carrying out returns to field assignment according to the returned data or returns to field usage that configure in test cases information;
Transmitting element, for the returns to field of assignment is transmitted to POS terminal;
Memory cell, for the transaction journal and test result in test cases information is modified and preserved;
Analytic unit, for carrying out statistical analysis to transaction journal and test result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610886176.0A CN106557421A (en) | 2016-10-10 | 2016-10-10 | POS applied program testing methods and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610886176.0A CN106557421A (en) | 2016-10-10 | 2016-10-10 | POS applied program testing methods and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106557421A true CN106557421A (en) | 2017-04-05 |
Family
ID=58418454
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610886176.0A Pending CN106557421A (en) | 2016-10-10 | 2016-10-10 | POS applied program testing methods and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106557421A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107195081A (en) * | 2017-05-31 | 2017-09-22 | 金邦达有限公司 | The method of testing and device of financial transaction terminal, test card, computer-readable medium |
CN107590067A (en) * | 2017-08-01 | 2018-01-16 | 百富计算机技术(深圳)有限公司 | The method and device tested by POS simulators |
CN108197914A (en) * | 2017-12-29 | 2018-06-22 | 珠海市君天电子科技有限公司 | A kind of information acquisition method, device and server |
CN108255725A (en) * | 2018-01-18 | 2018-07-06 | 银联商务股份有限公司 | Test method and device |
CN108305055A (en) * | 2017-10-20 | 2018-07-20 | 掌合天下(北京)信息技术有限公司 | Pay test method and device |
CN109447733A (en) * | 2018-09-25 | 2019-03-08 | 深圳壹账通智能科技有限公司 | Transaction verification method, device and the storage medium of transaction system |
CN110930608A (en) * | 2019-10-31 | 2020-03-27 | 福建新大陆支付技术有限公司 | POS terminal ISO8583 message testing method and simulation background baffle system |
CN111427778A (en) * | 2020-03-18 | 2020-07-17 | 中国平安人寿保险股份有限公司 | Test method, test device, terminal equipment and storage medium |
CN112863084A (en) * | 2021-01-13 | 2021-05-28 | 中国工商银行股份有限公司 | Intelligent sales terminal, and testing method, device and system of intelligent sales terminal |
CN113628358A (en) * | 2021-07-27 | 2021-11-09 | 北京优奥创思科技发展有限公司 | Conference sign-in hardware performance test method, system and storage medium |
CN114615176A (en) * | 2022-03-07 | 2022-06-10 | 中银金融科技有限公司 | Message testing method and device and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100215179A1 (en) * | 2006-01-31 | 2010-08-26 | Texas Instruments Incorporated | Security Key Method In Semiconductor Manufacturing |
CN103810094A (en) * | 2012-11-14 | 2014-05-21 | 中国农业银行股份有限公司 | Executing method and device for test case and test tool |
CN104038605A (en) * | 2014-06-04 | 2014-09-10 | 福建升腾资讯有限公司 | Phone point of sale (POS) payment terminal transaction testing method |
CN104216832A (en) * | 2014-09-24 | 2014-12-17 | 福建联迪商用设备有限公司 | POS (Point of Sale) application testing method and system |
CN105302706A (en) * | 2014-06-05 | 2016-02-03 | 腾讯科技(深圳)有限公司 | Application test method and apparatus |
-
2016
- 2016-10-10 CN CN201610886176.0A patent/CN106557421A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100215179A1 (en) * | 2006-01-31 | 2010-08-26 | Texas Instruments Incorporated | Security Key Method In Semiconductor Manufacturing |
CN103810094A (en) * | 2012-11-14 | 2014-05-21 | 中国农业银行股份有限公司 | Executing method and device for test case and test tool |
CN104038605A (en) * | 2014-06-04 | 2014-09-10 | 福建升腾资讯有限公司 | Phone point of sale (POS) payment terminal transaction testing method |
CN105302706A (en) * | 2014-06-05 | 2016-02-03 | 腾讯科技(深圳)有限公司 | Application test method and apparatus |
CN104216832A (en) * | 2014-09-24 | 2014-12-17 | 福建联迪商用设备有限公司 | POS (Point of Sale) application testing method and system |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107195081A (en) * | 2017-05-31 | 2017-09-22 | 金邦达有限公司 | The method of testing and device of financial transaction terminal, test card, computer-readable medium |
CN107590067A (en) * | 2017-08-01 | 2018-01-16 | 百富计算机技术(深圳)有限公司 | The method and device tested by POS simulators |
CN108305055A (en) * | 2017-10-20 | 2018-07-20 | 掌合天下(北京)信息技术有限公司 | Pay test method and device |
CN108197914A (en) * | 2017-12-29 | 2018-06-22 | 珠海市君天电子科技有限公司 | A kind of information acquisition method, device and server |
CN108197914B (en) * | 2017-12-29 | 2021-12-17 | 珠海市君天电子科技有限公司 | Information acquisition method and device and server |
CN108255725B (en) * | 2018-01-18 | 2021-02-19 | 银联商务股份有限公司 | Test method and device |
CN108255725A (en) * | 2018-01-18 | 2018-07-06 | 银联商务股份有限公司 | Test method and device |
CN109447733A (en) * | 2018-09-25 | 2019-03-08 | 深圳壹账通智能科技有限公司 | Transaction verification method, device and the storage medium of transaction system |
CN110930608A (en) * | 2019-10-31 | 2020-03-27 | 福建新大陆支付技术有限公司 | POS terminal ISO8583 message testing method and simulation background baffle system |
CN111427778A (en) * | 2020-03-18 | 2020-07-17 | 中国平安人寿保险股份有限公司 | Test method, test device, terminal equipment and storage medium |
CN112863084A (en) * | 2021-01-13 | 2021-05-28 | 中国工商银行股份有限公司 | Intelligent sales terminal, and testing method, device and system of intelligent sales terminal |
CN113628358A (en) * | 2021-07-27 | 2021-11-09 | 北京优奥创思科技发展有限公司 | Conference sign-in hardware performance test method, system and storage medium |
CN113628358B (en) * | 2021-07-27 | 2023-02-10 | 北京优奥创思科技发展有限公司 | Conference sign-in hardware performance test method, system and storage medium |
CN114615176A (en) * | 2022-03-07 | 2022-06-10 | 中银金融科技有限公司 | Message testing method and device and electronic equipment |
CN114615176B (en) * | 2022-03-07 | 2024-05-24 | 中银金融科技有限公司 | Message testing method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106557421A (en) | POS applied program testing methods and device | |
US10698795B2 (en) | Virtual payments environment | |
US20190220865A1 (en) | Account type detection for fraud risk | |
US20140046786A1 (en) | Mobile Merchant POS Processing System, Point-of-Sale App, Analytical Methods, and Systems and Methods for Implementing the Same | |
CN104615939B (en) | Document generation method, verification method, device and system | |
US8820627B2 (en) | Contactless test system | |
CN109815138A (en) | Business information test method, device, computer equipment and storage medium | |
CN106021091B (en) | Internet bank's simulation system and method | |
CN108876105B (en) | Transaction risk control method and device | |
US20130282583A1 (en) | Fraud detection system rule profile interaction | |
US8510193B2 (en) | Method for acquiring data from a user at the time of a card payment made using a payment terminal | |
US9870597B2 (en) | Systems and methods allowing multi-family property owners to consolidate retail electric provider charges with landlord provided utilities and services | |
CN108829466A (en) | A kind of data processing method, device, electronic equipment and storage medium | |
CN109509075A (en) | A kind of financial revenue and expenditure voucher processing method, device, equipment and system | |
CN104376452A (en) | System and method for managing payment success rate on basis of international card payment channel | |
CN110837470A (en) | Method and device for testing bank card network transaction | |
WO2018187993A1 (en) | Atm service software development and debugging method and system, and atmp simulation system | |
CN111242773A (en) | Virtual resource application docking method and device, computer equipment and storage medium | |
EP3148158B1 (en) | Monitoring a transaction and apparatus for monitoring a mobile payment transaction | |
CN113010443A (en) | Database test data generation method and device based on financial core transaction scene | |
CN110427313B (en) | System and method for testing transaction function of automatic ticket vending machine | |
Akbar et al. | Development of Sales Application of Prepaid Electricity Voucher Based on Anfroid Platform Using Quick Response Code (Qr Code) | |
CN113220594A (en) | Automatic testing method, device, equipment and storage medium | |
CN113159967A (en) | Data processing method and device based on financial core online transaction scene | |
CN110569180A (en) | System and method for testing transaction function of ticket vending machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170405 |