CN117743044A - Test system, method and device and storage medium - Google Patents
Test system, method and device and storage medium Download PDFInfo
- Publication number
- CN117743044A CN117743044A CN202311586317.3A CN202311586317A CN117743044A CN 117743044 A CN117743044 A CN 117743044A CN 202311586317 A CN202311586317 A CN 202311586317A CN 117743044 A CN117743044 A CN 117743044A
- Authority
- CN
- China
- Prior art keywords
- test
- tested
- control terminal
- station
- identifier
- 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.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 539
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000010998 test method Methods 0.000 claims abstract description 14
- 230000002159 abnormal effect Effects 0.000 claims description 24
- 238000004891 communication Methods 0.000 claims description 23
- 238000004590 computer program Methods 0.000 claims description 7
- 238000012512 characterization method Methods 0.000 claims description 2
- 230000008569 process Effects 0.000 abstract description 11
- 230000001276 controlling effect Effects 0.000 description 18
- 230000000875 corresponding effect Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 230000003287 optical effect Effects 0.000 description 7
- 238000004519 manufacturing process Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000005070 sampling Methods 0.000 description 4
- 230000005856 abnormality Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000013101 initial test Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application relates to a test system, a test method, a test device and a storage medium, wherein the test system comprises: the system comprises a flow control terminal, a test control terminal and a server. The flow control terminal is used for acquiring a first identifier of a to-be-tested object and a second identifier of a to-be-tested station; the station to be tested is the current station of the object to be tested; the object to be tested comprises at least one target object; under the condition that the version information of all the target objects is consistent and the current test plan node is matched with the second identifier, a test instruction is sent to the test control terminal; the test control terminal is used for controlling the test terminal to start to test the object to be tested according to the test instruction. In the test system, the flow control terminal can determine whether the test control terminal can start to test the object to be tested according to the first identifier of the object to be tested and the second identifier of the station to be tested, so that the artificial control of the test process is not needed, the artificial leakage is avoided, and the quality index of the product can be improved.
Description
Technical Field
The present disclosure relates to the field of testing technologies, and in particular, to a testing system, a testing method, a testing device, and a storage medium.
Background
At present, after the production of a main board of an electronic product is completed, the electronic product manufacturing industry needs to check the functions of the main board and has a standard test flow defined by a customer, and the electronic product manufacturing industry needs to test the main board strictly according to the flow, otherwise, the flow is abnormal. However, the existing test process usually needs manual control, which inevitably generates artificial leakage to influence the quality index of the product.
Disclosure of Invention
The application provides a test system, a test method, a test device and a test storage medium, so as to solve the problem of how to avoid artificial leakage in the prior art.
In a first aspect, the present application provides a test system comprising: the system comprises a flow control terminal, a test control terminal and a server;
the flow control terminal is used for acquiring a first identifier of a to-be-tested object and a second identifier of a to-be-tested station; the station to be tested is the current station of the object to be tested; the object to be tested comprises at least one target object; transmitting the first identification to the server;
the server is used for determining the version information of the target object and the current test plan node according to the first identifier, and returning the version information of the target object and the current test plan node to the flow control terminal;
The flow control terminal is further configured to send a test instruction to the test control terminal when version information of all the target objects is consistent and the current test plan node is matched with the second identifier;
and the test control terminal is used for controlling the test terminal to start testing the object to be tested according to the test instruction.
Optionally, after the step of sending the test instruction to the test control terminal, the flow control terminal is further configured to monitor a test state of the test control terminal; generating a test stopping instruction when the test state characterization test is abnormal; and controlling the test terminal to stop testing by the test control terminal according to the test stopping instruction.
Optionally, the flow control terminal is further configured to:
generating prompt information under the condition that at least one of the version information of the target object is inconsistent and/or the current test plan node is not matched with the second identifier; the prompt information is used for prompting the reason that the to-be-tested object cannot be tested currently;
and sending the prompt information to the test control terminal.
Optionally, after the step of obtaining the first identifier of the object to be tested, the flow control terminal is further configured to:
obtaining a test result of the object to be tested at a target test station from a server; the target test station comprises all the test stations before the station to be tested;
under the condition that the test result represents that at least one target object fails to be tested at the target test station, generating a target test plan according to the test result;
and controlling the test terminal to test the object to be tested according to the target test plan through the test control terminal.
Optionally, the test control terminal is further configured to:
acquiring a test stopping instruction sent by a flow control terminal; the flow control terminal monitors the test state of the test control terminal and generates the test stop instruction when the test state characterizes that the test is abnormal; and controlling the test terminal to stop testing the object to be tested according to the test stopping instruction.
In a second aspect, the present application provides a testing method, applied to a flow control terminal, where the method includes:
Acquiring a first identifier of a to-be-tested object and a second identifier of a to-be-tested station; the station to be tested is the current station of the object to be tested; the object to be tested comprises at least one target object;
obtaining version information of all the target objects returned based on the first identification and a current test plan node from a server;
transmitting a test instruction to a test control terminal under the condition that the version information of all the target objects is consistent and the current test plan node is matched with the second identifier; the test instruction is used for instructing the test control terminal to control the test terminal to start testing.
In a third aspect, the present application provides a testing method applied to a test control terminal, where the method includes:
acquiring a test instruction sent by a flow control terminal; the test instruction is sent by the flow control terminal under the condition that the version information of all target objects is consistent and the current test plan node is matched with the second identifier of the station to be tested; all the version information of the target object and the current test plan node are obtained by the flow control terminal from a server based on a first identifier of the object to be tested; the first identifier and the second identifier are acquired by the flow control terminal; the station to be tested is the current station of the object to be tested; the object to be tested comprises at least one target object;
And controlling a test terminal to start testing the object to be tested according to the test instruction.
In a fourth aspect, the present application provides a testing device applied to a flow control terminal, where the device includes:
the first acquisition module is used for acquiring a first identifier of a to-be-tested object and a second identifier of a to-be-tested station; the station to be tested is the current station of the object to be tested; the object to be tested comprises at least one target object;
the second acquisition module is used for acquiring version information of all the target objects returned based on the first identification and the current test plan node from a server;
the sending module is used for sending a test instruction to the test control terminal under the condition that the version information of all the target objects is consistent and the current test plan node is matched with the second identifier; the test instruction is used for controlling the test terminal to start testing by the test control terminal.
In a fifth aspect, the present application provides a test apparatus applied to a test control terminal, the apparatus comprising:
the third acquisition module is used for acquiring a test instruction sent by the flow control terminal; the test instruction is sent by the flow control terminal under the condition that the version information of all target objects is consistent and the current test plan node is matched with the second identifier of the station to be tested; all the version information of the target object and the current test plan node are obtained by the flow control terminal from a server based on a first identifier of the object to be tested; the first identifier and the second identifier are acquired by the flow control terminal; the station to be tested is the current station of the object to be tested; the object to be tested comprises at least one target object;
And the control module is used for controlling the test terminal to start testing the object to be tested according to the test instruction.
In a sixth aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and a processor, configured to implement the testing method according to any one of the embodiments of the first aspect or implement the steps of the testing method according to any one of the embodiments of the second aspect when executing the program stored in the memory.
In a seventh aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the test method according to any one of the embodiments of the first aspect or the steps of the test method according to any one of the embodiments of the second aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: the system provided by the embodiment of the application comprises: the system comprises a flow control terminal, a test control terminal and a server; the flow control terminal is used for acquiring a first identifier of a to-be-tested object and a second identifier of a to-be-tested station; the station to be tested is the current station of the object to be tested; the object to be tested comprises at least one target object; transmitting the first identification to the server; the server is used for determining the version information of the target object and the current test plan node according to the first identifier, and returning the version information of the target object and the current test plan node to the flow control terminal; the flow control terminal is further configured to send a test instruction to the test control terminal when version information of all the target objects is consistent and the current test plan node is matched with the second identifier; and the test control terminal is used for controlling the test terminal to start testing the object to be tested according to the test instruction. In the test system, the flow control terminal can determine whether the test control terminal can start to test the object to be tested according to the first identifier of the object to be tested and the second identifier of the station to be tested, so that the artificial control of the test process is not needed, the artificial leakage is avoided, and the quality index of the product can be improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
FIG. 1 is a system architecture diagram of a test system according to one embodiment of the present application;
FIG. 2 is a schematic diagram of a test flow provided in one embodiment of the present application;
FIG. 3 is a schematic diagram of a testing flow of multiple testing stations according to an embodiment of the present application;
FIG. 4 is a schematic diagram of structures of an observer and an observed person according to an embodiment of the present disclosure;
FIG. 5 is a flow chart of a testing method according to an embodiment of the present application;
FIG. 6 is a flow chart of a testing method according to another embodiment of the present application;
FIG. 7 is a schematic structural diagram of a testing device according to an embodiment of the present disclosure;
FIG. 8 is a schematic structural diagram of a testing device according to another embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
The following disclosure provides many different embodiments, or examples, for implementing different structures of the application. In order to simplify the disclosure of the present application, the components and arrangements of specific examples are described below. Of course, they are merely examples and are not intended to limit the present application. Furthermore, the present application may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed.
For the convenience of understanding the technical solutions of the present application, related solutions in the prior art will be described first.
At present, in the electronic product manufacturing industry, after the production of a main board of an electronic product is completed, the function of the main board needs to be checked, a standard test flow defined by a customer is provided, the test needs to be performed strictly according to the flow, and otherwise, the flow is abnormal. For example, according to the customer defined test flow and capacity requirements, the test station 7 stations, A-G stations respectively, are co-planned, while the standard test flow is A-B-C-D-E-F-G, and the next station can be tested after the pre-station test PASS (PASS) is specified. If the front station is not tested or PASS is not tested, the front station directly enters the next station for testing, the testing terminal of the next station reports the abnormal station jump, and the abnormal station is uploaded to the client system as an important quality index. Meanwhile, along with globalization of trade, different versions of mainboards are produced according to regulations of different regions of the world, wherein different versions mean different test items, and also mean that the mainboards of different versions cannot be tested simultaneously. While different versions of the motherboard cannot be distinguished from each other in appearance, each motherboard has a unique identification code (e.g., SN) that can distinguish between different versions by several of the letters and numbers of the SN. The SN code can be presented on the motherboard in the form of a two-dimensional code. For example, two versions of alpha and beta of mainboards need to be tested, five test terminals A1-A5 can be used for testing in the station A, and each terminal can test 4 mainboards simultaneously. If the 4 alpha version mainboards are placed in the A1 terminal, normal testing can be performed; if the 2 alpha version and the 2 beta version mainboards are placed in the A1 terminal, a 'mixed test' abnormality is reported, and the abnormality is uploaded to a client system as an important quality index. In addition, the customer can provide new programs for the test terminal at random, and verification needs to be performed on a small number of sub-platforms before the test terminal is imported, so that a part of specific mainboards are required to be tested on the fixed test terminal, and data collection is facilitated.
At present, the above management and control modes are usually manual management and control, for example, a work flow is that staff puts a mainboard to be tested into a test terminal, a manual instruction is given to enable the test terminal to start testing, and the test terminal feeds back a test result to a test control terminal. If the related abnormality of station jump or mixed test occurs, staff can manually inquire the testing flow or the version information of the main board to be tested and then manually place the main board to the correct station or test the main board with the same version. If a special control situation is met, an extra staff is added for the control test, so that the workload of the staff and the staff is greatly increased, artificial leakage is easily generated, and the quality index is influenced.
In order to solve or at least partially solve the above technical problems, the present application provides a test system, where a system architecture of the test system may be as shown in fig. 1, and the system architecture at least includes a flow control terminal 101, a test control terminal 102, and a server 103, where the flow control terminal 101 and the test control terminal 102 respectively establish a communication connection with the server 103.
The flow control terminal 101 is configured to obtain a first identifier of a to-be-tested object and a second identifier of a to-be-tested station, where the to-be-tested station is a current station of the to-be-tested object; the object to be tested comprises at least one target object and the first identification is sent to the server 103.
The first identifier may be a unique identifier code of the object to be tested, such as an SN code, which may be in the form of a two-dimensional code, and may be obtained by scanning the two-dimensional code through an optical device, such as a scanning gun, without limitation. The second identifier may be a station identifier or a station number of a current station to be tested of the object to be tested, for example, the test station has three stations, namely, an a station, a B station and a C station, and the station to be tested may be any one of the test stations. Each of the to-be-tested sites may measure a plurality of target objects at the same time, that is, the to-be-tested object may include one target object, or may include a plurality of target objects, such as 2, 4, 6, 8, etc., without limitation, it should be noted that when the to-be-tested object includes a plurality of target objects, the first identifier of the to-be-tested object includes a unique identifier of each target object, respectively.
And the server 103 is configured to determine the version information of the target object and the current test plan node according to the first identifier, and return the version information of the target object and the current test plan node to the flow control terminal 101.
The flow control terminal can send the acquired first identification of the object to be tested to the server, and the server returns version information corresponding to each target object and the current test plan node of the target object to the flow control terminal based on the first identification. For example, when the test sites include three test sites of an a site, a B site and a C site, if the target object has already been tested for the a site, the current test plan node of the target object is the B site.
The flow control terminal 101 is further configured to send a test instruction to the test control terminal 102 when the version information of all the target objects is consistent and the current test plan node matches the second identifier.
If the version information of all the target objects is consistent, that is, all the target objects can be tested at the same time, and the current test plan node is matched with the second identifier, the fact that all the target objects can be tested at the current station to be tested is indicated, and a test instruction is sent to the test control terminal.
The test control terminal 102 is configured to control the test terminal to start testing the object to be tested according to the test instruction.
The test control terminal can control each test terminal under the test control terminal to start to test the object to be tested according to the test instruction.
The flow control terminal 101 may be a device such as a desktop computer, a tablet computer, a notebook computer, an supercomputer, an industrial personal computer, etc., the test control terminal 102 may also be a device such as a desktop computer, a tablet computer, a notebook computer, an supercomputer, an industrial personal computer, etc., the server 103 may be a local server, a cloud server, or a server cluster, and when the server 103 is a cloud server, it may also be simply called a cloud.
In the test system, the flow control terminal can determine whether the test control terminal can start to test the object to be tested according to the first identifier of the object to be tested and the second identifier of the station to be tested, so that the artificial control of the test process is not needed, the artificial leakage is avoided, and the quality index of the product can be improved.
In one embodiment, the flow control terminal is further configured to: generating prompt information under the condition that the version information of at least one target object is inconsistent and/or the current test plan node is not matched with the second identifier; the prompt information is used for prompting the reason that the object to be tested cannot be tested currently; and sending the prompt information to the test control terminal.
In this embodiment, 1 to 4 target objects (i.e. objects to be tested) to be tested are placed on each test terminal, and the server is illustrated as a cloud server, as shown in fig. 2, the test flow of the test system may include the following steps:
s1: acquiring the identity identification codes of 1-4 target objects to be tested and the station identification codes to be tested through optical devices;
s2: accessing a cloud (i.e. a cloud server), and acquiring 1-4 target object version information and current test plan nodes thereof by using the identity identification codes of the target objects;
S3: judging whether the version information of 1-4 target objects is unified;
s4: judging whether the current test plan node is matched with the station to be tested or not;
s5: if the steps S3 and S4 are both judged to be normal, a test starting instruction is sent to the test control terminal;
s6: the test control terminal controls the test terminal to automatically close and start the test through the RS232 serial interface;
s7: after the test is finished, the test control terminal controls the test terminal to be automatically opened, and the test result is uploaded to the cloud;
s8: if any one of the results in the steps S3 and S4 is abnormal, the flow control terminal sends prompt information to the test control terminal, wherein the prompt information is 'abnormal in test flow' or 'non-uniform in test version', and the test control terminal does not send a 'start test' instruction.
In this embodiment, an optical device such as a scanning gun scans an identification code (such as a two-dimensional code carrying a first identifier) of a target object and an identification code of a station to be tested, and transmits scanning information (i.e., information of the object to be tested) to a flow control terminal, the flow control terminal accesses a database in a cloud, acquires version information of each target object and a current test plan node of the target object from the database through the identification code of the target object, the flow control terminal determines whether the version information of the target object is unified (the versions cannot be tested at the same time if the versions are not unified) and determines whether the current test plan node is matched with the station to be tested, if the version information is unified and the station is matched, the flow control terminal sends a test instruction to the test control terminal, and the test control terminal controls each test terminal to perform a test and uploads a test result to the cloud after the test of the current station is completed. If any result of the step S3 and the step S4 is not matched or unified, the flow control terminal sends prompt information, namely the reason that the test cannot be performed, to the test control terminal.
In this embodiment, the staff only needs to complete two main working steps of placing the main board to be tested and acquiring information by using the scanning gun, and the rest of control contents are completed by the system control terminal, if the main board is abnormal, the display screen of the corresponding test control terminal can display related prompt information, and the staff only needs to operate according to the prompt, so that the method is simple and quick, and because the workload of the staff can be reduced, the steps of manually controlling the test process are reduced, the condition of manual loss is avoided, and the quality index of the product can be improved.
In this embodiment, before the test is performed, a control operation is performed, so as to reduce occurrence of abnormal flow, further improve quality index, and obtain approval of clients more easily.
In the communication function test of electronic products, communication calibration and test are required to be performed on the products, and the principle of calibration before test is followed, generally, front station calibration and rear station test are adopted. The result of the post-station test has strong correlation with the calibration of the pre-station, but the difference of electronic components can lead to inaccurate calibration, thereby leading to abnormal post-station test, and often requiring back-flow of the pre-station for recalibration.
In one embodiment, after the flow control terminal obtains the first identifier of the object to be tested, the flow control terminal is further configured to: obtaining a test result of a to-be-tested object at a target test station from a server; the target test station comprises all the test stations before the station to be tested; under the condition that the test result represents that at least one target object fails to be tested in the target test station, generating a target test plan according to the test result; and controlling the test terminal to test the object to be tested according to the target test plan through the test control terminal.
In this embodiment, as shown in fig. 3, after acquiring identity information of an object to be tested, the flow control terminal accesses the cloud database to acquire a test result, and determines whether a test plan needs to be changed. And if so, according to the changed test plan.
The test sites may include a site to N sites for N sites, this time 3 sites for a product test site, illustrated as a site, B site, and C site respectively, as follows:
the A station has 20 test terminals A1, A2 and A3 … … … A20, the B station has 10 test terminals B1, B2 and B3 … … B10, and the C station has 15 test terminals C1, C2 and C3 … … C15. Four target objects to be tested are respectively 100, 101, 102 and 103, and the initial test is as follows: a station-B station-C station-end test.
The 4 products were all tested Pass at the a-site and B-site.
Example 1: at the C site test, 100 shows the X term fail, associated with the A site. After acquiring the information, the flow control terminal changes the test plan of 100 products, and changes the test plan into A station-B station-C station-ending test.
Example 2: at the time of the C-site test, 100 shows the Y term fail, associated with the B-site. After acquiring the information, the flow control terminal changes the test plan of the 100 products, and changes the test plan into A station-B station-C station-end test, without restarting the test from the A station, and only by restarting the test from the B station with the error.
In one embodiment, after the flow control terminal sends a test instruction to the test control terminal, the flow control terminal is further configured to monitor a test state of the test control terminal; generating a test stopping instruction when the test state represents that the test is abnormal; and controlling the test terminal to stop testing by the test control terminal according to the test stopping instruction.
In this embodiment, the flow control terminal may monitor the test state of the test control terminal, and when the test is abnormal, the test control terminal controls the test terminal to stop the test.
Specifically, the test control terminal is used for: acquiring a test stopping instruction sent by a flow control terminal; the flow control terminal monitors the test state of the test control terminal, and generates a test stop instruction when the test state characterizes that the test is abnormal; and controlling the test terminal to stop testing the object to be tested according to the test stopping instruction.
In this embodiment, an "observer mode" may be used for the association response between the flow control terminal and the test control terminal.
There are mainly two objects in observer mode, observer and observed, when the observed state changes, it will inform all observer objects so that they can respond in time.
The observer mode is mainly composed of four modules: sampling observers, specific observers, sampling observers, specific observers.
Abstract observed person (Subject): an interface is defined that includes methods of registering an observer, deleting an observer, notifying an observer, etc.
Specific observed person (ConcreteStubject): an abstract observed interface is implemented, maintaining a list of observers, and notifying all registered observers when a state change occurs.
Abstract Observer (Observer): an interface is defined that includes a method of updating a state.
Specific observer (ConcreteObserver): an abstract observer interface is realized, the observed object to be observed is stored, and corresponding processing is carried out when the state of the observed object is changed.
The unified modeling language (unified modeling language, UML) class diagram structure relationship among the four is shown in fig. 4, in this embodiment, the sampling observer and the specific observer form a flow control terminal, and the sampling observed person and the specific observed person form all test control terminals. When the judging result of the product to be tested changes, the corresponding test control terminal is informed to update the corresponding state, namely, the corresponding instruction is executed. The method can ensure that the flow control terminal and the test control terminal can communicate only by acquiring the interface without knowing how the other party executes instructions or judges, thereby avoiding tight coupling. Meanwhile, the flow control terminal of the method does not need to know a specific test control terminal, and can communicate only by finding out a corresponding interface, so that the flexibility of the whole system is improved.
In this embodiment, the flow control terminal is an observer, and each test control terminal is an observed person, once the state of the test control terminal changes (for example, if it is judged that the flow is abnormal), the flow control terminal can discover the change at the first time and make corresponding actions (for example, prevent testing) to control the test control terminal, so that the test control terminal stops testing instead of simply transmitting a control instruction from the flow control terminal to the test control terminal, and directly executing a stop test instruction through the test control terminal.
Based on the same technical concept, an embodiment of the present application provides a testing method, which can be applied to the flow control terminal 101 or the test control terminal 102 in the system architecture. When applied to a flow control terminal, the test method, as shown in fig. 5, includes:
step 501, obtaining a first identifier of a to-be-tested object and a second identifier of a to-be-tested station, where the to-be-tested station is a current station of the to-be-tested object, and the to-be-tested object includes at least one target object.
The first identifier may be a unique identifier code of the object to be tested, such as an SN code, which may be in the form of a two-dimensional code, and may be obtained by scanning the two-dimensional code through an optical device, such as a scanning gun, without limitation. The second identifier may be a station identifier or a station number of a current station to be tested of the object to be tested, for example, the test station has three stations, namely, an a station, a B station and a C station, and the station to be tested may be any one of the test stations. Each of the to-be-tested sites may measure a plurality of target objects at the same time, that is, the to-be-tested object may include one target object, or may include a plurality of target objects, such as 2, 4, 6, 8, etc., without limitation, it should be noted that when the to-be-tested object includes a plurality of target objects, the first identifier of the to-be-tested object includes a unique identifier of each target object, respectively.
Step 502, obtaining version information of all target objects returned based on the first identification and the current test plan node from the server.
The flow control terminal can send the obtained first identification of the object to be tested to the server, and obtain version information corresponding to each target object returned based on the first identification and the current test plan node of the target object from the server. For example, when the test sites include three test sites of an a site, a B site and a C site, if the target object has already been tested for the a site, the current test plan node of the target object is the B site.
And step 503, sending a test instruction to the test control terminal under the condition that the version information of all the target objects is consistent and the current test plan node is matched with the second identifier, wherein the test instruction is used for indicating the test control terminal to control the test terminal to start testing.
If the version information of all the target objects is consistent, that is, all the target objects can be tested at the same time, and the current test plan node is matched with the second identifier, the fact that all the target objects can be tested at the current station to be tested is indicated, a test instruction is sent to the test control terminal, and the test control terminal can control all the test terminals under the test control terminal to start to test the object to be tested according to the test instruction.
According to the method, whether the to-be-tested object can continue testing or not can be determined according to the first identification of the to-be-tested object and the second identification of the to-be-tested station, the artificial control of the testing process is not needed, the artificial leakage is avoided, and the quality index of the product can be improved.
In one embodiment, the test method further comprises: and generating prompt information under the condition that the version information of at least one target object is inconsistent and/or the current test plan node is not matched with the second identifier, wherein the prompt information is used for prompting the reason that the object to be tested cannot be tested currently, and sending the prompt information to the test control terminal.
With 1 to 4 target objects (i.e. objects to be tested) to be placed on each test terminal, the server is illustrated as a cloud server, as shown in fig. 2, the test method includes the following steps:
s1: acquiring the identity identification codes of 1-4 target objects to be tested and the station identification codes to be tested through optical devices;
s2: accessing a cloud (i.e. a cloud server), and acquiring 1-4 target object version information and current test plan nodes thereof by using the identity identification codes of the target objects;
s3: judging whether the version information of 1-4 target objects is unified;
S4: judging whether the current test plan node is matched with the station to be tested or not;
s5: if the steps S3 and S4 are both judged to be normal, a test starting instruction is sent to the test control terminal;
s6: the test control terminal controls the test terminal to automatically close and start the test through the RS232 serial interface;
s7: after the test is finished, the test control terminal controls the test terminal to be automatically opened, and the test result is uploaded to the cloud;
s8: if any one of the results in the steps S3 and S4 is abnormal, the flow control terminal sends prompt information to the test control terminal, wherein the prompt information is 'abnormal in test flow' or 'non-uniform in test version', and the test control terminal does not send a 'start test' instruction.
In this embodiment, an optical device such as a scanning gun scans an identification code (such as a two-dimensional code carrying a first identifier) of a target object and an identification code of a station to be tested, and transmits scanning information (i.e., information of the object to be tested) to a flow control terminal, the flow control terminal accesses a database in a cloud, acquires version information of each target object and a current test plan node of the target object from the database through the identification code of the target object, the flow control terminal determines whether the version information of the target object is unified (the versions cannot be tested at the same time if the versions are not unified) and determines whether the current test plan node is matched with the station to be tested, if the version information is unified and the station is matched, the flow control terminal sends a test instruction to the test control terminal, and the test control terminal controls each test terminal to perform a test and uploads a test result to the cloud after the test of the current station is completed. If any result of the step S3 and the step S4 is not matched or unified, the flow control terminal sends prompt information, namely the reason that the test cannot be performed, to the test control terminal.
In this embodiment, the staff only needs to complete two main working steps of placing the main board to be tested and acquiring information by using the scanning gun, and the rest of control contents are completed by the system control terminal, if the main board is abnormal, the display screen of the corresponding test control terminal can display related prompt information, and the staff only needs to operate according to the prompt, so that the method is simple and quick, and because the workload of the staff can be reduced, the steps of manually controlling the test process are reduced, the condition of manual loss is avoided, and the quality index of the product can be improved.
In this embodiment, before the test is performed, a control operation is performed, so as to reduce occurrence of abnormal flow, further improve quality index, and obtain approval of clients more easily.
In the communication function test of electronic products, communication calibration and test are required to be performed on the products, and the principle of calibration before test is followed, generally, front station calibration and rear station test are adopted. The result of the post-station test has strong correlation with the calibration of the pre-station, but the difference of electronic components can lead to inaccurate calibration, thereby leading to abnormal post-station test, and often requiring back-flow of the pre-station for recalibration.
In one embodiment, after obtaining the first identifier of the object to be tested, the method further includes: and obtaining a test result of the object to be tested at the target test station from the server, wherein the target test station comprises all the test stations before the object to be tested, and under the condition that the test result represents that at least one target object fails in the test of the target test station, generating a target test plan according to the test result, and controlling the test terminal to test the object to be tested according to the target test plan through the test control terminal.
In this embodiment, as shown in fig. 3, after acquiring identity information of an object to be tested, the flow control terminal accesses the cloud database to acquire a test result, and determines whether a test plan needs to be changed. And if so, according to the changed test plan.
The test sites may include a site to N sites for N sites, this time 3 sites for a product test site, illustrated as a site, B site, and C site respectively, as follows:
the A station has 20 test terminals A1, A2 and A3 … … … A20, the B station has 10 test terminals B1, B2 and B3 … … B10, and the C station has 15 test terminals C1, C2 and C3 … … C15. Four target objects to be tested are respectively 100, 101, 102 and 103, and the initial test is as follows: a station-B station-C station-end test.
The 4 products were all tested Pass at the a-site and B-site.
Example 1: at the C site test, 100 shows the X term fail, associated with the A site. After acquiring the information, the flow control terminal changes the test plan of 100 products, and changes the test plan into A station-B station-C station-ending test.
Example 2: at the time of the C-site test, 100 shows the Y term fail, associated with the B-site. After acquiring the information, the flow control terminal changes the test plan of the 100 products, and changes the test plan into A station-B station-C station-end test, without restarting the test from the A station, and only by restarting the test from the B station with the error.
In one embodiment, after sending the test instruction to the test control terminal, the method further includes: monitoring the test state of the test control terminal; generating a test stopping instruction when the test state represents that the test is abnormal; and controlling the test terminal to stop testing by the test control terminal according to the test stopping instruction.
In this embodiment, the flow control terminal may monitor the test state of the test control terminal.
For example, the flow control terminal and the test control terminal may adopt an "observer mode" to perform an association response, and the related scheme is explained in the above embodiment and will not be described again.
When applied to a test control terminal, as shown in fig. 6, the test method includes:
step 601, obtaining a test instruction sent by a flow control terminal, wherein the test instruction is sent by the flow control terminal when version information of all target objects is consistent, and when a current test plan node is matched with a second identifier of a to-be-tested station, the version information of all target objects and the current test plan node are obtained by the flow control terminal from a server based on a first identifier of the to-be-tested object, the first identifier and the second identifier are obtained by the flow control terminal, wherein the to-be-tested station is the current station of the to-be-tested object, and the to-be-tested object comprises at least one target object.
Step 602, controlling a test terminal to start testing the object to be tested according to the test instruction.
According to the method, the test mode of the test terminal is changed from manual command to automatic test by the test control terminal, namely, manual operation is changed into automatic operation, so that the degree of human participation in the test is reduced, whether the test can be continued or not can be determined according to the first identification of the test object and the second identification of the station to be tested, the process of manual control test is not needed, the condition of human leakage is avoided, and the quality index of the product can be improved.
In one embodiment, the method further comprises: and acquiring a test stopping instruction sent by the flow control terminal, wherein the test stopping instruction is generated when the test state represents that the test is abnormal by monitoring the test state of the test control terminal by the flow control terminal, and controlling the test terminal to stop testing the object to be tested according to the test stopping instruction.
In this embodiment, the related methods are described in detail in the test system, and are not described here again.
Based on the same technical concept, an embodiment of the present application provides a testing device, which can be applied to a flow control terminal and also can be applied to a flow control terminal.
As shown in fig. 7, when applied to a flow control terminal, the apparatus includes:
a first obtaining module 701, configured to obtain a first identifier of a to-be-tested object and a second identifier of a to-be-tested station; the station to be tested is the current station of the object to be tested; the object to be tested comprises at least one target object;
a second obtaining module 702, configured to obtain, from a server, version information of all the target objects returned based on the first identifier and a current test plan node;
a sending module 703, configured to send a test instruction to a test control terminal when version information of all the target objects is consistent and the current test plan node is matched with the second identifier; the test instruction is used for controlling the test terminal to start testing by the test control terminal.
The device can determine whether the to-be-tested object can continue testing according to the first identification of the to-be-tested object and the second identification of the to-be-tested station, and the artificial control of the testing process is not needed, so that the artificial leakage is avoided, and the quality index of the product can be improved.
As shown in fig. 8, when applied to a test control terminal, the apparatus includes:
A third obtaining module 801, configured to obtain a test instruction sent by the flow control terminal; the test instruction is sent by the flow control terminal under the condition that the version information of all target objects is consistent and the current test plan node is matched with the second identifier of the station to be tested; all the version information of the target object and the current test plan node are obtained by the flow control terminal from a server based on a first identifier of the object to be tested; the first identifier and the second identifier are acquired by the flow control terminal; the station to be tested is the current station of the object to be tested; the object to be tested comprises at least one target object;
and the control module 802 is configured to control the test terminal to start testing the object to be tested according to the test instruction.
The device can determine whether the to-be-tested object can continue testing according to the first identifier of the to-be-tested object and the second identifier of the to-be-tested station, does not need to manually control the testing process, avoids the condition of manual leakage, changes the testing mode of the testing terminal from manual instruction to automatic testing by the testing control terminal, namely, changes manual operation into automatic operation, reduces the degree of manual participation in testing, and can improve the quality index of products.
As shown in fig. 9, the embodiment of the present application provides an electronic device, which includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 perform communication with each other through the communication bus 114,
a memory 113 for storing a computer program;
in one embodiment of the present application, the processor 111 is configured to implement the steps of the test method provided in any one of the foregoing method embodiments when executing the program stored in the memory 113.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the test method provided by any of the method embodiments described above.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
From the above description of embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus a general purpose hardware platform, or may be implemented by hardware. Based on such understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the related art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the method described in the respective embodiments or some parts of the embodiments.
It is to be understood that the terminology used herein is for the purpose of describing particular example embodiments only, and is not intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The terms "comprises," "comprising," "includes," "including," and "having" are inclusive and therefore specify the presence of stated features, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and/or groups thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring their performance in the particular order described or illustrated, unless an order of performance is explicitly stated. It should also be appreciated that additional or alternative steps may be used.
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application. In the description, suffixes such as "module", "part" or "unit" used for representing elements are used only for facilitating the description of the present application, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The foregoing is merely a specific embodiment of the application to enable one skilled in the art to understand or practice the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A test system, comprising: the system comprises a flow control terminal, a test control terminal and a server;
the flow control terminal is used for acquiring a first identifier of a to-be-tested object and a second identifier of a to-be-tested station; the station to be tested is the current station of the object to be tested; the object to be tested comprises at least one target object; transmitting the first identification to the server;
The server is used for determining the version information of the target object and the current test plan node according to the first identifier, and returning the version information of the target object and the current test plan node to the flow control terminal;
the flow control terminal is further configured to send a test instruction to the test control terminal when version information of all the target objects is consistent and the current test plan node is matched with the second identifier;
and the test control terminal is used for controlling the test terminal to start testing the object to be tested according to the test instruction.
2. The system of claim 1, wherein after the step of sending a test instruction to a test control terminal, the flow control terminal is further configured to monitor a test status of the test control terminal; generating a test stopping instruction when the test state characterization test is abnormal; and controlling the test terminal to stop testing by the test control terminal according to the test stopping instruction.
3. The system of claim 1, wherein the flow control terminal is further configured to:
Generating prompt information under the condition that at least one of the version information of the target object is inconsistent and/or the current test plan node is not matched with the second identifier; the prompt information is used for prompting the reason that the to-be-tested object cannot be tested currently;
and sending the prompt information to the test control terminal.
4. A system according to claim 3, wherein after the step of obtaining the first identification of the object to be tested, the flow control terminal is further configured to:
obtaining a test result of the object to be tested at a target test station from a server; the target test station comprises all the test stations before the station to be tested;
under the condition that the test result represents that at least one target object fails to be tested at the target test station, generating a target test plan according to the test result;
and controlling the test terminal to test the object to be tested according to the target test plan through the test control terminal.
5. The system of claim 1, wherein the test control terminal is further configured to:
acquiring a test stopping instruction sent by a flow control terminal; the flow control terminal monitors the test state of the test control terminal and generates the test stop instruction when the test state characterizes that the test is abnormal; and controlling the test terminal to stop testing the object to be tested according to the test stopping instruction.
6. A test method, applied to a flow control terminal, comprising:
acquiring a first identifier of a to-be-tested object and a second identifier of a to-be-tested station; the station to be tested is the current station of the object to be tested; the object to be tested comprises at least one target object;
obtaining version information of all the target objects returned based on the first identification and a current test plan node from a server;
transmitting a test instruction to a test control terminal under the condition that the version information of all the target objects is consistent and the current test plan node is matched with the second identifier; the test instruction is used for instructing the test control terminal to control the test terminal to start testing.
7. A test method applied to a test control terminal, the method comprising:
acquiring a test instruction sent by a flow control terminal; the test instruction is sent by the flow control terminal under the condition that the version information of all target objects is consistent and the current test plan node is matched with the second identifier of the station to be tested; all the version information of the target object and the current test plan node are obtained by the flow control terminal from a server based on a first identifier of the object to be tested; the first identifier and the second identifier are acquired by the flow control terminal; the station to be tested is the current station of the object to be tested; the object to be tested comprises at least one target object;
And controlling a test terminal to start testing the object to be tested according to the test instruction.
8. A test device, applied to a flow control terminal, comprising:
the first acquisition module is used for acquiring a first identifier of a to-be-tested object and a second identifier of a to-be-tested station; the station to be tested is the current station of the object to be tested; the object to be tested comprises at least one target object;
the second acquisition module is used for acquiring version information of all the target objects returned based on the first identification and the current test plan node from a server;
the sending module is used for sending a test instruction to the test control terminal under the condition that the version information of all the target objects is consistent and the current test plan node is matched with the second identifier; the test instruction is used for controlling the test terminal to start testing by the test control terminal.
9. The electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
A memory for storing a computer program;
a processor for implementing the steps of the test method of claim 6 or 7 when executing a program stored on a memory.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the test method according to claim 6 or 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311586317.3A CN117743044A (en) | 2023-11-24 | 2023-11-24 | Test system, method and device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311586317.3A CN117743044A (en) | 2023-11-24 | 2023-11-24 | Test system, method and device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117743044A true CN117743044A (en) | 2024-03-22 |
Family
ID=90249840
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311586317.3A Pending CN117743044A (en) | 2023-11-24 | 2023-11-24 | Test system, method and device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117743044A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111199353A (en) * | 2019-12-31 | 2020-05-26 | Oppo(重庆)智能科技有限公司 | Test method and test system |
CN113469648A (en) * | 2021-06-25 | 2021-10-01 | 广州得尔塔影像技术有限公司 | Test flow control method, system, readable storage medium and control terminal |
US20210405111A1 (en) * | 2020-06-29 | 2021-12-30 | Baidu Online Network Technology (Beijing) Co., Ltd. | Test method and electronic device |
CN115293652A (en) * | 2022-09-26 | 2022-11-04 | 立臻科技(昆山)有限公司 | Product line testing method and system |
-
2023
- 2023-11-24 CN CN202311586317.3A patent/CN117743044A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111199353A (en) * | 2019-12-31 | 2020-05-26 | Oppo(重庆)智能科技有限公司 | Test method and test system |
US20210405111A1 (en) * | 2020-06-29 | 2021-12-30 | Baidu Online Network Technology (Beijing) Co., Ltd. | Test method and electronic device |
CN113469648A (en) * | 2021-06-25 | 2021-10-01 | 广州得尔塔影像技术有限公司 | Test flow control method, system, readable storage medium and control terminal |
CN115293652A (en) * | 2022-09-26 | 2022-11-04 | 立臻科技(昆山)有限公司 | Product line testing method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108647141B (en) | Automatic test method, device, computer readable medium and electronic equipment | |
CN109726108B (en) | Front-end code testing method, device, system and medium based on analog data | |
CN112446786A (en) | Abnormal transaction processing method and device, electronic equipment and readable storage medium | |
CN112732499B (en) | Testing method and device based on micro-service architecture and computer system | |
CN108270646B (en) | Method and device for detecting electronic class board network | |
CN110221948A (en) | Test script generation method, device, computer installation and storage medium | |
CN111611140A (en) | Reporting verification method and device of buried point data, electronic equipment and storage medium | |
US20210337376A1 (en) | Method for automatically upgrading firmware over the air and wireless node | |
CN117743044A (en) | Test system, method and device and storage medium | |
CN112134946A (en) | Test method, device, storage medium, terminal and system of elevator Internet of things | |
CN107807885B (en) | Task information display method and device | |
CN111277438A (en) | Fault processing method, device and system | |
CN112650815B (en) | Method and device for synchronizing environment data, storage medium and electronic device | |
GB2583903A (en) | Testing virtualised network functions | |
CN111782445B (en) | Configuration method and device of equipment debugging environment | |
CN114356769A (en) | Software learning method, device, equipment and storage medium | |
CN110618943A (en) | Security service test method and device, electronic equipment and readable storage medium | |
CN113923134B (en) | Interface testing method and device | |
CN110752950A (en) | Update detection method and device for cloud resource pool and terminal equipment | |
CN110188021A (en) | A kind of automated testing method of server | |
CN118132358B (en) | Error injection method, system, upper computer, controller, equipment and storage medium | |
CN113760710B (en) | Task testing method, device, computer equipment and readable storage medium | |
CN111371900B (en) | Method and system for monitoring health state of synchronous link | |
CN117632723B (en) | Automatic simulation adjustment and measurement method, system, equipment and medium | |
CN118827747A (en) | Large-screen equipment batch connection method, device, equipment 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 |