CN113542073B - Product testing method, system, program product and storage medium based on P2P - Google Patents

Product testing method, system, program product and storage medium based on P2P Download PDF

Info

Publication number
CN113542073B
CN113542073B CN202110821810.3A CN202110821810A CN113542073B CN 113542073 B CN113542073 B CN 113542073B CN 202110821810 A CN202110821810 A CN 202110821810A CN 113542073 B CN113542073 B CN 113542073B
Authority
CN
China
Prior art keywords
test
testing
target
station
product
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.)
Active
Application number
CN202110821810.3A
Other languages
Chinese (zh)
Other versions
CN113542073A (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.)
Goertek Optical Technology Co Ltd
Original Assignee
Goertek Optical 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 Goertek Optical Technology Co Ltd filed Critical Goertek Optical Technology Co Ltd
Priority to CN202110821810.3A priority Critical patent/CN113542073B/en
Publication of CN113542073A publication Critical patent/CN113542073A/en
Application granted granted Critical
Publication of CN113542073B publication Critical patent/CN113542073B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Abstract

The invention discloses a product testing method, a product testing system, a program product and a storage medium based on P2P, which are applied to a product testing system based on P2P, wherein the system comprises a plurality of testing work stations, and the method comprises the following steps: judging whether a target test station for testing a target product at present belongs to a preset test station with a test assisting requirement; if the target test station belongs to the target test station, determining an assistant test station according to the assistant test requirement of the target test station; respectively analyzing and testing the target product through the target testing station and the auxiliary testing station to obtain a first testing result and a second testing result, and then combining the first testing result and the second testing result to obtain a comprehensive testing result; and judging whether the target product passes the analysis test of the target test station or not according to the comprehensive test result. The invention utilizes the P2P network to seek the auxiliary test station to assist in completing the test work of the target test station, thereby not only reducing the idle rate of the test station in the system, but also improving the product test efficiency.

Description

Product testing method, system, program product and storage medium based on P2P
Technical Field
The present invention relates to the field of product testing technologies, and in particular, to a method, a system, a program product, and a storage medium for testing a product based on P2P.
Background
At present, in the optical field, an online test mode is operated in a pipeline mode, and only after a previous test station completes an analysis test in the station, the next test station can enter the next analysis test flow, so that if the previous test station needs to spend a large amount of time for carrying out test operation, the next test station can be in an idle state for a long time, the idle rate of the test stations in the system is high, and the product test efficiency of the system is low.
Disclosure of Invention
The invention mainly aims to provide a product testing method, a product testing system, a program product and a storage medium based on P2P, aiming at reducing the idle rate of a testing station and improving the product testing efficiency of the system.
In order to achieve the above object, the present invention provides a P2P-based product testing method, applied to a P2P-based product testing system, where the product testing system includes a plurality of testing stations, and the method includes the following steps:
when a target test station receives a test request about a target product, judging whether the target test station belongs to a preset test station or not, wherein the preset test station has a test assisting requirement;
if the target test station belongs to the preset test station, determining an assistance test station according to a target assistance test requirement corresponding to the target test station;
analyzing and testing the target product through the target testing work station and the auxiliary testing work station respectively to obtain a first testing result and a second testing result, and combining the first testing result and the second testing result to obtain a comprehensive testing result of the target product;
and judging whether the target product passes the analysis test of the target test station or not according to the comprehensive test result.
Preferably, the step of determining an assisting test station according to a target assisting test requirement corresponding to the target test station includes:
acquiring the processing states of other test work stations, and determining the to-be-determined test work station with the processing state being an idle state;
and determining an auxiliary testing work station from the work stations to be tested according to the target auxiliary testing requirement corresponding to the target testing work station.
Preferably, each of the testing stations includes at least one computing node, and the step of performing analysis testing on the target product through the target testing station and the auxiliary testing station respectively to obtain a first testing result and a second testing result includes:
acquiring a test image, and respectively sending the test image to a target computing node corresponding to the target test station and an assistant computing node corresponding to the assistant test station;
and respectively analyzing and testing the test image through the target computing node and the assistant computing node to obtain a corresponding first test result and a second test result.
Preferably, after the step of acquiring the test image, the method further includes:
judging whether the test image needs to be segmented or not according to the pixel size of the test image;
and if so, carrying out segmentation processing on the test image, and respectively sending the segmented test image to the target computing node and the assistant computing node.
Preferably, after the step of determining an assisting test station according to the target assisting test requirement corresponding to the target test station, the method further includes:
and updating the processing state of the assistant test station from an idle state to a busy state.
Preferably, after the step of respectively performing an analysis test on the target product through the target testing station and the auxiliary testing station to obtain a first testing result and a second testing result, the method further includes:
and updating the processing state of the assistant test station from a busy state to an idle state.
Preferably, after the step of determining whether the target product passes the analysis test of the target test station according to the comprehensive test result, the method further includes:
and if the target product passes the analysis test of the target test work station, determining a next test work station of the target test work station so that the next test work station can perform corresponding analysis test on the target product.
In addition, in order to achieve the above object, the present invention further provides a P2P-based product testing apparatus, wherein the P2P-based product testing apparatus comprises:
the system comprises a first judgment module, a second judgment module and a third judgment module, wherein the first judgment module is used for judging whether a target test station belongs to a preset test station when the target test station receives a test request about a target product, and the preset test station has a test assisting requirement;
the assistance determining module is used for determining an assistance test station according to a target assistance test requirement corresponding to the target test station if the target test station belongs to the preset test station;
the analysis testing module is used for respectively carrying out analysis testing on the target product through the target testing work station and the auxiliary testing work station to obtain a first testing result and a second testing result, and obtaining a comprehensive testing result of the target product by combining the first testing result and the second testing result;
and the second judging module is used for judging whether the target product passes the analysis test of the target test work station or not according to the comprehensive test result.
Furthermore, to achieve the above object, the present invention also provides a program product comprising a computer program, which when executed by a processor, implements the steps of the P2P-based product testing method as described above.
In addition, in order to achieve the above object, the present invention further provides a P2P-based product testing system, wherein the P2P-based product testing system comprises: a memory, a processor, and a P2P-based product testing program stored on the memory and executable on the processor, the P2P-based product testing program when executed by the processor implementing the steps of the P2P-based product testing method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium having a P2P-based product testing program stored thereon, wherein the P2P-based product testing program, when executed by a processor, implements the steps of the P2P-based product testing method as described above.
The product testing method based on P2P provided by the invention comprises the steps of judging whether a target testing work station for testing a target product at present belongs to a preset testing work station with a test assisting requirement; if the target test station belongs to the target test station, determining an assistant test station according to the assistant test requirement of the target test station; respectively analyzing and testing the target product through the target testing station and the auxiliary testing station to obtain a first testing result and a second testing result, and then combining the first testing result and the second testing result to obtain a comprehensive testing result; and judging whether the target product passes the analysis test of the target test station or not according to the comprehensive test result. The invention utilizes the P2P network to seek the auxiliary test station to assist in completing the test work of the target test station, thereby not only reducing the idle rate of the test station in the system, but also improving the product test efficiency.
Drawings
Fig. 1 is a schematic diagram of a system architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of a P2P-based product testing method according to the present invention;
FIG. 3 is a functional block diagram of a preferred embodiment of the product testing method based on P2P according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a system structural diagram of a hardware operating environment according to an embodiment of the present invention.
The system comprises a user behavior acquisition module, a behavior tracking algorithm module, a priority recommendation display module and the like.
As shown in fig. 1, the system may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the system architecture shown in FIG. 1 is not intended to be limiting of the system, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a P2P-based product testing program.
Wherein, the operating system is a program for managing and controlling the P2P-based product testing system and software resources, and supports the operation of the network communication module, the user interface module, the P2P-based product testing program and other programs or software; the network communication module is used for managing and controlling the network interface 1002; the user interface module is used to manage and control the user interface 1003.
In the P2P-based product testing system shown in fig. 1, the P2P-based product testing system calls the P2P-based product testing program stored in the memory 1005 through the processor 1001 and performs the operations in the various embodiments of the P2P-based product testing method described below.
Based on the hardware structure, the embodiment of the product testing method based on P2P is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a P2P-based product testing method according to the present invention, where the method includes:
step S10, when a target test station receives a test request about a target product, judging whether the target test station belongs to a preset test station, wherein the preset test station has a test assisting requirement;
in this embodiment, the product testing method based on P2P is applied to a product testing system based on P2P in a production line testing scenario, and for convenience of description, the product testing system based on P2P is referred to as a testing system for short. In this embodiment, the test system includes at least one production line, each production line includes a plurality of test stations, and each test station includes at least one computing node, where the computing node may include a computer, a mobile terminal, and other devices, and for convenience of description, the computing node in this embodiment is described by taking a computer as an example. In a P2P network environment, multiple computers connected to each other are in a peer-to-peer status without master-slave, one computer can be used as a server to set up shared resources for other computers in the network to use, and can also be used as a test station, the P2P network does not generally depend on a dedicated centralized server, and has no dedicated test station, that is, each computer in the P2P network can both act as a requester of network services and respond to requests of other computers.
At present, in the optical field, the on-line test mode is operated in a pipeline mode, and only after the previous test station completes the analysis test in the station, the next test station can enter the next analysis test flow, so that if the previous test station needs to spend a large amount of time for test operation, the next test station can be in an idle state for a long time, the idle rate of the test station in the system and the corresponding calculation nodes of the test station is high, and the product test efficiency of the system is low.
In this embodiment, the target product is preferably a product in the optical field, and may be a product such as a camera module having an image capturing function, or may be an apparatus such as a projector that does not have an image capturing function. Because the test system at least comprises one production line, each production line is provided with a plurality of test work stations, and the test items corresponding to the test work stations are different. For example, a test station on a certain production line includes a station a, a station B, and a station C, and when performing an analysis test on a target product, the test station needs to pass through the station a, the station B, and the station C in sequence, where the station a may be a focusing station for determining whether a focusing function of the target product is qualified; the work station B can be an analysis test station, and comprises analysis tests of a plurality of functional items for determining whether the plurality of functional items of the target product are qualified; the work station C may be a burning station, and is used to burn design parameters, product files, and the like of the target product, so as to ensure that the target product can normally operate. When the production test is carried out, not all the test stations need to seek the help of other test stations/computing nodes to carry out the auxiliary analysis test, so that the test stations needing the auxiliary test can be predetermined according to the actual test requirement before the product is subjected to the analysis test, namely the preset test stations with the auxiliary test requirement are determined. When the target product sequentially passes through the testing work stations on the production line, whether the target testing work station which performs analysis testing on the target product currently belongs to the preset testing work station or not can be determined by judging whether the target testing work station needs to request other testing work stations for assistance testing.
Before this embodiment starts, all test computers need to be connected through the office network, and each computer for analysis and test needs to be started, and then the computer is accessed into a P2P network (Peer-to-Peer network). For example, the computer that is first started up in the test system is used as a directory server, and the other computers can confirm the number of computers accessing the P2P network, the IP addresses of the other computers, and the like through the directory server. Specifically, when it is detected that a new computer a accesses the P2P network, the computer a may publish its initial processing state information, state publishing time point, computer name, etc. to other nodes in the P2P network. When other nodes receive the message sent by the computer a, the time point of receiving the message is recorded, and then the message transmission time difference between the node and the computer a can be calculated according to the state release time point of the computer a and the time point of receiving the message by the node, so that the distance between the computer a and other nodes can be determined according to the respective message transmission time differences. If the computer a has the requirement of assisting the test, the priority of the assistant test station/the assistant test node corresponding to the computer a can be determined by sequencing the transmission time difference of each message between the computer a and each other node. It can be understood that, in general, the smaller the message transmission time difference between the computer a and a certain node, the closer the computer a is to the node, and the computer generally considers the node closest to the node when seeking other nodes to perform the assistance test, so that a corresponding node table can be generated in advance for each computer having the requirement of the assistance test according to the priority order of the corresponding node, so as to quickly determine the assistance test station/assistance test node corresponding to the computer through the node table.
Note that, the initial processing states of the computers that have just accessed the P2P network are all idle states.
Step S20, if the target test station belongs to the preset test station, determining an assistant test station according to a target assistant test requirement corresponding to the target test station;
in this embodiment, when a target product just enters a target testing station to prepare an analysis test, if it is determined that the target testing station belongs to a preset testing station, that is, the target testing station has a test assisting requirement, the test assisting station corresponding to the target testing station is determined according to the test assisting requirement corresponding to the target testing station, so as to assist the target testing station to perform an analysis test on the target product through the test assisting station.
It should be noted that, if the target testing station does not belong to the preset testing station, it is indicated that the target testing station does not have a requirement for assisting in testing, and only the target testing station itself can perform a related analysis test on the target product to obtain a corresponding target testing result, and then it is determined whether the target product passes the related analysis test of the target testing station according to the target testing result.
Further, the step of determining an assisting test station according to a target assisting test requirement corresponding to the target test station includes:
step a1, acquiring the processing states of other testing work stations, and determining the pending testing work station with the processing state being an idle state;
step a2, determining an auxiliary test station from the station to be tested according to the target auxiliary test requirement corresponding to the target test station.
In this embodiment, when a target product enters a target testing station for analysis testing, the processing state of the target testing station is updated to a busy state, and the updated processing state information is distributed to other nodes in the P2P network. Because the target test station has the requirement of assisting the test, the requirement of assisting the test needs to be sent to other idle test stations. Specifically, the processing state corresponding to each of the other test stations in the P2P network except the target test station may be obtained to determine the test station whose processing state is an idle state, that is, the test station to be determined. Because the algorithms contained in the computers corresponding to the test stations are consistent, and each computer contains all analysis test algorithms required by product testing, such as Focus Adjust (Focus algorithm), blephish (dirty test algorithm), Particle test algorithm, Shading test algorithm, Color Uniformity test algorithm, Focus Check (Focus detection algorithm), Contrast algorithm, and the like, the target assistance test requirements can be sequentially sent to other idle nodes through the node table of the computer corresponding to the target test station, so that the undetermined test station receiving the target assistance test requirements is determined as the assistance test station.
It should be noted that the number of the assisted test stations is at least one, the specific number of the assisted test stations can be set according to the actual application requirements, and the number of the assisted test stations corresponding to different target test stations may be the same or different.
Step S30, analyzing and testing the target product through the target testing station and the assistant testing station respectively to obtain a first testing result and a second testing result, and combining the first testing result and the second testing result to obtain a comprehensive testing result of the target product;
in this embodiment, the target product is analyzed and tested by the target testing station and the corresponding auxiliary testing station, that is, the target product is analyzed and tested by the target testing station for a part of functions to obtain a first test result, meanwhile, the target product is analyzed and tested by the auxiliary testing station for another part of functions to obtain a second test result, the obtained second test result is sent to the target testing station by the auxiliary testing station, and then the target testing station combines the first test result and the second test result to obtain a comprehensive test result corresponding to the target product at the target testing station. Of course, the test system may also directly obtain a first test result obtained by the target test station and a second test result obtained by the auxiliary test station, and then combine the first test result and the second test result to obtain a comprehensive test result of the target product to be detected at the station B.
For example, when a target product enters a target test work station B for product testing, assuming that test results of the target product in the four aspects of Blemish test, Particle test, Shading test and Color Uniformity test need to be obtained at the work station B, and the work station B has a requirement for assistance in testing, since functional tests responsible for each assistance test work station can be determined simultaneously when the assistance test work station is determined, if the assistance test work station corresponding to the work station B includes a work station A and a work station C, analysis test contents responsible for the work station A, the work station B and the work station C are also determined, if the Blemish test can be performed through the work station B, the Particle test can be performed through the assistance test work station A, the Shading test and the Color Uniformity test can be performed through the assistance test work station C, and when the work station A completes the Particle test of the target product, the corresponding Particle test result is returned to the work station B, when the workstation C completes the Shading test and the Color Uniformity test of the target product, the test results corresponding to the Shading test and the Color Uniformity test are returned to the workstation B, so that the first test result is the Blemish test result, the second test result comprises the Particle test result returned by the workstation A, the Shading test result and the Color Uniformity test result returned by the workstation C, and then the comprehensive test result of the target product can be obtained by combining the first test result and the second test result. The target product is analyzed by the work station B and the auxiliary testing work stations A and C in a division manner, the corresponding analysis test is completed by the auxiliary work station B in the division manner, the idle rate of other work stations can be reduced, the testing efficiency of the product is effectively improved, and the UPH (Unit Per Hour, yield Per Hour) of the testing system is improved.
And step S40, judging whether the target product passes the analysis test of the target test station or not according to the comprehensive test result.
In this embodiment, if the comprehensive test result meets the expected standard, it indicates that the target product passes through the analysis test of the target test station, and the target product can be controlled to enter a subsequent test station to perform a subsequent test process, and the analysis test process of the target product can also be finished; if the comprehensive test result fails to reach the expected standard, the target product is proved to have defects and belong to unqualified products, and the reason why the target product is unqualified can be determined by checking the comprehensive test result so as to further improve the target product or improve the production and manufacturing process, thereby improving the qualification rate of the product.
Further, after step S40, the method further includes:
and b, if the target product passes the analysis test of the target test work station, determining a next test work station of the target test work station so that the next test work station can perform corresponding analysis test on the target product.
In this embodiment, after it is determined that the target product passes through the analysis test of the target test station according to the comprehensive test result of the target product, the target product may be sent to the next test station through the conveyor belt on the production line, so that the next test station performs a corresponding analysis test on the target product until the last test station on the production line completes the analysis test process on the target product.
In the product testing method based on P2P of this embodiment, whether a target testing station that is currently testing a target product belongs to a preset testing station that has a requirement for assisting a test is determined; if the target test station belongs to the target test station, determining an assistant test station according to the assistant test requirement of the target test station; respectively analyzing and testing the target product through the target testing station and the auxiliary testing station to obtain a first testing result and a second testing result, and then combining the first testing result and the second testing result to obtain a comprehensive testing result; and judging whether the target product passes the analysis test of the target test station or not according to the comprehensive test result. The invention utilizes the P2P network to seek the auxiliary test station to assist in completing the test work of the target test station, thereby not only reducing the idle rate of the test station in the system, but also improving the product test efficiency.
Further, based on the first embodiment of the product testing method based on P2P of the present invention, a second embodiment of the product testing method based on P2P of the present invention is proposed.
The difference between the second embodiment of the P2P-based product testing method and the first embodiment of the P2P-based product testing method is that, after the step of determining the assisting test station according to the target assisting test requirement corresponding to the target test station, the method further includes:
and c, updating the processing state of the assistant testing work station from an idle state to a busy state.
In this embodiment, since the auxiliary test station is an idle pending test station, when the auxiliary test station corresponding to the target test station is determined, the processing state of the auxiliary test station needs to be updated from the idle state to a busy state, and the updated processing state information is sent to each other test station/node through the P2P network, which is beneficial to improving the stability of the test system and ensuring the test efficiency of the test system.
Further, after the step of performing analysis testing on the target product through the target testing station and the auxiliary testing station respectively to obtain a first testing result and a second testing result, the method further includes:
and d, updating the processing state of the assistant test station from a busy state to an idle state.
In this embodiment, since the assistant test station is in a busy state when assisting the target test station to perform the related analysis test, when the assistant test station completes the assistant test content distributed by the target test station, the assistant test station can return the corresponding test result to the target test station, and at the same time, update its own processing state from the busy state to an idle state, and send the updated processing state information to other test stations/nodes through the P2P network. Similarly, after the target testing station completes its testing content and receives the testing result returned by the auxiliary testing station, and outputs the comprehensive result, it is also necessary to update the processing state of the target testing station from busy state to idle state.
In the product testing method based on P2P, the processing state information of the auxiliary testing workstation is updated in time in the P2P network, so that the auxiliary testing of the testing system is facilitated to be performed orderly, and the stability of the testing system can be improved.
Further, based on the first and second embodiments of the P2P-based product testing method of the present invention, a third embodiment of the P2P-based product testing method of the present invention is provided.
The third embodiment of the P2P-based product testing method is different from the first and second embodiments of the P2P-based product testing method in that each testing station includes at least one computing node, and the step of performing an analysis test on the target product by the target testing station and the auxiliary testing station respectively to obtain a first test result and a second test result includes:
step e1, obtaining a test image, and respectively sending the test image to a target computing node corresponding to the target test station and an assistant computing node corresponding to the assistant test station;
and e2, analyzing and testing the test image respectively through the target computing node and the assistant computing node to obtain a corresponding first test result and a second test result.
In this embodiment, since the target product is preferably a production product in the optical field, and may be a product such as a camera module having an image capturing function, or may also be a device such as a projector that does not have an image capturing function, when performing an analysis test on the target product, the analysis test on the target product is generally performed by obtaining a test image for performing the analysis test on the target product, where for the target product having the image capturing function, the test image may be an image acquired by the target product itself; for a target product without a camera function, the test image may be a projection picture of the target product captured by another camera, or the like. In addition, since each test station includes at least one computing node for performing analysis and test on the target product, for convenience of description, each test station includes one computing node for example. When the assistant computing nodes of the assistant testing station receive the target assistant testing requirement, the testing system shares the testing image corresponding to the target product to the target computing node corresponding to the target testing station and the assistant computing node corresponding to the assistant testing station respectively, so that the testing image is analyzed and tested through the target computing node and the assistant computing node respectively to obtain a corresponding first testing result and a corresponding second testing result.
Further, after the step of acquiring the test image, the method further includes:
step f1, judging whether the test image needs to be segmented according to the pixel size of the test image;
and f2, if necessary, performing segmentation processing on the test image, and respectively sending the segmented test image to the target computing node and the assistant computing node.
In this embodiment, the sizes of the pixels corresponding to the test images are different, and for the test image with a larger pixel, if the analysis test is performed on the test image by the target test station and the auxiliary test station, the time consumed is also long. Specifically, the pixel size of the test image may be compared with a preset pixel threshold to determine whether the test image needs to be segmented; if the test image needs to be segmented, the test image can be segmented into N sub-images according to the total number N of the auxiliary test stations and the target test station, and the number of the sub-images can be set according to actual application requirements. The sub-images after the segmentation processing need to be distributed to the target computing node and the auxiliary testing node for analysis testing, so that the sub-images distributed to the target computing node and the auxiliary testing node for analysis testing may be the same or different, that is, after the segmentation processing, the test images received by the target computing node and the auxiliary computing node may be the same sub-image or different sub-images. For example, if it is determined that a computer has two assisted computing nodes and sub-image 1, sub-image 2, and sub-image 3 are obtained through segmentation processing, sub-image 1 may be sent to a target computing node, and sub-images 2 and 3 may be sent to the other two assisted computing nodes, respectively; any sub-image after the segmentation processing, such as sub-image 1, sub-image 2, or sub-image 3, may also be sent to the target computing node and the assisting computing node, respectively. The test image with larger pixels is segmented, so that the test time of the target product can be effectively reduced, and the test efficiency is improved.
In the product testing method based on P2P of this embodiment, the target testing station and the auxiliary testing station respectively perform analysis and test on the test images corresponding to the target product, so as to objectively reflect the optical performance of the target product; by segmenting the test image with larger pixels and then respectively sending the segmented sub-images to the target test station and the auxiliary test station for processing, the operation pressure of each test station can be reduced while the product test efficiency is ensured.
The invention also provides a product testing device based on the P2P. Referring to fig. 3, the P2P-based product testing device of the present invention includes:
the system comprises a first judgment module 10, a first processing module and a second processing module, wherein the first judgment module is used for judging whether a target testing station belongs to a preset testing station when the target testing station receives a testing request about a target product, and the preset testing station has a testing assisting requirement;
an assistance determining module 20, configured to determine, if the target testing station belongs to the preset testing station, an assistance testing station according to a target assistance testing requirement corresponding to the target testing station;
the analysis testing module 30 is configured to perform analysis testing on the target product through the target testing station and the auxiliary testing station, respectively, to obtain a first testing result and a second testing result, and obtain a comprehensive testing result of the target product by combining the first testing result and the second testing result;
and the second judgment module 40 is configured to judge whether the target product passes the analysis test of the target test station according to the comprehensive test result.
Preferably, the assistance determination module is further configured to:
acquiring the processing states of other test work stations, and determining the to-be-determined test work station with the processing state being an idle state;
and determining an auxiliary testing work station from the work stations to be tested according to the target auxiliary testing requirement corresponding to the target testing work station.
Preferably, each of the test stations includes at least one computing node, and the analysis and test module is further configured to:
acquiring a test image, and respectively sending the test image to a target computing node corresponding to the target test station and an assistant computing node corresponding to the assistant test station;
and respectively analyzing and testing the test image through the target computing node and the assistant computing node to obtain a corresponding first test result and a second test result.
Preferably, the analysis test module further comprises an image segmentation unit for:
judging whether the test image needs to be segmented or not according to the pixel size of the test image;
and if so, carrying out segmentation processing on the test image, and respectively sending the segmented test image to the target computing node and the assistant computing node.
Preferably, the assistance determination module further comprises a first status updating unit, and the first status updating unit is configured to:
and updating the processing state of the assistant test station from an idle state to a busy state.
Preferably, the assistance determination module further includes a second status update unit, and the second status update unit is configured to:
and updating the processing state of the assistant test station from a busy state to an idle state.
Preferably, the P2P-based product testing device further comprises a latter analysis testing module for:
and if the target product passes the analysis test of the target test work station, determining a next test work station of the target test work station so that the next test work station can perform corresponding analysis test on the target product.
The invention also provides a program product comprising a computer program which, when executed by a processor, carries out the steps of the P2P-based product testing method as described above.
The invention also provides a storage medium.
The storage medium of the present invention stores a P2P-based product testing program, and the P2P-based product testing program, when executed by a processor, implements the steps of the P2P-based product testing method as described above.
In addition, in the embodiments of the P2P-based product testing system, the program product, and the storage medium of the present invention, reference may be made to the embodiments of the P2P-based product testing method of the present invention, and details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal system (e.g., a mobile phone, a computer, a server, an air conditioner, or a network system) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A product testing method based on a P2P network is characterized in that the method is applied to a product testing system based on a P2P network, the product testing system comprises a plurality of testing stations, and the method comprises the following steps:
when a target test station receives a test request about a target product, judging whether the target test station belongs to a preset test station or not, wherein the preset test station has a test assisting requirement;
if the target test station belongs to the preset test station, determining an assistance test station according to a target assistance test requirement corresponding to the target test station;
analyzing and testing the target product through the target testing station and the auxiliary testing station respectively to obtain a first testing result and a second testing result, and obtaining a comprehensive testing result of the target product by combining the first testing result and the second testing result, wherein the target testing station and the auxiliary testing station simultaneously analyze and test the target product;
and judging whether the target product passes the analysis test of the target test station or not according to the comprehensive test result.
2. The method for product testing based on P2P network of claim 1, wherein the step of determining the assistant testing station according to the target assistant testing requirement corresponding to the target testing station comprises:
acquiring the processing states of other test work stations, and determining the to-be-determined test work station with the processing state being an idle state;
and determining an auxiliary testing work station from the work stations to be tested according to the target auxiliary testing requirement corresponding to the target testing work station.
3. The method as claimed in claim 1, wherein each of the testing stations comprises at least one computing node, and the step of performing the analysis test on the target product by the target testing station and the assistant testing station respectively to obtain the first test result and the second test result comprises:
acquiring a test image, and respectively sending the test image to a target computing node corresponding to the target test station and an assistant computing node corresponding to the assistant test station;
and respectively analyzing and testing the test image through the target computing node and the assistant computing node to obtain a corresponding first test result and a second test result.
4. The P2P network-based product testing method of claim 3, wherein the step of obtaining a test image is followed by further comprising:
judging whether the test image needs to be segmented or not according to the pixel size of the test image;
and if so, carrying out segmentation processing on the test image, and respectively sending the segmented test image to the target computing node and the assistant computing node.
5. The method for product testing based on P2P network of claim 1, wherein after the step of determining the assisting test station according to the target assisting test requirement corresponding to the target test station, further comprising:
and updating the processing state of the assistant test station from an idle state to a busy state.
6. The method for testing products based on P2P network of claim 5, wherein after the step of analyzing and testing the target product by the target testing station and the assistant testing station respectively to obtain a first testing result and a second testing result, the method further comprises:
and updating the processing state of the assistant test station from a busy state to an idle state.
7. The P2P network-based product testing method of any one of claims 1 to 6, wherein after the step of determining whether the target product passes the analysis test of the target testing station according to the comprehensive test result, the method further comprises:
and if the target product passes the analysis test of the target test work station, determining a next test work station of the target test work station so that the next test work station can perform corresponding analysis test on the target product.
8. A P2P network-based product testing system, characterized in that, the P2P network-based product testing system comprises: a memory, a processor and a P2P network based product testing program stored on the memory and executable on the processor, the P2P network based product testing program when executed by the processor implementing the steps of the P2P network based product testing method of any one of claims 1 to 7.
9. A storage medium having stored thereon a P2P network-based product testing program, the P2P network-based product testing program when executed by a processor implementing the steps of the P2P network-based product testing method as recited in any one of claims 1 to 7.
CN202110821810.3A 2021-07-20 2021-07-20 Product testing method, system, program product and storage medium based on P2P Active CN113542073B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110821810.3A CN113542073B (en) 2021-07-20 2021-07-20 Product testing method, system, program product and storage medium based on P2P

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110821810.3A CN113542073B (en) 2021-07-20 2021-07-20 Product testing method, system, program product and storage medium based on P2P

Publications (2)

Publication Number Publication Date
CN113542073A CN113542073A (en) 2021-10-22
CN113542073B true CN113542073B (en) 2022-09-20

Family

ID=78100578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110821810.3A Active CN113542073B (en) 2021-07-20 2021-07-20 Product testing method, system, program product and storage medium based on P2P

Country Status (1)

Country Link
CN (1) CN113542073B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115952959B (en) * 2022-05-05 2024-02-23 北京小米移动软件有限公司 Material distribution method and device and production line control system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727389B (en) * 2009-11-23 2012-11-14 中兴通讯股份有限公司 Automatic test system and method of distributed integrated service
CN106872836A (en) * 2015-12-11 2017-06-20 研祥智能科技股份有限公司 Distributed automatization detecting system and method on production line
CN108535627A (en) * 2018-03-08 2018-09-14 青岛北洋天青数联智能股份有限公司 The dispatching method and device of single host Multi-station synchronous test
CN110297766B (en) * 2019-06-03 2023-05-30 合肥移瑞通信技术有限公司 Software testing method and software testing system based on distributed test node cluster
CN111124920A (en) * 2019-12-24 2020-05-08 北京金山安全软件有限公司 Equipment performance testing method and device and electronic equipment
CN112817298B (en) * 2021-01-05 2022-02-15 广州市华颉电子科技有限公司 Interface function comprehensive test scheduling method and device for automobile domain controller

Also Published As

Publication number Publication date
CN113542073A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN108256118B (en) Data processing method, device, system, computing equipment and storage medium
CN113010224B (en) Front-end micro-servitization method, front-end micro-servitization device, computer equipment and storage medium
CN112261094A (en) Message processing method and proxy server
CN107580080A (en) A kind of connection method of test environment and device
CN113542073B (en) Product testing method, system, program product and storage medium based on P2P
US20200382382A1 (en) Method and system for detecting service quality of cdn system
EP3179370A1 (en) Webpage automatic test method and apparatus
CN114490419B (en) Heterogeneous architecture cross-cloud testing method, system and computer equipment
CN114553762B (en) Method and device for processing flow table items in flow table
CN111698281B (en) Resource downloading method and device, electronic equipment and storage medium
CN109951549B (en) Network page access method and device and computer readable storage medium
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
CN110321251B (en) Data backup method, device, equipment and storage medium based on network block equipment
CN112100414A (en) Data processing method, device, system and computer readable storage medium
CN116010467B (en) Risk discovery method, device, equipment and storage medium based on communication map
CN112035174B (en) Method, apparatus and computer storage medium for running web service
CN109377177B (en) Flow processing method, device, equipment and computer readable storage medium
CN113657964B (en) Order information interface display method, device, equipment and computer readable medium
CN112835804B (en) Test case processing method, device, electronic equipment and medium
CN113778673B (en) Data processing method, storage medium and apparatus
CN117724993A (en) Data reading method and device and cluster node
CN113242307B (en) Service request processing method, device, server and storage medium
CN114297058B (en) Test method and device
CN110336857B (en) Method, device, equipment and storage medium for creating network block equipment
CN115766734A (en) Visual detection method and system based on cloud service

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