CN108132874A - Program testing method and device - Google Patents
Program testing method and device Download PDFInfo
- Publication number
- CN108132874A CN108132874A CN201711200597.4A CN201711200597A CN108132874A CN 108132874 A CN108132874 A CN 108132874A CN 201711200597 A CN201711200597 A CN 201711200597A CN 108132874 A CN108132874 A CN 108132874A
- Authority
- CN
- China
- Prior art keywords
- measured
- financial terminal
- trial operation
- program
- operation program
- 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
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F19/00—Complete banking systems; Coded card-freed arrangements adapted for dispensing or receiving monies or the like and posting such transactions to existing accounts, e.g. automatic teller machines
- G07F19/20—Automatic teller machines [ATMs]
- G07F19/211—Software architecture within ATMs or in relation to the ATM network
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
- G07G1/0009—Details of the software in the checkout register, electronic cash register [ECR] or point of sale terminal [POS]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
An embodiment of the present invention provides a kind of program testing method and devices, belong to program test technical field.Method includes:Obtain the trial operation program to be measured of financial terminal to be measured with needing to test;Run trial operation program to be measured;During trial operation program to be measured is run, receive financial terminal to be measured and perform the feedback information transmitted after operational order corresponding with trial operation program to be measured, feedback information be used to characterizing financial terminal to be measured whether successful execution operational order.Therefore, by the feedback of test equipment financial terminal to be measured when running the trial operation program to be measured, just can realize the test to program, avoid test when manually each financial terminal operated, time, energy and manpower have been saved, and has reduced development cycle and development cost.
Description
Technical field
The present invention relates to program test technical field, in particular to a kind of program testing method and device.
Background technology
In financial field, after the program to financial terminal (for example, POS machine) is developed, developer often needs
The program developed is tested.
At present, it since financial terminal model is different, in the process tested the program developed, generally requires institute
The program of exploitation is put on each financial terminal, and is passed through artificial each financial terminal and operated, and can be tested out and be developed
Program whether can be in each financial terminal successful operation.
Although which can achieve the effect that test, needs take considerable time, energy and manpower, so as to cause
Development cycle and development cost are all increased sharply.
Invention content
In view of this, the purpose of the present invention is to provide a kind of program testing method and device, to be effectively improved above-mentioned lack
It falls into.
The embodiment of the present invention is realized in the following way:
In a first aspect, an embodiment of the present invention provides a kind of program testing method, applied to a test equipment, the test
Equipment is connect with the financial terminal to be measured for needing to test.The method includes:Obtain the finance to be measured tested with needs eventually
The trial operation program to be measured at end;Run the trial operation program to be measured;During the trial operation program to be measured is run, connect
It receives the financial terminal to be measured and performs the feedback information transmitted after operational order corresponding with the trial operation program to be measured, it is described
Feedback information for characterize the financial terminal to be measured whether operational order described in successful execution.
Second aspect, an embodiment of the present invention provides a kind of program test devices, applied to a test equipment, the test
Equipment is connect with the financial terminal to be measured for needing to test.Described device includes:Program obtains module, is tested for obtaining and needing
The financial terminal to be measured trial operation program to be measured.Program runs module, for running the trial operation program to be measured.It connects
Module is received, is treated for during the trial operation program to be measured is run, receiving the financial terminal execution to be measured with described
The feedback information transmitted after the corresponding operational order of test run program, the feedback information are whole for characterizing the finance to be measured
End whether operational order described in successful execution.
The advantageous effect of the embodiment of the present invention is:
When the trial operation program to be measured to financial terminal to be measured is tested, which can tested
It is run in equipment.In the process for running trial operation program to be measured, due to test equipment and the finance to be measured tested is needed eventually
End connection, therefore equipment to be tested can be received after financial terminal to be measured performs operational order corresponding with trial operation program to be measured and be passed
Defeated feedback information.And can then be known according to the feedback information financial terminal to be measured whether successful execution operational order, and one
Progressive learns whether the corresponding trial operation program to be measured of operational order is correct.Therefore, by test equipment, in operation, this is treated
The feedback of financial terminal to be measured, just can realize the test to program during test run program, avoid manually each in test
Financial terminal is operated, and has saved time, energy and manpower, and reduce development cycle and development cost.
For the above objects, features and advantages of the present invention is enable to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate
Appended attached drawing, is described in detail below.
Description of the drawings
It in order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range, for those of ordinary skill in the art, without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows a kind of structure diagram for test equipment that first embodiment of the invention provides;
Fig. 2 shows a kind of first pass figures for program testing method that second embodiment of the invention provides;
Fig. 3 shows a kind of second flow chart for program testing method that second embodiment of the invention provides;
Fig. 4 shows a kind of program test device structure diagram that third embodiment of the invention provides;
Fig. 5 shows the structure diagram of receiving module in a kind of program test device that third embodiment of the invention provides;
Fig. 6 shows the structure diagram of transmitting element in a kind of program test device that third embodiment of the invention provides.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Ground describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be configured to arrange and design with a variety of different herein.Cause
This, the detailed description of the embodiment of the present invention to providing in the accompanying drawings is not intended to limit claimed invention below
Range, but it is merely representative of the selected embodiment of the present invention.Based on the embodiment of the present invention, those skilled in the art are not doing
Go out all other embodiments obtained under the premise of creative work, shall fall within the protection scope of the present invention.
First embodiment
Referring to Fig. 1, first embodiment of the invention provides a kind of test equipment 10, which can be individual
Computer, tablet computer, personal digital assistant (personal digital assistant, PDA) etc..The test equipment 10 with
It needs after testing financial terminal connection to be measured, it, can be to being directed to this by running the trial operation program to be measured of the financial terminal to be measured
Financial terminal to be measured tests the trial operation program to be measured of the financial terminal to be measured.
Specifically, test equipment 10 includes:Program test device, memory 101, storage control 102, processor 103,
Peripheral Interface 104, input-output unit 105, display unit 106.
The memory 101, processor 103, Peripheral Interface 104, input-output unit 105, is shown storage control 102
Show unit 106, each element is directly or indirectly electrically connected between each other, to realize the transmission of data or interaction.For example, these
Element can be realized by one or more communication bus or signal wire be electrically connected between each other.Program test device is included at least
One can be stored in the memory or be solidificated in the terminal device 10 in the form of software or firmware (firmware)
Software function module in operating system (operating system, OS).The processor 103 is used to perform memory 101
The executable module of middle storage, such as the software function module or computer program that program test device includes.
Wherein, memory 101 may be, but not limited to, random access memory (Random Access Memory,
RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only
Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM),
Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Wherein, for memory 101 for storing program, the processor 103 performs described program, subsequently after execute instruction is received
The method performed by terminal device 10 that the process that any embodiment of the embodiment of the present invention discloses defines can be applied to processor
It is realized in 103 or by processor 103.
Processor 103 can be a kind of IC chip, have the processing capacity of signal.Above-mentioned processor can be
General processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network
Processor, abbreviation NP) etc.;It can also be digital signal processor (DSP), application-specific integrated circuit (ASIC), ready-made programmable
Gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components, can be with
Realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor 103 can be micro-
Processor or the processor can also be any conventional processors etc..
Various input-output units 105 are coupled to processor 103 and memory 101 by the Peripheral Interface 104.One
In a little embodiments, Peripheral Interface, processor and storage control can be realized in one single chip.In some other example
In, they can be realized by independent chip respectively.
Input-output unit 105 is used for the interaction that user input data is supplied to realize user and data collection station.Institute
It states input-output unit may be, but not limited to, mouse and keyboard etc..
Display unit 106 provides an interactive interface, such as user interface between the mobile terminal and user,
Or it is referred to for display image data to user.In the present embodiment, the display unit can be liquid crystal display or touch-control
Display.Can be the capacitance type touch control screen or electric resistance touch-control for supporting single-point and multi-point touch operation if touch control display
Screen etc..Single-point and multi-point touch operation is supported to refer to that touch control display can sense the one or more on the touch control display
The touch control operation generated simultaneously at position, and processor is transferred to be calculated and handled the touch control operation that this is sensed.
Second embodiment
Referring to Fig. 2, second embodiment of the invention provides a kind of program testing method, which applies one
Test equipment, wherein, which connect with the financial terminal to be measured for needing to test.The program testing method includes:Step
S100, step S200 and step S300.
Step S100:Obtain the trial operation program to be measured of the financial terminal to be measured with needing to test.
Developer is developing the trial operation program to be measured that financial terminal to be measured needs run for financial terminal to be measured
When, developer needs to write out the trial operation program to be measured.Wherein, which can be such as POS machine.Later
Testing results are carried out to the trial operation program to be measured write in test equipment, are treated with the result according to testing results to characterize this
Whether the exploitation of test run program is perfect.
In testing results during the trial operation program to be measured, test equipment is firstly the need of the acquisition trial operation program to be measured.Make
For a kind of mode, developer can directly write the trial operation program to be measured, and then in test in the test equipment, the survey
Try equipment directly can carry out testing results to the trial operation program to be measured.Alternatively, developer can be other
The trial operation program to be measured is write in equipment, and by way of being copied by miscellaneous equipment or being transmitted the trial operation program to be measured,
So that test equipment obtains the trial operation program to be measured.
Step S200:Run the trial operation program to be measured.
Trial operation program to be measured is obtained in test equipment, test equipment can run the trial operation program to be measured.It is appreciated that
It arrives, it is to need to simulate the trial operation journey to be measured in practical finance to be measured actually that test equipment, which runs the trial operation program to be measured,
The running environment run in terminal, to simulate the trial operation program to be measured in the to be measured of reality by the running environment simulated
Operational effect on financial terminal, and then realize the testing results for treating test run program.Therefore, can have in test equipment
One plug-in unit or an application program, to simulate the running environment on financial terminal to be measured by the plug-in unit or application program.
And then before trial operation program to be measured is run, which can be put into plug-in unit or should by developer
With in program.Then, developer manipulates the plug-in unit or application program to run trial operation program to be measured, for example, developer
After clicking " bringing into operation " button on the plug-in unit, the plug-in unit of test equipment just brings into operation the trial operation program to be measured.
Step S300:During the trial operation program to be measured is run, receive the financial terminal to be measured perform with
The feedback information transmitted after the corresponding operational order of the trial operation program to be measured, the feedback information are described to be measured for characterizing
Financial terminal whether operational order described in successful execution.
During test equipment runs the trial operation program to be measured, as test equipment is according to the trial operation journey to be measured
The operation of sequence goes to perform the operational order corresponding to the trial operation program to be measured of current operation extremely successively.
It is understood that trial operation program to be measured is for controlling the financial terminal to be measured, and especially by hardware and
The control to the financial terminal to be measured is realized in the control of software.Therefore, include accordingly in trial operation program to be measured to be measured
The software section control program of examination and hardware components to be tested control.Therefore during the trial operation program to be measured is run,
Test equipment is run in the trial operation program to be measured to software section control to be tested by simulating the running environment of software
During program, test equipment then can control program according to the running environment for simulating software to test the software section to be tested.
Conversely, hardware components control to be tested is that the hardware of the financial terminal to be measured is needed to respond, therefore test equipment passes through data
Line is connect with financial terminal to be measured, when the trial operation program to be measured runs and controls program to hardware components to be tested, test
Equipment then can realize that the test hardware components to be tested control program according to the Hardware Response Delay on financial terminal to be measured.
Specifically, test equipment when running trial operation program to be measured, needs to judge currently to run extremely to be tested
Operation program whether be software logic control.For example, test equipment can be current by parsing this according to preset control program
Trial operation program to be measured extremely is run to obtain corresponding operational order, and judge whether operational order is patrolling for corresponding software
Collect control.
When it is not the logic control of corresponding software that test equipment, which judges operational order, then test equipment does not perform any
For the operation of software section.When test equipment judge operational order it is corresponding be the logic control of software when, for example, to be tested
The corresponding operational order of operation program is for judging in POS machine whether password input by user correct or for example, test run to be measured
The corresponding operational order of line program is the control flow switching in POS machine, in another example, the corresponding behaviour of trial operation program to be measured
It is the calling for controlling some logic interfacing to make instruction.Since test equipment is used by the software runtime environment simulated
Programming language is matched with the programming language of trial operation program to be measured, then test equipment is according to judging result, what is simulated
Perform the operational order in software runtime environment, and generate after execution one perform whether successful feedback information.For example, behaviour
It is the calling for controlling some logic interfacing to make instruction, then just basis should in the software runtime environment simulated for test equipment
Operational order, which goes to perform, calls the logic interfacing;If calling successfully, successful feedback information is called in test equipment generation, and anti-
Feedforward information represents to call successfully with specific first character or first flag;If malloc failure malloc, test equipment generation is adjusted
With the feedback information of failure, and feedback information represents malloc failure malloc with specific second character or second identifier.Later, it surveys
The corresponding position of program can be controlled in the interface of plug-in unit or application program, and in the software section to be tested by trying equipment
The display feedback information.
In the present embodiment, test equipment is also required to when running trial operation program to be measured, it is also desirable to which test equipment is to be measured
Financial terminal goes to know whether the current trial operation program to be measured run extremely is hardware controls, and at least two implementations can be used
Mode.
Come the trial operation program to be measured for judging currently to run extremely whether can be hardware by test equipment as a kind of mode
Control that is, in trial operation program process to be measured is run, judges whether trial operation program to be measured needs to control financial terminal to be measured
Hardware.For example, test equipment can be by parsing the trial operation program to be measured of current operation extremely according to preset control program
To obtain corresponding operational order, and judge whether operational order is the hardware for needing to control financial terminal to be measured.
When test equipment judges that operational order is not to need the corresponding hardware for controlling financial terminal to be measured, then test equipment
Any operation for hardware components is not performed.When test equipment judges that operational order is to need corresponding control financial terminal to be measured
Hardware, for example, the corresponding operational order of trial operation program to be measured is for controlling POS machine printing strip or for example, to be tested
The corresponding operational order of operation program be for controlling POS machine dialing communication, in another example, the corresponding operation of trial operation program to be measured
Instruction is for POS machine USB serial ports to be controlled to call.Since the operational order is for controlling the gold to be measured that is connect with test equipment
Melt the hardware of terminal, and financial terminal to be measured is connect by the USB/ serial ports in test equipment with test equipment.Therefore test equipment
Can be a kind of for USB/ serial ports calling communications protocol by being preset between financial terminal to be measured, test equipment can pass through
The communications protocol goes to call corresponding USB/ serial ports, and financial terminal to be measured is transmitted to by USB/ serial ports from by the operational order.
At this point, also can accordingly set an oracle listener on financial terminal to be measured, the oracle listener for monitor on financial terminal to be measured with
Whether the USB/ serial ports of test equipment connection obtains an operational order.And then financial terminal to be measured listens to corresponding operational order
When, then whether financial terminal to be measured goes to perform the operational order obtained, and generate one after execution and perform and successfully feed back
Information, and also by the transmission of feedback information to test equipment.For example, operational order is for POS machine USB serial ports to be controlled to call;
If calling successfully, financial terminal to be measured, which also generates, calls successful feedback information, and one specific first word of feedback information
Symbol or first flag represent to call successfully;If malloc failure malloc, financial terminal to be measured also generates the feedback information of malloc failure malloc,
And feedback information represents malloc failure malloc with specific second character or second identifier.Later, test equipment obtains gold to be measured
After the feedback information for melting terminal transmission, test equipment is also in the interface of plug-in unit or application program, and in the hardware to be tested
Part controls corresponding position display feedback information of program.
Alternatively, whether can judge currently to run trial operation program to be measured extremely by financial terminal to be measured
For hardware controls, i.e., in trial operation program process to be measured is run, financial terminal to be measured goes in test equipment to monitor this to be tested
The operation of journey is run, and judges whether trial operation program to be measured needs to control the hardware of financial terminal to be measured by monitoring.Example
Such as, financial terminal to be measured can should be run by parsing to and the trial operation journey to be measured that is monitored according to preset control program
Sequence obtains corresponding operational order, and judge whether operational order is the hardware for needing to control financial terminal to be measured.
Specifically, when the operational order corresponding to the trial operation program to be measured that is listened to of financial terminal to be measured judgement not
During for for hardware controls, then financial terminal maintenance to be measured is monitored.When financial terminal to be measured judgement listened to it is to be measured
When operational order corresponding to test run line program is hardware controls, then financial terminal to be measured may be notified that test equipment currently operation extremely
Trial operation program to be measured be control to hardware so that test equipment marks the trial operation program to be measured of preceding operation extremely.It
Afterwards, after financial terminal to be measured is also according to the corresponding operation of operational order execution is obtained, whether also transmission one performs successful anti-
Feedforward information is to test equipment, therefore test equipment also can show feedback information at the position of the trial operation program to be measured of label
Show.
It should be noted that if being test equipment to judge whether the trial operation program to be measured currently run extremely is for control
The hardware of financial terminal to be measured is made, then test equipment judges Ji Wei judging that trial operation program to be measured is as hardware controls or soft
Part controls.If whether financial terminal to be measured is for control finance to be measured come the trial operation program to be measured for judging currently to run extremely
The hardware of terminal, then the judgement of test equipment is only to judge whether trial operation program to be measured is software control.
It is understood that the above-mentioned judgment mode that this implementation is provided is only embodiment used by the present embodiment,
It can not be as the restriction to the present embodiment.
Referring to Fig. 3, in a kind of program testing method provided in second embodiment of the invention, it, should after step S200
Program testing method further includes:Step S301 and step S401.
Step S301:During the trial operation program to be measured is run, the basic of the financial terminal to be measured is obtained
Information.
The trial operation program to be measured, the test run to be measured that test equipment can also be according to current operation extremely are run by test equipment
Line program goes to obtain the essential information of the financial terminal to be measured.Wherein, the essential information of financial terminal to be measured is used to represent that this is treated
The display information of financial terminal is surveyed, such as:Resolution ratio, display line number, uniline show character number etc.;It is additionally operable to represent that this is treated
The keypad information of financial terminal is surveyed, such as:Push-button type, key arrangement etc. and for representing that the xml of the financial terminal to be measured matches
Put file.
As a kind of mode, the essential information of the financial terminal to be measured can be written to test run to be measured in a manner of programming
In line program.And test equipment is when running the trial operation program to be measured, test equipment can go to parse current operation extremely to be measured
Test run line program, to judge whether the trial operation program to be measured currently run extremely characterizes financial terminal to be measured by parsing
Essential information.
When being judged as NO, then test equipment continues to execute the operation and parsing for treating test run program.When being judged as
When being, then while test equipment continues to execute the operation and parsing for treating test run program, test equipment can also be by correspondence
Essential information extract.
Alternatively, store the essential information of the financial terminal to be measured of each model in test equipment, and by each
The essential information of the financial terminal to be measured of model establishes correspondence with a mark.Later, mark can be in a manner of programming
It is written in trial operation program to be measured.And test equipment is when running the trial operation program to be measured, test equipment can go parsing to work as
The trial operation program to be measured of preceding operation extremely, to judge whether the trial operation program to be measured currently run extremely is characterization by parsing
For mark.
When being judged as NO, then test equipment also continues to perform the operation and parsing for treating test run program.Work as judgement
During to be, then test equipment deducts a percentage out mark also while the operation and parsing for the treatment of test run program is continued to execute
Come, and it is to be measured to obtain corresponding target in the essential information for each financial terminal to be measured for going to store according to the correspondence of the mark
The essential information of financial terminal.
Step S401:The essential information is exported, the essential information of output is:The displaying of the financial terminal to be measured
The configuration parameter of picture and the financial terminal to be measured.
After the essential information for obtaining financial terminal to be measured in test equipment, the exportable essential information of test equipment is surveyed
Examination equipment can be shown according to essential information the exhibiting pictures of financial terminal to be measured and the configuration parameter of financial terminal to be measured and
Show the content that the display screen of the financial terminal to be measured can be shown.Then so that developer is according to test equipment
The exhibiting pictures of financial terminal to be measured and the configuration parameter of financial terminal to be measured, just apparent can easily know that this is treated
Survey the information data of financial terminal.
3rd embodiment
Referring to Fig. 4, third embodiment of the invention provides a kind of program test device 100, applied to a test equipment.
The program test device 100 includes:
Program obtains module 110, for obtaining and needing the trial operation program to be measured for the financial terminal to be measured tested.
Program runs module 120, for running the trial operation program to be measured.
Receiving module 130, for during the trial operation program to be measured is run, receiving the financial terminal to be measured
The feedback information transmitted after operational order corresponding with the trial operation program to be measured is performed, the feedback information is used to characterize institute
State financial terminal to be measured whether operational order described in successful execution.
And the program test device 100 further includes:
Information acquisition module 140, for during the trial operation program to be measured is run, obtaining the finance to be measured
The essential information of terminal.
Output module 150, for exporting the essential information, the essential information of output is:The finance to be measured is eventually
The configuration parameter of the exhibiting pictures at end and the financial terminal to be measured.
Referring to Fig. 5, in a kind of program test device 100 provided in third embodiment of the invention, receiving module 130 wraps
It includes:
Transmitting element 131, in the trial operation program process to be measured is run, being sent to the financial terminal to be measured
The corresponding operational order of the trial operation program to be measured.
First receiving unit 132 performs the feedback transmitted after the operational order for receiving the financial terminal to be measured
Information.
And the receiving module 130 further includes:
Second receiving unit 133, for during the trial operation program to be measured is run, receiving the finance to be measured
Terminal based on performing the feedback information that is transmitted after operational order corresponding with the trial operation program to be measured, wherein, the operation
It instructs and monitors the trial operation journey to be measured during the trial operation program to be measured is run for the financial terminal to be measured
Sequence needs to control the instruction during hardware of the financial terminal to be measured and generated.
Referring to Fig. 6, in a kind of program test device 100 provided in third embodiment of the invention, transmitting element 131 wraps
It includes:
Judgment sub-unit 1311, in the trial operation program process to be measured is run, judging the trial operation to be measured
Whether program needs to control the hardware of the financial terminal to be measured.
Transmission sub-unit 1312, for when to be, generating and sending the operational order to the financial terminal to be measured.
It should be noted that due to it is apparent to those skilled in the art that, convenience and letter for description
Clean, the specific work process of the system of foregoing description, device and unit can refer to corresponding in preceding method embodiment
Journey, details are not described herein.
The computer-readable of non-volatile program code that the progress processor that the embodiment of the present invention is provided can perform is deposited
The computer program product of storage media, the computer readable storage medium including storing program code, said program code packet
The instruction included can be used for performing the method described in previous methods embodiment, and specific implementation can be found in embodiment of the method, herein not
It repeats again.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit can refer to the corresponding process in preceding method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit,
Only a kind of division of logic function, can there is other dividing mode in actual implementation, in another example, multiple units or component can
To combine or be desirably integrated into another system or some features can be ignored or does not perform.Another point, it is shown or beg for
The mutual coupling, direct-coupling or communication connection of opinion can be by some communication interfaces, device or unit it is indirect
Coupling or communication connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
That each unit is individually physically present, can also two or more units integrate in a unit.
If the function is realized in the form of SFU software functional unit and is independent product sale or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially in other words
The part contribute to the prior art or the part of the technical solution can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, is used including some instructions so that a computer equipment (can be
People's computer, server or network equipment etc.) perform all or part of the steps of the method according to each embodiment of the present invention.
And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
In conclusion an embodiment of the present invention provides a kind of program testing method and device, applied to a test equipment, survey
Examination equipment is connect with the financial terminal to be measured for needing to test.Method includes:The financial terminal to be measured that acquisition is tested with needs is treated
Test run program;Run trial operation program to be measured;During trial operation program to be measured is run, financial terminal to be measured is received
The feedback information transmitted after operational order corresponding with trial operation program to be measured is performed, feedback information is whole for characterizing finance to be measured
End whether successful execution operational order.
When the trial operation program to be measured to financial terminal to be measured is tested, which can tested
It is run in equipment.In the process for running trial operation program to be measured, due to test equipment and the finance to be measured tested is needed eventually
End connection, therefore equipment to be tested can be received after financial terminal to be measured performs operational order corresponding with trial operation program to be measured and be passed
Defeated feedback information.And can then be known according to the feedback information financial terminal to be measured whether successful execution operational order, and one
Progressive learns whether the corresponding trial operation program to be measured of operational order is correct.Therefore, by test equipment, in operation, this is treated
The feedback of financial terminal to be measured, just can realize the test to program during test run program, avoid manually each in test
Financial terminal is operated, and has saved time, energy and manpower, and reduce development cycle and development cost.
It these are only the preferred embodiment of the present invention, be not intended to restrict the invention, for those skilled in the art
For member, the invention may be variously modified and varied.Any modification for all within the spirits and principles of the present invention, being made,
Equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should be noted that:Similar label and letter are under
Similar terms are represented in the attached drawing in face, therefore, once being defined in a certain Xiang Yi attached drawing, are not then needed in subsequent attached drawing
It is further defined and explained.
More than, only specific embodiment of the invention, but protection scope of the present invention is not limited thereto is any to be familiar with
Those skilled in the art in the technical scope disclosed by the present invention, can readily occur in change or replacement, should all cover
Within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (10)
1. a kind of program testing method, which is characterized in that applied to a test equipment, the test equipment is with needing that tests to treat
Financial terminal connection is surveyed, the method includes:
Obtain the trial operation program to be measured of the financial terminal to be measured with needing to test;
Run the trial operation program to be measured;
During the trial operation program to be measured is run, receive the financial terminal to be measured and perform and the trial operation to be measured
The feedback information transmitted after the corresponding operational order of program, the feedback information for characterize the financial terminal to be measured whether into
Work(performs the operational order.
2. program testing method according to claim 1, which is characterized in that described to run the trial operation program to be measured
During, receive the financial terminal to be measured perform transmit after operational order corresponding with the trial operation program to be measured it is anti-
Feedforward information, including:
In the trial operation program process to be measured is run, the trial operation program pair to be measured is sent to the financial terminal to be measured
The operational order answered;
It receives the financial terminal to be measured and performs the feedback information transmitted after the operational order.
3. program testing method according to claim 2, which is characterized in that described to run the trial operation program to be measured
In the process, the corresponding operational order of the trial operation program to be measured is sent to the financial terminal to be measured, including:
In the trial operation program process to be measured is run, it is described to be measured to judge whether the trial operation program to be measured needs to control
The hardware of financial terminal;
When to be, generate and send the operational order to the financial terminal to be measured.
4. program testing method according to claim 1, which is characterized in that described to run the trial operation program to be measured
During, receive the financial terminal to be measured perform transmit after operational order corresponding with the trial operation program to be measured it is anti-
Feedforward information, including:
During the trial operation program to be measured is run, receive the financial terminal to be measured be based on performing with it is described to be tested
The feedback information transmitted after the corresponding operational order of operation program, wherein, the operational order exists for the financial terminal to be measured
Monitor that the trial operation program to be measured needs to control the finance to be measured eventually during running the trial operation program to be measured
The instruction generated during the hardware at end.
5. according to the program testing method described in claim any in claim 1-4, which is characterized in that the operation is described to be measured
After test run line program, the method further includes:
During the trial operation program to be measured is run, the essential information of the financial terminal to be measured is obtained;
The essential information is exported, the essential information of output is:It the exhibiting pictures of the financial terminal to be measured and described treats
Survey the configuration parameter of financial terminal.
6. a kind of program test device, which is characterized in that applied to a test equipment, the test equipment is with needing that tests to treat
Financial terminal connection is surveyed, described device includes:
Program obtains module, for obtaining and needing the trial operation program to be measured for the financial terminal to be measured tested;
Program runs module, for running the trial operation program to be measured;
Receiving module, for during the trial operation program to be measured is run, receive the financial terminal to be measured perform with
The feedback information transmitted after the corresponding operational order of the trial operation program to be measured, the feedback information are described to be measured for characterizing
Financial terminal whether operational order described in successful execution.
7. program test device according to claim 6, which is characterized in that the receiving module includes:
Transmitting element, in the trial operation program process to be measured is run, being treated to described in the financial terminal transmission to be measured
The corresponding operational order of test run program;
First receiving unit performs the feedback information transmitted after the operational order for receiving the financial terminal to be measured.
8. program test device according to claim 7, which is characterized in that the transmitting element includes:
Judgment sub-unit, in the trial operation program process to be measured is run, whether judging the trial operation program to be measured
Need to control the hardware of the financial terminal to be measured;
Transmission sub-unit, for when to be, generating and sending the operational order to the financial terminal to be measured.
9. program test device according to claim 6, which is characterized in that the receiving module further includes:
Second receiving unit, for during the trial operation program to be measured is run, receiving the financial terminal base to be measured
The feedback information transmitted after operational order corresponding with the trial operation program to be measured is performed, wherein, the operational order is
The financial terminal to be measured monitors the trial operation program needs to be measured during the trial operation program to be measured is run
The instruction for controlling during the hardware of the financial terminal to be measured and generating.
10. according to the program test device described in claim any in claim 6-9, which is characterized in that described device further includes:
Information acquisition module, for during the trial operation program to be measured is run, obtaining the financial terminal to be measured
Essential information;
Output module, for exporting the essential information, the essential information of output is:The displaying of the financial terminal to be measured
The configuration parameter of picture and the financial terminal to be measured.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711200597.4A CN108132874A (en) | 2017-11-24 | 2017-11-24 | Program testing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711200597.4A CN108132874A (en) | 2017-11-24 | 2017-11-24 | Program testing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108132874A true CN108132874A (en) | 2018-06-08 |
Family
ID=62389916
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711200597.4A Pending CN108132874A (en) | 2017-11-24 | 2017-11-24 | Program testing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108132874A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461910A (en) * | 2015-01-07 | 2015-03-25 | 浪潮(北京)电子信息产业有限公司 | Device and method for achieving automatic testing |
CN106649113A (en) * | 2016-12-21 | 2017-05-10 | 北京航天测控技术有限公司 | Testing equipment control system and realization method |
EP3179428A1 (en) * | 2015-12-07 | 2017-06-14 | Gemalto Sa | A communication system comprising a local payment kernel |
CN107229561A (en) * | 2016-03-24 | 2017-10-03 | 华为技术有限公司 | Applied program testing method and equipment |
-
2017
- 2017-11-24 CN CN201711200597.4A patent/CN108132874A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461910A (en) * | 2015-01-07 | 2015-03-25 | 浪潮(北京)电子信息产业有限公司 | Device and method for achieving automatic testing |
EP3179428A1 (en) * | 2015-12-07 | 2017-06-14 | Gemalto Sa | A communication system comprising a local payment kernel |
CN107229561A (en) * | 2016-03-24 | 2017-10-03 | 华为技术有限公司 | Applied program testing method and equipment |
CN106649113A (en) * | 2016-12-21 | 2017-05-10 | 北京航天测控技术有限公司 | Testing equipment control system and realization method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105866575B (en) | Vehicle-mounted display comprehensive testing device and testing method | |
CN103927253B (en) | Multiple browser compatibility testing method and system | |
CN110493812B (en) | Distribution network test processing method, device and system, processor and master control equipment | |
CN104331373A (en) | Monkey test system and method | |
CN108647141A (en) | Automatic test approach, device, computer-readable medium and electronic equipment | |
CN107145440A (en) | Applied program testing method, device and computer equipment | |
CN109388532A (en) | Test method, device, electronic equipment and computer-readable storage medium | |
CN107145438A (en) | Code test method, code tester device and code tester system | |
CN110032507A (en) | Applied program testing method, device, system, electronic equipment and storage medium | |
CN104579830B (en) | service monitoring method and device | |
CN104102578B (en) | Test method and system and operation terminal | |
CN105260082A (en) | Display method for test data and development terminal | |
CN108228444A (en) | A kind of test method and device | |
Hungar et al. | Test-based model generation for legacy systems | |
CN111159039A (en) | Service simulation method, system, device and storage medium | |
CN108229980B (en) | Question feedback method and device and storage medium | |
US20100312541A1 (en) | Program test device and program | |
CN106815150B (en) | Server-side interface test system and method | |
CN111694550A (en) | Page display control method, device and system | |
CN114564387A (en) | Scene type automatic testing method and system for OpenStack cloud platform | |
CN113778878A (en) | Interface testing method and device, electronic equipment and storage medium | |
CN107122305A (en) | Software testing device and method | |
CN108875368A (en) | A kind of safety detection method, apparatus and system | |
CN108153677A (en) | The test method and intelligent terminal of intelligent terminal | |
CN108132874A (en) | Program testing 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180608 |