CN105590378A - POS terminal and testing method by using the same - Google Patents

POS terminal and testing method by using the same Download PDF

Info

Publication number
CN105590378A
CN105590378A CN201510821643.7A CN201510821643A CN105590378A CN 105590378 A CN105590378 A CN 105590378A CN 201510821643 A CN201510821643 A CN 201510821643A CN 105590378 A CN105590378 A CN 105590378A
Authority
CN
China
Prior art keywords
pos terminal
module
transaction message
card sending
receipts single
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
Application number
CN201510821643.7A
Other languages
Chinese (zh)
Other versions
CN105590378B (en
Inventor
尹祥龙
陈煜�
周继恩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Unionpay Co Ltd
Original Assignee
China Unionpay Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN201510821643.7A priority Critical patent/CN105590378B/en
Publication of CN105590378A publication Critical patent/CN105590378A/en
Application granted granted Critical
Publication of CN105590378B publication Critical patent/CN105590378B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/0009Details of the software in the checkout register, electronic cash register [ECR] or point of sale terminal [POS]
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere

Abstract

The present invention provides a POS terminal and a testing method by using the same. The POS terminal comprises: a connection module configured to connect with a system to be tested; a simulation module configured to interact with the system to be tested; and a determination module configured to determine the testing result according to the interaction result.

Description

A kind of POS terminal and the method for utilizing this POS terminal to test
Technical field
Embodiments of the invention relate to software system test, and relate in particular to POS terminal and utilize this POS eventuallyThe method that end is tested.
Background technology
Holder is in the time swiping the card, and POS terminal reads card image and generates transaction message. AcquirerReceive and process the transaction message from POS terminal, and the transaction message of treated mistake is passed through to changeover mechanism(for example, the bankcard association such as Unionpay, VISA) is sent to card sending mechanism. Card sending mechanism is according to the transaction receivingMessage is to the operation of withholing of the account of card. Changeover mechanism is after receiving and withholing and successfully reply, to POS eventuallyEnd returns to transaction results.
Above-mentioned process of exchange relates to multiple software systems, comprises and receives single system, adapting system, card sending system. ForCorrect carry out transaction, when one or more system in design and implementation transaction flow, need to survey itExamination.
Summary of the invention
The present invention discloses a kind of POS terminal, comprising: link block, for being connected with treating examining system; Emulation mouldPiece, for carrying out alternately with treating examining system; Judge module, for judging test according to described mutual resultResult.
Preferably, described in treat that examining system comprises receipts single system, described link block is configured to this receipts single systemSend transaction message, described emulation module is configured to receive the transaction message of being processed by this receipts single system, andAnd generation response message, described judge module is configured to judge for this receipts single system based on this response messageTest result.
Preferably, described in treat that examining system comprises card sending system, described link block is configured to this emulation moduleSend transaction message, described emulation module is configured to this transaction message to carry out pretreatment, and by pretreatmentThe transaction message of crossing is sent to this card sending system, and described judge module is configured to produce based on this card sending systemResponse message judges the test result for this card sending system.
Preferably, also comprise the configuration module for configuration testing parameter.
Preferably, one or more by portion in described emulation module, described judge module, described configuration moduleBe deployed in the high in the clouds of this POS terminal.
A method of utilizing POS terminal to test, carry out following steps in this POS terminal: Connection Step,Be connected with treating examining system; Simulation process, carries out alternately with treating examining system; Determining step, according to described mutualResult judges test result.
Preferably, described in treat that examining system comprises receipts single system, described Connection Step comprises to this receipts single system and sendingTransaction message, described simulation process comprises the transaction message that reception was processed by this receipts single system, and generation shouldAnswer message, described determining step comprises based on this response message and judges the test result for this receipts single system.
Preferably, described in treat that examining system comprises card sending system, described Connection Step comprises to this simulation process and sendingTransaction message, described simulation process comprises this transaction message carried out to pretreatment, and by pretreated transactionMessage is sent to this card sending system, and described determining step comprises that the response message producing based on this card sending system sentencesThe disconnected test result for this card sending system.
Preferably, also comprise the configuration step of configuration testing parameter.
Preferably, one or more at this in described simulation process, described determining step, described configuration stepThe high in the clouds of POS terminal is performed.
Advantage of the present invention comprises: because test transaction is from real card and real POS terminal, can adviseKeep away the inaccurate test result that simulation card, pseudo-terminal cause. Further, easy to operate: because handle is imitativeTrue module and POS terminal integrate, and have simplified test operation. In addition, owing to not needing installing simulation specialWith equipment, reduce hardware input cost and upgrade cost and all reduced.
In the time reading by reference to the accompanying drawings following description, also will understand further feature and the advantage of embodiments of the invention, itsMiddle accompanying drawing shows the principle of embodiments of the invention by means of example.
Brief description of the drawings
Fig. 1 be according to the embodiment of the present invention pass through POS terminal swipe the card transaction schematic diagram.
Fig. 2 is according to the composition schematic diagram of the POS terminal of the embodiment of the present invention.
Fig. 3 receives the schematic diagram of single system according to the POS terminal test that utilizes of the embodiment of the present invention.
Fig. 4 is the schematic diagram that utilizes POS terminal test card sending system according to the embodiment of the present invention.
Fig. 5 carries out the flow chart of the method for test according to the POS terminal of utilizing of the embodiment of the present invention.
Detailed description of the invention
Hereinafter, in connection with embodiment, principle of the present invention is described. Should be understood that the embodiment providingBe for those skilled in the art understand better and put into practice the present invention, instead of limit model of the present inventionEnclose. For example, in this description, comprising many concrete implementation details should not be interpreted as scope of invention or canThe restriction of the scope of protection can be required, but the description specific to embodiment should be regarded as. For example,, respectivelyThe feature of the context-descriptive of embodiment can be combined in single embodiment and implement. Upper at single embodimentThe spy who hereinafter describes can implement at multiple embodiment.
Fig. 1 be according to the embodiment of the present invention pass through POS terminal swipe the card transaction schematic diagram. As Fig. 1 instituteShow, the transaction of swiping the card relates to card, POS terminal, receives single system, switching/system for settling account (for example, Unionpay, VISADeng bankcard association), the entity such as card sending system. Holder is in the time swiping the card, and POS terminal reads card letterBreath and generation transaction message. Acquirer receives and processes the transaction message from POS terminal, and will be throughThe transaction message of processing is sent to card sending mechanism by changeover mechanism. Card sending mechanism is according to the transaction message receivingTo the operation of withholing of the account of card. Changeover mechanism, after receiving and withholing and successfully reply, returns to POS terminalReturn transaction results. The path that information is transmitted can be as shown in Figure 1 from POS terminal to receive single system again to switching/System for settling account is finally to card sending system, and path in contrast to this.
Various embodiments of the present invention are tested receipts single system and/or card sending system in above-mentioned transaction path.Than the test data that adopts artificial design, embodiments of the invention adopt real transaction data to testImprove the accuracy and efficiency of test. Test for convenience of tester, and reduce testing cost, thisInventive embodiment is expanded existing POS terminal.
Fig. 2 is according to the composition schematic diagram of the POS terminal of the embodiment of the present invention. As shown in Figure 2, except POSOutside original cashier module in terminal, one or more embodiment of the present invention also arrange in POS terminalOne or more in link block, emulation module, judge module, configuration module. These modules can be establishedPut in POS terminal this locality, or remotely established with respect to POS end entity as a part for POS terminalPut.
According to an embodiment, POS terminal comprises: link block, for being connected with treating examining system; Emulation mouldPiece, for carrying out alternately with treating examining system; Judge module, for judging test according to described mutual resultResult. Link block is connected by network with treating examining system. Emulation module is used for simulating one or more transaction roadSystem in footpath is come and system interaction to be measured. Judge module can judge test result according to predetermined condition.
Alternatively, POS terminal can also comprise configuration module, for configuration testing parameter, for example test input,Executive condition and expected results, and the parameter of system end to be measured etc.
In different embodiment, treat that examining system can be to receive single system, card sending system or the two. ReceiveSingle system can be relevant to acquirer, any software systems, software module or spy in acquirerDetermine code. Card sending system can be relevant to card sending mechanism, any software systems, software in card sending mechanismModule or particular code.
By in emulation module mock trading flow process except POS terminal and treat other software system examining systemSystem, can simplify testing process. Especially, emulation module is arranged on to POS terminal and can simplifies test operation,Save testing cost. Tester only needs to operate POS terminal and tests.
Fig. 3 receives the schematic diagram of single system according to the POS terminal test that utilizes of the embodiment of the present invention. In this enforcementIn example, treat that examining system comprises receipts single system. The cashier module of card and POS terminal produces transaction message, shouldTransaction message is delivered to receipts single system in cashier module. This process produces real transaction data. Afterwards, quiltThe receipts single system of test will be delivered to emulation module in treated transaction message. Emulation module can be according to test caseResponse message is produced in the configuration of example, and is back to receipts single system. This is replied and is back to via receiving single systemJudge module in POS terminal. Thereby completing transaction flow by means of emulation module reaches test and receives single systemObject. Particularly, in test process, link block is configured to send transaction message to this receipts single system,Emulation module is configured to receive the transaction message of being processed by this receipts single system, and produces response message, sentencesDisconnected module is configured to judge the test result for this receipts single system based on this response message.
According to this embodiment, only need to use POS terminal can realize receiving for the tester who receives single systemThe test of single system.
Fig. 4 is the schematic diagram that utilizes POS terminal test card sending system according to the embodiment of the present invention. In this enforcementIn example, treat that examining system comprises card sending system. The cashier module of card and POS terminal produces transaction message, shouldTransaction message is delivered to emulation module in cashier module. This process produces real transaction data. Afterwards, imitativeTrue module simulation is received single system and is received the transaction message from POS terminal, and analog switching system is to testedCard sending system there is treated transaction message. Card sending system is after handling this transaction message, by formerResponse message is returned to POS terminal in transaction path. Particularly, in test process, link block is configured toSend transaction message to this emulation module, emulation module is configured to this transaction message to carry out pretreatment, andPretreated transaction message is sent to this card sending system, and judge module is configured to produce based on this card sending systemRaw response message judges the test result for this card sending system.
In this embodiment, the transaction that utilizes real card and real POS terminal to produce, can evade simulationThe inaccurate test result that card, pseudo-terminal cause.
As mentioned above, one or more in emulation module, judge module, configuration module can be used as POS eventuallyA part for end is remotely arranged with respect to POS end entity. For example, emulation module, judge module, joinPut the one or more high in the clouds that are deployed in this POS terminal in module. The function of these modules or will be by thisOne or more steps that a little modules are carried out can dynamically be expanded to internet based on cloud computing technology, and makeComplete calculating with the virtual resource on internet. Therefore, in certain embodiments, POS terminal is cloud POS.The hardware entities of cloud POS can be designed to only possess basic function, and other function can be arranged on POS'sHigh in the clouds, or in needs, be downloaded in POS terminal hardware. By this deployment way, furtherFlexibility and the extensibility of test are improved.
Fig. 5 carries out the flow chart of the method for test according to the POS terminal of utilizing of the embodiment of the present invention. As Fig. 5Shown in, the method for utilizing POS terminal to test is included in this POS terminal and carries out following steps:
Connection Step 501: be connected with treating examining system;
Simulation process 502: carry out alternately with treating examining system;
Determining step 503: judge test result according to described mutual result.
In one embodiment, treat that examining system comprises receipts single system, described Connection Step comprises to this receipts single systemSend transaction message, described simulation process comprises the transaction message that reception was processed by this receipts single system, and producesRaw response message, described determining step comprises based on this response message and judges the test knot for this receipts single systemReally.
In one embodiment, described in treat that examining system comprises card sending system, described Connection Step comprises to this emulationStep sends transaction message, and described simulation process comprises this transaction message is carried out to pretreatment, and by pretreatmentThe transaction message of crossing is sent to this card sending system, and described determining step comprises replying of producing based on this card sending systemMessage judges the test result for this card sending system.
In one embodiment, also comprise the configuration step of configuration testing parameter.
In one embodiment, in described simulation process, described determining step, described configuration step orMultiple high in the clouds in this POS terminal is performed.
Each frame shown in accompanying drawing can be regarded as method step and/or be regarded as due to operation computer programCode and the operation that causes and/or be regarded as being configured to the logic circuit unit of multiple couplings of implementing correlation functionPart. Although operation described in the drawings by specific order, this should not be understood to require according to shown in spyDefinite sequence or carry out these operations by order successively, or requires all illustrative operations to be performed. In some feelingsUnder condition, multi-task parallel processing may be favourable.
Exemplary embodiment can be implemented in hardware, software or its combination. For example, some aspect of the present inventionCan in hardware, implement, other side can be implemented in software. Although exemplary embodiment of the present inventionAspect can be shown and described as block diagram, flow chart, but is well understood that, these devices described herein,Or method can be implemented as functional module in the system as limiting examples. In addition, said apparatus should notBe understood to require in all embodiment, to carry out this separation, and should be understood to described program groupsPart and system conventionally can be integrated in single software product or be packaged into multiple software products.
Those skilled in the relevant art are in the time reading aforementioned specification by reference to the accompanying drawings, to aforementioned exemplary of the present inventionThe various amendments of embodiment and distortion can become obvious for those skilled in the relevant art. Therefore, of the present inventionEmbodiment is not limited to disclosed specific embodiment, and variation is intended to be encompassed in appended power with other embodimentIn the scope that profit requires.

Claims (10)

1. a POS terminal, is characterized in that, comprising:
Link block, for being connected with treating examining system;
Emulation module, for carrying out alternately with treating examining system;
Judge module, for judging test result according to described mutual result.
2. POS terminal as claimed in claim 1, is characterized in that:
Describedly treat that examining system comprises receipts single system,
Described link block is configured to send transaction message to this receipts single system,
Described emulation module is configured to receive the transaction message of being processed by this receipts single system, and generation is repliedMessage,
Described judge module is configured to judge the test result for this receipts single system based on this response message.
3. POS terminal as claimed in claim 1, is characterized in that:
Describedly treat that examining system comprises card sending system,
Described link block is configured to send transaction message to this emulation module,
Described emulation module is configured to this transaction message to carry out pretreatment, and by pretreated transaction reportLiterary composition is sent to this card sending system,
The response message that described judge module is configured to produce based on this card sending system judges for this hair fastenerThe test result of system.
4. POS terminal as claimed in claim 1, is characterized in that, also comprises for configuration testing parameterConfiguration module.
5. POS terminal as claimed in claim 5, is characterized in that, described emulation module, described judgementOne or more high in the clouds that are deployed in this POS terminal in module, described configuration module.
6. a method of utilizing POS terminal to test, is characterized in that, this POS terminal carry out withLower step:
Connection Step, is connected with treating examining system;
Simulation process, carries out alternately with treating examining system;
Determining step, judges test result according to described mutual result.
7. method as claimed in claim 6, is characterized in that:
Describedly treat that examining system comprises receipts single system,
Described Connection Step comprises to this receipts single system and sends transaction message,
Described simulation process comprises the transaction message that reception was processed by this receipts single system, and report is replied in generationLiterary composition,
Described determining step comprises based on this response message and judges the test result for this receipts single system.
8. method as claimed in claim 6, is characterized in that:
Describedly treat that examining system comprises card sending system,
Described Connection Step comprises to this simulation process and sends transaction message,
Described simulation process comprises this transaction message is carried out to pretreatment, and pretreated transaction message is sent outDeliver to this card sending system,
Described determining step comprises that the response message producing based on this card sending system judges for this card sending systemTest result.
9. method as claimed in claim 6, is characterized in that, also comprises the configuration step of configuration testing parameterSuddenly.
10. method as claimed in claim 9, is characterized in that, described simulation process, described determining step,One or more high in the clouds in this POS terminal in described configuration step are performed.
CN201510821643.7A 2015-11-24 2015-11-24 A kind of POS terminal and the method tested using the POS terminal Active CN105590378B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510821643.7A CN105590378B (en) 2015-11-24 2015-11-24 A kind of POS terminal and the method tested using the POS terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510821643.7A CN105590378B (en) 2015-11-24 2015-11-24 A kind of POS terminal and the method tested using the POS terminal

Publications (2)

Publication Number Publication Date
CN105590378A true CN105590378A (en) 2016-05-18
CN105590378B CN105590378B (en) 2018-10-23

Family

ID=55929930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510821643.7A Active CN105590378B (en) 2015-11-24 2015-11-24 A kind of POS terminal and the method tested using the POS terminal

Country Status (1)

Country Link
CN (1) CN105590378B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018076906A1 (en) * 2016-10-31 2018-05-03 福建联迪商用设备有限公司 Method and system for testing pos terminal running on mobile phone terminal
WO2018076905A1 (en) * 2016-10-31 2018-05-03 福建联迪商用设备有限公司 Pos terminal test method and system running on pc terminal
CN108153660A (en) * 2016-12-05 2018-06-12 深圳壹账通智能科技有限公司 The simulation process method and apparatus of sequence information
CN110082671A (en) * 2019-03-27 2019-08-02 百富计算机技术(深圳)有限公司 Analog detection method, system, device, hub and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050127173A1 (en) * 2003-12-15 2005-06-16 Idol Charles W.Jr. Point of sale automated testing technology (POSATT©)
CN101010690A (en) * 2004-06-25 2007-08-01 佩珀尔硬币公司 Payment processing method and system
CN101089903A (en) * 2006-06-14 2007-12-19 中国银联股份有限公司 Bank card transaction test method and system
CN101149858A (en) * 2007-11-05 2008-03-26 浪潮齐鲁软件产业有限公司 Finance transaction simulation test method
CN201278168Y (en) * 2008-07-29 2009-07-22 北京牡丹齐通科技发展有限公司 Combined electronic payment terminal
CN102479123A (en) * 2010-11-29 2012-05-30 上海华虹集成电路有限责任公司 System and method for testing chip operating system (COS)
CN103530209A (en) * 2013-09-17 2014-01-22 福建升腾资讯有限公司 Automated testing method for code keyboard
CN104461902A (en) * 2014-12-23 2015-03-25 东信和平科技股份有限公司 Financial payment test platform, method and system
US9037491B1 (en) * 2013-11-26 2015-05-19 Square, Inc. Card reader emulation for cardless transactions

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050127173A1 (en) * 2003-12-15 2005-06-16 Idol Charles W.Jr. Point of sale automated testing technology (POSATT©)
CN101010690A (en) * 2004-06-25 2007-08-01 佩珀尔硬币公司 Payment processing method and system
CN101089903A (en) * 2006-06-14 2007-12-19 中国银联股份有限公司 Bank card transaction test method and system
CN101149858A (en) * 2007-11-05 2008-03-26 浪潮齐鲁软件产业有限公司 Finance transaction simulation test method
CN201278168Y (en) * 2008-07-29 2009-07-22 北京牡丹齐通科技发展有限公司 Combined electronic payment terminal
CN102479123A (en) * 2010-11-29 2012-05-30 上海华虹集成电路有限责任公司 System and method for testing chip operating system (COS)
CN103530209A (en) * 2013-09-17 2014-01-22 福建升腾资讯有限公司 Automated testing method for code keyboard
US9037491B1 (en) * 2013-11-26 2015-05-19 Square, Inc. Card reader emulation for cardless transactions
CN104461902A (en) * 2014-12-23 2015-03-25 东信和平科技股份有限公司 Financial payment test platform, method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018076906A1 (en) * 2016-10-31 2018-05-03 福建联迪商用设备有限公司 Method and system for testing pos terminal running on mobile phone terminal
WO2018076905A1 (en) * 2016-10-31 2018-05-03 福建联迪商用设备有限公司 Pos terminal test method and system running on pc terminal
CN108153660A (en) * 2016-12-05 2018-06-12 深圳壹账通智能科技有限公司 The simulation process method and apparatus of sequence information
CN110082671A (en) * 2019-03-27 2019-08-02 百富计算机技术(深圳)有限公司 Analog detection method, system, device, hub and storage medium

Also Published As

Publication number Publication date
CN105590378B (en) 2018-10-23

Similar Documents

Publication Publication Date Title
CN104038605B (en) The method of telephone POS payment terminal transaction test
CN105590378A (en) POS terminal and testing method by using the same
CN105337674B (en) A kind of space TTC & DT Systems integration test verification platform
CN105450476B (en) A kind of regression test system and test method
CN106445800A (en) Chip verification method and device
CN108111364B (en) Service system testing method and device
CN105354118B (en) Automatic test approach, the apparatus and system of intelligent terminal
CN114205274A (en) Network equipment testing method and device
CN110708214A (en) Service data display method, device, equipment and computer readable storage medium
CN110223054A (en) A kind of unified method of payment and system for logistic industry
CN110837470B (en) Bank card network transaction testing method and device
CN108519883A (en) Parameter amending method, device, terminal device and storage medium
CN107220169B (en) Method and equipment for simulating server to return customized data
US11017380B1 (en) Systems and methods for EMV terminal device testing using EMV card emulation
CN110879787B (en) Client testing method and system
CN104237913A (en) GNSS software receiver architecture system
US11789834B2 (en) Computer and conduit for system testing
GB2424498A (en) Test simulation using live real-world characteristics
CN109801168B (en) Block chain transaction verification method, equipment and storage medium
CN111538664A (en) System and method for testing payment marking application
CN106131151A (en) For testing the method and device of supplying system
CN109816500A (en) Method and device of declaring dutiable goods based on B/S framework
CN112084083A (en) POS machine simulation method and device
Hwang et al. Interoperability test methodology for a train control system using interface channels
CN104348698B (en) Message reminding method and device based on instant messaging service

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant