Method and system for testing departure equipment, electronic equipment and storage medium

Through virtual serial port and status code scene simulation algorithm, functional testing of outbound equipment is realized, solving the problem of requiring a large number of expensive physical peripherals during the version upgrade process, and reducing the testing cost.

CN119690847APending Publication Date: 2025-03-25TRAVELSKY TECHNOLOGY LIMITED
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411917945.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

During the process of upgrading the front-end product version of the departure port, a large number of expensive physical peripherals need to be purchased, resulting in high testing costs.

Method used

Through the virtual serial port monitoring function test instructions, the instructions are analyzed using preset instruction analysis rules, and the target status code scene simulation algorithm is determined based on the analysis results, and the test process of the real device is simulated to obtain the test results.

Benefits of technology

The testing of a variety of different departure equipment has been achieved, avoiding the need to purchase physical peripherals and significantly reducing the testing cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690847A_ABST
    Figure CN119690847A_ABST
Patent Text Reader

Abstract

The invention discloses a departure equipment testing method and system, electronic equipment and a storage medium. The departure equipment test method comprises the following steps: monitoring a function test instruction through a virtual serial port; in response to the monitored function test instruction, analyzing the function test instruction by using a preset instruction analysis rule to obtain an analysis result; according to the analysis result, determining a target state code scene simulation algorithm from a plurality of preset state code scene algorithms; and processing the analysis result by using a target state code simulation algorithm, and determining a test result which comprises a state code scene. The technical problems that in the version upgrading process of the departure front-end product, a large number of expensive physical peripherals are generally needed to be purchased, and the testing cost is high are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of equipment testing, and in particular to a departure equipment testing method, system, electronic equipment and storage medium. Background Art

[0002] In the airport LAN, there are many external devices, such as boarding pass printers (ATB), baggage tag printers (BTP), manifest printers (DCP), gate scanners (BGR), passport scanners (OCR) and other peripherals. These departure peripherals have a unified AEA standard. The International Air Transport Association (IATA) also defined the Common-Use Terminal Equipment (CUTE) specification based on the AEA standard, but because the technical details were not formulated, at least several manufacturers developed their own CUTE platforms. Airports use these platforms to provide equipment control interfaces for airline departure front-end applications to meet the needs of various airlines at the airport for using counter peripherals.

[0003] During the version upgrade of the outbound front-end product, the real peripherals of each platform must be connected for development and testing, and a single device cannot be shared by multiple people or multiple locations. Therefore, it is usually necessary to purchase a large number of expensive physical peripherals mentioned above, which leads to high testing costs.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide a method, system, electronic device and storage medium for testing departure equipment, so as to at least solve the technical problem that a large number of expensive physical peripherals mentioned above usually need to be purchased during the departure front-end product version upgrade process, resulting in high testing costs.

[0006] According to one aspect of an embodiment of the present invention, a method for testing departure equipment is provided, comprising: monitoring a function test instruction through a virtual serial port; in response to monitoring the function test instruction, parsing the function test instruction using a preset instruction parsing rule to obtain a parsing result; according to the parsing result, determining a target status code scenario simulation algorithm from a plurality of preset status code scenario algorithms; processing the parsing result using the target status code simulation algorithm to determine a test result, wherein the test result includes a status code scenario.

[0007] Optionally, a virtual serial port is created by a preset virtual serial port driver.

[0008] Optionally, based on the parsing results, a target status code scenario simulation algorithm is determined from multiple preset status code scenario algorithms, including: based on the parsing results, determining the departure device type corresponding to the functional test instruction, wherein the device type includes a printing type and a scanning type; based on the departure device type, determining the target status code scenario simulation algorithm from multiple preset status code scenario algorithms.

[0009] Optionally, before using the target status code simulation algorithm to process the parsing results and determine the test results, it includes: setting the departure equipment operating parameters and the departure equipment operating status according to the parsing results, wherein the departure equipment operating parameters include the number of sheets of paper, the printing time of a single sheet, and the buzzer parameters; the departure equipment operating status includes: power off, offline, online, paper jam, and paper out.

[0010] Optionally, the target status code simulation algorithm is used to process the parsing results to determine the test results, including: using the target status code simulation algorithm to judge the equipment operating status and obtain a judgment result; in response to the judgment result indicating that the equipment operating status meets the preset operating conditions, matching the data items in the parsing results with the data items in the equipment model to obtain a matching result, wherein the equipment model is included in the departure equipment operating parameters; and determining the status code scenario based on the matching result.

[0011] Optionally, the departure equipment testing method further includes: determining prompt information according to a status code scenario, wherein the prompt information is used to characterize an instruction processing result corresponding to the status code scenario; and outputting the prompt information using a preset display module.

[0012] According to another aspect of an embodiment of the present invention, a departure equipment testing system is also provided, including: a monitoring module, used to monitor function test instructions through a virtual serial port; a parsing module, used to respond to the function test instructions monitored, and parse the function test instructions using preset instruction parsing rules to obtain parsing results; a determination module, used to determine a target status code scenario simulation algorithm from multiple preset status code scenario algorithms based on the parsing results; a processing module, used to process the parsing results using the target status code simulation algorithm to determine the test results, wherein the test results include status code scenarios.

[0013] Optionally, the virtual serial port in the monitoring module is created by a preset virtual serial port driver.

[0014] Optionally, the determination module is also used to: determine the departure device type corresponding to the functional test instruction based on the analysis results, wherein the device type includes a printing type and a scanning type; and determine the target status code scenario simulation algorithm from multiple preset status code scenario algorithms based on the departure device type.

[0015] Optionally, the parsing module is also used to: set the departure equipment operating parameters and the departure equipment operating status according to the parsing results, wherein the departure equipment operating parameters include the number of sheets of paper, the printing time of a single sheet, and the buzzer parameters; the departure equipment operating status includes: power off, offline, online, paper jam, and paper out.

[0016] Optionally, the processing module is also used to: use the target status code simulation algorithm to judge the equipment operating status and obtain a judgment result; in response to the judgment result indicating that the equipment operating status meets the preset operating conditions, match the data items in the parsing results with the data items in the equipment model to obtain a matching result, wherein the equipment model is included in the departure equipment operating parameters; and determine the status code scenario based on the matching result.

[0017] Optionally, the departure equipment testing system also includes an output module, which is used to: determine prompt information according to the status code scenario, wherein the prompt information is used to characterize the instruction processing result corresponding to the status code scenario; and output the prompt information using a preset display module.

[0018] According to another aspect of an embodiment of the present invention, an electronic device is also provided, including: a memory for storing program instructions; a processor, connected to the memory, for executing the following program instructions: monitoring function test instructions through a virtual serial port; in response to monitoring the function test instructions, parsing the function test instructions using preset instruction parsing rules to obtain parsing results; determining a target status code scenario simulation algorithm from multiple preset status code scenario algorithms based on the parsing results; and processing the parsing results using the target status code simulation algorithm to determine a test result, wherein the test result includes a status code scenario.

[0019] According to another aspect of an embodiment of the present invention, a non-volatile storage medium is further provided, the non-volatile storage medium including a stored computer program, wherein the device where the non-volatile storage medium is located executes any of the above departure equipment testing methods by running the computer program.

[0020] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the computer program implements any of the above departure equipment testing methods.

[0021] In an embodiment of the present invention, a function test instruction is monitored through a virtual serial port; in response to monitoring the function test instruction, the function test instruction is parsed using a preset instruction parsing rule to obtain a parsing result; according to the parsing result, a target status code scenario simulation algorithm is determined from a plurality of preset status code scenario algorithms; the parsing result is processed using the target status code simulation algorithm to determine the test result, wherein the test result includes the status code scenario. The present invention monitors the function test instruction through a virtual serial port, and processes the parsing result corresponding to the function test instruction using a target status code scenario simulation algorithm, and can simulate the process of a real departure device in processing the function test instruction to obtain a test result, that is, there is no need to purchase departure equipment, and the virtual serial port and the target status code scenario simulation algorithm in the method can be used to implement the testing of a variety of different departure equipment, thereby solving the technical problem that a large number of expensive physical peripherals mentioned above are usually required to be purchased during the version upgrade of the departure front-end product, and the testing cost is high. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0023] Figure 1 is a flow chart of a method for testing departure equipment according to one embodiment of the present invention;

[0024] Figure 2 is a schematic diagram of the principle of a departure equipment testing system according to one embodiment of the present invention;

[0025] Figure 3 is a structural block diagram of a departure equipment testing system according to one embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] According to an embodiment of the present invention, an embodiment of a departure equipment testing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0029] The method embodiment can also be executed in an electronic device including a memory and a processor, a similar control device or a cloud. Taking an electronic device as an example, the electronic device may include one or more processors and a memory for storing data. Optionally, the electronic device may also include a communication device and a display device for communication functions. It can be understood by those of ordinary skill in the art that the above structural description is only illustrative and does not limit the structure of the above electronic device. For example, the electronic device may also include more or fewer components than the above structural description, or have a configuration different from the above structural description.

[0030] The processor may include one or more processing units. For example, the processor may include a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microcontroller unit (MCU), a field-programmable gate array (FPGA), a neural network processor (NPU), a tensor processing unit (TPU), an artificial intelligence (AI) type processor, and the like. Among them, different processing units may be independent components or integrated into one or more processors. In some instances, the electronic device may also include one or more processors.

[0031] The memory can be used to store computer programs, for example, to store the computer program corresponding to the departure equipment testing method in the embodiment of the present invention. The processor implements the above-mentioned departure equipment testing method by running the computer program stored in the memory. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0032] The communication device is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the communication device includes a network adapter (network interface controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the communication device can be a radio frequency (radio frequency, RF) module, which is used to communicate with the Internet wirelessly. In some embodiments of the present solution, the communication device is used to connect to mobile devices such as mobile phones and tablets, and instructions can be sent to electronic devices through the mobile device.

[0033] The display device may be a touch screen type liquid crystal display (LCD) and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of the electronic device. In some embodiments, the electronic device has a graphical user interface (GUI), and a user may interact with the GUI by touching a finger release and / or gestures on a touch-sensitive surface, and executable instructions for executing the above-mentioned human-computer interaction functions are configured / stored in a computer program product or a readable storage medium executable by one or more processors.

[0034] The following terms are explained as follows:

[0035] Departure front end: A client system that provides departure services such as passenger check-in and boarding to airline airport counter staff.

[0036] IATA standard: International Air Transport Association, International Air Transport Association standard.

[0037] AEA standard: Association of European Airlines, departure equipment standard set by the European Airlines Association.

[0038] CUTE: Common-Use Terminal Equipment, a departure equipment platform standard developed by IATA.

[0039] ATB: Departure boarding pass printer.

[0040] BTP: Departure Baggage Tag Printer.

[0041] DCP: Departure manifest printer.

[0042] BGR: Departure boarding pass scanner.

[0043] OCR: Outbound passport reader.

[0044] MSR: Departure Frequent Traveler Card Reader.

[0045] LSR: Departure QR code scanner.

[0046] It should be noted that common outbound printing and scanning devices, including outbound peripherals such as ATB, BTP, DCP, BGR, OCR, MSR, LSR, etc. AEA standard devices can directly use this solution to implement device simulation testing.

[0047] The equipment used in the departure front end can be divided into two types. One is the printer for printing items such as boarding passes, baggage tags or manifests, and the other is the scanning equipment used to swipe documents, scan boarding passes or frequent flyer cards. Both the printing equipment and the scanning equipment are AEA standard equipment and support the AEA instruction set.

[0048] When the departure front end receives passengers to print boarding passes, it will send the boarding pass data to the platform through the AEA card-printing instruction, and the platform will forward it to the departure device for boarding pass printing. The same is true for other printers. The scanning device notifies the platform by the device. When the device scans the boarding pass data, it will send the scanning data instruction to the platform, and the platform will forward it to the front end for boarding operations.

[0049] Figure 1 is a flow chart of a method for testing departure equipment according to one embodiment of the present invention. Figure 1 As shown, the method may include the following steps:

[0050] Step S101, testing instructions through the virtual serial port monitoring function.

[0051] Specifically, the virtual serial port is connected to a control platform that controls the departure equipment, and can monitor the function test instructions issued by the control platform.

[0052] It should be noted that the virtual serial port is used to simulate the communication function of the control platform in the departure equipment.

[0053] Step S102, in response to monitoring the function test instruction, using the preset instruction parsing rule to parse the function test instruction to obtain a parsing result.

[0054] Exemplarily, if the instruction set of the departure equipment to be tested is the AEA standard, the preset instruction parsing rule is the parsing rule corresponding to the AEA instruction.

[0055] Step S103: Determine a target status code scenario simulation algorithm from a plurality of preset status code scenario algorithms according to the analysis result.

[0056] It should be noted that the execution of different functional test instructions corresponds to different departure devices, and different departure devices correspond to their own preset status code scenario algorithms. Therefore, after obtaining the parsing result, it is necessary to determine the execution device required by the content of the instruction in the parsing result, and determine the target status code scenario simulation algorithm according to the execution device.

[0057] Step S104, using the target status code simulation algorithm, processing the parsing result to determine the test result, wherein the test result includes the status code scenario.

[0058] Specifically, the target status code simulation algorithm can simulate the execution process of the departure equipment for the functional test instruction, and the output execution result is the test result.

[0059] In an embodiment of the present invention, a function test instruction is monitored through a virtual serial port; in response to monitoring the function test instruction, the function test instruction is parsed using a preset instruction parsing rule to obtain a parsing result; according to the parsing result, a target status code scenario simulation algorithm is determined from a plurality of preset status code scenario algorithms; the parsing result is processed using the target status code simulation algorithm to determine the test result, wherein the test result includes the status code scenario. The present invention monitors the function test instruction through a virtual serial port, and processes the parsing result corresponding to the function test instruction using a target status code scenario simulation algorithm, and can simulate the process of a real departure device in processing the function test instruction to obtain a test result, that is, there is no need to purchase departure equipment, and the virtual serial port and the target status code scenario simulation algorithm in the method can be used to implement the testing of a variety of different departure equipment, thereby solving the technical problem that a large number of expensive physical peripherals mentioned above are usually required to be purchased during the version upgrade of the departure front-end product, and the testing cost is high.

[0060] Optionally, a virtual serial port is created by a preset virtual serial port driver.

[0061] Specifically, the preset virtual serial port driver is Virtual Serial Port Driver.

[0062] Optionally, based on the parsing results, a target status code scenario simulation algorithm is determined from multiple preset status code scenario algorithms, including: based on the parsing results, determining the departure device type corresponding to the functional test instruction, wherein the device type includes a printing type and a scanning type; based on the departure device type, determining the target status code scenario simulation algorithm from multiple preset status code scenario algorithms.

[0063] Optionally, before using the target status code simulation algorithm to process the parsing results and determine the test results, it includes: setting the departure equipment operating parameters and the departure equipment operating status according to the parsing results, wherein the departure equipment operating parameters include the number of sheets of paper, the printing time of a single sheet, and the buzzer parameters; the departure equipment operating status includes: power off, offline, online, paper jam, and paper out.

[0064] Optionally, the target status code simulation algorithm is used to process the parsing results to determine the test results, including: using the target status code simulation algorithm to judge the equipment operating status and obtain a judgment result; in response to the judgment result indicating that the equipment operating status meets the preset operating conditions, matching the data items in the parsing results with the data items in the equipment model to obtain a matching result, wherein the equipment model is included in the departure equipment operating parameters; and determining the status code scenario based on the matching result.

[0065] Optionally, the departure equipment testing method further includes: determining prompt information according to a status code scenario, wherein the prompt information is used to characterize an instruction processing result corresponding to the status code scenario; and outputting the prompt information using a preset display module.

[0066] Specifically, based on the description of the above method embodiment, as Figure 2 As shown, the method provides a departure equipment testing system, which executes the above departure equipment testing method, specifically as follows:

[0067] The system includes: Departure simulation equipment connection module: Under normal circumstances, AEA standard equipment connects and communicates with the platform through RS232 (serial port) or IEEE-1284 (parallel port). When simulating departure equipment, the same channel needs to be built for direct communication with the platform. After investigation, the virtual serial port tool can be used as a channel component to realize the connection between the simulation equipment and the platform.

[0068] Departure equipment instruction test processing module: According to the AEA standard document, the equipment instruction return result has the following status codes, corresponding to different equipment scenarios, including many abnormal scenarios, as shown in Table 1:

[0069] Table 1

[0070]

[0071]

[0072]

[0073]

[0074] In order to simulate and test the device scenarios of these status codes, especially abnormal scenarios, according to the AEA standard instruction format definition and the corresponding status code scenario description, the AEA status code scenario simulation algorithm model based on trigger conditions such as device parameter preset and device status setting is deduced, and the AEA instruction corresponding status code scenario algorithm and execution action matching table are established for each device. The instruction processing logic is defined in terms of device instruction parsing, format verification, device status, device parameters, status code scenario trigger conditions, action response, and result return, and the logical test model of AEA device status code and functional scenarios is established. After receiving the AEA instruction, the instruction processing is executed through the logical test model.

[0075] Departure equipment scene interaction module: Provides status code scene precondition preset, simulation operation and test display interface for each device, and establishes the physical test model of AEA equipment. Including parameter table setting, status control, paper setting, printing or scanning real-time animation, status light, screen display, prompt sound, scanning operation and other simulation parts. The web page simulation display is performed for the physical action of the device corresponding to the device instructions such as printing. The scene simulation is performed for the scanning device's card scanning and other operations, and the corresponding scanning data instructions are triggered. The main functions are as follows: The device can be operated to set the status of power off, offline, online, paper jam, paper shortage, etc. The device parameters can be preset, such as the number of sheets, the single printing time, and the parameter table can be cleared. The print response processing can be processed, such as the printing results of baggage tags and boarding passes. Scanning operations can be performed, such as scanning passports and boarding passes. The device screen display can be set, such as the boarding gate reader displays the passenger boarding results. The buzzer can be set, such as the device prompt sound when printing is successful or failed.

[0076] The method execution process is as follows:

[0077] Step 1: Install the virtual serial port driver, create a virtual serial port, and configure the platform to connect to the virtual serial port to achieve forwarding and sharing of serial port data.

[0078] Step 2: The virtual serial port and device connection module realize data intercommunication and connection management through the serial port monitoring program. The virtual serial port monitoring program captures the device instructions written by the platform to the device and forwards them to the departure device instruction processing module.

[0079] Step 3: Simulate the command status code triggering conditions by presetting status code scenario preconditions such as device parameters and device status.

[0080] Step 4: Parse and format check the received AEA instructions, extract data, and match the execution action and instruction status code scenario simulation algorithm.

[0081] Step 5: Run the instruction status code scenario simulation algorithm according to the instruction data, device status and device parameters to match the status code scenario.

[0082] Step 6: Generate the instruction processing result according to the AEA standard return result format corresponding to the status code scenario and send the device test interface execution signal.

[0083] Step 7: The device test interface receives the execution signal and performs page synchronous response to display the execution action, such as printing boarding pass animation, updating device screen display, status light, prompt sound, boarding pass list display, etc.

[0084] Step 8: Return the instruction processing result to the platform.

[0085] Exemplarily, since the professional departure equipment is divided into two categories: printing (ATB, BTP, DCP) and scanning (BGR, LSR, OCR, MSR), the steps of this technical solution are also divided into two methods to realize the testing of printing equipment and scanning equipment.

[0086] The details are as follows:

[0087] Steps for implementing the printing device test using the above method embodiment (taking ATB printing boarding pass as an example):

[0088] Step 1: Install the virtual serial port driver Virtual Serial Port Driver, create virtual serial port COM5, realize serial port data forwarding and sharing, and configure the platform to connect to virtual serial port COM5.

[0089] Step 2: Create a serial port monitoring program to realize data communication between the virtual serial port and the connection module and the connection management of ATB. The virtual serial port monitoring program captures the AEA instructions written by the platform to the ATB device through the monitoring function and forwards it to the departure device instruction processing module.

[0090] Step 3: On the departure equipment scenario interaction module interface, set the ATB paper number to 1, the single-sheet printing time to 2 seconds, set the device status to online, set the data item position parameter table, and simulate the ERR3 abnormal status code condition.

[0091] Step 4: According to the AEA instruction format verification and analysis, it is determined that the boarding pass printing instruction is executed and the boarding pass data items are extracted.

[0092] Step 5: According to the status code scenario simulation algorithm of the ATB device playing card instruction: determine the device status. If the ATB status is online and there is no paper shortage or paper jam, continue to compare the boarding pass data items with the data item position parameter table (PECTAB), print template (TEMP), and print LOGO in the ATB device model to see if they match. If the #05 item is missing in the preset PECTAB, it cannot match the boarding pass #05 data item "#05PSRTEST", which meets the ERR3 status code scenario "Incorrect data field".

[0093] Step 6: Generate the card-playing instruction processing result "ERR3#05" according to the AEA standard status code return result format "ERR3+incorrect field" and send the ERR3 execution signal to the ATB test interface (preset display module).

[0094] Step 7: The ATB test interface listens to the ERR3 execution signal through websocket, and responds synchronously to the page to display "ERR3" on the boarding pass printer screen and an error prompt tone.

[0095] Step 8: Return the print command exception result "ERR3#05" to the platform through the preset function of the virtual serial port monitoring program.

[0096] The steps of implementing the scanning device test using the above method embodiment (taking BGR scanning boarding pass as an example):

[0097] Step 1: Install the Virtual Serial Port Driver, create a virtual serial port COM6, and implement serial port data forwarding and sharing. The platform configuration connects to the virtual serial port COM6.

[0098] Step 2: Create a serial port listening program to realize data communication between the virtual serial port and the connection module and connection management of BGR.

[0099] Step 3: On the departure equipment scenario interaction module interface, set the ATB paper number to 1, the single-sheet printing time to 2 seconds, set the device status to online, set the data item position parameter table, and simulate the BCRI status code condition.

[0100] Step 4: Select a boarding pass from the boarding pass printing list on the BGR test interface, click the scan operation button to send an execution signal, display the boarding pass scanning animation and prompt sound, and send the corresponding boarding pass QR code data to the departure device instruction processing module through an HTTP request.

[0101] Step 5: Verify the QR code data format and parse it to determine whether it is a boarding pass scanning instruction.

[0102] Step 6: According to the status code scenario simulation algorithm of the BGR device playing card instructions: determine the device status. If the BGR status is online, continue to determine whether the data item position parameter table (PECTAB) is missing. If there is PECTAB, it meets the BCRI status code scenario "Barcode data read (boarding)".

[0103] Step 7: Generate boarding pass scanning results in the format of "BCRI+data" according to the AEA standard status code return result.

[0104] Step 8: Send the boarding pass scanning result to the platform through the preset function of the virtual serial port monitoring program.

[0105] It can be understood that, through the description of the above embodiments, the method for testing outbound equipment provided by the present invention solves the problem of strong dependence on and inability to share outbound real equipment during the outbound front-end development and testing process, supports component reuse and peripheral environment reuse, and greatly reduces the cost of setting up the outbound front-end equipment testing environment.

[0106] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0107] In the embodiment of the present invention, a departure equipment testing system is also provided, which is used to implement the above-mentioned embodiment and preferred implementation mode, and the descriptions that have been made are not repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiment is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0108] Figure 3 is a structural block diagram of a departure equipment testing system 200 according to one embodiment of the present invention. Figure 3 As shown, the system includes: a monitoring module 201, which is used to monitor function test instructions through a virtual serial port; a parsing module 202, which is used to respond to the function test instructions and parse the function test instructions using preset instruction parsing rules to obtain parsing results; a determination module 203, which is used to determine a target status code scenario simulation algorithm from multiple preset status code scenario algorithms based on the parsing results; a processing module 204, which is used to process the parsing results using the target status code simulation algorithm to determine the test results, wherein the test results include status code scenarios.

[0109] Optionally, the virtual serial port in the monitoring module 201 is created by a preset virtual serial port driver.

[0110] Optionally, the determination module 203 is also used to: determine the departure device type corresponding to the functional test instruction based on the analysis result, wherein the device type includes a printing type and a scanning type; and determine the target status code scenario simulation algorithm from multiple preset status code scenario algorithms based on the departure device type.

[0111] Optionally, the analysis module 202 is also used to: set the departure equipment operating parameters and the departure equipment operating status according to the analysis results, wherein the departure equipment operating parameters include the number of sheets of paper, the printing time of a single sheet, and the buzzer parameters; the departure equipment operating status includes: power off, offline, online, paper jam, and paper out.

[0112] Optionally, the processing module 204 is also used to: use the target status code simulation algorithm to judge the equipment operating status and obtain a judgment result; in response to the judgment result indicating that the equipment operating status meets the preset operating conditions, match the data items in the parsing result with the data items in the equipment model to obtain a matching result, wherein the equipment model is included in the departure equipment operating parameters; and determine the status code scenario based on the matching result.

[0113] Optionally, the departure equipment testing system also includes an output module, which is connected to the processing module 204, not shown in the figure, and is used to: determine prompt information according to the status code scenario, wherein the prompt information is used to characterize the instruction processing result corresponding to the status code scenario; and output the prompt information using a preset display module.

[0114] An embodiment of the present invention further provides an electronic device, comprising: a memory for storing program instructions; and a processor connected to the memory for executing the program instructions for the following functions:

[0115] Step S101, testing instructions through the virtual serial port monitoring function.

[0116] Step S102, in response to monitoring the function test instruction, using the preset instruction parsing rule to parse the function test instruction to obtain a parsing result.

[0117] Step S103: Determine a target status code scenario simulation algorithm from a plurality of preset status code scenario algorithms according to the analysis result.

[0118] Step S104, using the target status code simulation algorithm, processing the parsing result to determine the test result, wherein the test result includes the status code scenario.

[0119] Optionally, a virtual serial port is created by a preset virtual serial port driver.

[0120] Optionally, based on the parsing results, a target status code scenario simulation algorithm is determined from multiple preset status code scenario algorithms, including: based on the parsing results, determining the departure device type corresponding to the functional test instruction, wherein the device type includes a printing type and a scanning type; based on the departure device type, determining the target status code scenario simulation algorithm from multiple preset status code scenario algorithms.

[0121] Optionally, before using the target status code simulation algorithm to process the parsing results and determine the test results, it includes: setting the departure equipment operating parameters and the departure equipment operating status according to the parsing results, wherein the departure equipment operating parameters include the number of sheets of paper, the printing time of a single sheet, and the buzzer parameters; the departure equipment operating status includes: power off, offline, online, paper jam, and paper out.

[0122] Optionally, the parsing results are processed using a target status code simulation algorithm to determine the test results, including: using the target status code simulation algorithm to judge the operating status of the device and obtain a judgment result; in response to the judgment result indicating that the operating status of the device meets preset operating conditions, matching the data items in the parsing results with the data items in the device model to obtain a matching result, wherein the device model is included in the target status code simulation algorithm; and determining the status code scenario based on the matching result.

[0123] Optionally, the departure equipment testing method further includes: determining prompt information according to a status code scenario, wherein the prompt information is used to characterize an instruction processing result corresponding to the status code scenario; and outputting the prompt information using a preset display module.

[0124] An embodiment of the present invention further provides a non-volatile storage medium, the non-volatile storage medium includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the departure equipment testing method described in any of the above embodiments by running the computer program.

[0125] Optionally, in this embodiment, the above-mentioned computer program may be configured to store a computer program for performing the following steps:

[0126] Step S101, testing instructions through the virtual serial port monitoring function.

[0127] Step S102, in response to monitoring the function test instruction, using the preset instruction parsing rule to parse the function test instruction to obtain a parsing result.

[0128] Step S103: Determine a target status code scenario simulation algorithm from a plurality of preset status code scenario algorithms according to the analysis result.

[0129] Step S104, using the target status code simulation algorithm, processing the parsing result to determine the test result, wherein the test result includes the status code scenario.

[0130] Optionally, a virtual serial port is created by a preset virtual serial port driver.

[0131] Optionally, based on the parsing results, a target status code scenario simulation algorithm is determined from multiple preset status code scenario algorithms, including: based on the parsing results, determining the departure device type corresponding to the functional test instruction, wherein the device type includes a printing type and a scanning type; based on the departure device type, determining the target status code scenario simulation algorithm from multiple preset status code scenario algorithms.

[0132] Optionally, before using the target status code simulation algorithm to process the parsing results and determine the test results, it includes: setting the departure equipment operating parameters and the departure equipment operating status according to the parsing results, wherein the departure equipment operating parameters include the number of sheets of paper, the printing time of a single sheet, and the buzzer parameters; the departure equipment operating status includes: power off, offline, online, paper jam, and paper out.

[0133] Optionally, the parsing results are processed using a target status code simulation algorithm to determine the test results, including: using the target status code simulation algorithm to judge the operating status of the device and obtain a judgment result; in response to the judgment result indicating that the operating status of the device meets preset operating conditions, matching the data items in the parsing results with the data items in the device model to obtain a matching result, wherein the device model is included in the target status code simulation algorithm; and determining the status code scenario based on the matching result.

[0134] Optionally, the departure equipment testing method further includes: determining prompt information according to a status code scenario, wherein the prompt information is used to characterize an instruction processing result corresponding to the status code scenario; and outputting the prompt information using a preset display module.

[0135] An embodiment of the present invention further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the departure equipment testing method described in any of the above embodiments is implemented.

[0136] Optionally, in this embodiment, the above computer program implements the following steps when executed by a processor:

[0137] Step S101, testing instructions through the virtual serial port monitoring function.

[0138] Step S102, in response to monitoring the function test instruction, using the preset instruction parsing rule to parse the function test instruction to obtain a parsing result.

[0139] Step S103: Determine a target status code scenario simulation algorithm from a plurality of preset status code scenario algorithms according to the analysis result.

[0140] Step S104, using the target status code simulation algorithm, processing the parsing result to determine the test result, wherein the test result includes the status code scenario.

[0141] Optionally, a virtual serial port is created by a preset virtual serial port driver.

[0142] Optionally, based on the parsing results, a target status code scenario simulation algorithm is determined from multiple preset status code scenario algorithms, including: based on the parsing results, determining the departure device type corresponding to the functional test instruction, wherein the device type includes a printing type and a scanning type; based on the departure device type, determining the target status code scenario simulation algorithm from multiple preset status code scenario algorithms.

[0143] Optionally, before using the target status code simulation algorithm to process the parsing results and determine the test results, it includes: setting the departure equipment operating parameters and the departure equipment operating status according to the parsing results, wherein the departure equipment operating parameters include the number of sheets of paper, the printing time of a single sheet, and the buzzer parameters; the departure equipment operating status includes: power off, offline, online, paper jam, and paper out.

[0144] Optionally, the parsing results are processed using a target status code simulation algorithm to determine the test results, including: using the target status code simulation algorithm to judge the operating status of the device and obtain a judgment result; in response to the judgment result indicating that the operating status of the device meets preset operating conditions, matching the data items in the parsing results with the data items in the device model to obtain a matching result, wherein the device model is included in the target status code simulation algorithm; and determining the status code scenario based on the matching result.

[0145] Optionally, the departure equipment testing method further includes: determining prompt information according to a status code scenario, wherein the prompt information is used to characterize an instruction processing result corresponding to the status code scenario; and outputting the prompt information using a preset display module.

[0146] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0147] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0148] In the several embodiments provided by the present invention, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units can be a logical function division, and there can be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0149] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0150] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0151] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0152] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for testing departure equipment, characterized in that: include: Test the command through the virtual serial port monitoring function; In response to monitoring the functional test instruction, using a preset instruction parsing rule to parse the functional test instruction to obtain a parsing result; According to the analysis result, determining a target status code scenario simulation algorithm from a plurality of preset status code scenario algorithms; The parsing result is processed using a target status code simulation algorithm to determine a test result, wherein the test result includes a status code scenario.

2. The method according to claim 1, characterized in that The virtual serial port is created by a preset virtual serial port driver.

3. The method according to claim 1, characterized in that Determining a target status code scenario simulation algorithm from a plurality of preset status code scenario algorithms according to the analysis result includes: Determine, according to the analysis result, the departure device type corresponding to the functional test instruction, wherein the device type includes a printing type and a scanning type; According to the departure equipment type, the target status code scenario simulation algorithm is determined from the multiple preset status code scenario algorithms.

4. The method according to claim 1, characterized in that Before the target state code simulation algorithm is used to process the parsing result and determine the test result, the following steps are included: According to the analysis result, the departure equipment operating parameters and departure equipment operating status are set, wherein the departure equipment operating parameters include the number of sheets, single sheet printing time, and buzzer parameters, and the departure equipment operating status includes: power off, offline, online, paper jam, and paper out.

5. The method according to claim 4, characterized in that The using of the target status code simulation algorithm to process the parsing result and determine the test result includes: Using the target status code simulation algorithm, the operating status of the device is judged to obtain a judgment result; In response to the judgment result indicating that the equipment operation state meets the preset operation condition, matching the data items in the analysis result with the data items in the equipment model to obtain a matching result, wherein the equipment model is included in the departure equipment operation parameter; The status code scenario is determined according to the matching result.

6. The method according to claim 1, characterized in that Also includes: Determine prompt information according to the status code scenario, wherein the prompt information is used to represent the instruction processing result corresponding to the status code scenario; The prompt information is outputted using a preset display module.

7. A departure equipment testing system, characterized in that: include: The monitoring module is used to test the command through the virtual serial port monitoring function; A parsing module, configured to, in response to monitoring the function test instruction, parse the function test instruction using a preset instruction parsing rule to obtain a parsing result; A determination module, used to determine a target status code scenario simulation algorithm from a plurality of preset status code scenario algorithms according to the analysis result; The processing module is used to process the parsing result by using the target status code simulation algorithm to determine the test result, wherein the test result includes the status code scenario.

8. An electronic device, characterized in that: include: A memory for storing program instructions; A processor is connected to the memory and is used to execute program instructions for the following functions: monitoring function test instructions through a virtual serial port; in response to monitoring the function test instructions, parsing the function test instructions using preset instruction parsing rules to obtain parsing results; determining a target state code scenario simulation algorithm from a plurality of preset state code scenario algorithms based on the parsing results; and processing the parsing results using the target state code simulation algorithm to determine a test result, wherein the test result includes a state code scenario.

9. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the method according to any one of claims 1 to 6 by running the computer program.

10. A computer program product, characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 6.