CN110514925A - Test method and system and storage medium - Google Patents
Test method and system and storage medium Download PDFInfo
- Publication number
- CN110514925A CN110514925A CN201910745607.5A CN201910745607A CN110514925A CN 110514925 A CN110514925 A CN 110514925A CN 201910745607 A CN201910745607 A CN 201910745607A CN 110514925 A CN110514925 A CN 110514925A
- Authority
- CN
- China
- Prior art keywords
- test
- terminal
- control device
- target
- equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/12—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
- G06F13/124—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Microelectronics & Electronic Packaging (AREA)
- General Engineering & Computer Science (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the present application discloses a kind of test method and system, and storage medium, test method is applied in test macro, test macro includes: terminal, control device and at least one test equipment, test method includes: after obtaining test instruction, according to the identification information that test instruction carries, target device is determined at least one test equipment;Control device enables target device, so that target device and terminal establish connection, and obtains the corresponding detection parameters of terminal;Test result is generated according to detection parameters.
Description
Technical Field
The embodiment of the application relates to the technical field of charging detection, in particular to a testing method and system and a storage medium.
Background
With the gradual development of technology, terminals have become important devices essential for life and work, and meanwhile, based on the continuous progress of terminal technology, more and more terminals have a quick charging or flash charging function, and the charging power for charging the terminals is from 5W (5V1A) at the beginning, to 20W (5V4A or 9V2A), to 50W (10V5A), and the charging speed of the terminals is faster and faster. Because the principles and protocols of fast charging or flash charging used by various manufacturers are different, a charging test needs to be performed on the terminal to determine whether the terminal can be applied to different types of charging protocols.
At present, when a terminal is subjected to a charging test, data interaction is performed between a test device and the terminal mainly through a Universal Serial Bus (USB), so that for different test devices, a USB interface needs to be continuously replaced for the terminal, and the USB interface needs to be plugged and pulled for multiple times, which not only easily causes damage to the terminal, but also increases test time, and causes the defects of low test efficiency and poor intelligence.
Disclosure of Invention
The embodiment of the application provides a testing method and system and a storage medium, which can avoid the damage of a terminal caused by continuously replacing a USB interface of the terminal, reduce the testing time, improve the testing efficiency and realize the intelligence and automation of the test.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a test method, which is applied to a test system, wherein the test system comprises: terminal, controlling means and at least one test equipment, the method includes:
after a test instruction is obtained, determining target equipment in the at least one piece of test equipment according to identification information carried by the test instruction;
enabling the target equipment by the control device so as to establish connection between the target equipment and the terminal and obtain detection parameters corresponding to the terminal;
and generating a test result according to the detection parameters.
The embodiment of the application provides a test system, its characterized in that, test system comprises terminal, controlling means and at least one test equipment, test system includes: a determination unit, an enabling unit, a connection unit, an acquisition unit, and a generation unit,
the determining unit is configured to determine, after obtaining a test instruction, a target device in the at least one test device according to identification information carried in the test instruction;
the enabling unit is used for enabling the target equipment by the control device;
the connection unit is used for enabling the target equipment to establish connection with the terminal;
the acquiring unit is used for acquiring the detection parameters corresponding to the terminal;
and the generating unit is used for generating a test result according to the detection parameters.
An embodiment of the present application provides a test system, the test system includes: the terminal, the control device and at least one test device, a processor, a memory storing instructions executable by the processor, which when executed by the processor, implement the test method as described above.
The embodiment of the application provides a computer-readable storage medium, on which a program is stored, and the program is applied to a test system, and when the program is executed by a processor, the test method is realized.
The embodiment of the application provides a test method, a test system and a storage medium, wherein the test method is applied to the test system, and the test system comprises: the test method comprises the following steps: after the test instruction is obtained, determining target equipment in at least one piece of test equipment according to identification information carried by the test instruction; enabling the target equipment by the control device so as to establish connection between the target equipment and the terminal and obtain detection parameters corresponding to the terminal; and generating a test result according to the detection parameters. That is to say, in the embodiment of the present application, the control device may be connected to the terminal and the at least one testing device, so that the target device in the at least one testing device may be enabled according to the test instruction, the terminal may be tested by the target device, and the test result corresponding to the terminal may be determined according to the obtained detection parameter. Therefore, in the application, when the test system detects different test equipment for the terminal, the control equipment selects and enables the test equipment in at least one test equipment, namely, the control device can switch different test equipment to test the terminal, so that the damage of the terminal caused by continuously replacing the USB interface for the terminal is avoided, the test time is shortened, the test efficiency is improved, and the intelligence and the automation of the test are realized.
Drawings
FIG. 1 is a schematic diagram of a test system;
fig. 2 is a schematic flow chart illustrating an implementation of a testing method according to an embodiment of the present application;
FIG. 3 is a schematic diagram I of the testing method;
FIG. 4 is a schematic diagram of the test method;
FIG. 5 is a first schematic diagram illustrating a component structure of a test system according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a second exemplary embodiment of a test system.
Detailed Description
The technical solutions in 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. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant application and are not limiting of the application. It should be noted that, for the convenience of description, only the parts related to the related applications are shown in the drawings.
With the gradual development of technology, terminals have become important devices essential for life and work, and meanwhile, based on the continuous progress of terminal technology, more and more terminals have a quick charging or flash charging function, and the charging power for charging the terminals is from 5W (5V1A) at the beginning, to 20W (5V4A or 9V2A), to 50W (10V5A), and the charging speed of the terminals is faster and faster. Accordingly, the principles and protocols of fast or flash charging are increasing, which results in many kinds of adapters on the market, such as a normal charging 5V1A adapter, an OPPO flash charging adapter, an OPPO super flash charging adapter, a Power Delivery (PD) high voltage fast charging adapter, and a fast charging (QC) high voltage fast charging adapter.
The principle and the protocol of quick charging or flash charging used by each manufacturer are different, so that the terminal needs to be subjected to charging test to determine whether the terminal can be suitable for different types of charging protocols, and meanwhile, the situation that the service time and each function of the terminal are influenced due to bugs existing on a terminal circuit can be avoided.
At present, when a terminal is subjected to charging test, data interaction is mainly performed between test equipment and the terminal through a USB, so that the USB interface needs to be continuously replaced for the terminal aiming at different test equipment, and the USB interface is repeatedly plugged and pulled, so that the damage of the terminal is easily caused, the test time is prolonged, and the defects of low test efficiency and poor intelligence are caused.
In order to solve the problems in the prior art, embodiments of the present application provide a charging test method and system, and a storage medium, where the test system includes: the terminal comprises a terminal, a control device and at least one testing device, wherein in the embodiment of the application, the control device can be connected with the terminal and the at least one testing device, so that target devices in the at least one testing device can be enabled according to a testing instruction, the terminal is tested through the target devices, and a testing result corresponding to the terminal is determined according to obtained detection parameters. Therefore, in the application, when the test system detects different test equipment for the terminal, the control equipment is used for selecting and enabling the test equipment in at least one test equipment, namely, the control device can be used for switching different test equipment to test the terminal, so that the terminal only needs to perform USB plugging once, and the function of the test terminal for different test equipment is normal or not, thereby achieving the purposes of reducing the number of times of plugging and unplugging a USB port and automatically testing, avoiding the continuous damage of the terminal caused by replacing the USB port for the terminal, reducing the test time and improving the test efficiency.
The technical solutions in 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.
An embodiment of the present application provides a test method, which is applied to a test system, where the test system may include a terminal, a control device, and at least one test device.
Fig. 1 is a schematic diagram of a test system, and as shown in fig. 1, the test system provided in the present application may include a terminal, a control device, and a test device, specifically, compared with the prior art, at least one test device may be connected to the control device in the test system provided in the present application, so that when the terminal is detected, a continuous physical switch to different test devices may be avoided.
It should be noted that, in the embodiment of the present application, the terminal, the control device, and the test equipment may be connected by USB. That is, the terminal can be tested using at least one test device connected to the control apparatus only by connecting to the control apparatus through the USB port.
Fig. 2 is a schematic flow chart of an implementation process of a testing method provided in an embodiment of the present application, and as shown in fig. 2, in the embodiment of the present application, a method for a terminal to test may include the following steps:
step 101, after the test instruction is obtained, determining target equipment in at least one piece of test equipment according to identification information carried by the test instruction.
In the embodiment of the application, after the test system obtains the test instruction, the test system may write the killed identification information according to the test instruction, and determine the target device for performing the terminal detection in the at least one test device.
It should be noted that, in the embodiment of the present application, the test system may receive the test instruction through the operation of the user. Specifically, the main body of receiving the test instruction may be a control device or a terminal, and the present application is not limited specifically.
Further, in the embodiment of the present application, the test instruction received by the test system carries identification information corresponding to the test device and representing a test device number or a mark, so that after the test instruction is obtained by the test system, according to the identification information, a test device corresponding to the identification information, that is, a target device for testing the terminal, is determined from at least one test device.
In the embodiment of the present application, the execution subject for determining the target device may be a control device or a terminal, and the present application is not particularly limited.
Further, in embodiments of the present application, the control means may be used to select and enable the test means. Specifically, the control device may be an integrated circuit, a control circuit board, or the like.
Further, in the embodiments of the present application, the terminal may be any device having communication and storage functions. For example: tablet computers, mobile phones, electronic readers, remote controllers, Personal Computers (PCs), notebook computers, vehicle-mounted devices, network televisions, wearable devices, and the like.
Further, in embodiments of the present application, the at least one test device may be any number of adapters and/or OTGs. For example, the test system includes 6 test devices, which are respectively a normal adapter, an OPPO flash adapter (5V4V), an OPPO super flash adapter (10V4A), a PD high-voltage fast-charging adapter (9V2A), a QC high-voltage fast-charging adapter (9V2A), and an OTG.
It should be noted that, in the embodiment of the present application, since the test device in the test system may be an adapter or an OTG, when the test system tests the terminal, the test system may test the charging performance of the terminal or may test the OTG function of the terminal. That is, in the present application, the test system can mainly perform the following tests on the terminal: whether the common adapter is charged normally or not; whether the quick charging/flash charging function is normally used or not; whether the OTG function is operating normally.
Further, in the embodiment of the present application, the terminal, the control device, and the test apparatus in the test system may be connected by USB. Specifically, the terminal may be connected to the control apparatus through the USB port, and at the same time, any one of the at least one test device may be connected to the control apparatus through the corresponding USB port.
It should be noted that, in the embodiment of the present application, since the test system includes at least one test device, the test system may previously establish a corresponding identification identifier, that is, identification information, for each test device, and therefore, after receiving the test instruction, the test system may determine the corresponding target device through the identification information.
And 102, enabling the target equipment by the control device so as to establish connection between the target equipment and the terminal and obtain a detection parameter corresponding to the terminal.
In the embodiment of the application, after the test system receives the test instruction and determines the target device from the at least one test device according to the identification information in the test instruction, the control device in the test system can enable the target device, so that the target device can be connected with the terminal, and further, the detection parameter corresponding to the terminal can be obtained.
It should be noted that, in the embodiment of the present application, after the test system determines the target device for testing the terminal, the control device in the test system may enable the target device, so that the target device may be connected to the terminal to test the terminal.
Further, in the embodiment of the present application, when the control apparatus enables the target device, the control apparatus needs a connection path between the enabled target device and the terminal; it is also necessary to enable a data path between the target device and the control apparatus.
It should be noted that, in the embodiment of the present application, the connection path may be used for the target device to test the terminal, and the data path may be used for the target device to send data to the control apparatus.
Further, in the embodiment of the present application, if the target device is an adapter, the target device may charge the terminal through the connection path, so as to obtain a charging parameter corresponding to the terminal; and if the target equipment is OTG, the target equipment sends a verification request to the terminal through the connection path and acquires a verification parameter corresponding to the terminal. That is, in the present application, the detection parameters of the terminals obtained by detection are also different for different types of target devices.
In the embodiment of the present application, when the target device is an adapter, the detection parameter may be data such as a current parameter, a voltage parameter, and a charging time. When the target device is an OTG, the detection parameter may be data such as a connection state.
And 103, generating a test result according to the detection parameters.
In the embodiment of the application, after the target device in at least one test device in the test system is enabled by the control device and the detection parameter corresponding to the terminal is obtained, the test system may generate the test result corresponding to the terminal according to the detection parameter.
It should be noted that, in the embodiment of the present application, after obtaining the detection parameter, the target device may send the detection parameter to the control apparatus through the data path, so that the control apparatus or the terminal may generate the test result according to the detection parameter.
Further, in the embodiments of the present application, the main body for generating the test result may be a control device or a terminal, and the present application is not particularly limited.
It should be noted that, in the embodiment of the present application, when the test system generates the test result corresponding to the terminal according to the detection parameter, the detection parameter may be compared with a preset parameter threshold value stored in advance, so that the test result may be determined according to the comparison result.
Further, in the embodiment of the present application, for different target devices, the obtained detection parameters of the terminal are different, and accordingly, when the test result is generated, the required preset parameter threshold values are also different. That is, different target devices correspond to different preset parameter thresholds.
Further, in the embodiment of the present application, after the test system generates the test result according to the detection parameter, the terminal in the test system may further display the test result.
Further, in the embodiment of the present application, when the target device is an adapter, the test result may be in different states of normal charging, abnormal charging, fast charging or non-fast charging, and the like. When the target device is an OTG, the test result may be a normal connection or an abnormal connection.
The embodiment of the application provides a test method, which is applied to a test system, wherein the test system comprises: the test method comprises the following steps: after the test instruction is obtained, determining target equipment in at least one piece of test equipment according to identification information carried by the test instruction; enabling the target equipment by the control device so as to establish connection between the target equipment and the terminal and obtain detection parameters corresponding to the terminal; and generating a test result according to the detection parameters. That is to say, in the embodiment of the present application, the control device may be connected to the terminal and the at least one testing device, so that the target device in the at least one testing device may be enabled according to the test instruction, the terminal may be tested by the target device, and the test result corresponding to the terminal may be determined according to the obtained detection parameter. Therefore, in the application, when the test system detects different test equipment for the terminal, the control equipment selects and enables the test equipment in at least one test equipment, namely, the control device can switch different test equipment to test the terminal, so that the damage of the terminal caused by continuously replacing the USB interface for the terminal is avoided, the test time is shortened, the test efficiency is improved, and the intelligence and the automation of the test are realized.
Based on the foregoing embodiment, in another embodiment of the present application, before the test system determines the target device in the at least one test device according to the identification information, the method for the test system to test the terminal may further include the following steps:
and 104, acquiring a test instruction.
In the embodiment of the application, the test system may obtain the test instruction first, where the test system may obtain the test instruction for the control device or the terminal when obtaining the test instruction.
Further, in the embodiment of the application, after the control device obtains the test instruction, the control device may directly determine the target device from the at least one test device according to the identification information in the test instruction, and may also synchronize the identification information to the terminal, so that the terminal may determine the target device from the at least one test device according to the identification information.
Further, in the embodiment of the application, after the terminal acquires the test instruction, the terminal may directly determine the target device from the at least one test device according to the identification information in the test instruction, or may synchronize the identification information to the control device, so that the control device may determine the target device from the at least one test device according to the identification information.
It should be noted that, when determining the target device, the terminal or the control apparatus may first obtain a pre-stored correspondence between the pre-stored identifier and the device, and then may determine the target device corresponding to the identifier information from the at least one test device according to the correspondence between the pre-stored identifier and the device.
In an embodiment of the present application, further, the method for generating the test result by the test system according to the detection parameter may include the following steps:
step 201, the target device transmits the detection parameters to the control device through the data path.
In the embodiment of the present application, after the target device in the test system obtains the detection parameter, the detection parameter may be first transmitted to the control device through the data path. The data path is a path for transmitting data between the target device and the control device.
Step 202, the control device generates a test result according to the detection parameter and a preset parameter threshold.
In the embodiment of the application, after obtaining the detection parameter transmitted by the target device, the control device may compare the detection parameter with a preset parameter threshold value stored in advance, and then determine a test result corresponding to the terminal according to the comparison result.
Further, in the embodiment of the present application, after the control device in the test system generates the test result, the test result may be synchronized to the terminal, so that the terminal may store and display the test result.
In an embodiment of the present application, further, the method for generating the test result by the test system according to the detection parameter may include the following steps:
and 203, the target device transmits the detection parameters to the control device through a data path.
In the embodiment of the present application, after the target device in the test system obtains the detection parameter, the detection parameter may be first transmitted to the control device through the data path. The data path is a path for transmitting data between the target device and the control device.
Step 204, the control device synchronizes the detection parameters to the terminal.
In the embodiment of the application, after the control device obtains the detection parameters transmitted by the target device, the control device may synchronize the detection parameters to the terminal, so that the terminal may generate the test result.
And step 205, the terminal generates a test result according to the detection parameter and the preset parameter threshold.
In the embodiment of the application, after the terminal acquires the detection parameters synchronized by the control device, the detection parameters may be compared with a preset parameter threshold value stored in advance, and then a test result corresponding to the terminal is determined according to the comparison result.
The embodiment of the application provides a test method, which is applied to a test system, wherein the test system comprises: the test method comprises the following steps: after the test instruction is obtained, determining target equipment in at least one piece of test equipment according to identification information carried by the test instruction; enabling the target equipment by the control device so as to establish connection between the target equipment and the terminal and obtain detection parameters corresponding to the terminal; and generating a test result according to the detection parameters. That is to say, in the embodiment of the present application, the control device may be connected to the terminal and the at least one testing device, so that the target device in the at least one testing device may be enabled according to the test instruction, the terminal may be tested by the target device, and the test result corresponding to the terminal may be determined according to the obtained detection parameter. Therefore, in the application, when the test system detects different test equipment for the terminal, the control equipment selects and enables the test equipment in at least one test equipment, namely, the control device can switch different test equipment to test the terminal, so that the damage of the terminal caused by continuously replacing the USB interface for the terminal is avoided, the test time is shortened, the test efficiency is improved, and the intelligence and the automation of the test are realized.
Based on the above embodiments, in yet another embodiment of the present application, the at least one test device may be any number of adapter and OTG combinations.
It should be noted that, after the test system determines the target device from the at least one test device, the control device enables the target device, and then the target device may establish a connection with the terminal through the connection path, so as to obtain the detection parameter of the terminal. Wherein, the detection parameters obtained by the test system are different for different types of target equipment.
Further, in the embodiment of the present application, when the target device is an adapter, the adapter may charge the terminal through the connection path, and then the acquired detection parameter corresponding to the terminal may be a charging parameter. The charging parameter may be used to determine whether the terminal supports the charging protocol of the adapter.
Further, in the embodiment of the present application, when the target device is an OTG, the OTG may send a verification request to the terminal through the connection path, and then the obtained detection parameter corresponding to the terminal may be a verification parameter. The verification parameter may be used to determine whether the terminal identifies the OTG.
Fig. 3 is a schematic diagram showing a principle of the testing method, as shown in fig. 3, the testing devices in the testing system are the adapter 1, the adapter 2, and the adapter 3, and if the testing system determines that the target device for testing the terminal is the adapter 1, the control device may enable the adapter 1 by turning on the switch 1. Further, after the adapter 1 is enabled, the adapter 1 may charge the terminal through the connection path, obtain the charging parameter of the terminal, and then synchronize the charging parameter to the control device through the data path, so that the test result of the terminal may be determined according to the charging parameter. Correspondingly, the test system can also test the terminal through the adapter 2 and the adapter 3 according to the method, and the specific processing flow is the same as that of the adapter 1.
Fig. 4 is a schematic diagram of a principle of the testing method, as shown in fig. 4, the testing devices in the testing system are the adapter 1, the adapter 2, and the OTG, and if the testing system determines that the target device for testing the terminal is the adapter 2, the control device may enable the adapter 2 by turning on the switch 2. Further, after the adapter 2 is enabled, the adapter 2 may charge the terminal through the connection path, obtain the charging parameter of the terminal, and then synchronize the charging parameter to the control device through the data path, so that the test result of the terminal may be determined according to the charging parameter. Correspondingly, the test system can also test the terminal through the adapter 1 according to the method, and the specific processing flow is the same as that of the adapter 2. When the test equipment in the test system is an OTG, the control device can be enabled to adapt to the OTG by opening the switch 3. Further, after enabling the OTG, the OTG may send a verification request to the terminal through the connection path, obtain a verification parameter of the terminal, and then synchronize the verification parameter to the control device through the data path, so that a test result of the terminal may be determined according to the verification parameter.
The embodiment of the application provides a test method, which is applied to a test system, wherein the test system comprises: the test method comprises the following steps: after the test instruction is obtained, determining target equipment in at least one piece of test equipment according to identification information carried by the test instruction; enabling the target equipment by the control device so as to establish connection between the target equipment and the terminal and obtain detection parameters corresponding to the terminal; and generating a test result according to the detection parameters. That is to say, in the embodiment of the present application, the control device may be connected to the terminal and the at least one testing device, so that the target device in the at least one testing device may be enabled according to the test instruction, the terminal may be tested by the target device, and the test result corresponding to the terminal may be determined according to the obtained detection parameter. Therefore, in the application, when the test system detects different test equipment for the terminal, the control equipment selects and enables the test equipment in at least one test equipment, namely, the control device can switch different test equipment to test the terminal, so that the damage of the terminal caused by continuously replacing the USB interface for the terminal is avoided, the test time is shortened, the test efficiency is improved, and the intelligence and the automation of the test are realized.
Based on the foregoing embodiment, in another embodiment of the present application, a test system is composed of a terminal, a control device and at least one test device, fig. 5 is a schematic view of a composition structure of the test system according to the embodiment of the present application, and as shown in fig. 5, the test system 1 according to the embodiment of the present application may include a determining unit 11, an enabling unit 12, a connecting unit 13, an obtaining unit 14 and a generating unit 15.
The determining unit 11 is configured to determine, after obtaining the test instruction, a target device in the at least one test device according to the identification information carried in the test instruction;
the enabling unit 12, configured to enable the target device by the control apparatus;
the connection unit 13 is configured to establish a connection between the target device and the terminal;
the acquiring unit 14 is configured to acquire a detection parameter corresponding to the terminal;
the generating unit 15 is configured to generate a test result according to the detection parameter.
Further, in the embodiment of the present application, the enabling unit 12, specifically, is configured to enable a connection path between the target device and the terminal by the control device; the control device enables a data path between the target appliance and the control device.
Further, in an embodiment of the present application, the at least one test device includes: an adapter and/or an OTG.
Further, in this embodiment of the application, when the target device is the adapter, the obtaining unit 14 is specifically configured to charge the terminal through the connection path by the target device, and obtain a charging parameter corresponding to the terminal.
Further, in an embodiment of the present application, when the target device is the OTG, the obtaining unit 14 is specifically configured to send a verification request to the terminal through the connection path by the target device, and obtain a verification parameter corresponding to the terminal.
Further, in an embodiment of the present application, the generating unit 15 is specifically configured to transmit the detection parameter to the control device through the data path by the target device; and the control device generates the test result according to the detection parameters and preset parameter thresholds.
Further, in an embodiment of the present application, the generating unit 15 is specifically configured to transmit the detection parameter to the control device through the data path by the target device; the control device synchronizes the detection parameters to the terminal; and the terminal generates the test result according to the detection parameters and preset parameter thresholds.
Further, in an embodiment of the present application, the obtaining unit 14 is further configured to obtain, by the terminal, the test instruction; or the control device acquires the test instruction.
Further, in an embodiment of the present application, the determining unit 11 is further configured to determine, by the terminal, the target device according to a correspondence between a pre-stored identifier and a device and the identifier information; or, the control device determines the target device according to a corresponding relationship between a pre-stored identifier and the device and the identifier information.
Further, in an embodiment of the present application, the terminal, the control apparatus, and the at least one test device are connected by USB.
In an embodiment of the present application, further, fig. 6 is a schematic structural diagram of a component of a test system provided in the embodiment of the present application, as shown in fig. 6, a test system 1 provided in the embodiment of the present application may further include a processor 16, a memory 17 storing executable instructions of the processor 16, a terminal 18, a control device 19, and at least one test device 110, and further, the test system 1 may further include a communication interface 111, and a bus 112 for connecting the processor 16, the memory 17, and the communication interface 111.
In an embodiment of the present Application, the Processor 16 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a ProgRAMmable Logic Device (PLD), a Field ProgRAMmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understood that the electronic devices for implementing the above processor functions may be other devices, and the embodiments of the present application are not limited in particular. The test system 1 may further comprise a memory 17, which memory 17 may be connected to the processor 16, wherein the memory 17 is adapted to store executable program code comprising computer operating instructions, and wherein the memory 17 may comprise a high speed RAM memory and may further comprise a non-volatile memory, such as at least two disk memories.
In the embodiment of the present application, the bus 112 is used to connect the communication interface 111, the processor 16, and the memory 17 and the intercommunication among these devices.
In the embodiment of the present application, the memory 17 is used for storing instructions and data.
Further, in an embodiment of the present application, the processor 17 is configured to determine, after obtaining the test instruction, a target device in the at least one test device according to the identification information carried in the test instruction; enabling the target equipment by the control device so as to establish connection between the target equipment and the terminal and obtain detection parameters corresponding to the terminal; and generating a test result according to the detection parameters.
In practical applications, the Memory 17 may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard disk (Hard disk Drive, HDD) or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor 16.
In addition, each functional module in this embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiment of the application provides a test system, which comprises: the test system determines target equipment in the at least one piece of test equipment according to identification information carried by the test instruction after acquiring the test instruction; enabling the target equipment by the control device so as to establish connection between the target equipment and the terminal and obtain detection parameters corresponding to the terminal; and generating a test result according to the detection parameters. That is to say, in the embodiment of the present application, the control device may be connected to the terminal and the at least one testing device, so that the target device in the at least one testing device may be enabled according to the test instruction, the terminal may be tested by the target device, and the test result corresponding to the terminal may be determined according to the obtained detection parameter. Therefore, in the application, when the test system detects different test equipment for the terminal, the control equipment selects and enables the test equipment in at least one test equipment, namely, the control device can switch different test equipment to test the terminal, so that the damage of the terminal caused by continuously replacing the USB interface for the terminal is avoided, the test time is shortened, the test efficiency is improved, and the intelligence and the automation of the test are realized.
An embodiment of the present application provides a computer-readable storage medium, on which a program is stored, which when executed by a processor implements the testing method as described above.
Specifically, the program instructions corresponding to a testing method in the present embodiment may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, etc., and when the program instructions corresponding to a testing method in the storage medium are read or executed by an electronic device, the method includes the following steps:
after a test instruction is obtained, determining target equipment in the at least one piece of test equipment according to identification information carried by the test instruction;
enabling the target equipment by the control device so as to establish connection between the target equipment and the terminal and obtain detection parameters corresponding to the terminal;
and generating a test result according to the detection parameters.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of implementations of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart block or blocks and/or flowchart block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks in the flowchart and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.
Claims (20)
1. A test method is applied to a test system, and the test system comprises: terminal, controlling means and at least one test equipment, the method includes:
after a test instruction is obtained, determining target equipment in the at least one piece of test equipment according to identification information carried by the test instruction;
enabling the target equipment by the control device so as to establish connection between the target equipment and the terminal and obtain detection parameters corresponding to the terminal;
and generating a test result according to the detection parameters.
2. The method of claim 1, wherein the controlling device enables the target device, comprising:
the control device enables a connection path between the target apparatus and the terminal;
the control device enables a data path between the target appliance and the control device.
3. The method of claim 2, wherein the at least one test device comprises: an adapter and/or an OTG.
4. The method according to claim 3, wherein when the target device is the adapter, the target device establishes a connection with the terminal and obtains a detection parameter corresponding to the terminal, including:
and the target equipment charges the terminal through the connecting passage and acquires the charging parameters corresponding to the terminal.
5. The method according to claim 3, wherein when the target device is the OTG, the target device establishes a connection with the terminal and obtains a detection parameter corresponding to the terminal, including:
and the target equipment sends a verification request to the terminal through the connection path and acquires a verification parameter corresponding to the terminal.
6. The method of claim 2, wherein generating test results based on the detection parameters comprises:
the target device transmits the detection parameters to the control device through the data path;
and the control device generates the test result according to the detection parameters and preset parameter thresholds.
7. The method of claim 6, wherein after the generating the test results, the method further comprises:
and the control device synchronizes the test result to the terminal.
8. The method of claim 2, wherein generating test results based on the detection parameters comprises:
the target device transmits the detection parameters to the control device through the data path;
the control device synchronizes the detection parameters to the terminal;
and the terminal generates the test result according to the detection parameters and preset parameter thresholds.
9. The method of claim 1, wherein before determining a target device among the at least one test device based on the identification information, the method comprises:
the terminal acquires the test instruction; or,
the control device obtains the test instruction.
10. The method of claim 9, wherein after the obtaining the test instruction, the method further comprises:
the terminal synchronizes the identification information to the control device; or,
the control device synchronizes the identification information to the terminal.
11. The method of claim 9, wherein determining a target device among the at least one test device according to the identification information comprises:
the terminal determines the target equipment according to the corresponding relation between the pre-stored identification and the equipment and the identification information; or,
and the control device determines the target equipment according to the corresponding relation between the pre-stored identification and the equipment and the identification information.
12. The method according to any one of claims 7 or 8, wherein after generating a test result according to the detection parameter, the method further comprises:
and the terminal displays the test result.
13. The method according to claim 1, characterized in that the terminal, the control device and the at least one test apparatus are connected by a universal serial bus, USB.
14. A test system, characterized in that the test system is composed of a terminal, a control device, and at least one test apparatus, the test system comprising: a determination unit, an enabling unit, a connection unit, an acquisition unit, and a generation unit,
the determining unit is configured to determine, after obtaining a test instruction, a target device in the at least one test device according to identification information carried in the test instruction;
the enabling unit is used for enabling the target equipment by the control device;
the connection unit is used for enabling the target equipment to establish connection with the terminal;
the acquiring unit is used for acquiring the detection parameters corresponding to the terminal;
and the generating unit is used for generating a test result according to the detection parameters.
15. The test system of claim 14,
the enabling unit is specifically configured to enable, by the control apparatus, a connection path between the target device and the terminal; and the control device enables a data path between the target apparatus and the control device.
16. The test system of claim 15, wherein the at least one test device comprises: an adapter and/or an OTG.
17. The test system of claim 15,
the generating unit is specifically configured to transmit the detection parameter to the control device through the data path by the target device; the control device generates the test result according to the detection parameters and preset parameter thresholds;
the generating unit is further specifically configured to transmit the detection parameter to the control device through the data path by the target device; and the control device synchronizes the detection parameters to the terminal; and the terminal generates the test result according to the detection parameter and a preset parameter threshold value.
18. The test system according to claim 14, wherein the terminal, the control device and the at least one test apparatus are connected by USB.
19. A test system, characterized in that the test system comprises: a terminal, a control device, and at least one test apparatus, a processor, a memory storing instructions executable by the processor, which when executed by the processor, implement the method of any one of claims 1-13.
20. A computer-readable storage medium, on which a program is stored, for use in a test system, wherein the program, when executed by a processor, implements the method of any one of claims 1-13.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910745607.5A CN110514925A (en) | 2019-08-13 | 2019-08-13 | Test method and system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910745607.5A CN110514925A (en) | 2019-08-13 | 2019-08-13 | Test method and system and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110514925A true CN110514925A (en) | 2019-11-29 |
Family
ID=68625683
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910745607.5A Pending CN110514925A (en) | 2019-08-13 | 2019-08-13 | Test method and system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110514925A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111142954A (en) * | 2019-12-30 | 2020-05-12 | Oppo(重庆)智能科技有限公司 | Startup control method and device and computer readable storage medium |
CN111274071A (en) * | 2020-01-19 | 2020-06-12 | 浪潮电子信息产业股份有限公司 | A USB device plugging and unplugging detection method, device and related equipment |
CN112241160A (en) * | 2020-10-20 | 2021-01-19 | 广州小鹏汽车科技有限公司 | Vehicle testing method, device, vehicle testing system and test board |
CN114050634A (en) * | 2022-01-12 | 2022-02-15 | 深圳荣耀智能机器有限公司 | Charging test method, electronic device, adapter and charging test system |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106405430A (en) * | 2016-11-01 | 2017-02-15 | 深圳市鹏诚新能源科技有限公司 | Lithium ion battery online detection conversion control equipment, system and method |
CN107995060A (en) * | 2017-11-29 | 2018-05-04 | 努比亚技术有限公司 | Audio frequency of mobile terminal test method, device and computer-readable recording medium |
CN207352080U (en) * | 2016-11-15 | 2018-05-11 | 莱茵技术监护(深圳)有限公司 | Automatic testing equipment and test system |
CN108072775A (en) * | 2017-11-06 | 2018-05-25 | 广东欧珀移动通信有限公司 | The test device of mobile terminal |
CN108132862A (en) * | 2017-12-21 | 2018-06-08 | 深圳市闻耀电子科技有限公司 | Charged state automated testing method and device |
CN207817089U (en) * | 2018-01-08 | 2018-09-04 | 深圳市鼎阳科技有限公司 | A kind of more equipment test conversion devices and its system |
CN109299022A (en) * | 2018-08-23 | 2019-02-01 | 联想(北京)有限公司 | A kind of control method and device of USB interface, storage medium |
CN109298266A (en) * | 2018-10-29 | 2019-02-01 | Oppo广东移动通信有限公司 | Test system, test method, test apparatus, and storage medium |
CN109581106A (en) * | 2018-11-28 | 2019-04-05 | Oppo(重庆)智能科技有限公司 | Test equipment control method, device, system and electronic equipment |
CN109587318A (en) * | 2018-11-29 | 2019-04-05 | Oppo(重庆)智能科技有限公司 | A kind of endpoint detection methods and device, equipment and storage medium |
CN208833886U (en) * | 2018-08-03 | 2019-05-07 | 德丰电创科技股份有限公司 | Electric tool switch test device and system |
-
2019
- 2019-08-13 CN CN201910745607.5A patent/CN110514925A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106405430A (en) * | 2016-11-01 | 2017-02-15 | 深圳市鹏诚新能源科技有限公司 | Lithium ion battery online detection conversion control equipment, system and method |
CN207352080U (en) * | 2016-11-15 | 2018-05-11 | 莱茵技术监护(深圳)有限公司 | Automatic testing equipment and test system |
CN108072775A (en) * | 2017-11-06 | 2018-05-25 | 广东欧珀移动通信有限公司 | The test device of mobile terminal |
CN107995060A (en) * | 2017-11-29 | 2018-05-04 | 努比亚技术有限公司 | Audio frequency of mobile terminal test method, device and computer-readable recording medium |
CN108132862A (en) * | 2017-12-21 | 2018-06-08 | 深圳市闻耀电子科技有限公司 | Charged state automated testing method and device |
CN207817089U (en) * | 2018-01-08 | 2018-09-04 | 深圳市鼎阳科技有限公司 | A kind of more equipment test conversion devices and its system |
CN208833886U (en) * | 2018-08-03 | 2019-05-07 | 德丰电创科技股份有限公司 | Electric tool switch test device and system |
CN109299022A (en) * | 2018-08-23 | 2019-02-01 | 联想(北京)有限公司 | A kind of control method and device of USB interface, storage medium |
CN109298266A (en) * | 2018-10-29 | 2019-02-01 | Oppo广东移动通信有限公司 | Test system, test method, test apparatus, and storage medium |
CN109581106A (en) * | 2018-11-28 | 2019-04-05 | Oppo(重庆)智能科技有限公司 | Test equipment control method, device, system and electronic equipment |
CN109587318A (en) * | 2018-11-29 | 2019-04-05 | Oppo(重庆)智能科技有限公司 | A kind of endpoint detection methods and device, equipment and storage medium |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111142954A (en) * | 2019-12-30 | 2020-05-12 | Oppo(重庆)智能科技有限公司 | Startup control method and device and computer readable storage medium |
CN111142954B (en) * | 2019-12-30 | 2023-06-23 | Oppo(重庆)智能科技有限公司 | Startup control method and device and computer readable storage medium |
CN111274071A (en) * | 2020-01-19 | 2020-06-12 | 浪潮电子信息产业股份有限公司 | A USB device plugging and unplugging detection method, device and related equipment |
CN112241160A (en) * | 2020-10-20 | 2021-01-19 | 广州小鹏汽车科技有限公司 | Vehicle testing method, device, vehicle testing system and test board |
CN112241160B (en) * | 2020-10-20 | 2022-02-11 | 广州小鹏汽车科技有限公司 | Vehicle testing method and device, vehicle detection system and test board card |
CN114050634A (en) * | 2022-01-12 | 2022-02-15 | 深圳荣耀智能机器有限公司 | Charging test method, electronic device, adapter and charging test system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10910853B2 (en) | Quick charging method, power adapter and mobile terminal | |
CN110514925A (en) | Test method and system and storage medium | |
WO2019113732A1 (en) | Electronic device and charging control method | |
EP3285355A2 (en) | Electronic equipment, charger, charge system and charge method | |
CN110851387B (en) | Interface function configuration method and electronic equipment | |
EP3716561B1 (en) | Method and system for testing output state, and computer storage medium | |
CN110492575B (en) | Quick charging system and method for handheld device and handheld device | |
CN112448435A (en) | Terminal equipment charging method and device and storage medium | |
CN110574219B (en) | Charging method, terminal and computer storage medium | |
CN107395955A (en) | Method for determining power-on time sequence of camera module and user terminal | |
CN111263891B (en) | Instruction time testing method and system and computer storage medium | |
CN110970954B (en) | Charging control method and device, storage medium and split type electronic equipment | |
CN109378891B (en) | Charging and discharging method, mobile power supply and computer storage medium | |
CN114584498A (en) | Method, device, equipment, system and product for testing power on and power off of gateway equipment | |
CN110582917A (en) | Charging method, terminal and computer storage medium | |
CN108879589B (en) | Overcurrent protection method and device, terminal equipment and storage medium | |
EP3591792A1 (en) | A system and a method for operating a power strip | |
CN110970948A (en) | Charging control method and device, storage medium and split type electronic equipment | |
JP2018133976A (en) | Electronic device and control method | |
CN115495801A (en) | USB (universal serial bus) channel disconnection protection method, electronic equipment, self-destruction circuit and medium | |
CN111030227A (en) | Information processing method, charging seat and electronic equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191129 |
|
RJ01 | Rejection of invention patent application after publication |