CN111880754A - Automatic test method, medium, computer device and system for printing device - Google Patents

Automatic test method, medium, computer device and system for printing device Download PDF

Info

Publication number
CN111880754A
CN111880754A CN202010770250.9A CN202010770250A CN111880754A CN 111880754 A CN111880754 A CN 111880754A CN 202010770250 A CN202010770250 A CN 202010770250A CN 111880754 A CN111880754 A CN 111880754A
Authority
CN
China
Prior art keywords
test
equipment
printing
test item
printing equipment
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
CN202010770250.9A
Other languages
Chinese (zh)
Other versions
CN111880754B (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.)
Xiamen Hanyin Electronic Technology Co Ltd
Original Assignee
Xiamen Hanyin Electronic Technology 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 Xiamen Hanyin Electronic Technology Co Ltd filed Critical Xiamen Hanyin Electronic Technology Co Ltd
Publication of CN111880754A publication Critical patent/CN111880754A/en
Application granted granted Critical
Publication of CN111880754B publication Critical patent/CN111880754B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • G06F3/1254Automatic configuration, e.g. by driver
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1259Print job monitoring, e.g. job status

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention discloses an automatic test method of printing equipment, which comprises the following steps: when detecting that the printing equipment is accessed, the PC side calls out a test item, a test item number and a test expression corresponding to the printing equipment according to a test instruction, and sequentially sends the test item to the printing equipment according to the test item number; after receiving the test items, the printing equipment generates corresponding test data according to the test items and predefined feedback types and sends the test data to the PC terminal; finally, the PC terminal judges the test data through the test expression corresponding to the test item to obtain a final test result; therefore, the printing equipment can be automatically tested, manual intervention is reduced, and the testing accuracy and the production efficiency are ensured.

Description

Automatic test method, medium, computer device and system for printing device
Technical Field
The present invention relates to the field of printing device testing technologies, and in particular, to an automatic printing device testing method, a computer-readable storage medium, a computer device, and an automatic printing device testing system.
Background
In the related technology, after the printer is assembled on a production line, the whole printer is generally required to be tested, the existing testing method generally comprises the steps of sending a printed self-checking sample sheet after being electrified, and judging a testing result by manually checking technical parameters on the sample sheet; however, the existing testing method is judged manually, so that time and labor are wasted, resource waste is caused, erroneous judgment is easy to occur, and the testing accuracy and efficiency are greatly reduced.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the art described above. Therefore, one objective of the present invention is to provide an automatic testing method for a printing device, which can automatically test the printing device, reduce manual intervention, and ensure the accuracy and production efficiency of the test.
A second object of the invention is to propose a computer-readable storage medium.
A third object of the invention is to propose a computer device.
A fourth object of the present invention is to provide an automatic test system for a printing apparatus.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides an automatic testing method for a printing apparatus, including the following steps: when detecting that a printing device is accessed, a PC (personal computer) terminal calls out a test item, a test item number and a test expression corresponding to the printing device according to a test instruction, and sequentially sends the test item to the printing device according to the test item number; after receiving the test item, the printing equipment generates corresponding test data according to the test item and a predefined feedback type, and sends the test data to the PC terminal; and the PC terminal judges the test data through the test expression corresponding to the test item so as to obtain a final test result.
According to the automatic test method of the printing equipment, when the PC end detects that the printing equipment is accessed, firstly, a test item number and a test expression corresponding to the printing equipment are called according to a test instruction, and the test items are sequentially sent to the printing equipment according to the test item number; after receiving the test items, the printing equipment generates corresponding test data according to the test items and predefined feedback types and sends the test data to the PC terminal; finally, the PC terminal judges the test data through the test expression corresponding to the test item to obtain a final test result; therefore, the printing equipment can be automatically tested, manual intervention is reduced, and the testing accuracy and the production efficiency are ensured.
In addition, the automatic test method for the printing device according to the above embodiment of the present invention may further have the following additional technical features:
optionally, the predefined feedback type comprises one or more of a boolean type, a value type, a string type, and a Bitmap type.
Optionally, before performing batch automatic testing on the printing devices, the PC configures corresponding test items and test item expressions according to the model of each printing device, and adds a test item number corresponding to each test item.
Optionally, the PC side determines whether a printing device is accessed by the following steps: presetting the type of equipment of which the interface needs to pay attention; when the interface detects that the equipment is accessed or pulled out, judging whether the equipment is printing equipment or not according to the type of the equipment needing attention; if yes, judging that the current printing equipment is accessed or pulled out according to the equipment replacement message received when the equipment is accessed or pulled out.
To achieve the above object, a second embodiment of the present invention provides a computer-readable storage medium having stored thereon a printing apparatus automatic test program, which when executed by a processor, implements the printing apparatus automatic test method as described above.
According to the computer-readable storage medium of the embodiment of the invention, the automatic test program of the printing equipment is stored, so that the automatic test method of the printing equipment is realized when the processor executes the automatic test program of the printing equipment, the printing equipment is automatically tested, the manual intervention is reduced, and the test accuracy and the production efficiency are ensured.
In order to achieve the above object, a third embodiment of the present invention provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the automatic testing method for the printing device is implemented.
According to the computer equipment provided by the embodiment of the invention, the computer program capable of running on the processor is stored through the memory, so that the processor can realize the automatic test method of the printing equipment when executing the computer program, thereby realizing automatic test of the printing equipment, reducing manual intervention and ensuring the accuracy and the production efficiency of the test.
In order to achieve the above object, a fourth aspect of the present invention provides an automatic test system for a printing device, including at least one printing device and a PC terminal, where when the PC terminal detects that the printing device is accessed, a test item number, and a test expression corresponding to the printing device are called according to a test instruction, and the test item is sequentially sent to the printing device according to the test item number; after receiving the test item, the printing equipment generates test data according to the test item and a predefined feedback type and sends the test data to the PC terminal; and the PC terminal judges the test data through the test expression corresponding to the test item so as to obtain a final test result.
According to the automatic test system of the printing equipment, when the PC terminal detects that the printing equipment is accessed, the PC terminal calls out the test items, the test item numbers and the test expressions corresponding to the printing equipment according to the test instructions and sequentially sends the test items to the printing equipment according to the test item numbers; after receiving the test items, the printing equipment generates test data according to the test items and predefined feedback types and sends the test data to the PC end; the PC terminal judges the test data through the test expression corresponding to the test item to obtain a final test result; therefore, the printing equipment can be automatically tested, manual intervention is reduced, and the testing accuracy and the production efficiency are ensured.
In addition, the automatic test system for the printing device according to the above embodiment of the present invention may further have the following additional technical features:
optionally, the predefined feedback type comprises one or more of a boolean type, a value type, a string type, and a Bitmap type.
Optionally, before performing batch automatic testing on the printing devices, the PC is further configured to configure corresponding test items and test item expressions according to the model of each printing device, and add a test item number corresponding to each test item.
Optionally, the PC side is further configured to determine whether a printing device is accessed by: presetting the type of equipment of which the interface needs to pay attention; when the interface detects that the equipment is accessed or pulled out, judging whether the equipment is printing equipment or not according to the type of the equipment needing attention; if yes, judging that the current printing equipment is accessed or pulled out according to the equipment replacement message received when the equipment is accessed or pulled out.
Drawings
FIG. 1 is a schematic flow chart of a method for automatic testing of a printing apparatus according to an embodiment of the present invention;
FIG. 2 is a block diagram of an automated printing device testing system according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
In the related art, when a printer performs a complete machine test, a power supply and related communication interfaces (such as usb, serial ports and parallel ports) are usually required to be plugged in to send an instruction for printing a self-checking sample sheet, then data information on a self-checking page is checked manually, and whether the test passes or not is judged manually; the existing testing method cannot realize the whole function test of the printer and the CRC (cyclic redundancy check) of factory parameter setting and parameters and firmware on the same production process, needs to be divided into a plurality of processes, wastes manpower, and each process needs to unplug and plug a power line and a communication line again for the printer, wastes time and affects efficiency, and a plurality of testing items cannot be manually distinguished, so that defective products are easy to flow to the market, and the accuracy of the test is affected; when a PC end detects that the printing equipment is accessed, firstly calling a test item, a test item number and a test expression corresponding to the printing equipment according to a test instruction, and sequentially sending the test item to the printing equipment according to the test item number through a predefined communication protocol; after receiving the test items, the printing equipment generates test data according to the test items and sends the test data and the ID to the PC end; finally, the PC terminal automatically judges the test data through the test expression corresponding to the test item to obtain a final test result; therefore, the printing equipment can be automatically tested, manual intervention is reduced, and the testing accuracy and the production efficiency are ensured.
In order to better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Fig. 1 is a schematic flow chart of an automatic test method for a printing apparatus according to an embodiment of the present invention, and as shown in fig. 1, the automatic test method for a printing apparatus according to an embodiment of the present invention includes the following steps:
step 101, when detecting that the printing device is accessed, the PC calls a test item, a test item number and a test expression corresponding to the printing device according to the test instruction, and sequentially sends the test item to the printing device according to the test item number.
That is to say, the tester connects the printing device with the PC terminal through the USB interface, and when the PC terminal detects that the printing device is accessed, the tester calls the test item and the test item number corresponding to the printing device in advance, and automatically sends the test item to the printing device in sequence according to the test item number.
It should be noted that the test instruction is stored in the PC end, so that the PC end can directly call the test item, the test item number and the test expression corresponding to the printing device through the test instruction, and sequentially send the test item to the printing device according to the test item number, thereby saving the test time; if the test instruction exists in the printing equipment, the PC end needs to acquire the test instruction first and sends the test instruction to the PC end, so that the PC end calls out the test item, the test item number and the test expression corresponding to the printing equipment according to the received test instruction, the operation pressure is increased, the test time is prolonged, and the test efficiency is influenced.
In addition, the PC terminal sequentially sends the test items to the printing equipment according to the test item numbers, so that the subsequent PC terminal can correspond to the corresponding test items one by one after receiving the test results, and the situation that the subsequent test results are disordered and cannot correspond to the test items is avoided; moreover, the PC terminal sends the test items to the printing equipment in sequence, so that the printing equipment can perform test feedback according to the time receiving sequence, and the operation pressure of the printing equipment is greatly reduced.
As an embodiment, before performing batch automatic testing on the printing devices, the PC configures corresponding test items and test item expressions according to the model of each printing device, and adds a test item number corresponding to each test item; during testing, a tester selects a model to call out each test item configured by the model, a test item number corresponding to each test item and a test item expression corresponding to each test item, so that corresponding testing is performed according to the test requirement of each printer, the testing efficiency is improved, and the testing can be performed according to the test item requirement of each printing device in a targeted manner.
It should be noted that, the number of the test items to be tested by each printing device is different according to the actual requirement, and the corresponding test item numbers and the test item expressions corresponding to each test item can be set according to the test items to be tested by different printing devices and the number of the test items.
And 102, after receiving the test item, the printing equipment generates test data according to the test item and a predefined feedback type, and sends the test data to the PC terminal.
As an embodiment, after the test is finished, the PC terminal further binds the test data with the corresponding printer ID (unique product code SN), and uploads the test data to the server terminal, so as to provide a data basis for subsequent product analysis and tracing, and meanwhile, prevent the defective product stream from being transferred to the next production process.
It should be noted that the printing device receives the corresponding test items in sequence according to the test item numbers, generates corresponding test data according to the corresponding test items and predefined feedback types, and sends the corresponding test data to the PC end in sequence according to the test item numbers, so as to test each test item in order; meanwhile, when the test data is sent to the PC end, the printer ID I is also sent to the PC end.
As one embodiment, the predefined feedback types include one or more of a boolean type, a value type, a string type, and a Bitmap type.
It should be noted that, in order to be suitable for printing devices of all models, the PC end customizes a communication protocol and a feedback type corresponding to each test item in advance, and the printing device obtains the feedback type corresponding to the test item after receiving the test item sent by the PC end, and generates test data corresponding to the test item according to the feedback type and sends the test data to the PC end, so that the data is transmitted effectively and quickly, wherein the feedback type of the test data includes one or more of a boolean type, a value type, a character string type, and a Bitmap type.
As a specific example of the implementation of the method,
firstly, the type of returned data is Boolean type: packet header + test ID + data type + data content (1\0)
9B+2B+1B+1B
It should be noted that if the printing device is known about the result of the test item to be tested, the type of the returned test data may be defined as boolean, for example, the test item to be tested is: "whether paper, no paper exist in the printer paper storehouse", the result of this test item is listened through the photoelectricity on the printer, just can reach the judgement, so this test item uses the boolean style to return corresponding test data, and the received data that the PC end can agglomerate to analyze out the result, accomplish the test item, improved efficiency of software testing greatly.
Secondly, the type of the returned data is a character string type: packet header + test ID + data type + data length (number of bytes) + data content 9B +2B +1B + n B
When the data type is a character string type, the data content is lower than the previous data content.
In addition, if the printing device needs to simply determine the result of the test item to be tested by the PC terminal or only needs to acquire the relevant information of the printing device, the type of the returned test data can be defined as a character string type, for example, when information such as a bluetooth MAC address of a printer and an SSID of WIFI needs to be acquired, the type of the test data can be returned by using a character string; or the returned test data needs to be judged according to an expression, for example, the version number of the printer firmware is tested, the version number of the firmware is obtained according to the returned test data of the character string type, and then the judgment of the result is completed according to the configured expression, so that the proper return type is correspondingly set according to the content of the required test item, and the test efficiency is greatly improved.
Thirdly, the type of the returned data is a value type: packet header + test ID + data type + data content
9B +2B +1B +4B (integer with symbol)
Wrapping heads: 12B 9574554504D 5443
It should be noted that, for different environments, different types of printing devices, there are some test items, and it is necessary to make a determination of a test result according to an actual situation, at this time, a return type of a value type may be selected, for example, checking a temperature of the TPH, reading a voltage of a sensor, and the like; the printer returns tested data information according to the protocol, the test system of the PC end analyzes the data information to obtain test data after receiving the test data, and judges results according to the configured expressions, so that the judgment of the results can be completed according to the test expressions corresponding to different models and requirements, collected test values can be summarized, and data basis is provided for later optimization.
In addition, it should be noted that for more complex test items, a Bitmap type may be used to return data when the information to be returned is correspondingly complex or when the returned data includes multiple pieces of information, the PC end analyzes the data according to a specific agreement after receiving the data, and each piece of information is determined according to a corresponding expression, the feedback type is relatively flexible, multiple test items may be integrated into the same test item, and the number of interactions is reduced; but the feedback type needs to be determined by configuring a relatively complex expression.
And 103, judging the test data by the PC end through the test expression corresponding to the test item to obtain a final test result.
It should be noted that the test expressions are flexibly configured, and after running, the test expressions are dynamically compiled to generate a decision class of the system.
That is, after receiving the test data corresponding to the test item, the PC determines the test data according to the test expression corresponding to the test item to obtain a test result, so as to sequentially test all the test items required by the printing device.
As a specific example, if wifi strength for a printer model is between 80-100, then the configured test expression may be: if (x < ═ 80& & x > 100) return "PASS" else return "NG", if it is a complicated test item, it can write more complicated expression, because the system has integrated complicated logic processing, the configured test expression only needs simple judgment.
It should be noted that the same PC end can be connected to the USB hub through the USB interface, so as to be connected to multiple printers through the USB hub, thereby implementing batch testing of multiple printers at the same station, and improving testing efficiency.
In summary, according to the automatic test method for the printing device of the embodiment of the present invention, when the PC detects that the printing device is accessed, the test item number, and the test expression corresponding to the printing device are called according to the test instruction, and the test items are sequentially sent to the printing device according to the test item number through the predefined communication protocol; after receiving the test items, the printing equipment generates test data according to the test items and sends the test data and the ID to the PC end; finally, the PC terminal judges the test data through the test expression corresponding to the test item to obtain a final test result; therefore, the printing equipment can be automatically tested, manual intervention is reduced, and the testing accuracy and the production efficiency are ensured.
In addition, as an embodiment, after the PC accesses the device, it is determined whether the accessed device is a printing device by: presetting the type of equipment of which the interface needs to pay attention; when the interface detects that the equipment is accessed or pulled out, judging whether the equipment is printing equipment or not according to the type of the equipment needing attention; if yes, judging that the current printing equipment is accessed or pulled out according to the equipment replacement message received when the equipment is accessed or pulled out.
That is, the type of the device to be paid attention to by the device interface is preset, and when the interface of the PC detects that the device is connected or disconnected, first, whether the device is a printing device is judged according to the type of the device to be paid attention to; then, if the accessed or pulled-out equipment is printing equipment, judging that the current printing equipment is accessed or pulled out according to equipment replacement information received when the equipment is accessed or pulled out; thereby obtaining whether the printing equipment is accessed.
As a specific embodiment, after the printer is inserted, a communication library usbmain.dll packaged by an automatic test system is called, a monitoring event is triggered on the accessed USB device, when the input of the printer device is monitored, an automatic test is started immediately, a test item is sent to the printer according to a communication protocol defined by combining the test item number, the printer returns relevant data after receiving information, and the test system calls a dynamically compiled test item expression according to the returned data to perform automatic judgment.
The principle of the USB plug monitoring is that by processing the WM _ DEVICECHANGE message intercepted in the window message processing function, when the USB device is plugged in or unplugged, the system sends the WM _ DEVICECHANGE message to the window, and determines the WPARAM parameter in the WM _ DEVICECHANGE message parameter, and when the parameter is DBT _ DEVICEARRIVAL, it indicates that the device is plugged in, and when the parameter is DBT _ dev _ updated, it indicates that the device is removed.
In addition, since the WM _ DEVICECHANGE event is triggered not only when the USB device changes, the system interface register devicenotification needs to be called to register the device type that needs attention, informing the system to notify the message handling function of the current window only when the device type we registered changes.
Therefore, the monitoring window is run in the background, the interface register device notification is called to notify the system that the type of the USB device which needs attention in the current window is changed, and the USB device notifies the window message processing function, and the WM _ DEVICECHANGE message is processed in the message processing function corresponding to the monitoring window.
In summary, the automatic test method for the printing device according to the embodiment of the invention can automatically collect data of a third-party meter (a voltmeter, an ammeter, etc.) for testing and automatically judge test items, thereby reducing manual intervention; production efficiency can be greatly improved, and the outflow of defective products is avoided; testing a printer according to different models and different test items in different quantities, wherein the test time is about 5-20 seconds, which is 10 times of the test efficiency of the original single printer; the test data of the printers can be permanently stored, and the test data of each printer can be traced and inquired, so that a relevant repair basis is provided for after-sale; the tester is easy to operate, the configuration is simple, the management and control of the production process is effectively carried out, each test can verify whether the previous process is finished, and the flowing of defective products into the next process is avoided.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which an automatic test program for a printing device is stored, where the automatic test program for a printing device, when executed by a processor, implements the automatic test method for a printing device as described above.
According to the computer-readable storage medium of the embodiment of the invention, the automatic test program of the printing equipment is stored, so that the automatic test method of the printing equipment is realized when the processor executes the automatic test program of the printing equipment, the printing equipment is automatically tested, the manual intervention is reduced, and the test accuracy and the production efficiency are ensured.
In addition, a third embodiment of the present invention provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the automatic testing method for the printing device is implemented.
According to the computer equipment provided by the embodiment of the invention, the computer program capable of running on the processor is stored through the memory, so that the processor can realize the automatic test method of the printing equipment when executing the computer program, thereby realizing automatic test of the printing equipment, reducing manual intervention and ensuring the accuracy and the production efficiency of the test.
FIG. 2 is a block diagram of an automated printing device testing system according to an embodiment of the present invention; as shown in fig. 2, the automatic test system of the printing apparatus of the present embodiment includes: a PC terminal 201 and a printing device 202.
When the PC terminal detects that the printing equipment is accessed, the PC terminal calls out a test item, a test item number and a test expression corresponding to the printing equipment according to the test instruction, and sequentially sends the test item to the printing equipment according to the test item number; after receiving the test items, the printing equipment generates test data according to the test items and predefined feedback types and sends the test data to the PC end; and the PC terminal judges the test data through the test expression corresponding to the test item so as to obtain a final test result.
As an embodiment, the predefined feedback type includes one or more of a boolean type, a value type, a string type, and a Bitmap type.
As an embodiment, before performing the batch automatic test of the printing devices, the PC is further configured to configure corresponding test items and test item expressions according to the model of each printing device, and add a test item number corresponding to each test item.
As an embodiment, the PC side is further configured to determine whether a printing device is accessed by: presetting the type of equipment of which the interface needs to pay attention; when the interface detects that the equipment is accessed or pulled out, judging whether the equipment is printing equipment or not according to the type of the equipment needing attention; if yes, judging that the current printing equipment is accessed or pulled out according to the equipment replacement message received when the equipment is accessed or pulled out.
It should be noted that the foregoing explanation on the embodiment of the automatic test method for a printing device is also applicable to the automatic test system for a printing device of this embodiment, and is not repeated here.
In summary, according to the automatic test system for the printing device in the embodiment of the present invention, when the PC detects that the printing device is accessed, the PC calls the test item, the test item number, and the test expression corresponding to the printing device according to the test instruction, and sequentially sends the test items to the printing device according to the test item numbers; after receiving the test items, the printing equipment generates test data according to the test items and predefined feedback types and sends the test data to the PC end; the PC terminal judges the test data through the test expression corresponding to the test item to obtain a final test result; therefore, the printing equipment can be automatically tested, manual intervention is reduced, and the testing accuracy and the production efficiency are ensured.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above should not be understood to necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. An automatic test method for a printing apparatus, comprising the steps of:
when detecting that a printing device is accessed, a PC (personal computer) terminal calls out a test item, a test item number and a test expression corresponding to the printing device according to a test instruction, and sequentially sends the test item to the printing device according to the test item number;
after receiving the test item, the printing equipment generates corresponding test data according to the test item and a predefined feedback type, and sends the test data to the PC terminal;
and the PC terminal judges the test data through the test expression corresponding to the test item so as to obtain a final test result.
2. The printing apparatus automatic test method of claim 1, wherein the predefined feedback types include one or more of a boolean type, a value type, a string type, and a Bitmap type.
3. The automatic test method of printing equipment according to claim 1, wherein before the automatic batch test of printing equipment, the PC configures corresponding test items and test item expressions according to the model of each printing equipment, and adds the test item numbers corresponding to each test item.
4. The automatic test method of printing equipment according to claim 1, wherein the PC side judges whether printing equipment is accessed by the following steps:
presetting the type of equipment of which the interface needs to pay attention;
when the interface detects that the equipment is accessed or pulled out, judging whether the equipment is printing equipment or not according to the type of the equipment needing attention;
if yes, judging that the current printing equipment is accessed or pulled out according to the equipment replacement message received when the equipment is accessed or pulled out.
5. A computer-readable storage medium, having stored thereon a printing apparatus automatic test program which, when executed by a processor, implements the printing apparatus automatic test method according to any one of claims 1 to 4.
6. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the computer program, implements the printing device automatic testing method of any of claims 1-4.
7. An automatic test system of printing equipment is characterized by comprising at least one printing equipment and a PC terminal, wherein,
when detecting that a printing device is accessed, a PC (personal computer) terminal calls out a test item, a test item number and a test expression corresponding to the printing device according to a test instruction, and sequentially sends the test item to the printing device according to the test item number;
after receiving the test item, the printing equipment generates corresponding test data according to the test item and a predefined feedback type, and sends the test data to the PC terminal;
and the PC terminal judges the test data through the test expression corresponding to the test item so as to obtain a final test result.
8. The printing device automatic test system of claim 7, wherein the predefined feedback types include one or more of a boolean type, a value type, a string type, and a Bitmap type.
9. The automatic test system of printing equipment according to claim 7, wherein before the automatic batch test of printing equipment, the PC is further configured to configure corresponding test items and test item expressions according to the model of each printing equipment, and add test item numbers corresponding to each test item.
10. The automatic test system of printing equipment of claim 7, wherein the PC is further configured to determine whether printing equipment is accessed by:
presetting the type of equipment of which the interface needs to pay attention;
when the interface detects that the equipment is accessed or pulled out, judging whether the equipment is printing equipment or not according to the type of the equipment needing attention;
if yes, judging that the current printing equipment is accessed or pulled out according to the equipment replacement message received when the equipment is accessed or pulled out.
CN202010770250.9A 2020-06-30 2020-08-04 Automatic testing method and medium for printing equipment, computer equipment and system Active CN111880754B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010613782 2020-06-30
CN2020106137821 2020-06-30

Publications (2)

Publication Number Publication Date
CN111880754A true CN111880754A (en) 2020-11-03
CN111880754B CN111880754B (en) 2022-05-31

Family

ID=73210103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010770250.9A Active CN111880754B (en) 2020-06-30 2020-08-04 Automatic testing method and medium for printing equipment, computer equipment and system

Country Status (1)

Country Link
CN (1) CN111880754B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113253952A (en) * 2021-04-29 2021-08-13 先进操作系统创新中心(天津)有限公司 Linux operating system-based printer batch automatic adaptation system and adaptation method
CN113252373A (en) * 2021-04-07 2021-08-13 深圳市飞易通科技有限公司 Bluetooth printer test method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996117A (en) * 2009-08-27 2011-03-30 鸿富锦精密工业(深圳)有限公司 Computer test system and method thereof
CN102103534A (en) * 2010-12-06 2011-06-22 福州瑞芯微电子有限公司 Function test system for SOC
US20120110382A1 (en) * 2010-10-29 2012-05-03 Hon Hai Precision Industry Co., Ltd. Computing device and method for managing motherboard test
WO2015096661A1 (en) * 2013-12-26 2015-07-02 北京奇虎科技有限公司 Project creation method and device based on configuration system, project test method and device, and background test method and device for configuration system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996117A (en) * 2009-08-27 2011-03-30 鸿富锦精密工业(深圳)有限公司 Computer test system and method thereof
US20120110382A1 (en) * 2010-10-29 2012-05-03 Hon Hai Precision Industry Co., Ltd. Computing device and method for managing motherboard test
CN102103534A (en) * 2010-12-06 2011-06-22 福州瑞芯微电子有限公司 Function test system for SOC
WO2015096661A1 (en) * 2013-12-26 2015-07-02 北京奇虎科技有限公司 Project creation method and device based on configuration system, project test method and device, and background test method and device for configuration system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113252373A (en) * 2021-04-07 2021-08-13 深圳市飞易通科技有限公司 Bluetooth printer test method and system
CN113253952A (en) * 2021-04-29 2021-08-13 先进操作系统创新中心(天津)有限公司 Linux operating system-based printer batch automatic adaptation system and adaptation method

Also Published As

Publication number Publication date
CN111880754B (en) 2022-05-31

Similar Documents

Publication Publication Date Title
CN111371638B (en) Intelligent equipment testing method and device, server and storage medium
CN111880754B (en) Automatic testing method and medium for printing equipment, computer equipment and system
CN109361562B (en) Automatic testing method based on associated network equipment access
CN111459794A (en) Communication network testing method, device, computer equipment and storage medium
CN108897665A (en) Blog management method, device, computer equipment and storage medium
CN103678130A (en) Automated performance test method and platform
CN106407059A (en) Server node testing system and method
CN105607994A (en) Mobile terminal software testing method and system
CN111274153A (en) Automatic testing method and device and electronic equipment
JP2023537333A (en) Inspection method and equipment
CN106961361A (en) From detection/processing method, apparatus and system
CN104462934B (en) A kind of information processing method and electronic equipment
CN112000582A (en) Server-side automatic test early warning method, device, equipment and storage medium
CN108650134B (en) Network fault positioning method and device and electronic equipment
CN101800672A (en) Equipment detection method and equipment
WO2023124314A1 (en) Micro-service test method and system for hybrid cpu architecture device, and related apparatus
CN109257348A (en) A kind of cluster bug excavation method and device based on industrial control system
CN114218011A (en) Test simulation method and device, terminal equipment and storage medium
CN115542875A (en) Vehicle detection method based on SOA service and related equipment
CN117538672B (en) Test method and device for target capacitive screen and electronic equipment
CN103678076B (en) The test method and system of a kind of intermodule interface
CN114430567B (en) Network detection model evaluation method, device and system and electronic equipment
CN107438259B (en) Method for positioning network management system performance module fault
CN110597703A (en) Regression testing method and device
CN107748714A (en) Application compatibility method of testing, system, server, client and storage medium

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