CN104268996B - The method of testing of a kind of automatic machine and device - Google Patents
The method of testing of a kind of automatic machine and device Download PDFInfo
- Publication number
- CN104268996B CN104268996B CN201410525298.8A CN201410525298A CN104268996B CN 104268996 B CN104268996 B CN 104268996B CN 201410525298 A CN201410525298 A CN 201410525298A CN 104268996 B CN104268996 B CN 104268996B
- Authority
- CN
- China
- Prior art keywords
- parameter value
- max
- compound mode
- automatic machine
- value
- 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.)
- Expired - Fee Related
Links
Landscapes
- Inspection Of Paper Currency And Valuable Securities (AREA)
Abstract
The embodiment of the invention discloses method of testing and the device of a kind of automatic machine, method of testing includes: receive an input operation;Response input operation, determines a parameter value with banknote characteristics;Determine that the compound mode being become parameter value by ultimate unit combinations of values, ultimate unit numerical value are the value of money of the basic currency that automatic machine is able to receive that;Compound mode is supplied to the tester of automatic machine;Tester is based on test operation produced by compound mode, to be tested automatic machine by test operation in reception.
Description
Technical field
The present invention relates to technical field of measurement and test, particularly relate to method of testing and the device of a kind of automatic machine.
Background technology
China each big city Development of underground railway is very swift and violent at present, in order to save human cost, improves subway
Intelligent level, AFC (Automatic Fare Collection: automatically nearly all built by each big city subway
Sell ticket checking) system, and in AFC system, one of capital equipment is exactly automatic machine.
Automatic machine is after hardware in-site installation completes, and before formally putting into effect, needs to carry out in a large number
The correct response of its software and hardware function is verified in test.The most indispensable test is to passenger's coin, goes out
Ticket, the test of small change.The currency type that at present generally automatic machine is able to receive that have 5 jiaos of coins, 1 yuan of coin, 5
Yuan note, 10 yuan notes etc..For a certain concrete admission fee, (passenger buys 53 yuan to such as 15 yuan admission fees
One-way ticket), passenger's adoptable coin compound mode has multiple probability, such as: 5 yuan, 10 yuan notes each
One or 51 yuan of coins add 1 10 yuan note etc..
In prior art, the test cases that AFC system is tested only include for a certain admission fee the most normal
Several coin compound modes used, so a lot of compound mode can be there is the most after tested for a certain admission fee,
So also existing, AFC system is tested the most perfect technical problem;
Further, because wherein a lot of compound mode can be there is the most after tested for a certain admission fee, so at these
After AFC system comes into operation, if AFC system receives the combination of these admission fees the most after tested, then go out
The probability of existing fault is higher, thus reduces the service efficiency of AFC system, and causes the maintenance of AFC system
The increase of cost.
Summary of the invention
The embodiment of the present invention provides test mode and the device of a kind of automatic machine, to solve in prior art
The technical problem the most perfect to the test of automatic machine.
First aspect, the embodiment of the present invention provides the method for testing of a kind of automatic machine, including:
Receive an input operation;
Respond described input operation, determine a parameter value with banknote characteristics;
Determine the compound mode being become described parameter value by ultimate unit combinations of values, described ultimate unit numerical value
Value of money for the basic currency that described automatic machine is able to receive that;
Described compound mode is supplied to the tester of described automatic machine;
Receive described tester based on test operation produced by described compound mode, with by described test behaviour
Described automatic machine of opposing is tested.
Optionally, described the compound mode being become described parameter value by ultimate unit combinations of values is determined, specifically
For:
Determine all compound modes being become described parameter value by four kinds of ultimate unit combinations of values.
Optionally, described ultimate unit numerical value is respectively as follows: X according to order arrangement from small to largea、Xb、Xc、
Xd, described determine the compound mode being become described parameter value by ultimate unit combinations of values, specifically include:
S1: determine X in described compound modeaMultiple be a, XbMultiple be b, XcMultiple be c, Xd
Multiple be d;
S2: determine higher limit max_a of a, higher limit max_b of b, higher limit max_c of c, d upper
Limit value max_d;
S3: arrange a=0, jumps to step S4;
S4: judge a XaWhether more than or equal to parameter value, at a XaDuring more than or equal to parameter value, jump to step
Rapid S5;Otherwise, step S6 is jumped to;
S5: stop determining the compound mode forming described parameter value, wherein, if a is XaEqual to parameter value, then
Determine by a XaA kind of compound mode of composition parameter value;
S6: arrange b=0, jumps to step S7;
S7: judge a Xa+b·XbWhether more than or equal to parameter value, at a Xa+b·XbDuring more than or equal to parameter value,
Jump to step S8;Otherwise, step S13 is jumped to;
S8: jump to step S9, wherein, if at a Xa+b·XbEqual to parameter value, it is determined that pass through
a·Xa+b·XbIt is combined into a kind of compound mode of parameter value;
S9: the value of a is added 1, and jumps to step S10;
S10: judge whether a is not more than max_a, when a is more than max_a, jumps to step S11;At a not
During more than max_a, jump to step S12;
S11: stop determining the compound mode forming described parameter value;
S12: arrange c=0, jumps to step S13;
S13: judge a Xa+b·Xb+c·XcWhether more than or equal to parameter value, at a Xa+b·Xb+c·XcIt is more than
During equal to parameter value, jump to step S14;Otherwise, step S17 is jumped to;
S14: jump to step S15, wherein, at a Xa+b·Xb+c·XcDuring equal to parameter value, determine and pass through
a·Xa+b·Xb+c·XcIt is combined into a kind of compound mode of parameter value;
S15: the value of b is added 1, and jumps to step S16;
S16: judge whether b is not more than max_b, when b is more than max_b, jumps to step S9;At b not
During more than max_b, jump to step S7;
S17: arrange d=0, jumps to step S18;
S18: judge a Xa+b·Xb+c·Xc+d·XdWhether it is more than or equal to parameter value,
a·Xa+b·Xb+c·Xc+d·XdDuring more than or equal to parameter value, jump to step S19;Otherwise, step is jumped to
S22;
S19: jump to step S20, wherein, at a Xa+b·Xb+c·Xc+d·XdDuring equal to parameter value, really
Fixed by a Xa+b·Xb+c·Xc+d·XdIt is combined into a kind of compound mode of parameter value;
S20: the value of c is added 1, and jumps to step S21;
S21: judge whether c is not more than max_c, when c is not more than max_c, jumps to step S13;At c
During more than max_c, jump to step S15;
S22: the value of d is added 1, jumps to step S23;
S23: judge whether d is not more than max_d, when d is not more than max_d, jumps to step 18;At d
During more than max_d, jump to step S20.
Optionally, determine higher limit max_i of i in the following manner, appointing during wherein i is a, b, c, d
Anticipate a numerical value:
Determine the receiver module caching higher limit of i;
Acquisition coin higher limit is rounded divided by Xi with parameter value;
Relatively described receiver module caching higher limit and the size of described coin higher limit, by described receiver module
Smaller value in caching higher limit and described coin higher limit is defined as described max_i.
Optionally, the described input operation of described response, determine a parameter value with banknote characteristics, particularly as follows:
Determine that the numerical information corresponding to described input operation, described numerical information are described parameter value;Or
The described input operation of described response, determines a parameter value with banknote characteristics, specifically includes:
Determine corresponding to described input operation by bus start position information and end position information by bus;
Described parameter value is determined based on described start position information by bus and described end position information by bus;Or
The described input operation of described response, determines a parameter value with banknote characteristics, specifically includes:
Determine the range information by bus corresponding to described input operation;
Described parameter value is determined based on described range information by bus.
Optionally, after the described compound mode determining and being become described parameter value by ultimate unit combinations of values,
Described method also includes:
Store described compound mode.
Second aspect, the embodiment of the present invention provides the test device of a kind of automatic machine, including:
First receiver module, for receiving an input operation;
Respond module, is used for responding described input operation, determines a parameter value with banknote characteristics;
Determine module, for determining the compound mode being become described parameter value by ultimate unit combinations of values, institute
State the value of money that ultimate unit numerical value is the basic currency that described automatic machine is able to receive that;
There is provided module, for described compound mode being supplied to the tester of described automatic machine;
Second receiver module, is used for receiving described tester based on test operation produced by described compound mode,
Described automatic machine is tested by described test operation.
Optionally, described determine module, specifically for:
Determine all compound modes being become described parameter value by four kinds of ultimate unit combinations of values.
Optionally, described respond module, specifically for:
Determine that the numerical information corresponding to described input operation, described numerical information are described parameter value;Or
Described respond module, specifically includes:
First determines unit, for determine corresponding to described input operation by bus start position information and take advantage of
Car end position information;
Second determines unit, for based on described start position information by bus and described end position information by bus
Determine described parameter value;Or
Described respond module, specifically includes:
3rd determines unit, for determining the range information by bus corresponding to described input operation;
4th determines unit, for determining described parameter value based on described range information by bus.
Optionally, described device also includes:
Memory module, for determine by ultimate unit combinations of values become described parameter value compound mode it
After, store described compound mode.
The present invention has the beneficial effect that:
Due in embodiments of the present invention, after receiving input operation, can determine whether that one has banknote characteristics
Parameter value, it is then determined that become the compound mode of described parameter value by ultimate unit combinations of values, described base
Our unit's numerical value is the value of money of the basic currency that described automatic machine is able to receive that;Then by described combination side
Formula is supplied to the tester of described automatic machine, may finally response test person be produced by compound mode
Test operation, and then automatic machine is tested, say, that automatic machine is being surveyed
During examination, can determine whether out to be become the compound mode of parameter value by ultimate unit combinations of values, and then based on combination side
Automatic machine is tested rather than only selects that out that several groups of conventional compound modes are to automatic ticketing by formula
Machine is tested, so having reached the technique effect that the test to automatic machine is more perfect;
And due to more perfect to the test of automatic machine, coming into operation so reducing automatic machine
The probability broken down afterwards, and then improve the service efficiency of automatic machine, and reduce automatic selling
The maintenance cost of ticket machine.
Accompanying drawing explanation
Fig. 1 is the flow chart of the method for testing of automatic machine in the embodiment of the present invention;
Fig. 2 be embodiment of the present invention automatic machine method of testing in operate interface schematic diagram;
Fig. 3 be embodiment of the present invention automatic machine method of testing in determine by four kinds of ultimate unit numerical value
It is combined into the flow chart of the compound mode of parameter value;
Fig. 4 be embodiment of the present invention automatic machine method of testing in determine the flow process of higher limit max_i of i
Figure;
Fig. 5 is the structure chart of the test device of automatic machine in the embodiment of the present invention.
Detailed description of the invention
The embodiment of the present invention provides method of testing and the device of a kind of automatic machine, to solve in prior art
The technique effect the most perfect to the test of automatic machine.
Technical scheme in the embodiment of the present application is to solve above-mentioned technical problem, and general thought is as follows:
After receiving input operation, can determine whether a parameter value with banknote characteristics, it is then determined that pass through
Ultimate unit combinations of values becomes the compound mode of parameter value, ultimate unit numerical value to be that automatic machine is able to receive that
The value of money of basic currency;Then compound mode is supplied to the tester of automatic machine, may finally ring
Answer tester to pass through test operation produced by compound mode, and then automatic machine is tested, the most just
It is to say, when automatic machine is tested, can determine whether out to become parameter value by ultimate unit combinations of values
Compound mode, and then based on compound mode automatic machine tested rather than only select that out several
Automatic machine is tested, so having reached the test to automatic machine more by the compound mode that group is commonly used
Add perfect technique effect;
And due to more perfect to the test of automatic machine, coming into operation so reducing automatic machine
The probability broken down afterwards, and then improve the service efficiency of automatic machine, and reduce automatic selling
The maintenance cost of ticket machine.
In order to be better understood from technique scheme, below by accompanying drawing and specific embodiment to skill of the present invention
Art scheme is described in detail, it should be understood that the specific features in the embodiment of the present invention and embodiment is to this
The detailed description of inventive technique scheme rather than the restriction to technical solution of the present invention, in the feelings do not conflicted
Under condition, the technical characteristic in the embodiment of the present invention and embodiment can be mutually combined.
First aspect, the embodiment of the present invention provides the method for testing of a kind of automatic machine, refer to Fig. 1, tool
Body comprises the following steps:
Step S101: receive an input operation;
Step S102: response input operation, determines a parameter value with banknote characteristics;
Step S103: determine the compound mode being become parameter value by ultimate unit combinations of values, ultimate unit number
The value of money of the basic currency that value is able to receive that for automatic machine;
Step S104: compound mode is supplied to the tester of automatic machine;
Step S105: tester is based on test operation produced by compound mode, to pass through test operation in reception
Automatic machine is tested.
Step S101, input operation can input operation in a variety of forms, be set forth below three kinds therein and carry out
Introduce, certainly, in specific implementation process, be not limited to following three kinds of situations.
The first, input operation is particularly as follows: the operation of input parameter value, such as: as in figure 2 it is shown, from
Show an input frame on the display interface of dynamic ticket machine, be used for receiving admission fee (namely: parameter value), and then survey
Examination person can directly produce the input operation of input parameter value.
The second, input operation is particularly as follows: click on the operation of corresponding region, such as: at automatic machine
Showing a map on display unit, tester clicks two positions on map and is respectively as follows: " wash Hua Xi ", " literary composition
Different institute ", then clicking operation is input operation.
The third, input operation is the operation of distance particularly as follows: input is ridden, such as: at automatic machine
An input frame can be shown on display interface, be used for obtaining boarding station number, then tester can be by input
Operation inputs boarding station number in this input frame.
In step S102, content based on input operation is different, and then determines that the mode of parameter value is the most different,
It is set forth below three kinds therein to be introduced, certainly, in specific implementation process, is not limited to following three kinds of feelings
Condition.
The first, respond input operation, determine a parameter value with banknote characteristics, particularly as follows:
Determining the numerical information corresponding to input operation, numerical information is parameter value;
Or as a example by Fig. 2, it is assumed that tester inputs " 10 " in the input frame that " please input admission fee " is corresponding, that
Then may determine that parameter value is 10, certainly, in specific implementation process, parameter value can also count for other,
Such as: 5,15 etc., the embodiment of the present invention is not restricted.
The second, responds input operation, determines a parameter value with banknote characteristics, specifically include:
Determine corresponding to input operation by bus start position information and end position information by bus;
Based on start position information by bus and by bus end position information determine parameter value;
Such as: on the display unit of automatic machine, show a map, tester clicks on map two
Individual position is respectively as follows: " wash Hua Xi ", " Wenshu Monastery ", then then determine start position information " wash Hua Xi " by bus,
End position information is " Wenshu Monastery " by bus;
Then automatic machine calculates is needed to experience 16 stations by " wash Hua Xi " to " Wenshu Monastery ", and the ticket often stood
Valency is 0.3 yuan, and then determines that total admission fee is: 0.3*16=4.8, and assumes that automatic machine can only accept 0.5
The currency of multiple, and then can determine that parameter value is 5.Certainly, the mode of above calculating parameter value is only
It is a citing, is not intended as limiting.
The third, respond input operation, determine a parameter value with banknote characteristics, specifically include:
Determine the range information by bus corresponding to input operation;
Parameter value is determined based on range information by bus.
Range information is for example, by bus: boarding station number, how to determine parameter value after determining boarding station number,
Owing to the most introducing, so not repeating them here.
In specific implementation process, in step S103, determine and become parameter value by ultimate unit combinations of values
Compound mode, particularly as follows: determine all compound modes being become parameter value by ultimate unit combinations of values, by
In determining all compound modes, do not detect so being prevented from omitting some compound modes such that it is able to
Automatic machine is provided more perfect test, and then further reduces automatic machine and break down
Probability.
In step S103, the group being become parameter value by ultimate unit combinations of values can be determined in the following manner
Conjunction mode:
Define cyclic variable according to ultimate unit numerical value, wherein, have several ultimate unit numerical value just to define several
Cyclic variable, such as: if there is 5 jiaos, 1 yuan of coin, 5 yuan, these four ultimate unit numerical value of 10 yuan notes,
Just 4 cyclic variables of definition, define the coin higher limit for a certain concrete ultimate unit numerical value (such as: 3
Unit's admission fee, only throws 5 jiaos of coins, is 6, so the coin higher limit of 5 jiaos is 6;Only throw 5 yuan notes, be 1
, so the coin higher limit of 5 yuan is 1), definition coin receiver module caching higher limit.
According to previously defined cyclic variable, design multilayer circulation nesting (has several cyclic variable, just has several
Layer is nested, such as 4 cyclic variables, just has 4 layers of loop nesting), order is corresponding the following of currency type that face amount is the least
Ring be placed on nesting outermost layer, cyclic variable from 1 start progressively be incremented by, higher limit for example: for a certain concrete base
Smaller value in the coin higher limit of our unit's numerical value and receiver module caching higher limit, by multilayer nest time
Go through all compound modes.
Step S103 will be described in detail, the most singly as a example by there are four ultimate unit numerical value below
Bit value is respectively as follows: X according to order arrangement from small to largea、Xb、Xc、Xd, determine and pass through ultimate unit
Combinations of values becomes the compound mode of parameter value, particularly as follows: determine and become parameter by four kinds of ultimate unit combinations of values
All compound modes of value.
Refer to Fig. 3, comprise the following steps:
S1: determine X in compound modeaMultiple be a, XbMultiple be b, XcMultiple be c, Xd's
Multiple is d;
S2: determine higher limit max_a of a, higher limit max_b of b, higher limit max_c of c, d upper
Limit value max_d, jumps to step S3;
In specific implementation process, higher limit max_i of i can be determined in several ways, wherein i be a, b,
Any one numerical value in c, d, is set forth below two kinds therein and is introduced, certainly, be embodied as
Cheng Zhong, is not limited to following two situation.
The first, refer to Fig. 4, determines higher limit max_i of i in the following manner:
Step S401: determine the receiver module caching higher limit of i;
Step S402: with parameter value divided by XiRound acquisition coin higher limit;
Step S403: compare receiver module caching higher limit and the size of coin higher limit, receiver module is delayed
The smaller value deposited in higher limit and coin higher limit is defined as max_i.
In step S401, or there is 5 jiaos, 1 yuan of coin, 5 yuan, these four ultimate unit numbers of 10 yuan notes
As a example by value, then, Xa=0.5, Xb=1, Xc=5, Xd=10, it is assumed that the coin of automatic machine receives
Each 70 of the largest buffered device of 5 jiaos, 1 yuan coins of module (number that inserts coin is more than buffer maximum quantity,
Can produce and move back coin), note acceptance module largest buffered quantity is 15 (number that inserts notes here is more than buffer
Big quantity, can produce and move back coin), then can determine that the cache module higher limit of a and b is 70, and c and d
Cache module higher limit is 15;
In step S402, it is assumed that parameter value is 10, then the coin higher limit that can determine that a is 10, b's
Coin higher limit is 20, and the coin higher limit of c is 2, and the coin higher limit of d is 1;
In step S403, through comparing, then can determine that max_a=20, max_b=10, max_c=2,
Max_d=1.
Due in such scheme, when determining the higher limit of i, in addition to considering coin higher limit, also examine
Consider cache module higher limit, so determined by the higher limit of i more accurate, and relative to only considering one
In the case of, it can reduce the higher limit of part i, so the number of times of system operations can be reduced, thus carries
The high processing speed of system.
The second, determines higher limit max_i of i in the following manner:
With parameter value divided by i round up acquisition max_i.
Specifically, the most do not consider the cache module higher limit of i, and only consider coin higher limit, therefore
And determine max_a=20, max_b=10, max_c=2, max_d=1.
S3: arrange a=0, jumps to step S4;
S4: judge a XaWhether more than or equal to parameter value, at a XaDuring more than or equal to parameter value, jump to step
Rapid S5;Otherwise, step S6 is jumped to;
S5: stop determining the compound mode of composition parameter value, wherein, if a is XaEqual to parameter value, it is determined that
By a XaA kind of compound mode of composition parameter value;
S6: arrange b=0, jumps to step S7;
S7: judge a Xa+b·XbWhether more than or equal to parameter value, at a Xa+b·XbDuring more than or equal to parameter value,
Jump to step S8;Otherwise, step S13 is jumped to;
S8: jump to step S9, wherein, if at a Xa+b·XbEqual to parameter value, it is determined that pass through
a·Xa+b·XbIt is combined into a kind of compound mode of parameter value;
S9: the value of a is added 1, and jumps to step S10;
S10: judge whether a is not more than max_a, when a is more than max_a, jumps to step S11;At a not
During more than max_a, jump to step S4;
S11: stop determining the compound mode of composition parameter value;
S12: arrange c=0, jumps to step S13;
S13: judge a Xa+b·Xb+c·XcWhether more than or equal to parameter value, at a Xa+b·Xb+c·XcIt is more than
During equal to parameter value, jump to step S14;Otherwise, step S17 is jumped to;
S14: jump to step S15, wherein, at a Xa+b·Xb+c·XcDuring equal to parameter value, determine and pass through
a·Xa+b·Xb+c·XcIt is combined into a kind of compound mode of parameter value;
S15: the value of b is added 1, and jumps to step S16;
S16: judge whether b is not more than max_b, when b is more than max_b, jumps to step S9;At b not
During more than max_b, jump to step S7;
S17: arrange d=0, jumps to step S18;
S18: judge a Xa+b·Xb+c·Xc+d·XdWhether it is more than or equal to parameter value,
a·Xa+b·Xb+c·Xc+d·XdDuring more than or equal to parameter value, jump to step S19;Otherwise, step is jumped to
S22;
S19: jump to step S20, wherein, at a Xa+b·Xb+c·Xc+d·XdDuring equal to parameter value, really
Fixed by a Xa+b·Xb+c·Xc+d·XdIt is combined into a kind of compound mode of parameter value;
S20: the value of c is added 1, and jumps to step S21;
S21: judge whether c is not more than max_c, when c is not more than max_c, jumps to step S13;At c
During more than max_c, jump to step S15;
S22: the value of d is added 1, jumps to step S23;
S23: judge whether d is not more than max_d, when d is not more than max_d, jumps to step 18;At d
During more than max_d, jump to step S20.
Wherein, the number of ultimate unit numerical value (such as: currency type) determines the number of levels of loop nesting,
In actual application, because the program is applied in automatic machine, and the acceptable currency type of automatic machine has
Limit, so several level circulation (such as 3 layers of nesting, 4 layers of nesting etc.) can be pre-set in program, passes through people
Work input mode determines the quantity of ultimate unit numerical value, calls corresponding level loop nesting.Such as:
As 1 yuan, 5 yuan, 10 yuan can be received, 3 currency types can be received, then called 3 layers of nested circulation by primary control program
Branch, owing to the modes of three layers of nested circulation are similar with described above 4 layers of nested loop mode, so
Do not repeat them here.
As further preferred embodiment, determining to be become by ultimate unit combinations of values based on step S103
After the compound mode of parameter value, method also includes:
Storage compound mode.
Please continue to refer to Fig. 2, the interface of Fig. 2 exists the button of " calculate coin combination and export file ",
When automatic machine detects that tester clicks on, then can directly compound mode be stored to file.
Further, the interface of Fig. 2 there is also the button of " emptying output file content ", in automatic ticketing machine examination
When survey tester clicks on, then the compound mode preserved in file is emptied.
In step S104, automatic ticket-selling system can often determine a kind of compound mode, just compound mode is passed through
The mode of the display unit being now shown in automatic machine is supplied to tester;Automatic ticket-selling system can also be
After determining all of compound mode, then it is all shown in the display unit of automatic machine.
Please continue to refer to 2, show the button of " calculate coin combination and export to interface " at display unit, from
Dynamic ticket machine, after detecting that tester clicks on, begins to calculate coin combination and be output to
Display unit;And the most also showing the button of " empty and export content below ", automatic machine exists
After detecting that tester clicks on, then empty the compound mode of display on interface.
Software kernels code is following (MICFOSOFT VISUAL STUDIO 2008C#):
Second aspect, based on same inventive concept, the embodiment of the present invention provides the test of a kind of automatic machine
Device, refer to Fig. 5, including:
First receiver module 50, for receiving an input operation;
Respond module 51, is used for responding input operation, determines a parameter value with banknote characteristics;
Determine module 52, for determining the compound mode being become parameter value by ultimate unit combinations of values, substantially
Unit amount is the value of money of the basic currency that automatic machine is able to receive that;
There is provided module 53, for compound mode being supplied to the tester of automatic machine;
Second receiver module 54, is used for receiving tester based on test operation produced by compound mode, with logical
Cross test operation automatic machine is tested.
Optionally, determine module 52, specifically for:
Determine all compound modes being become parameter value by four kinds of ultimate unit combinations of values.
Optionally, respond module 51, specifically for:
Determining the numerical information corresponding to input operation, numerical information is parameter value;Or
Respond module, specifically includes:
First determines unit, for determine corresponding to input operation by bus start position information and knot by bus
Bundle positional information;
Second determines unit, for based on start position information by bus and by bus end position information determine parameter
Value;Or
Respond module, specifically includes:
3rd determines unit, for determining the range information by bus corresponding to input operation;
4th determines unit, for determining parameter value based on range information by bus.
Optionally, device also includes:
Memory module, is used for after determining the compound mode being become parameter value by ultimate unit combinations of values,
Storage compound mode.
One or more embodiments of the invention, at least has the advantages that
Due in embodiments of the present invention, after receiving input operation, can determine whether that one has banknote characteristics
Parameter value, it is then determined that become the compound mode of parameter value by ultimate unit combinations of values, ultimate unit number
The value of money of the basic currency that value is able to receive that for automatic machine;Then compound mode is supplied to automatic ticketing
The tester of machine, response test person may finally pass through test operation produced by compound mode, and then to certainly
Dynamic ticket machine is tested, say, that when testing automatic machine, can determine whether out to pass through base
Our unit's combinations of values becomes the compound mode of parameter value, and then surveys automatic machine based on compound mode
Try rather than only select that out that automatic machine is tested, so reaching by several groups of conventional compound modes
The technique effect more perfect to the test of automatic machine;
And due to more perfect to the test of automatic machine, coming into operation so reducing automatic machine
The probability broken down afterwards, and then improve the service efficiency of automatic machine, and reduce automatic selling
The maintenance cost of ticket machine.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can use complete hardware embodiment, complete software implementation or knot
The form of the embodiment in terms of conjunction software and hardware.And, the present invention can use and wherein wrap one or more
Computer-usable storage medium containing computer usable program code (include but not limited to disk memory,
CD-ROM, optical memory etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program according to embodiments of the present invention
Flow chart and/or block diagram describe.It should be understood that can by computer program instructions flowchart and/
Or flow process in each flow process in block diagram and/or square frame and flow chart and/or block diagram and/or
The combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedded
The embedded controller of datatron or other programmable data processing device is to produce a machine so that pass through
The instruction that the embedded controller of computer or other programmable data processing device performs produces for realizing
The function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame
Device.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device
In the computer-readable memory worked in a specific way so that be stored in this computer-readable memory
Instruction produces the manufacture including command device, and this command device realizes at one flow process of flow chart or multiple stream
The function specified in journey and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes
Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices
Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one
The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know base
This creativeness concept, then can make other change and amendment to these embodiments.So, appended right is wanted
Ask and be intended to be construed to include preferred embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the embodiment of the present invention and not take off
Spirit and scope from the embodiment of the present invention.So, if these amendments of the embodiment of the present invention and modification belong to
Within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention be also intended to comprise these change and
Including modification.
Claims (8)
1. the method for testing of an automatic machine, it is characterised in that including:
Receive an input operation;
Respond described input operation, determine a parameter value with banknote characteristics;
Determine the compound mode being become described parameter value by ultimate unit combinations of values, described ultimate unit numerical value
Value of money for the basic currency that described automatic machine is able to receive that;
Described compound mode is supplied to the tester of described automatic machine;
Receive described tester based on test operation produced by described compound mode, with by described test behaviour
Described automatic machine of opposing is tested;
Wherein, the described input operation of described response, determine a parameter value with banknote characteristics, particularly as follows:
Determine that the numerical information corresponding to described input operation, described numerical information are described parameter value.
2. the method for testing of automatic machine as claimed in claim 1, it is characterised in that described determine logical
Cross ultimate unit combinations of values and become the compound mode of described parameter value, particularly as follows:
Determine all compound modes being become described parameter value by four kinds of ultimate unit combinations of values.
3. the method for testing of automatic machine as claimed in claim 2, it is characterised in that described the most single
Bit value is respectively as follows: X according to order arrangement from small to largea、Xb、Xc、Xd, described determine by substantially
Unit amount is combined into the compound mode of described parameter value, specifically includes:
S1: determine X in described compound modeaMultiple be a, XbMultiple be b, XcMultiple be c, Xd
Multiple be d;
S2: determine higher limit max_a of a, higher limit max_b of b, higher limit max_c of c, d upper
Limit value max_d;
S3: arrange a=0, jumps to step S4;
S4: judge a XaWhether more than or equal to parameter value, at a XaDuring more than or equal to parameter value, jump to step
Rapid S5;Otherwise, step S6 is jumped to;
S5: stop determining the compound mode forming described parameter value, wherein, if a is XaEqual to parameter value, then
Determine by a XaA kind of compound mode of composition parameter value;
S6: arrange b=0, jumps to step S7;
S7: judge a Xa+b·XbWhether more than or equal to parameter value, at a Xa+b·XbDuring more than or equal to parameter value,
Jump to step S8;Otherwise, step S13 is jumped to;
S8: jump to step S9, wherein, if at a Xa+b·XbEqual to parameter value, it is determined that pass through
a·Xa+b·XbIt is combined into a kind of compound mode of parameter value;
S9: the value of a is added 1, and jumps to step S10;
S10: judge whether a is not more than max_a, when a is more than max_a, jumps to step S11;At a not
During more than max_a, jump to step S4;
S11: stop determining the compound mode forming described parameter value;
S12: arrange c=0, jumps to step S13;
S13: judge a Xa+b·Xb+c·XcWhether more than or equal to parameter value, at a Xa+b·Xb+c·XcIt is more than
During equal to parameter value, jump to step S14;Otherwise, step S17 is jumped to;
S14: jump to step S15, wherein, at a Xa+b·Xb+c·XcDuring equal to parameter value, determine and pass through
a·Xa+b·Xb+c·XcIt is combined into a kind of compound mode of parameter value;
S15: the value of b is added 1, and jumps to step S16;
S16: judge whether b is not more than max_b, when b is more than max_b, jumps to step S9;At b not
During more than max_b, jump to step S7;
S17: arrange d=0, jumps to step S18;
S18: judge a Xa+b·Xb+c·Xc+d·XdWhether it is more than or equal to parameter value,
a·Xa+b·Xb+c·Xc+d·XdDuring more than or equal to parameter value, jump to step S19;Otherwise, step is jumped to
S22;
S19: jump to step S20, wherein, at a Xa+b·Xb+c·Xc+d·XdDuring equal to parameter value, really
Fixed by a Xa+b·Xb+c·Xc+d·XdIt is combined into a kind of compound mode of parameter value;
S20: the value of c is added 1, and jumps to step S21;
S21: judge whether c is not more than max_c, when c is not more than max_c, jumps to step S13;At c
During more than max_c, jump to step S15;
S22: the value of d is added 1, jumps to step S23;
S23: judge whether d is not more than max_d, when d is not more than max_d, jumps to step 18;At d
During more than max_d, jump to step S20.
4. the method for testing of automatic machine as claimed in claim 3, it is characterised in that by with lower section
Formula determines higher limit max_i of i, any one numerical value during wherein i is a, b, c, d:
Determine the receiver module caching higher limit of i;
With parameter value divided by XiRound acquisition coin higher limit;
Relatively described receiver module caching higher limit and the size of described coin higher limit, by described receiver module
Smaller value in caching higher limit and described coin higher limit is defined as described max_i.
5. the method for testing of the automatic machine as described in claim 1-4 is arbitrary, it is characterised in that in institute
Stating after determining the compound mode being become described parameter value by ultimate unit combinations of values, described method also includes:
Store described compound mode.
6. the test device of an automatic machine, it is characterised in that including:
First receiver module, for receiving an input operation;
Respond module, is used for responding described input operation, determines a parameter value with banknote characteristics;
Determine module, for determining the compound mode being become described parameter value by ultimate unit combinations of values, institute
State the value of money that ultimate unit numerical value is the basic currency that described automatic machine is able to receive that;
There is provided module, for described compound mode being supplied to the tester of described automatic machine;
Second receiver module, is used for receiving described tester based on test operation produced by described compound mode,
Described automatic machine is tested by described test operation;
Wherein, described respond module, specifically for: determine the numerical information corresponding to described input operation,
Described numerical information is described parameter value.
7. the test device of automatic machine as claimed in claim 6, it is characterised in that described determine mould
Block, specifically for:
Determine all compound modes being become described parameter value by four kinds of ultimate unit combinations of values.
The test device of automatic machine the most as claimed in claims 6 or 7, it is characterised in that described dress
Put and also include:
Memory module, for determine by ultimate unit combinations of values become described parameter value compound mode it
After, store described compound mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410525298.8A CN104268996B (en) | 2014-10-08 | 2014-10-08 | The method of testing of a kind of automatic machine and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410525298.8A CN104268996B (en) | 2014-10-08 | 2014-10-08 | The method of testing of a kind of automatic machine and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104268996A CN104268996A (en) | 2015-01-07 |
CN104268996B true CN104268996B (en) | 2016-08-24 |
Family
ID=52160514
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410525298.8A Expired - Fee Related CN104268996B (en) | 2014-10-08 | 2014-10-08 | The method of testing of a kind of automatic machine and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104268996B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105954054A (en) * | 2016-07-15 | 2016-09-21 | 南方银通(武汉)信息技术服务有限公司 | Open-shelf rail transit ticket vending machine test platform |
CN107329870B (en) * | 2017-06-07 | 2021-06-08 | 河南辉煌城轨科技有限公司 | Performance test method for automatic ticket vending machine of urban rail transit |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3210119B2 (en) * | 1993-02-15 | 2001-09-17 | 富士通株式会社 | A device for checking the value of voting cards in voting ticket vending machines |
TW460858B (en) * | 1999-02-19 | 2001-10-21 | Wacom Engineering Co Ltd | Operator's input processing unit and method thereof |
JP5245539B2 (en) * | 2008-05-27 | 2013-07-24 | 富士通株式会社 | Virtual machine I / O emulation mechanism |
-
2014
- 2014-10-08 CN CN201410525298.8A patent/CN104268996B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN104268996A (en) | 2015-01-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9694700B2 (en) | Charging management system | |
CN106445629A (en) | Load balancing method and device | |
CN107229559A (en) | For the detection method and device of the test integrity degree of operation system | |
CN110262977A (en) | A kind of full link performance test method, calculates equipment and storage medium at device | |
CN104268996B (en) | The method of testing of a kind of automatic machine and device | |
CN107085229B (en) | Collecting method | |
CN109784793A (en) | Warehousing method, device, equipment and machine readable medium | |
CN103841562B (en) | A kind of time interval resource takes processing method and processing device | |
CN106919957A (en) | The method and device of processing data | |
CN106658701A (en) | Positioning method and apparatus | |
CN106502778A (en) | A kind of terminal and its process scheduling optimization method | |
CN106845773A (en) | A kind of order distributing method and system | |
CN112101061A (en) | Target detection method and device and image processing equipment | |
CN106304163A (en) | The determination method of a kind of wifi antenna performance exception and terminal | |
CN109754619A (en) | Single-point traffic signal control method, device, traffic signaling equipment and storage medium | |
CN107423914A (en) | A kind of method for scheduling task and system based on cloud manufacture | |
CN110084694A (en) | A kind of order allocation method and relevant device based on data processing | |
CN108256666A (en) | The location determining method and device of charging pile, processor | |
CN112328335A (en) | Method, device, equipment and storage medium for diagnosing timeout of concurrent requests | |
CN104021083B (en) | Method of testing and device | |
CN110019323A (en) | A kind of check method of electrical cabinet component cable | |
CN109300315A (en) | Geomagnetic data anomalous discrimination method and system based on vehicle detection probability | |
CN107391728A (en) | Data digging method and data mining device | |
CN108646696A (en) | Automatically process the system and method for batch products to be detected | |
CN107517474A (en) | A kind of network analysis optimization method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160824 Termination date: 20191008 |