CN108701390A - The method and system of function are beaten in a kind of cash register test kitchen - Google Patents

The method and system of function are beaten in a kind of cash register test kitchen Download PDF

Info

Publication number
CN108701390A
CN108701390A CN201880000586.8A CN201880000586A CN108701390A CN 108701390 A CN108701390 A CN 108701390A CN 201880000586 A CN201880000586 A CN 201880000586A CN 108701390 A CN108701390 A CN 108701390A
Authority
CN
China
Prior art keywords
kitchen
order
beaten
serial number
judged
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201880000586.8A
Other languages
Chinese (zh)
Other versions
CN108701390B (en
Inventor
林继燊
林晋安
郑德城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Landi Commercial Equipment Co Ltd
Original Assignee
Fujian Landi Commercial Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Landi Commercial Equipment Co Ltd filed Critical Fujian Landi Commercial Equipment Co Ltd
Publication of CN108701390A publication Critical patent/CN108701390A/en
Application granted granted Critical
Publication of CN108701390B publication Critical patent/CN108701390B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/0018Constructional details, e.g. of drawer, printing means, input means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

The invention discloses the method and system that function is beaten in a kind of cash register test kitchen, cash register obtains order placement information, it generates kitchen and beats order information, and it kitchen is beaten into order information is sent to and kitchen is installed beats in the server-side of simulation system, kitchen, which beats simulation system and receives and stores kitchen, beats order information, loses list to determine whether being beaten there are kitchen by odd numbers create-rule;The present invention intends system replacement kitchen printer by kitchen molding, kitchen is beaten information after placing an order and is sent to kitchen by cash register function beats simulation system, kitchen beats simulation system and analyses whether there is a situation where to lose by odd numbers create-rule single, single verification is lost to realize that kitchen is beaten, list is lost instead of artificial detection, greatly reduces resource input, reduce the cost of entire strike-machine test, automatic detection simultaneously than artificial detection for, more efficient, accuracy also higher.

Description

The method and system of function are beaten in a kind of cash register test kitchen
Technical field
The present invention relates to software test field, more particularly to the method and system of function are beaten in a kind of cash register test kitchen.
Background technology
Cash register is the product of microelectric technique development and modernization commodity circulation management philosophy and technology development combination, and Commercial electronic cash register is then one of modernization, the essential basic electronic equipment of automated business management.When cash register with Kitchen printer is connected, and just forms a meal ordering system, ordered dishes by cash register either special equipment of ordering, under Single, checkout, and when carrying out lower list kitchen is received and parsed through by wireless network transmissions to kitchen printer, kitchen printer Order information is beaten, a kitchen is generated and plays order, goes out the integrated management of meal to realize to order to kitchen from lobby.
In normal use kitchen printer, to detect whether to beat there are kitchen and lose list or whether correct in kitchen if beating data Situation needs manually to check that order is played in each kitchen, and when carrying out strike-machine test, it is relatively more that order is played in kitchen, and hand inspection is easy production Raw error.
Invention content
The technical problem to be solved by the present invention is to:The method and system that function is beaten in a kind of cash register test kitchen, energy are provided Kitchen is beaten in enough realizations loses single verification, substitutes artificial detection and loses list, to reduce testing cost.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention is:
The method that function is beaten in a kind of cash register test kitchen, including step:
S1, cash register obtain order placement information, generate kitchen and beat order information, and order information is beaten in the kitchen and is sent to installation There is kitchen to beat in the server-side of simulation system;
S2, the kitchen, which beat simulation system and receive and store kitchen, beats order information, by odd numbers create-rule to determine whether It beats there are kitchen and loses list.
In order to solve the above-mentioned technical problem, the another technical solution that the present invention uses for:
The system that function is beaten in a kind of cash register test kitchen, including cash register and server-side, the cash register are deposited including first Reservoir, first processor and storage on the first memory and the first computer program that can be run on first processor, institute Server-side is stated to include second memory, second processor and be stored on second memory and can run in second processor Second computer program, the second computer program include that simulation system is beaten in kitchen, and the first processor executes described first Following steps are realized when computer program:
S1, order placement information is obtained, generates kitchen and beat order information, and order information is beaten into the kitchen and is sent in server-side;
The second processor realizes following steps when executing the second computer program:
S2, it receives and stores kitchen and beats order information, list is lost to determine whether being beaten there are kitchen by odd numbers create-rule.
The beneficial effects of the present invention are:Intend system replacement kitchen printer by kitchen molding, cash register function is after placing an order Information beaten into kitchen be sent to kitchen and beat simulation system, kitchen beat simulation system by odd numbers create-rule come analyse whether to exist lose it is single Situation loses single verification to realize that kitchen is beaten, loses list instead of artificial detection, greatly reduce resource input, that is, reduce whole The cost of a strike-machine test, at the same automatic detection than artificial detection for, more efficient, accuracy also higher;The present invention only needs In original cash register system, addition kitchen is beaten simulation system, can be used, builds simply, can simulate more kitchen printers, subtract The input cost of kitchen printer is lacked.
Description of the drawings
Fig. 1 is that a kind of cash register of the embodiment of the present invention tests the basic procedure schematic diagram that the method for function is beaten in kitchen;
Fig. 2 is that a kind of cash register of the embodiment of the present invention tests the overall flow schematic diagram that the method for function is beaten in kitchen;
Fig. 3 be the present embodiments relate to judge whether that kitchen is beaten and lose single flow diagram;
Fig. 4 is that a kind of cash register of the embodiment of the present invention tests the block schematic illustration that the system of function is beaten in kitchen;
Label declaration:
1, the system that function is beaten in a kind of cash register test kitchen;2, cash register;3, first processor;4, first memory;5, Server-side;6, second memory;7, second processor.
Specific implementation mode
To explain the technical content, the achieved purpose and the effect of the present invention in detail, below in conjunction with embodiment and coordinate attached Figure is explained.
The design of most critical of the present invention is:List is lost to determine whether being beaten there are kitchen by odd numbers create-rule, to replace List is lost for artificial detection, improve detection accuracy and reduces cost.
Please refer to Fig. 1 to Fig. 3, the method that function is beaten in a kind of cash register test kitchen, including step:
S1, cash register obtain order placement information, generate kitchen and beat order information, and order information is beaten in the kitchen and is sent to installation There is kitchen to beat in the server-side of simulation system;
S2, the kitchen, which beat simulation system and receive and store kitchen, beats order information, by odd numbers create-rule to determine whether It beats there are kitchen and loses list.
As can be seen from the above description, the beneficial effects of the present invention are:The present invention only need to add kitchen in original cash register system Beat simulation system, can use, build simply, more kitchen printers can be simulated, reduce the input of kitchen printer at This;Intend system replacement kitchen printer by kitchen molding, kitchen is beaten information after placing an order and is sent to the quasi- system of kitchen molding by cash register function System, kitchen beat simulation system and analyse whether there is a situation where to lose by odd numbers create-rule single, lose single school to realize that kitchen is beaten It tests, loses list instead of artificial detection, greatly reduce resource input, that is, reduce the cost of entire strike-machine test, while automatic Detection than artificial detection for, more efficient, accuracy also higher.
Further, the step S2 further includes:
The kitchen beats simulation system and is provided with ticket templates, and order is played to verify the kitchen received by the ticket templates Whether information is correct.
Seen from the above description, it beats simulation system in kitchen and is provided with ticket templates, include bill number, order in ticket templates Information etc. is beaten order information by ticket templates and kitchen and is compared, can verify whether the kitchen received beats order information Correctly, to ensure the correctness of data.
Further, further include step before the step S1:
Order placement information and testing time are pre-set, the order placement information includes order number, lower single time and lower single dish Product;
Automatic order placement information is received, carrying out simulation according to pre-set order placement information places an order.
Seen from the above description, lower single number is pre-set, to replace manually placing an order, testing efficiency is improved, reduces people Member's input cost.
Further, further include step after the step S2:
Judge whether to reach testing time, if reaching, terminates to test, otherwise continue to test.
Seen from the above description, for testing time by pre-setting, user can be whole to automatically control by controlling testing time The operation of a test, flexibility ratio is high, is operated according to actual conditions convenient for user.
Further, the step S2 by odd numbers create-rule to determine whether beaten there are kitchen lose list before further include Step:
S21, initialization operation is carried out, and starting odd numbers is set, according to test event title and terminal unique mark from number According to filtering out order record in library, and the order record is ranked up according to order serial number.
Seen from the above description, order record is ranked up, is beaten convenient for subsequent kitchen and loses single judgement.
Further, step is singly specifically included to determine whether beating to lose there are kitchen by odd numbers create-rule in the step S2 Suddenly:
S22, generate one with originate the identical order serial number desired value of odd numbers, and take out from the order record the Order information is beaten in one kitchen to be judged, obtains the order serial number actual value that order information is beaten in first kitchen to be judged;
S23, judge whether the order serial number desired value and the order serial number actual value are equal, if equal, Step S24 is executed, if unequal, judges whether the order serial number desired value is more than the order serial number actual value, If more than, S25 is thened follow the steps, it is no to then follow the steps S26;
S24, it order information is beaten into the kitchen to be judged is identified as normally, and take out next kitchen to be judged and play order letter Breath obtains the order serial number actual value that order information is beaten in next kitchen to be judged, while in the order serial number desired value It is upper to add 1, new order serial number desired value is generated, step S23 is executed;
S25, it the kitchen to be judged is beaten to order information is identified as more, and take out next kitchen to be judged and beat order information, The order serial number actual value that order information is beaten in next kitchen to be judged is obtained, step S23 is executed;
Order information is beaten in one S26, addition additional kitchen, the order serial number desired value is written, by the kitchen to be judged It beats order information and is identified as leakage list, while adding 1 in the order serial number desired value, generate new order serial number and be expected Value executes step S23.
To facilitate the understanding of the present invention, it needs to carry out supplementary explanation following content:
(1), test event title:When function is beaten in cash register test kitchen, for different test events, divide in the database Not Pei Zhiyou data space, distinguished with test event title, when required, from the number of current test event title According to taking out the configuration information of current test event in memory space, and it is taken out the data handled.
(2), terminal unique mark:Order is played in the kitchen that terminal unique mark is used to distinguish different terminals, as long as can be used in The field for distinguishing different terminals all can serve as the mark, such as terminal SN, operator's account of login system etc., wherein this Invent the terminal that the cash register mentioned is exactly above-mentioned.
(3), order serial number:Serial number on each order for differentiation is often once placed an order under normal circumstances, Order serial number adds 1, wherein in order to obtain order serial number, it would be desirable to understand the format that data message is beaten in normal kitchen, and from Normal kitchen, which is beaten in data message, finds out required significant data field:Terminal unique mark, order serial number, and by important number It is saved according to field in the data space of current test event.
Seen from the above description, simulation generates an order serial number desired value to indicate order flowing water under normal circumstances Number, it is compared with order serial number desired value with order serial number actual value, abnormal conditions is beaten to determine whether there is kitchen, and Can accurate judgement be that kitchen is beaten and loses single or the case where repeat order, lose list to substitute artificial detection, meanwhile, be not necessarily on the whole into The complicated calculation process of row, to provide a kind of easier, accuracy higher, more efficient kitchen is beaten and loses singly detection side Case.
Further, the step S21 is specially:
The kitchen beats simulation system and carries out initialization operation, and sets the order serial number range relieved every time, described Order serial number range includes starting odd numbers and terminates odd numbers, according to test event title and terminal unique mark from database Order record is filtered out, and the order record is ranked up according to order successively mark and order serial number.
To facilitate the understanding of the present invention, it needs to carry out supplementary explanation following content:
(1), order successively identifies:Due in process of exchange, it is understood that there may be the case where relieving is completed when relieving Afterwards, order serial number may be started the cycle over from 1 again adds 1.If, may individually using order serial number as Order Sorting foundation Occur there are multiple same order serial numbers simultaneously, then need another foundation and the priority of group order is assisted to be ranked up, I.e. order successively identifies, i.e., significant data field further includes that order successively identifies.
It is ranked up for simultaneously order record, it is preferred to be first ranked up according to order successively mark, order priority is marked Know and identical is ranked up according still further to order serial number.
Seen from the above description, it due to the relationship relieved, during being judged, needs to consider to occur to force to hand over The case where succeeding, so need to be set with the order serial number range relieved every time, convenient for the judgement subsequently for relieving.
Further, 1 is added to specifically include in the step S24 in the order serial number desired value:
Judge whether the order serial number desired value is to terminate odd numbers, if so, by the order serial number desired value Starting odd numbers is reset to, 1 is otherwise added in the order serial number desired value.
Seen from the above description, judge whether to reach and relieve, it is accurate to ensure to judge below.
Further, the step S25 is specially:
It is beaten behind order information from current kitchen to be judged and temporarily takes out two kitchens to be judged and beat order information, respectively obtained Order serial number actual value be the first actual value, the second actual value, if second actual value be more than first actual value and First actual value, the second actual value be in the order serial number desired value and the order serial number actual value it Between, then order information is beaten into the kitchen to be judged and be identified as and relieve, it is single that the order serial number desired value is reset to starting Number, order information otherwise is beaten into the kitchen to be judged and is identified as more, and takes out next kitchen to be judged and beats order information, under acquisition The order serial number actual value of order information is beaten in one kitchen to be judged, executes step S23.
Seen from the above description, due to the relationship relieved, starting odd numbers can be all reset to every time by relieving, interim to take out The order serial number of order information is beaten in two kitchens to be judged, and judges their size, since starting odd numbers can be much smaller than order Serial number desired value, so the order serial number of the two is between order serial number desired value and order serial number actual value Words, it may be determined that the case where order is to be forced to relieve, i.e., the present invention can detect whether to relieve, to obtain more Well more fully testing result.
Further, further include step after the step S2:
S3, the kitchen, which beat simulation system, to be sent to the cash register, the test knot to the test result of order record Fruit, which includes whether to exist, loses list.
Seen from the above description, test result is sent to cash register so that user can be quickly understood by cash register Whether there is kitchen and beat to lose list, can handle kitchen faster thereby using family and beat and lose list.
As shown in figure 4, the system that function is beaten in a kind of cash register test kitchen, including cash register and server-side, the cash register Including first memory, first processor and store the can run on the first memory and on first processor first calculating Machine program, the server-side include second memory, second processor and are stored on second memory and can be in second processing The second computer program run on device, the second computer program include that simulation system is beaten in kitchen, and the first processor is held Following steps are realized when row first computer program:
S1, order placement information is obtained, generates kitchen and beat order information, and order information is beaten into the kitchen and is sent in server-side;
The second processor realizes following steps when executing the second computer program:
S2, it receives and stores kitchen and beats order information, list is lost to determine whether being beaten there are kitchen by odd numbers create-rule.
Wherein, the first computer program includes that function is as follows:
(1), cash register of ordering dishes software:It ordered dishes, placed an order, order, backstage can be beaten in notice kitchen when lower single.
(2), backstage is beaten in kitchen:Notice kitchen is beaten simulation system and is printed.
It includes that function is as follows that simulation system is beaten in kitchen in second computer program:
(1), print service:It receives kitchen and beats order information, order information is beaten in parsing kitchen, and order information is beaten in kitchen and is output to In file, to replace the mode that original kitchen prints content.
(2), verification service:Setting starting odd numbers and termination odd numbers, ticket templates, judge to connect by odd numbers create-rule Whether the kitchen received, which is beaten to have, loses single situation, and can whether to verify the kitchen received, to beat data correct by ticket templates.
As can be seen from the above description, the beneficial effects of the present invention are:The present invention only need to add kitchen in original cash register system Beat simulation system, can use, build simply, more kitchen printers can be simulated, reduce the input of kitchen printer at This;Intend system replacement kitchen printer by kitchen molding, kitchen is beaten information after placing an order and is sent to the quasi- system of kitchen molding by cash register function System, kitchen beat simulation system and analyse whether there is a situation where to lose by odd numbers create-rule single, lose single school to realize that kitchen is beaten It tests, loses list instead of artificial detection, greatly reduce resource input, that is, reduce the cost of entire strike-machine test, while automatic Detection than artificial detection for, more efficient, accuracy also higher.
Further, the step S2 further includes:
Ticket templates are provided with, whether to verify the kitchen received to beat order information correct by the ticket templates.
Seen from the above description, it beats simulation system in kitchen and is provided with ticket templates, include bill number, order in ticket templates Information etc. is beaten order information by ticket templates and kitchen and is compared, can verify whether the kitchen received beats order information Correctly, to ensure the correctness of data.
Further, it is also realized before the step S1 when first processor executes first computer program Following steps:
Order placement information and testing time are pre-set, the order placement information includes order number, lower single time and lower single dish Product;
Automatic order placement information is received, carrying out simulation according to pre-set order placement information places an order.
Seen from the above description, lower single number is pre-set, to replace manually placing an order, testing efficiency is improved, reduces people Member's input cost.
Further, it is also realized after the step S2 when first processor executes first computer program Following steps:
Judge whether to reach testing time, if reaching, terminates to test, otherwise continue to test.
Seen from the above description, for testing time by pre-setting, user can be whole to automatically control by controlling testing time The operation of a test, flexibility ratio is high, is operated according to actual conditions convenient for user.
Further, the step S2 by odd numbers create-rule to determine whether beaten there are kitchen lose list before further include Step:
S21, initialization operation is carried out, and starting odd numbers is set, according to test event title and terminal unique mark from number According to filtering out order record in library, and the order record is ranked up according to order serial number.
Seen from the above description, order record is ranked up, is beaten convenient for subsequent kitchen and loses single judgement.
Further, step is singly specifically included to determine whether beating to lose there are kitchen by odd numbers create-rule in the step S2 Suddenly:
S22, generate one with originate the identical order serial number desired value of odd numbers, and take out from the order record the Order information is beaten in one kitchen to be judged, obtains the order serial number actual value that order information is beaten in first kitchen to be judged;
S23, judge whether the order serial number desired value and the order serial number actual value are equal, if equal, Step S24 is executed, if unequal, judges whether the order serial number desired value is more than the order serial number actual value, If more than, S25 is thened follow the steps, it is no to then follow the steps S26;
S24, it order information is beaten into the kitchen to be judged is identified as normally, and take out next kitchen to be judged and play order letter Breath obtains the order serial number actual value that order information is beaten in next kitchen to be judged, while in the order serial number desired value It is upper to add 1, new order serial number desired value is generated, step S23 is executed;
S25, it the kitchen to be judged is beaten to order information is identified as more, and take out next kitchen to be judged and beat order information, The order serial number actual value that order information is beaten in next kitchen to be judged is obtained, step S23 is executed;
Order information is beaten in one S26, addition additional kitchen, the order serial number desired value is written, by the kitchen to be judged It beats order information and is identified as leakage list, while adding 1 in the order serial number desired value, generate new order serial number and be expected Value executes step S23.
Seen from the above description, simulation generates an order serial number desired value to indicate order flowing water under normal circumstances Number, it is compared with order serial number desired value with order serial number actual value, abnormal conditions is beaten to determine whether there is kitchen, and Can accurate judgement be that kitchen is beaten and loses single or the case where repeat order, lose list to substitute artificial detection, meanwhile, be not necessarily on the whole into The complicated calculation process of row, to provide a kind of easier, accuracy higher, more efficient kitchen is beaten and loses singly detection side Case.
Further, the step S21 is specially:
Initialization operation is carried out, and sets the order serial number range relieved every time, the order serial number range packet It includes starting odd numbers and terminates odd numbers, order record is filtered out from database according to test event title and terminal unique mark, And the order record is ranked up according to order successively mark and order serial number.
Seen from the above description, it due to the relationship relieved, during being judged, needs to consider to occur to force to hand over The case where succeeding, so need to be set with the order serial number range relieved every time, convenient for the judgement subsequently for relieving.
Further, 1 is added to specifically include in the step S24 in the order serial number desired value:
Judge whether the order serial number desired value is to terminate odd numbers, if so, by the order serial number desired value Starting odd numbers is reset to, is otherwise added in the order serial number desired value.
Seen from the above description, judge whether to reach and relieve, it is accurate to ensure to judge below.
Further, the step S25 is specially:
It is beaten behind order information from current kitchen to be judged and temporarily takes out two kitchens to be judged and beat order information, respectively obtained Order serial number actual value be the first actual value, the second actual value, if second actual value be more than first actual value and First actual value, the second actual value be in the order serial number desired value and the order serial number actual value it Between, then order information is beaten into the kitchen to be judged and be identified as and relieve, it is single that the order serial number desired value is reset to starting Number, order information otherwise is beaten into the kitchen to be judged and is identified as more, and takes out next kitchen to be judged and beats order information, under acquisition The order serial number actual value of order information is beaten in one kitchen to be judged, executes step S23.
Seen from the above description, due to the relationship relieved, starting odd numbers can be all reset to every time by relieving, interim to take out The order serial number of order information is beaten in two kitchens to be judged, and judges their size, since starting odd numbers can be much smaller than order Serial number desired value, so the order serial number of the two is between order serial number desired value and order serial number actual value Words, it may be determined that the case where order is to be forced to relieve, i.e., the present invention can detect whether to relieve, to obtain more Well more fully testing result.
Further, it is also realized after the step S2 when second processor executes the second computer program Following steps:
S3, the cash register will be sent to the test result of order record, the test result, which includes whether to exist, loses It is single.
Seen from the above description, test result is sent to cash register so that user can be quickly understood by cash register Whether there is kitchen and beat to lose list, can handle kitchen faster thereby using family and beat and lose list.
Fig. 1 to Fig. 3 is please referred to, the embodiment of the present invention one is:
The method that function is beaten in a kind of cash register test kitchen, including step:
S1, cash register obtain order placement information, generate kitchen and beat order information, and kitchen beaten order information are sent to and be equipped with kitchen It beats in the server-side of simulation system;
S2, kitchen beat simulation system and are provided with ticket templates, receive and store kitchen and beat order information, pass through odd numbers create-rule List is lost to determine whether being beaten there are kitchen, whether to verify the kitchen received to beat order information correct by ticket templates;
S3, kitchen, which beat simulation system, to be sent to cash register to the test result of order record, and test result includes whether to deposit Losing list.
Wherein, step is singly specifically included to determine whether beating to lose there are kitchen by odd numbers create-rule:
S21, kitchen beat simulation system and carry out initialization operation, and set the order serial number range relieved every time, order Serial number range includes starting odd numbers and terminates odd numbers, is screened from database according to test event title and terminal unique mark Go out order record, and order record is ranked up according to order successively mark and order serial number.
In the present embodiment, it is as follows to beat data message for normal kitchen:
1B 40 1B 32 00 1D 21 11 1B 45 0F 1B 61 00 CC A8 BA C5 A3 BA 1D 21 22 1B 45 0F 1B 61 00 4C 37 1D 21 11 1B 45 0F 1B 61 00 20 20 C8 CB CA FD A3 BA 1D 21 22 1B 45 0F 1B 61 00 35 0A 1D 21 00 1B 45 00 1B 61 00 CA B1 BC E4 A3 BA 32 30 31 38 2D 30 32 2D 30 36 20 31 36 3A 30 32 3A 35 33 0A 1D 21 00 1B 45 00 1B 61 00 B6 A9 B5 A5 BA C5 A3 BA 39 32 32 30 39 30 35 39 32 30 31 38 30 32 30 36 31 36 30 32 35 31 30 30 30 30 30 31 0A 1D 21 00 1B 45 00 1B 61 00 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 0A 1D 21 11 1B 45 0F 1B 61 00 C3 A2 B9 FB C4 CC C2 B6 20 20 20 20 20 20 20 20 20 31 B7 DD A1 A1 36 30 0A 1D 21 11 1B 45 0F 1B 61 00 1D 21 00 1B 45 00 1B 61 00 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 0A 0A 0A 0A 0A 0A 1D 56 01
For the ease of understanding, above-mentioned message is converted into kitchen, and to beat data as follows:
Platform number:L7 numbers:5
Time:2018-02-06 16:02:53
Order number:9220905920180206160251000001
Mango milk reveals 1 part 60
It is that+14 times of 8 terminal SN (terminal unique mark), (order was successively marked from the composition rule of the above order number Know)+6 order serial number compositions, therefore, system is beaten according to above-mentioned rule in simulation kitchen, and following three are got from order number Significant data:
(1), terminal unique mark:92209059.
(2), order serial number:000001.
(3), order successively identifies:20180206160251, wherein successively mark can be from " order number " field for the order It obtains, also can directly be obtained from " time " field.
Wherein, the order serial number range relieved every time, such as 1-100, in addition, in order to better understand the present invention, it will Order serial number desired value indicates that order serial number actual value is indicated with n with m, and starting odd numbers is indicated with min, terminates odd numbers and uses Max indicates that order serial number desired value adds 1 to be indicated with m++, and the first actual value is indicated with x, and the second actual value is indicated with y.
S22, an order serial number desired value identical with starting odd numbers is generated, and takes out first from order record Order information is beaten in kitchen to be judged, obtains the order serial number actual value that order information is beaten in first kitchen to be judged.
That is, setting order serial number desired value m=min, and take out order serial number actual value n.
S23, judge whether order serial number desired value and order serial number actual value are equal, if equal, then follow the steps S24 judges whether order serial number desired value is more than order serial number actual value if unequal, if more than thening follow the steps S25, it is no to then follow the steps S26.
Judge order serial number desired value m=order serial number actual values n
S24, it order information is beaten into kitchen to be judged is identified as normally, and take out next kitchen to be judged and beat order information, obtain Remove the order serial number actual value that order information is beaten in a kitchen to be judged, meanwhile, judge order serial number desired value whether be Odd numbers is terminated, if so, order serial number desired value is reset to starting odd numbers, 1 is otherwise added in order serial number desired value, New order serial number desired value is generated, step S23 is executed.
That is, as m=n, illustrate that this order is normal, then judge m=maxIf so, illustrating order serial number actual value n It has reached and terminates odd numbers max, at this time since next order serial number actual value n can add up originating odd numbers min, so need Order serial number desired value m is carried out resetting to starting odd numbers min, if it is not, then carrying out accumulation calculating.
S25, it is beaten behind order information from current kitchen to be judged and temporarily takes out two kitchens to be judged and beat order information, respectively It is the first actual value, the second actual value to obtain order serial number actual value, if the second actual value is more than the first actual value and first Actual value, the second actual value are between order serial number desired value and order serial number actual value, then are beaten kitchen to be judged Order information, which is identified as, relieves, and order serial number desired value is reset to starting odd numbers, and order letter otherwise is played in kitchen to be judged Breath is identified as more, and takes out next kitchen to be judged and beats order information, the order of order information is played in next kitchen to be judged of acquisition Serial number actual value executes step S23.
Work as m>When n, it is contemplated that value is more than actual value, illustrates that repeating or being reset occur in actual value, by judging m >x>y>nTo determine whether occur forcing to relieve, if so, it will then illustrate that order serial number actual value n is reset, so Order serial number desired value m is also required to resetting and is judged again, if not, it then indicates that the order is repeated, takes out next Order information n is beaten in kitchen to be judged, and is not dealt with to order serial number desired value m.
Order information is beaten in one S26, addition additional kitchen, and order serial number desired value is written, and order letter is played in kitchen to be judged Breath is identified as leakage list, while adding 1 in order serial number desired value, generates new order serial number desired value, executes step S23。
Work as m<When n, it is contemplated that value is less than actual value, illustrates the kitchen for not having order serial number desired value m in order record Order information is beaten, that is, kitchen occurs and beat to lose list, order information is beaten to make user quick in the kitchen of generation order serial number desired value m Kitchen, which occurs, in solution beats and loses single fortuitous event.
Fig. 1 to Fig. 3 is please referred to, the embodiment of the present invention two is:
The method that function is beaten in a kind of cash register test kitchen, to further include step before the step S1 in above-described embodiment one:
Order placement information and testing time are pre-set, the order placement information includes order number, lower single time and lower single dish Product;
Automatic order placement information is received, carrying out simulation according to pre-set order placement information places an order.
Further include simultaneously following steps upon step s 2:
Judge whether to reach testing time, if reaching, terminates to test, otherwise continue to test.
Fig. 4 is please referred to, the embodiment of the present invention three is:
The system 1 of function is beaten in a kind of cash register test kitchen, including cash register 2 and server-side 5, cash register 2 are deposited including first Reservoir 4, first processor 3 and it is stored in the first computer journey that can be run on first memory 4 and on first processor 3 Sequence, server-side 5 include second memory 6, second processor 7 and are stored on second memory 6 and can be in second processor 7 The second computer program of operation, second computer program include that simulation system is beaten in kitchen, and first processor 3 executes the first computer Realize that the step S1 in above-described embodiment, second processor 7 realize above-described embodiment when executing second computer program when program In step S2, S3.
Fig. 4 is please referred to, the embodiment of the present invention four is:
The system 1 of function is beaten in a kind of cash register test kitchen, to further include step before the step S1 in above-described embodiment three:
Order placement information and testing time are pre-set, the order placement information includes order number, lower single time and lower single dish Product;
Automatic order placement information is received, carrying out simulation according to pre-set order placement information places an order.
Further include simultaneously following steps upon step s 2:
Judge whether to reach testing time, if reaching, terminates to test, otherwise continue to test.
In conclusion the method and system of function are beaten in a kind of cash register test kitchen provided by the invention, it is quasi- by kitchen molding System replacement kitchen printer, kitchen is beaten information after placing an order and is sent to kitchen by cash register function beats simulation system, and simulation system is beaten in kitchen It analyses whether there is a situation where to lose by odd numbers create-rule single, loses single verification to realize that kitchen is beaten, instead of artificial inspection List is lost in survey, greatly reduces resource input, that is, reduces the cost of entire strike-machine test, while automatic detection comes than artificial detection It says, more efficient, accuracy also higher;The present invention need to only add kitchen and beat simulation system, can make in original cash register system With building simple, more kitchen printers can be simulated, reduce the input cost of kitchen printer, i.e., the present invention is on the whole Improve a kind of lower cost, accuracy higher, more efficient and easier testing scheme.
Example the above is only the implementation of the present invention is not intended to limit the scope of the invention, every to utilize this hair Equivalents made by bright specification and accompanying drawing content are applied directly or indirectly in relevant technical field, include similarly In the scope of patent protection of the present invention.

Claims (20)

1. the method that function is beaten in a kind of cash register test kitchen, which is characterized in that including step:
S1, cash register obtain order placement information, generate kitchen and beat order information, and the kitchen beaten order information are sent to and be equipped with kitchen It beats in the server-side of simulation system;
S2, the kitchen, which beat simulation system and receive and store kitchen, beats order information, by odd numbers create-rule to determine whether in the presence of Kitchen, which is beaten, loses list.
2. the method that function is beaten in a kind of cash register test kitchen according to claim 1, which is characterized in that the step S2 is also Including:
The kitchen beats simulation system and is provided with ticket templates, and order information is beaten to verify the kitchen received by the ticket templates It is whether correct.
3. the method that function is beaten in a kind of cash register test according to claim 1 kitchen, which is characterized in that the step S1 it Before further include step:
Order placement information and testing time are pre-set, the order placement information includes order number, lower single time and lower single vegetable;
Automatic order placement information is received, carrying out simulation according to pre-set order placement information places an order.
4. the method that function is beaten in a kind of cash register test according to claim 3 kitchen, which is characterized in that the step S2 it After further include step:
Judge whether to reach testing time, if reaching, terminates to test, otherwise continue to test.
5. the method that function is beaten in a kind of cash register test kitchen according to claim 1, which is characterized in that the step S2 exists By odd numbers create-rule to determine whether it further includes step to be beaten before losing list there are kitchen:
S21, the kitchen beat simulation system and carry out initialization operation, and starting odd numbers is arranged, according to test event title and terminal Unique mark filters out order record from database, and is ranked up to the order record according to order serial number.
6. the method that function is beaten in a kind of cash register test kitchen according to claim 5, which is characterized in that in the step S2 By odd numbers create-rule step is singly specifically included to determine whether beating to lose there are kitchen:
S22, an order serial number desired value identical with starting odd numbers is generated, and takes out first from the order record Order information is beaten in kitchen to be judged, obtains the order serial number actual value that order information is beaten in first kitchen to be judged;
S23, judge whether the order serial number desired value and the order serial number actual value are equal, if equal, execute Step S24 judges whether the order serial number desired value is more than the order serial number actual value if unequal, if greatly In, S25 is thened follow the steps, it is no to then follow the steps S26;
S24, it order information is beaten into the kitchen to be judged is identified as normally, and take out next kitchen to be judged and beat order information, obtain The order serial number actual value that order information is beaten in a kitchen to be judged is removed, while adding 1 in the order serial number desired value, New order serial number desired value is generated, step S23 is executed;
S25, it the kitchen to be judged is beaten to order information is identified as more, and take out next kitchen to be judged and beat order information, obtain The order serial number actual value of order information is beaten in next kitchen to be judged, executes step S23;
Order information is beaten in one S26, addition additional kitchen, and the order serial number desired value is written, the kitchen to be judged is beaten and is ordered Single message identification is that leakage is single, while adding 1 in the order serial number desired value, generates new order serial number desired value, holds Row step S23.
7. the method that function is beaten in a kind of cash register test kitchen according to claim 6, which is characterized in that the step S21 Specially:
The kitchen beats simulation system and carries out initialization operation, and sets the order serial number range relieved every time, the order Serial number range includes starting odd numbers and terminates odd numbers, is screened from database according to test event title and terminal unique mark Go out order record, and the order record is ranked up according to order successively mark and order serial number.
8. the method that function is beaten in a kind of cash register test kitchen according to claim 7, which is characterized in that the step S24 In in the order serial number desired value plus 1 specifically include:
Judge whether the order serial number desired value is to terminate odd numbers, if so, the order serial number desired value is reset To originate odd numbers, 1 is otherwise added in the order serial number desired value.
9. the method that function is beaten in a kind of cash register test kitchen according to claim 8, which is characterized in that the step S25 Specially:
It is beaten behind order information from current kitchen to be judged and temporarily takes out two kitchens to be judged and beat order information, respectively obtain order Serial number actual value is the first actual value, the second actual value, if second actual value is more than first actual value and described First actual value, the second actual value are between the order serial number desired value and the order serial number actual value, then It order information is beaten into the kitchen to be judged is identified as and relieve, the order serial number desired value is reset into starting odd numbers, it is no Order information then is beaten into the kitchen to be judged and is identified as more, and takes out next kitchen to be judged and beats order information, obtain next The order serial number actual value of order information is beaten in kitchen to be judged, executes step S23.
10. the method that function is beaten in a kind of cash register test kitchen according to claim 1, which is characterized in that the step S2 Further include step later:
S3, the kitchen, which beat simulation system, to be sent to the cash register, the test result packet to the test result of order record It includes whether there is and loses list.
11. the system that function is beaten in a kind of cash register test kitchen, including cash register and server-side, the cash register includes the first storage Device, first processor and storage are on the first memory and the first computer program that can be run on first processor, described Server-side include second memory, second processor and be stored on second memory and can be run in second processor Two computer programs, the second computer program include that simulation system is beaten in kitchen, which is characterized in that
The first processor realizes following steps when executing first computer program:
S1, order placement information is obtained, generates kitchen and beat order information, and order information is beaten into the kitchen and is sent in server-side;
The second processor realizes following steps when executing the second computer program:
S2, it receives and stores kitchen and beats order information, list is lost to determine whether being beaten there are kitchen by odd numbers create-rule.
12. the system that function is beaten in a kind of cash register test kitchen according to claim 11, which is characterized in that the step S2 Further include:
Ticket templates are provided with, whether to verify the kitchen received to beat order information correct by the ticket templates.
13. the system that function is beaten in a kind of cash register test kitchen according to claim 11, which is characterized in that at described first Reason device also realizes following steps when executing first computer program before the step S1:
Order placement information and testing time are pre-set, the order placement information includes order number, lower single time and lower single vegetable;
Automatic order placement information is received, carrying out simulation according to pre-set order placement information places an order.
14. the system that function is beaten in a kind of cash register test kitchen according to claim 13, which is characterized in that at described first Reason device also realizes following steps when executing first computer program after the step S2:
Judge whether to reach testing time, if reaching, terminates to test, otherwise continue to test.
15. the system that function is beaten in a kind of cash register test kitchen according to claim 11, which is characterized in that the step S2 By odd numbers create-rule to determine whether beaten there are kitchen lose list before further include step:
S21, initialization operation is carried out, and starting odd numbers is set, according to test event title and terminal unique mark from database In filter out order record, and the order record is ranked up according to order serial number.
16. the system that function is beaten in a kind of cash register test kitchen according to claim 15, which is characterized in that the step S2 In step singly specifically included to determine whether beating to lose there are kitchen by odd numbers create-rule:
S22, an order serial number desired value identical with starting odd numbers is generated, and takes out first from the order record Order information is beaten in kitchen to be judged, obtains the order serial number actual value that order information is beaten in first kitchen to be judged;
S23, judge whether the order serial number desired value and the order serial number actual value are equal, if equal, execute Step S24 judges whether the order serial number desired value is more than the order serial number actual value if unequal, if greatly In, S25 is thened follow the steps, it is no to then follow the steps S26;
S24, it order information is beaten into the kitchen to be judged is identified as normally, and take out next kitchen to be judged and beat order information, obtain The order serial number actual value that order information is beaten in a kitchen to be judged is removed, while adding 1 in the order serial number desired value, New order serial number desired value is generated, step S23 is executed;
S25, it the kitchen to be judged is beaten to order information is identified as more, and take out next kitchen to be judged and beat order information, obtain The order serial number actual value of order information is beaten in next kitchen to be judged, executes step S23;
Order information is beaten in one S26, addition additional kitchen, and the order serial number desired value is written, the kitchen to be judged is beaten and is ordered Single message identification is that leakage is single, while adding 1 in the order serial number desired value, generates new order serial number desired value, holds Row step S23.
17. the system that function is beaten in a kind of cash register test kitchen according to claim 16, which is characterized in that the step S21 is specially:
Initialization operation is carried out, and sets the order serial number range relieved every time, the order serial number range includes Beginning odd numbers and termination odd numbers, filter out order record, and press according to test event title and terminal unique mark from database The order record is ranked up according to order successively mark and order serial number.
18. the system that function is beaten in a kind of cash register test kitchen according to claim 17, which is characterized in that the step 1 is added to specifically include in the order serial number desired value in S24:
Judge whether the order serial number desired value is to terminate odd numbers, if so, the order serial number desired value is reset To originate odd numbers, 1 is otherwise added in the order serial number desired value.
19. the system that function is beaten in a kind of cash register test kitchen according to claim 18, which is characterized in that the step S25 is specially:
It is beaten behind order information from current kitchen to be judged and temporarily takes out two kitchens to be judged and beat order information, respectively obtain order Serial number actual value is the first actual value, the second actual value, if second actual value is more than first actual value and described First actual value, the second actual value are between the order serial number desired value and the order serial number actual value, then It order information is beaten into the kitchen to be judged is identified as and relieve, the order serial number desired value is reset into starting odd numbers, it is no Order information then is beaten into the kitchen to be judged and is identified as more, and takes out next kitchen to be judged and beats order information, obtain next The order serial number actual value of order information is beaten in kitchen to be judged, executes step S23.
20. the system that function is beaten in a kind of cash register test kitchen according to claim 19, which is characterized in that at described second Reason device also realizes following steps when executing the second computer program after the step S2:
S3, the cash register will be sent to the test result of order record, the test result, which includes whether to exist, loses list.
CN201880000586.8A 2018-06-01 2018-06-01 Method and system for testing kitchen printing function of cash register Active CN108701390B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/089526 WO2019227463A1 (en) 2018-06-01 2018-06-01 Method and system for cash register to test kitchen printing function

Publications (2)

Publication Number Publication Date
CN108701390A true CN108701390A (en) 2018-10-23
CN108701390B CN108701390B (en) 2021-06-25

Family

ID=63841498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880000586.8A Active CN108701390B (en) 2018-06-01 2018-06-01 Method and system for testing kitchen printing function of cash register

Country Status (2)

Country Link
CN (1) CN108701390B (en)
WO (1) WO2019227463A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109685626A (en) * 2018-12-27 2019-04-26 北京顺丰同城科技有限公司 A kind of lower single test method and device

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7451913B2 (en) * 2004-05-25 2008-11-18 International Business Machines Corporation Apparatus, system, and method for point of sale currency verification
KR20140038068A (en) * 2012-09-20 2014-03-28 정운황 System and method for using and managing business establishments
CN103955746A (en) * 2014-04-03 2014-07-30 上海邦助信息技术有限公司 System and method based on restaurant orders and customer management
US9092262B2 (en) * 2003-06-27 2015-07-28 I-Rescue Technologies Llc Method and apparatus integrating navigation and saving the writable state of applications
CN104836701A (en) * 2015-05-04 2015-08-12 北京京东尚科信息技术有限公司 Order monitoring method and monitoring apparatus
CN105930920A (en) * 2016-04-11 2016-09-07 深圳市联文智能技术有限公司 Logistics distribution management method and logistics distribution management apparatus
JP2016184290A (en) * 2015-03-26 2016-10-20 Necプラットフォームズ株式会社 POS system, information processing method, and program
CN106372797A (en) * 2016-08-31 2017-02-01 徐东 Intelligent kitchen order adjustment management method and system
CN107248120A (en) * 2017-08-11 2017-10-13 无锡北斗星通信息科技有限公司 Dining room is for dish control platform
CN107563877A (en) * 2017-09-27 2018-01-09 掌合天下(北京)信息技术有限公司 Order management method and system
CN107977878A (en) * 2017-10-24 2018-05-01 深圳市海矽电子技术有限公司 What dining table used order media and entertainment server multifunctional intelligent terminal
CN107993163A (en) * 2017-12-01 2018-05-04 广州蓝豹智能科技有限公司 A kind of meal ordering system
CN108009908A (en) * 2017-10-24 2018-05-08 广东康美通信息服务有限公司 A kind of intelligent financial system and intelligent financial process method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140107933A (en) * 2013-02-28 2014-09-05 최학중 Order system using smart menu board
CN105550883A (en) * 2015-12-23 2016-05-04 趣点在线科技(北京)有限公司 Verification system and method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9092262B2 (en) * 2003-06-27 2015-07-28 I-Rescue Technologies Llc Method and apparatus integrating navigation and saving the writable state of applications
US7451913B2 (en) * 2004-05-25 2008-11-18 International Business Machines Corporation Apparatus, system, and method for point of sale currency verification
KR20140038068A (en) * 2012-09-20 2014-03-28 정운황 System and method for using and managing business establishments
CN103955746A (en) * 2014-04-03 2014-07-30 上海邦助信息技术有限公司 System and method based on restaurant orders and customer management
JP2016184290A (en) * 2015-03-26 2016-10-20 Necプラットフォームズ株式会社 POS system, information processing method, and program
CN104836701A (en) * 2015-05-04 2015-08-12 北京京东尚科信息技术有限公司 Order monitoring method and monitoring apparatus
CN105930920A (en) * 2016-04-11 2016-09-07 深圳市联文智能技术有限公司 Logistics distribution management method and logistics distribution management apparatus
CN106372797A (en) * 2016-08-31 2017-02-01 徐东 Intelligent kitchen order adjustment management method and system
CN107248120A (en) * 2017-08-11 2017-10-13 无锡北斗星通信息科技有限公司 Dining room is for dish control platform
CN107563877A (en) * 2017-09-27 2018-01-09 掌合天下(北京)信息技术有限公司 Order management method and system
CN107977878A (en) * 2017-10-24 2018-05-01 深圳市海矽电子技术有限公司 What dining table used order media and entertainment server multifunctional intelligent terminal
CN108009908A (en) * 2017-10-24 2018-05-08 广东康美通信息服务有限公司 A kind of intelligent financial system and intelligent financial process method
CN107993163A (en) * 2017-12-01 2018-05-04 广州蓝豹智能科技有限公司 A kind of meal ordering system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109685626A (en) * 2018-12-27 2019-04-26 北京顺丰同城科技有限公司 A kind of lower single test method and device

Also Published As

Publication number Publication date
CN108701390B (en) 2021-06-25
WO2019227463A1 (en) 2019-12-05

Similar Documents

Publication Publication Date Title
CN107478455B (en) Timing truncation reliability test method suitable for Weibull distribution type product
CN110362473B (en) Test environment optimization method and device, storage medium and terminal
CN107870948A (en) Method for scheduling task and device
CN103678124B (en) Video surveillance platform auto-test method and device based on continuous integrated environment
CN112737886B (en) Tool testing method and system, electronic equipment and storage medium
CN109802864A (en) Chip design and verification method, device and chip tester
CN109345200A (en) Automatic auditing method and device, computer readable storage medium based on high-volume report
CN110244256A (en) A kind of intelligent electric energy meter fault recognition method, device and equipment
CN106776165A (en) Server performance method of testing and system
TW200537111A (en) Method and apparatus for automated debug and optimization of in-circuit tests
CN110287113A (en) Automation interface test method
CN110489317A (en) Cloud system task run method for diagnosing faults and system based on workflow
CN102999417A (en) Automatic test management system and method
JP2021022759A (en) Network analysis program, network analysis apparatus, and network analysis method
CN109903136A (en) Data processing method and device applied to equipment leasing
CN108701390A (en) The method and system of function are beaten in a kind of cash register test kitchen
CN111367782B (en) Regression testing data automatic generation method and device
CN110287118B (en) Test data generation method and software test method of test case
JP2014035595A (en) Testing device for communication system, testing program for communication system, and testing method for communication system
CN112328420A (en) Method, device and system for detecting equipment fault
CN106325227B (en) The generation method and device and processing procedure managing and control system of processing procedure control line
CN112328335A (en) Method, device, equipment and storage medium for diagnosing timeout of concurrent requests
CN114666774B (en) Identification matching system and method of Bluetooth equipment
CN106445812A (en) Regression test system and regression test method
JP2012018628A (en) Distributed control system test execution management device

Legal Events

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