CN115184717B - Test method and device based on multiple devices to be tested and electronic device - Google Patents

Test method and device based on multiple devices to be tested and electronic device Download PDF

Info

Publication number
CN115184717B
CN115184717B CN202211118563.1A CN202211118563A CN115184717B CN 115184717 B CN115184717 B CN 115184717B CN 202211118563 A CN202211118563 A CN 202211118563A CN 115184717 B CN115184717 B CN 115184717B
Authority
CN
China
Prior art keywords
tested
test
equipment
sequence
instrument
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
CN202211118563.1A
Other languages
Chinese (zh)
Other versions
CN115184717A (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.)
Weizhun Beijing Electronic Technology Co ltd
Original Assignee
Weizhun Beijing Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weizhun Beijing Electronic Technology Co ltd filed Critical Weizhun Beijing Electronic Technology Co ltd
Priority to CN202211118563.1A priority Critical patent/CN115184717B/en
Publication of CN115184717A publication Critical patent/CN115184717A/en
Application granted granted Critical
Publication of CN115184717B publication Critical patent/CN115184717B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/01Subjecting similar articles in turn to test, e.g. "go/no-go" tests in mass production; Testing objects at points as they pass through a testing station
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to the technical field of electronic equipment testing, and provides a testing method and device based on multiple devices to be tested and electronic equipment. The method comprises the following steps: the method comprises the steps of sorting at least two devices to be tested based on the sequence of wired connection with a testing instrument under the condition that the testing instrument is in wired connection with the at least two devices to be tested, sequentially testing the at least two devices to be tested in the sorting based on a testing program preset on the testing instrument, wherein the testing comprises entity testing and signal testing, when the devices to be tested in the sorting are tested, the devices to be tested are reconnected according to the condition that an interface of the testing instrument, which is in wired connection with the devices to be tested, is connected with the devices to be tested, the sorting is updated, after the sorting is updated, the device models in the sorting are detected, when the device models in the sorting are consistent, the entity testing is synchronously performed, and the signal testing is respectively performed according to the sorting after the completion. The test method and the test device realize gapless test of a plurality of devices to be tested, and improve test efficiency.

Description

Test method and device based on multiple devices to be tested and electronic device
Technical Field
The present disclosure relates to the field of electronic device testing technologies, and in particular, to a testing method and apparatus based on multiple devices to be tested, and an electronic device.
Background
Before the electronic device leaves the factory, various tests or tests are generally required, for example, before the mobile phone leaves the factory, physical tests such as an interface and a power supply are required, and wireless signal tests such as bluetooth and a network are also required. The existing testing method generally includes the steps of connecting an electronic device with a testing instrument in a wired mode, automatically testing or detecting the electronic device according to a preset program, and finally displaying a testing or detecting result of the electronic device in a screen display mode.
However, in practical applications, after the test of the electronic device is completed, the electronic device needs to be disconnected from the test apparatus, and then reconnected to the next electronic device for testing. Then, the test instrument is in an idle state at the gap of reconnecting the electronic device, resulting in inefficient testing.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide a testing method and apparatus based on multiple devices under test, and an electronic device, so as to solve the problem in the prior art that a testing efficiency is not high due to reconnection of a device under test in a testing process of the electronic device.
In a first aspect of the embodiments of the present disclosure, a testing method based on multiple devices to be tested is provided, including:
step one, under the condition that a test instrument is in wired connection with at least two devices to be tested, sequencing the at least two devices to be tested based on the sequence of wired connection with the test instrument;
step two, sequentially testing at least two pieces of equipment to be tested in the sequence based on a preset test program on a test instrument, wherein the test comprises an entity test and a signal test;
step three, when the equipment to be tested in the sequence finishes testing, the next equipment to be tested in the sequence is automatically switched to be tested, and the sequence is updated according to the condition that an interface which is in wired connection with the equipment to be tested and is arranged on a testing instrument is reconnected with the equipment to be tested;
step four, detecting whether the equipment models of all the equipment to be tested in the updated sequence are consistent;
if the equipment to be tested is consistent with the equipment to be tested in the sequence, synchronously carrying out entity test on all the equipment to be tested in the sequence, after all the equipment to be tested finishes the entity test, sequentially carrying out signal test on all the equipment to be tested with consistent equipment models after the entity test is finished according to the sequence, and returning to the third step;
and step six, if the test programs are inconsistent, matching corresponding test programs for each corresponding device to be tested based on the device models, and returning to the step two.
In a second aspect of the embodiments of the present disclosure, a testing apparatus based on multiple devices under test is provided, including:
the test sequencing module is configured to sequence the at least two devices to be tested based on the sequence of wired connection with the test instrument under the condition that the test instrument is in wired connection with the at least two devices to be tested;
the general test module is configured to sequentially test at least two pieces of equipment to be tested in the sequence based on a test program preset on the test instrument, and the test comprises an entity test and a signal test;
the sequencing updating module is configured to automatically switch to test the next device to be tested in the sequencing when the device to be tested in the sequencing completes the test, and update the sequencing according to the condition that the device to be tested is reconnected to an interface which is in wired connection with the device to be tested which completes the test on the test instrument;
the sequencing judgment module is configured to detect whether the equipment models of all the equipment to be tested in the updated sequencing are consistent;
the alternative test module is configured to synchronously perform entity test on all the to-be-tested equipment in the sequence if the equipment to be tested is consistent, and after the entity test is completed on all the to-be-tested equipment, sequentially perform signal test on all the to-be-tested equipment with consistent equipment models after the entity test is completed according to the sequence, and return to the step of executing the configuration of the sequence updating module;
and the program matching module is configured to match a corresponding test program for each corresponding device to be tested based on the device model if the device model is inconsistent, and return to the step of executing the configuration of the general test module.
In a third aspect of the embodiments of the present disclosure, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.
Compared with the prior art, the embodiment of the disclosure has the following beneficial effects: the method comprises the following steps of sequencing at least two devices to be tested on the basis of the sequence of wired connection with a testing instrument under the condition that the testing instrument is in wired connection with the at least two devices to be tested, sequentially testing the at least two devices to be tested in the sequencing on the basis of a preset testing program on the testing instrument, testing the at least two devices to be tested in the sequencing, wherein the testing comprises entity testing and signal testing, when the devices to be tested in the sequencing are tested, automatically switching to test the next device to be tested in the sequencing, and according to the condition that the devices to be tested are reconnected with an interface of wired connection with the devices to be tested which are tested on the testing instrument, updating the sequencing, and detecting whether the device models of all the devices to be tested in the updated sequencing are consistent or not: if the equipment types are not consistent, matching a corresponding test program for each corresponding equipment to be tested based on the equipment types, thereby realizing that a plurality of equipment to be tested are tested without gaps, avoiding the condition that a test instrument is in an idle state due to the change of new equipment to be tested, and improving the test efficiency.
Drawings
To more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without inventive efforts.
FIG. 1 is a scenario diagram of an application scenario of an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a testing method based on multiple devices under test according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a testing apparatus based on multiple devices under test according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the disclosed embodiments. However, it will be apparent to one skilled in the art that the present disclosure may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present disclosure with unnecessary detail.
A method and an apparatus for testing based on multiple devices under test according to embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
Fig. 1 is a scene schematic diagram of an application scenario according to an embodiment of the present disclosure. The application scenario may include the test instrument 1 and the devices under test 2, 3.
The test apparatus 1 is an apparatus for performing physical tests and signal tests on various types of electronic devices. The entity test includes testing interfaces such as a data interface and a power interface of the electronic device, and the signal test includes testing wireless network signals such as bluetooth or a cellular network of the electronic device, which is not limited in the embodiments of the present disclosure.
The devices to be tested 2 and 3 may be electronic devices such as a smart phone, a tablet computer, and a bluetooth sound box, and the specific types of the devices to be tested 2 and 3 are not limited in the embodiment of the disclosure. For example, if the devices 2 and 3 to be tested are bluetooth speakers, the bluetooth speakers are connected to the test instrument 1 by wires, and then the test instrument 1 sequentially tests the data interfaces and bluetooth signals of the bluetooth speakers to obtain corresponding test results. For another example, if the devices 2 and 3 to be tested are smartphones, the smartphones are connected to the test apparatus 1 by wires, and the test apparatus tests the power interface and the cellular network signals of the smartphones to obtain corresponding test results.
In practical application, as shown in fig. 1, after the testing apparatus 1 is connected to the devices 2 and 3 to be tested by wire, one of the devices 2 to be tested may be tested first, and after the testing of the device 2 to be tested is completed, the testing apparatus is switched to test the other device 3 to be tested, so that during the testing period of the device 3 to be tested, the one of the devices 2 to be tested may be disconnected from the testing apparatus 1 by wire, and then a new device to be tested is reconnected, and after the testing of the device 3 to be tested is completed, the testing apparatus 1 is switched to test the new device to be tested, and the process is repeated, so that the effect of continuously testing the plurality of devices to be tested without gaps is achieved.
It should be noted that the specific types and numbers of the test instrument 1 and the devices to be tested 2 and 3 may be adjusted according to the actual requirements of the application scenarios, which is not limited in the embodiment of the present disclosure.
Fig. 2 is a schematic flowchart of a testing method based on multiple devices under test according to an embodiment of the present disclosure. The multi-device under test based test method of fig. 2 may be performed by the test instrument of fig. 1. As shown in fig. 2, the testing method based on multiple devices under test includes:
s201, under the condition that a test instrument is in wired connection with at least two devices to be tested, sequencing the at least two devices to be tested based on the sequence of wired connection with the test instrument;
s202, sequentially testing at least two pieces of equipment to be tested in the sequence based on a preset test program on a test instrument, wherein the test comprises an entity test and a signal test;
s203, when the equipment to be tested in the sequence finishes testing, the next equipment to be tested in the sequence is automatically switched to be tested, and the sequence is updated according to the condition that an interface which is in wired connection with the equipment to be tested and is arranged on a testing instrument is reconnected with the equipment to be tested;
s204, detecting whether the equipment models of all the equipment to be tested in the updated sequence are consistent;
s205, if the equipment to be tested is consistent, the entity test is synchronously performed on all the equipment to be tested in the sequence, after the entity test is completed on all the equipment to be tested, the signal test is sequentially performed on all the equipment to be tested with consistent equipment models after the entity test is completed according to the sequence, and the step returns to S203;
and S206, if the test data are not consistent, matching a corresponding test program for each corresponding device to be tested based on the device model, and returning to S202.
Specifically, when the device to be tested is in wired connection with the test instrument, the test instrument records the time of establishing wired connection with each device to be tested, and then sorts all the devices to be tested of the test instrument according to the sequence of the time. And if the time for establishing the wired connection between the at least two devices to be tested and the testing instrument is the same, randomly sequencing the at least two devices to be tested. In practical application, the test instrument generally supports simultaneous wired connection of a limited number of devices to be tested, for example, assuming that the test instrument supports simultaneous wired connection of 5 devices to be tested, A1, A2, A3, A4, and A5 are used to respectively represent the 5 devices to be tested, and if the 5 devices to be tested are wired connected with the test instrument in time sequence, the sequence is as follows: a1, A4, A2, A3 and A5, then the test will be performed in the order of A1, A4, A2, A3 and A5. Furthermore, 5 sequencing queues can be set in the test instrument, corresponding devices to be tested are respectively marked, after one device to be tested finishes testing, all devices to be tested move forward one bit along the sequencing queues to vacate the last bit, and after new devices to be tested are reconnected, new devices to be tested are added into the vacated last bit of the sequencing queues.
Specifically, the test on the device under test includes an entity test and a signal test, where the entity test may include an interface test, a power test, and the like, and the signal test may include a wireless network signal test, such as a bluetooth signal test, a cellular network signal test, and the like, which is not limited in this disclosure.
Specifically, the entity test of the device under test may be an effectiveness test of a data interface or/and a power interface on the device under test, and the test mode may be software or hardware, which is not limited in this disclosure.
In addition, the test instrument may perform signal testing on the device to be tested in a software or hardware manner, and both the software and the hardware for implementing the signal testing may adopt conventional schemes in the field, or may adopt a combination of the conventional schemes, or other schemes, which is not limited in this disclosure.
When the device to be tested finishes testing, the device to be tested after testing and the testing instrument can be disconnected in a wired mode, and new devices to be tested are connected to the testing instrument in a wired mode again, so that the new devices to be tested and the devices to be tested which do not finish testing are arranged in a new sequence. For example, referring to the aforementioned example that the test instrument supports simultaneous wired connection of 5 devices under test, it is assumed that the sequence of the 5 devices under test is: a1, A4, A2, A3 and A5, after the device A1 to be tested finishes the test, the new device A6 to be tested is connected to the test instrument again through the wire, and then the sorting queue in the test instrument is updated to be A4, A2, A3, A5 and A6.
Specifically, the test programs preset on the test instrument may include an entity test program and a signal test program, and the number of the entity test program and the number of the signal test program may be one or multiple; the plurality of entity test programs or/and signal test programs may be test programs respectively corresponding to different device models, that is, each entity test program and signal test program may respectively correspond to one or more devices to be tested of a device model, and the device to be tested of each device model uniquely corresponds to one entity test program and signal test program, so that the corresponding test program can be matched for the device to be tested under the condition that the device model of the device to be tested is determined.
After the sequencing is updated, if the equipment models of the equipment to be tested in the sequencing are the same, the equipment to be tested in the sequencing all use the same test program, and the equipment to be tested is in wired connection with a test instrument, so that all the equipment to be tested in the sequencing are synchronously subjected to entity test, and the test efficiency is improved; for the signal test of the device to be tested, since the device to be tested needs to be wirelessly connected with the test instrument, the independence of the wireless communication channel cannot be ensured, and therefore, the signal test can be sequentially performed on all the devices to be tested which synchronously complete the entity test according to the sequence.
According to the technical scheme provided by the embodiment of the disclosure, under the condition that a test instrument is in wired connection with at least two devices to be tested, the at least two devices to be tested are sequenced based on the sequence of wired connection with the test instrument, the at least two devices to be tested in the sequence are sequentially tested based on a preset test program on the test instrument, the test comprises an entity test and a signal test, when the devices to be tested in the sequence are tested, the next device to be tested in the sequence is automatically switched to test, the sequence is updated according to the condition that an interface of the test instrument, which is in wired connection with the devices to be tested and completes the test, is reconnected with the devices to be tested, and whether the device models of all the devices to be tested in the updated sequence are consistent or not is detected again: if the equipment types are consistent, all the equipment to be tested in the sequence are synchronously subjected to entity test, and after all the equipment to be tested finish the entity test, all the equipment to be tested with consistent equipment types after the entity test are sequentially subjected to signal test according to the sequence; if the test result is inconsistent with the preset test result, the corresponding test program is matched for each corresponding device to be tested based on the device model, so that the plurality of devices to be tested are tested without gaps, the condition that the test instrument is in an idle state due to the fact that new devices to be tested are switched is avoided, and the test efficiency is improved.
In some embodiments, according to the testing method based on multiple devices under test provided in fig. 2, based on a testing program preset on a testing apparatus, sequentially testing at least two devices under test in a sequence includes: firstly, performing entity test on the to-be-tested equipment in the sequence based on a preset test program; when the entity test is finished, controlling a test instrument to establish wireless connection with the currently tested equipment to be tested; and performing signal test on the currently tested equipment to be tested based on wireless connection.
Specifically, the test on the device to be tested includes an entity test and a signal test, which are performed sequentially, and the entity test may be performed on the device to be tested first, and then the signal test is performed on the device to be tested; or, the signal test may be performed on the device under test first, and then the entity test may be performed on the device under test. In the embodiment of the present disclosure, preferably, the entity test is performed on the device under test first, and then the signal test is performed on the device under test.
In addition, the physical test needs to be performed by relying on a wired connection between the device under test and the test instrument, and the signal test may not need to be performed by the wired connection. However, for some signal tests, when the test instrument is connected with the device under test by wire, the wireless connection between the device under test and the test instrument can be quickly established through the wire connection. For example, when the device to be tested is connected with the test instrument by wire, the bluetooth signal test of the device to be tested can be completed quickly by wire connection, so that the device to be tested is connected with the test instrument by bluetooth to perform the bluetooth signal test.
In some embodiments, on the basis that the device under test performs the entity test and the signal test in sequence, updating the sequence according to a condition that the device under test is reconnected to an interface, which is in wired connection with the device under test that completes the test, of the test instrument, includes: when the equipment to be tested completes the entity test, detecting whether an interface which is connected with the tested equipment to be tested and is arranged on the test instrument in a wired mode is used for switching new equipment to be tested; if the new device to be tested is switched, adding the new device to be tested behind all the devices to be tested in the sequence, and updating the sequence; and if the new device to be tested is not switched, sending a prompt for switching the new device to be tested on the test instrument.
Because the signal test of the equipment to be tested does not need to be connected in a wired mode, the entity test is firstly carried out on the equipment to be tested, after the entity test is finished, the wired connection between the test instrument and the equipment to be tested is disconnected, and the signal test of the equipment to be tested cannot be influenced. In practical application, after the entity test of the device to be tested is completed, the wired connection between the device to be tested and the test instrument is disconnected, then the device to be tested is placed beside the test instrument or the device to be tested is slowly moved away to perform signal test, and after the device to be tested displays that the signal test of the device to be tested is completed, the test instrument switches to test the next device to be tested.
Specifically, once the device to be tested that completes the physical test is disconnected from the test instrument by the wire, a new device to be tested may be connected to the vacant interface, and the test instrument may update the sequence according to the new device to be tested when detecting the new device to be tested.
According to the technical scheme provided by the embodiment of the disclosure, the entity test and the signal test are performed in sequence, so that the wired connection between the equipment to be tested and the test instrument can be disconnected after the equipment to be tested completes the entity test, and more time is reserved for connecting new equipment to be tested.
In some embodiments, on the basis that the device under test performs the entity test and the signal test in sequence, then, when the device under test in the sequence completes the test, updating the sequence according to a condition that an interface on the test instrument, which is in wired connection with the device under test that completes the test, is reconnected to the device under test, may include: when the equipment to be tested in the sequence finishes the signal test, detecting whether the testing instrument and the equipment to be tested finishing the signal test are disconnected by a wire; if the wired connection is disconnected, updating the sequence according to the sequence that the interface disconnected with the wired connection on the test instrument is connected with the new device to be tested; and if the wired connection is not disconnected, sending a prompt that the equipment to be tested completes the test on the test instrument.
In the previous embodiment, if the new device to be tested is not timely replaced after the prompt for replacing the new device to be tested is sent from the test instrument, then after the signal test of the device to be tested is completed, the wired connection between the device to be tested completing the signal test and the test instrument is continuously detected, so as to remind the user to replace the new device to be tested as soon as possible for testing.
The above embodiments are all successful in completing the test scenario of the device under test, and in practical applications, the wired connection of the device under test may be accidentally or artificially disconnected, thereby causing test interruption or failure.
In some embodiments, in fig. 2, based on a preset test program on the test instrument, the sequentially testing at least two devices to be tested in the sequence further includes: when the wired connection with the test instrument is disconnected in the midway of the to-be-tested equipment to be tested, the equipment information of the to-be-tested equipment disconnected in the midway is reserved, and the next equipment in the sequence is tested; then, in fig. 2, when the device under test in the sequence completes the test, updating the sequence according to a situation that the device under test is reconnected to the interface, which is wired to the device under test that completes the test, of the test instrument includes: when the test instrument is reconnected with new equipment to be tested, determining whether the new equipment to be tested is the equipment to be tested with the wired connection disconnected in the midway before based on the reserved equipment information; if the new device to be tested is the device to be tested with the wire connection disconnected in the middle of the previous period, inserting the new device to be tested into the rear of the device to be tested which is currently tested in the sequencing, and updating the sequencing; and if the new device to be tested is not the device to be tested with the wired connection disconnected in the middle of the previous period, arranging the new device to be tested behind all the devices to be tested in the sequence, and updating the sequence.
Specifically, the wired connection between the device under test and the test instrument is disconnected midway, and possible scenarios include loose connection between the interface and the connector, and disconnection between the connector and the interface caused by an accident when a connecting line is accidentally touched. However, in this embodiment, when the wired connection of the device under test is interrupted in the middle, the test instrument automatically tests the next device under test in the sequence, and the test of the device under test after reconnection is not immediately resumed. Therefore, in the embodiment, the device information of the device to be tested disconnected with the wired connection midway is retained, and the device information of the new device to be tested connected with the test instrument is compared to identify whether the new device to be tested is the device to be tested disconnected midway before, and if so, the device to be tested reconnected after the wired connection midway is recovered to be tested after the next device to be tested is tested. Preferably, the reserved device information may be a serial number of the device under test, and since the serial number is unique, when the device under test interrupted by the wired connection is re-wired to the test instrument, it may be quickly identified whether the new device under test connected to the device under test is the device under test interrupted by the wired connection before.
The embodiment of the disclosure reserves the equipment information of the equipment to be tested with the interrupted wired connection, so that the equipment to be tested with the interrupted wired connection is inserted into the back of the tested equipment to be tested in the sequencing when the wired connection is established again with the testing instrument, and the test of the equipment to be tested with the interrupted wired connection is quickly recovered.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 3 is a schematic structural diagram of a testing apparatus based on multiple devices under test according to an embodiment of the present disclosure. As shown in fig. 3, the testing apparatus based on multiple devices under test includes:
the test sequencing module 301 is configured to sequence the at least two devices to be tested based on the sequence of wired connection with the test instrument under the condition that the test instrument is in wired connection with the at least two devices to be tested;
a general test module 302 configured to sequentially test at least two devices to be tested in the sequence based on a test program preset on the test instrument, where the test includes an entity test and a signal test;
the sequencing updating module 303 is configured to automatically switch to test the next device to be tested in the sequencing when the device to be tested in the sequencing completes the test, and update the sequencing according to the condition that the device to be tested is reconnected to an interface, which is in wired connection with the device to be tested after the test, on the test instrument;
a sorting judgment module 304 configured to detect whether the device models of all the devices to be tested in the updated sorting are consistent;
the alternative test module 305 is configured to perform entity test on all the devices to be tested in the sequence synchronously if the devices to be tested are consistent, and after the entity test is completed on all the devices to be tested, sequentially perform signal test on all the devices to be tested with consistent device models after the entity test is completed according to the sequence, and return to the step of executing the configuration of the sequence updating module;
and the program matching module 306 is configured to match a corresponding test program for each corresponding device to be tested based on the device model if the device model is inconsistent, and return to the step of executing the general test module configured.
According to the technical scheme provided by the embodiment of the disclosure, under the condition that a test instrument is in wired connection with at least two devices to be tested, the at least two devices to be tested are sequenced based on the sequence of wired connection with the test instrument, the at least two devices to be tested in the sequence are sequentially tested based on a preset test program on the test instrument, the test comprises an entity test and a signal test, when the devices to be tested in the sequence are tested, the next device to be tested in the sequence is automatically switched to test, the sequence is updated according to the condition that an interface of the test instrument, which is in wired connection with the devices to be tested and completes the test, is reconnected with the devices to be tested, and whether the device models of all the devices to be tested in the updated sequence are consistent or not is detected again: if the equipment types are consistent, all the equipment to be tested in the sequence are synchronously subjected to entity test, and after all the equipment to be tested finish the entity test, all the equipment to be tested with consistent equipment types after the entity test is finished are subjected to signal test in sequence according to the sequence; if the test result is inconsistent with the preset test result, the corresponding test program is matched for each corresponding device to be tested based on the device model, so that the plurality of devices to be tested are tested without gaps, the condition that the test instrument is in an idle state due to the fact that new devices to be tested are switched is avoided, and the test efficiency is improved.
In some embodiments, the general test module 302 in fig. 3 is further configured to perform a physical test on the ordered devices under test first based on a preset test program; when the entity test is finished, controlling a test instrument to establish wireless connection with the currently tested equipment to be tested; and performing signal test on the currently tested equipment to be tested based on wireless connection.
In some embodiments, the order updating module 303 in fig. 3 is further configured to detect whether an interface of the test instrument, which is wired to the device under test that completes the test, has a new device under test to be swapped when the device under test completes the physical test; if the new device to be tested is switched, adding the new device to be tested behind all the devices to be tested in the sequence, and updating the sequence; and if the new device to be tested is not switched, sending a prompt for switching the new device to be tested on the test instrument.
In some embodiments, the order updating module 303 in fig. 3 is further configured to detect whether the test instrument and the device under test completing the signal test are disconnected from the wired connection when the device under test in the order completes the signal test; if the wired connection is disconnected, updating the sequence according to the sequence that the interface disconnected with the wired connection on the test instrument is connected with the new device to be tested; and if the wired connection is not disconnected, sending a prompt that the equipment to be tested completes the test on the test instrument.
In some embodiments, the multi-device under test based test apparatus further comprises:
a test interruption module 307 configured to, when the wired connection with the test instrument is disconnected midway in the device under test to be tested, retain device information of the device under test, which is disconnected midway in the wired connection, and test a next device in the sequence;
the order updating module 303 in fig. 3 is further configured to determine whether the new device under test is a device under test whose wired connection was disconnected halfway before, based on the retained device information, when the test instrument reconnects the new device under test; if the new device to be tested is the device to be tested with the wire connection disconnected in the middle of the previous period, inserting the new device to be tested into the rear of the device to be tested which is currently tested in the sequencing, and updating the sequencing; and if the new device to be tested is not the device to be tested with the wired connection disconnected in the middle of the previous period, arranging the new device to be tested behind all the devices to be tested in the sequence, and updating the sequence.
Fig. 4 is a schematic diagram of an electronic device 4 provided in an embodiment of the present disclosure, where the electronic device in fig. 4 may be embodied as the test apparatus 1 in fig. 1, for example, the electronic device 4 may be a mobile phone test apparatus. As shown in fig. 4, the electronic apparatus 4 includes: a processor 401, a memory 402 and a computer program 403 stored in the memory 402 and executable on the processor 401. The steps in the various method embodiments described above are implemented when the processor 401 executes the computer program 403. Alternatively, the processor 401 implements the functions of the respective modules in the above-described respective apparatus embodiments when executing the computer program 403.
The electronic device 4 may be a desktop computer, a notebook, a test instrument, or other electronic device. The electronic device 4 may include, but is not limited to, a processor 401 and a memory 402. Those skilled in the art will appreciate that fig. 4 is merely an example of electronic device 4 and does not constitute a limitation of electronic device 4 and may include more or fewer components than shown, or different components.
The Processor 401 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like.
The storage 402 may be an internal storage unit of the electronic device 4, for example, a hard disk or a memory of the electronic device 4. The memory 402 may also be an external storage device of the electronic device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the electronic device 4. The memory 402 may also include both internal storage units of the electronic device 4 and external storage devices. The memory 402 is used for storing computer programs and other programs and data required by the electronic device.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the present disclosure may implement all or part of the flow of the method in the above embodiments, and may also be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the above methods and embodiments. The computer program may comprise computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain suitable additions or additions that may be required in accordance with legislative and patent practices within the jurisdiction, for example, in some jurisdictions, computer readable media may not include electrical carrier signals or telecommunications signals in accordance with legislative and patent practices.
The above examples are only intended to illustrate the technical solutions of the present disclosure, not to limit them; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present disclosure, and are intended to be included within the scope of the present disclosure.

Claims (9)

1. A test method based on multiple devices to be tested is characterized by comprising the following steps:
the method comprises the following steps that firstly, under the condition that a testing instrument is in wired connection with at least two devices to be tested, the at least two devices to be tested are sequenced based on the sequence of wired connection with the testing instrument;
step two, sequentially testing at least two pieces of equipment to be tested in the sequence based on a preset test program on the test instrument, wherein the test comprises an entity test and a signal test;
step three, when the equipment to be tested in the sequence finishes testing, the next equipment to be tested in the sequence is automatically switched to be tested, and the sequence is updated according to the condition that the equipment to be tested is reconnected to an interface which is arranged on the testing instrument and is in wired connection with the equipment to be tested which finishes testing;
step four, detecting whether the equipment models of all the equipment to be tested in the updated sequence are consistent;
if the equipment to be tested is consistent with the equipment to be tested in the sequence, synchronously carrying out entity test on all the equipment to be tested in the sequence, after all the equipment to be tested finishes the entity test, sequentially carrying out signal test on all the equipment to be tested with consistent equipment models after the entity test is finished according to the sequence, and returning to the third step;
step six, if the test result is inconsistent, matching a corresponding test program for each corresponding device to be tested based on the device model, and returning to the step two;
wherein, the equipment to be tested carries out entity test and signal test according to the order, include: firstly, carrying out entity test on equipment to be tested, and then carrying out signal test on the equipment to be tested;
after at least two devices to be tested in the sequence are tested in sequence based on the preset test program on the test instrument, the method comprises the following steps: when the wired connection with the test instrument is disconnected in the midway of the to-be-tested equipment to be tested, the equipment information of the to-be-tested equipment disconnected in the midway is reserved, and the next equipment in the sequence is tested;
updating the sequence according to the condition that the interface which is in wired connection with the device to be tested and completes the test on the test instrument is reconnected with the device to be tested, and the updating sequence comprises the following steps:
when the testing instrument is reconnected with new equipment to be tested, determining whether the new equipment to be tested is the equipment to be tested with the wired connection disconnected midway before based on the reserved equipment information;
if the new device to be tested is the device to be tested with the wired connection disconnected in the middle of the previous process, inserting the new device to be tested into the rear of the device to be tested which is currently tested in the sequencing, and updating the sequencing;
and if the new device to be tested is not the device to be tested with the wire connection disconnected in the middle, arranging the new device to be tested behind all the devices to be tested in the sequence, and updating the sequence.
2. The method as claimed in claim 1, wherein the step of sequentially testing at least two devices under test in the sequence based on a test program preset on the test instrument comprises:
firstly, performing entity test on the to-be-tested equipment in the sequence based on a preset test program;
when the entity test is finished, controlling the test instrument to establish wireless connection with the currently tested equipment to be tested;
and performing signal test on the currently tested equipment to be tested based on wireless connection.
3. The method as claimed in claim 2, wherein the updating the sequence according to the reconnection of the device under test to the interface of the test apparatus wired to the device under test that has completed the test comprises:
when the equipment to be tested finishes the entity test, detecting whether an interface which is connected with the equipment to be tested and finishes the test on the test instrument through a wire is provided with new equipment to be tested;
if the new device to be tested is switched, adding the new device to be tested behind all the devices to be tested in the sequence, and updating the sequence;
and if the new equipment to be tested is not exchanged, sending out a prompt of exchanging the new equipment to be tested on the test instrument.
4. The method as claimed in claim 2, wherein the updating the sequence according to the case that the dut is reconnected to the interface of the tester that is wired to the dut that has completed testing comprises:
when the equipment to be tested in the sequence finishes the signal test, detecting whether the test instrument and the equipment to be tested finishing the signal test are disconnected by a wire;
if the wired connection is disconnected, updating the sequence according to the sequence that the interface disconnected with the wired connection on the test instrument is connected with the new device to be tested;
and if the wired connection is not disconnected, sending a prompt that the equipment to be tested completes the test on the test instrument.
5. A testing device based on multiple devices under test, comprising:
the test sequencing module is configured to sequence the at least two devices to be tested based on the sequence of wired connection with the test instrument under the condition that the test instrument is in wired connection with the at least two devices to be tested;
the general test module is configured to test at least two to-be-tested devices in sequence based on a preset test program on the test instrument, the test includes an entity test and a signal test, wherein the to-be-tested devices perform the entity test and the signal test in sequence, and the general test module includes: firstly, carrying out entity test on equipment to be tested, and then carrying out signal test on the equipment to be tested;
the sequencing updating module is configured to automatically switch to test the next device to be tested in the sequencing when the device to be tested in the sequencing completes the test, and update the sequencing according to the condition that the device to be tested is reconnected to an interface which is in wired connection with the device to be tested and is tested on the test instrument;
the sequencing judgment module is configured to detect whether the equipment models of all the equipment to be tested in the updated sequencing are consistent;
the alternative test module is configured to synchronously perform entity test on all the to-be-tested equipment in the sequence if the to-be-tested equipment is consistent, and after the entity test is completed on all the to-be-tested equipment, sequentially perform signal test on all the to-be-tested equipment with consistent equipment models after the entity test is completed according to the sequence, and return to the step of executing the configuration of the sequence updating module;
the program matching module is configured to match a corresponding test program for each corresponding device to be tested based on the device model if the device model is inconsistent, and return to the step of executing the configuration of the general test module;
the test interrupt module is configured to keep the device information of the device to be tested with the wired connection disconnected midway and test the next device in the sequence when the wired connection with the test instrument is disconnected midway in the device to be tested;
the sequencing update module is further configured to determine whether the new device under test is a device under test with a wired connection broken midway before based on the retained device information when the testing instrument reconnects the new device under test; if the new device to be tested is the device to be tested with the wire connection disconnected in the middle of the previous period, inserting the new device to be tested into the rear of the device to be tested which is currently tested in the sequencing, and updating the sequencing; and if the new device to be tested is not the device to be tested with the wire connection disconnected in the middle, arranging the new device to be tested behind all the devices to be tested in the sequence, and updating the sequence.
6. The multi-device-under-test-based testing apparatus as claimed in claim 5, wherein the general testing module is further configured to perform a physical test on the devices under test in the sequence first based on a preset testing program; when the entity test is finished, controlling a test instrument to establish wireless connection with the currently tested equipment to be tested; and performing signal test on the currently tested equipment to be tested based on wireless connection.
7. The multi-device-under-test based test apparatus according to claim 6, wherein the sequencing update module is further configured to detect whether a new device under test is exchanged at an interface of the test instrument, which is wired to the device under test that completes the test, when the device under test completes the physical test; if the new device to be tested is switched, adding the new device to be tested behind all the devices to be tested in the sequence, and updating the sequence; and if the new device to be tested is not switched, sending a prompt for switching the new device to be tested on the test instrument.
8. The multi-device-under-test-based test apparatus according to claim 6, wherein the sequence update module is further configured to detect whether the test instrument and the device under test completing the signal test are disconnected from the wired connection when the device under test in the sequence completes the signal test; if the wired connection is disconnected, updating the sequence according to the sequence that the interface disconnected with the wired connection on the test instrument is connected with the new device to be tested; and if the wired connection is not disconnected, sending a prompt that the equipment to be tested completes the test on the test instrument.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 4 when executing the computer program.
CN202211118563.1A 2022-09-15 2022-09-15 Test method and device based on multiple devices to be tested and electronic device Active CN115184717B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211118563.1A CN115184717B (en) 2022-09-15 2022-09-15 Test method and device based on multiple devices to be tested and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211118563.1A CN115184717B (en) 2022-09-15 2022-09-15 Test method and device based on multiple devices to be tested and electronic device

Publications (2)

Publication Number Publication Date
CN115184717A CN115184717A (en) 2022-10-14
CN115184717B true CN115184717B (en) 2022-12-06

Family

ID=83524805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211118563.1A Active CN115184717B (en) 2022-09-15 2022-09-15 Test method and device based on multiple devices to be tested and electronic device

Country Status (1)

Country Link
CN (1) CN115184717B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0557678U (en) * 1991-12-27 1993-07-30 株式会社アドバンテスト IC test equipment
US5537331A (en) * 1993-07-02 1996-07-16 Mitsubishi Denki Kabushiki Kaisha Method of testing devices to be measured and testing system therefor
CN111224721A (en) * 2019-11-30 2020-06-02 福建利利普光电科技有限公司 Wireless program-controlled test system and method for electronic measuring instrument
CN112540919A (en) * 2020-12-08 2021-03-23 上海哔哩哔哩科技有限公司 Test equipment determination method and device
CN113219262A (en) * 2021-04-26 2021-08-06 深圳市广和通无线股份有限公司 Equipment test method, device, equipment and storage medium
CN115032523A (en) * 2022-06-07 2022-09-09 浙江光特科技有限公司 Chip automatic test method, system, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0557678U (en) * 1991-12-27 1993-07-30 株式会社アドバンテスト IC test equipment
US5537331A (en) * 1993-07-02 1996-07-16 Mitsubishi Denki Kabushiki Kaisha Method of testing devices to be measured and testing system therefor
CN111224721A (en) * 2019-11-30 2020-06-02 福建利利普光电科技有限公司 Wireless program-controlled test system and method for electronic measuring instrument
CN112540919A (en) * 2020-12-08 2021-03-23 上海哔哩哔哩科技有限公司 Test equipment determination method and device
CN113219262A (en) * 2021-04-26 2021-08-06 深圳市广和通无线股份有限公司 Equipment test method, device, equipment and storage medium
CN115032523A (en) * 2022-06-07 2022-09-09 浙江光特科技有限公司 Chip automatic test method, system, computer equipment and storage medium

Also Published As

Publication number Publication date
CN115184717A (en) 2022-10-14

Similar Documents

Publication Publication Date Title
CN103095855B (en) I2C communication interface unit
CN102523052B (en) Testing method and testing device
CN101368991A (en) Electronic device test device and method thereof
CN105120483B (en) Automatic testing method and system for compatibility of smart card and mobile terminal
CN103257912A (en) Testing device and method thereof for testing peripheral component interface express (PCIE) slot
CN108923957B (en) Distribution network terminal DTU fault elimination method and device and terminal equipment
CN101639515A (en) Testing device
CN108897647B (en) Test system, test method and device
US20140149815A1 (en) System and method for programming chips on circuit board through boundary scan technology
CN108628712B (en) Application program testing method and terminal equipment
CN112996020A (en) Bluetooth-based automatic testing method and device and Bluetooth testing terminal
CN108880936B (en) Communication module test system and communication module test method
CN115184717B (en) Test method and device based on multiple devices to be tested and electronic device
CN105048018A (en) Charging method and device for terminal having on-the-go (OTG) function
CN104485962A (en) Portable data acquisition system and acquisition method thereof
CN104198788A (en) VNA (Vector Network Analyzer) multiplexing instrument and method
CN211979671U (en) Platform chip and chip verification platform
CN108924325A (en) Data processing method and relevant apparatus
CN110545147B (en) Non-signaling coupling test method and system
CN107885674B (en) Bluetooth device simulator, working method thereof and Bluetooth device operating system
CN111143092A (en) Fault recording data processing method and system and terminal equipment
JP2011234308A (en) Communication apparatus, programmable device mounted in the same and program write control method thereof
CN114490206A (en) Interface performance test method and system
CN106771738A (en) A kind of equipment for testing electronic card performance
CN114428192A (en) Testing device, testing method, equipment and medium

Legal Events

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