CN116708632B - Test method and electronic equipment - Google Patents

Test method and electronic equipment Download PDF

Info

Publication number
CN116708632B
CN116708632B CN202211159757.6A CN202211159757A CN116708632B CN 116708632 B CN116708632 B CN 116708632B CN 202211159757 A CN202211159757 A CN 202211159757A CN 116708632 B CN116708632 B CN 116708632B
Authority
CN
China
Prior art keywords
test
test item
item
electronic device
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211159757.6A
Other languages
Chinese (zh)
Other versions
CN116708632A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211159757.6A priority Critical patent/CN116708632B/en
Publication of CN116708632A publication Critical patent/CN116708632A/en
Application granted granted Critical
Publication of CN116708632B publication Critical patent/CN116708632B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Abstract

The application provides a testing method and electronic equipment, relates to the field of electronic equipment, and can improve the testing efficiency of the electronic equipment. The method comprises the following steps: the method comprises the steps that first electronic equipment receives a first operation for starting testing; responding to a first operation, the first electronic equipment displays a first identifier, wherein the first identifier is used for indicating to test a first test item, and the first test item is any one of a plurality of test items included in the first electronic equipment; the second electronic equipment acquires the first identifier; the second electronic equipment tests the first test item according to the first identifier; the first electronic equipment receives a second operation triggered by the second electronic equipment for switching a second test item, wherein the second test item is a test item after a first test item in a plurality of test items included in the first electronic equipment; in response to the second operation, the first electronic device displays a second identifier, the second identifier indicating that the second test item is to be tested.

Description

Test method and electronic equipment
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a testing method and an electronic device.
Background
At present, various functions (such as earphone function, charging function, sensor function, etc.) of a mobile phone need to be tested before the mobile phone leaves the factory, so as to determine whether the various functions of the mobile phone are normal.
However, when testing various functions of the electronic device such as the mobile phone, for example, when completing one test item, the operation needs to be performed manually, so that the next test item can be switched to, and thus, the test of various functions of the electronic device such as the mobile phone is completed, which results in lower efficiency of testing the electronic device such as the mobile phone.
Disclosure of Invention
The embodiment of the application provides a testing method and electronic equipment, which can improve the testing efficiency of the electronic equipment.
In order to achieve the above purpose, the embodiments of the present application adopt the following technical solutions:
in a first aspect, an embodiment of the present application provides a testing method, applied to a testing system, where the testing system may include: the first electronic device and the second electronic device, the first electronic device may include a plurality of test items, the test system is configured to test the plurality of test items included in the first electronic device, and the test method may include: the method comprises the steps that first electronic equipment receives a first operation for starting testing; responding to a first operation, the first electronic equipment displays a first identifier, wherein the first identifier is used for indicating to test a first test item, and the first test item is any one of a plurality of test items included in the first electronic equipment; the second electronic equipment acquires the first identifier; the second electronic equipment tests the first test item according to the first identifier; the first electronic equipment receives a second operation triggered by the second electronic equipment for switching a second test item, wherein the second test item is a test item after a first test item in a plurality of test items included in the first electronic equipment; in response to the second operation, the first electronic device displays a second identifier, the second identifier indicating that the second test item is to be tested.
Based on the method of the first aspect, the first test item can be tested according to the identifier of the first test item displayed by the first electronic device, and when the test of the first test item is completed, the first electronic device can display the identifier of the second test item, so that the second electronic device can complete the test of the second test item, that is, the test of a plurality of test items corresponding to the first electronic device can be completed without operating the test of the first electronic device, that is, the scheme of the application can automatically test a plurality of test items corresponding to the first electronic device, thereby improving the test efficiency of the first electronic device.
With reference to the first aspect, in another possible implementation manner, the testing, by the second electronic device, the first test item according to the first identifier may include: the second electronic equipment determines a test type corresponding to the first identifier according to the first identifier, wherein the test type comprises the steps of testing a first test item, acquiring a test result corresponding to the first test item and acquiring test results corresponding to a plurality of test items; in the case where the test type includes testing the first test item, the second electronic device tests the first test item.
Based on the possible implementation manner, the second electronic device may perform different actions according to the test type corresponding to the first identifier, and in the case that the test type includes testing the first test item, the second electronic device may test the first test item.
With reference to the first aspect, in another possible implementation manner, the method may further include: under the condition that the test type comprises the test result corresponding to the first test item, the second electronic equipment obtains and sends the test result corresponding to the first test item to the first electronic equipment.
Based on the possible implementation manner, the second electronic device may perform different actions according to the test type corresponding to the first identifier, that is, in a case where the test type includes obtaining a test result corresponding to the first test item, the second electronic device may send the test result corresponding to the first test item to the first electronic device.
With reference to the first aspect, in another possible implementation manner, the method may further include: and under the condition that the test type comprises test results of a plurality of test items, the second electronic equipment acquires and sends the test results corresponding to the plurality of test items to the first electronic equipment.
Based on the possible implementation manner, the second electronic device may perform different actions according to the test type corresponding to the first identifier, that is, in a case where the test type includes obtaining test results corresponding to the plurality of test items, the second electronic device may send the test results corresponding to the plurality of test items to the first electronic device.
With reference to the first aspect, in another possible implementation manner, the testing method may further include: the first electronic equipment receives a third operation of acquiring the test result of the first test item; responding to a third operation, and displaying a third identifier by the first electronic equipment, wherein the third identifier is used for indicating to acquire a test result corresponding to the first test item; the second electronic equipment acquires a third identifier; and the second electronic equipment sends the test result corresponding to the first test item to the first electronic equipment.
Based on the possible implementation manner, the first electronic device may display the identifier corresponding to the test result corresponding to the first test item, so that the second electronic device may send the identifier corresponding to the test result corresponding to the first test item to the first electronic device by acquiring the identifier corresponding to the test result corresponding to the first test item.
With reference to the first aspect, in another possible implementation manner, the testing method may further include: the first electronic equipment receives a test result corresponding to the first test item; the first electronic device displays a fourth identifier, and the fourth identifier is used for indicating and displaying a test result corresponding to the first test item.
Based on the possible implementation manner, the first electronic device may display the identifier corresponding to the test result corresponding to the first test item, so that the first electronic device may display the test result corresponding to the first test item through the identifier corresponding to the test result corresponding to the first test item.
With reference to the first aspect, in another possible implementation manner, the testing method may further include: the first electronic equipment receives a fourth operation of acquiring test results of the plurality of test items; responding to the fourth operation, the first electronic equipment displays a fifth identifier, wherein the fifth identifier is used for indicating to obtain test results corresponding to a plurality of test items; the second electronic equipment acquires a fifth identifier; and the second electronic equipment sends test results corresponding to the plurality of test items to the first electronic equipment.
Based on the possible implementation manner, the first electronic device may display the identifier corresponding to the test result obtained by obtaining the plurality of test items, so that the second electronic device may send the identifier corresponding to the test result obtained by obtaining the plurality of test items to the first electronic device.
With reference to the first aspect, in another possible implementation manner, the testing method may further include: the first electronic equipment receives test results corresponding to a plurality of test items; the first electronic device displays a sixth identifier, where the sixth identifier is used to instruct displaying test results corresponding to the multiple test items.
Based on the possible implementation manner, the first electronic device may display the identifiers corresponding to the test results corresponding to the plurality of test items, so that the first electronic device may display the test results corresponding to the plurality of test items through the identifiers corresponding to the test results corresponding to the plurality of test items.
With reference to the first aspect, in another possible implementation manner, the testing method may further include: the first electronic equipment receives a fifth operation of switching a third test item, wherein the third test item is a test item before a first test item in a plurality of test items included in the first electronic equipment; in response to the fifth operation, the first electronic device displays a seventh identifier, the seventh identifier indicating that the third test item is to be tested.
Based on the possible implementation manner, the first test item can be tested according to the identifier of the first test item displayed by the first electronic device, and when the test of the first test item is completed, the first electronic device can display the identifier of the third test item, so that the second electronic device can complete the test of the third test item, namely, the test of a plurality of test items corresponding to the first electronic device can be completed without operating the test of the first electronic device, namely, the scheme of the application can automatically test a plurality of test items corresponding to the first electronic device, and the test efficiency of the first electronic device can be improved.
With reference to the first aspect, in another possible implementation manner, before the first electronic device receives a second operation triggered by the second electronic device to switch the second test item, the testing method may further include: the first electronic device receives a sixth operation for testing the first test item; in response to the sixth operation, the first electronic device tests the first test item.
Based on this possible implementation, the first electronic device may receive an operation to test the first test item, so that the first electronic device may test the first test item.
With reference to the first aspect, in another possible implementation manner, in a case that the second electronic device determines that the first test item is tested successfully, the first electronic device receives a second operation triggered by the second electronic device to switch the second test item.
Based on the possible implementation manner, the second electronic device can determine whether the first test item is tested successfully, and under the condition that the first test item is tested successfully, the second electronic device can trigger the first electronic device to switch the second test item, so that the second test item can be tested.
In a second aspect, an embodiment of the present application provides a testing method applied to a first electronic device, where the first electronic device includes a plurality of test items, and the testing method may include: the method comprises the steps that first electronic equipment receives a first operation for starting testing; responding to a first operation, the first electronic equipment displays a first identifier, wherein the first identifier is used for indicating to test a first test item, and the first test item is any one of a plurality of test items included in the first electronic equipment; the first electronic equipment receives a second operation triggered by the second electronic equipment for switching a second test item, wherein the second test item is a test item after a first test item in a plurality of test items included in the first electronic equipment; in response to the second operation, the first electronic device displays a second identifier, the second identifier indicating that the second test item is to be tested.
With reference to the second aspect, in another possible implementation manner, the first identifier includes a test type, and the test type includes testing the first test item, obtaining a test result corresponding to the first test item, and obtaining test results corresponding to a plurality of test items.
With reference to the second aspect, in another possible implementation manner, the testing method may further include: under the condition that the test type comprises the test result corresponding to the first test item, the first electronic equipment receives the test result corresponding to the first test item sent by the second electronic equipment.
With reference to the second aspect, in another possible implementation manner, the testing method may further include: under the condition that the test type comprises the test results of a plurality of test items, the first electronic equipment receives the test results corresponding to the plurality of test items sent by the second electronic equipment.
With reference to the second aspect, in another possible implementation manner, the testing method may further include: the first electronic equipment receives a third operation of acquiring the test result of the first test item; responding to a third operation, and displaying a third identifier by the first electronic equipment, wherein the third identifier is used for indicating to acquire a test result corresponding to the first test item; the first electronic device receives a test result corresponding to the first test item sent by the second electronic device.
With reference to the second aspect, in another possible implementation manner, the testing method may further include: the first electronic equipment receives a test result corresponding to the first test item; the first electronic device displays a fourth identifier, and the fourth identifier is used for indicating and displaying a test result corresponding to the first test item.
With reference to the second aspect, in another possible implementation manner, the testing method may further include: the first electronic equipment receives a fourth operation of acquiring test results of the plurality of test items; responding to the fourth operation, the first electronic equipment displays a fifth identifier, wherein the fifth identifier is used for indicating to obtain test results corresponding to a plurality of test items; the first electronic device receives test results corresponding to the plurality of test items sent by the second electronic device.
With reference to the second aspect, in another possible implementation manner, the testing method may further include: the first electronic equipment receives test results corresponding to a plurality of test items; the first electronic device displays a sixth identifier, where the sixth identifier is used to instruct displaying test results corresponding to the multiple test items.
With reference to the second aspect, in another possible implementation manner, the testing method may further include: the first electronic equipment receives a fifth operation of switching a third test item, wherein the third test item is a test item before a first test item in a plurality of test items included in the first electronic equipment; in response to the fifth operation, the first electronic device displays a seventh identifier, the seventh identifier indicating that the third test item is to be tested.
With reference to the second aspect, in another possible implementation manner, before the first electronic device receives a second operation triggered by the second electronic device to switch the second test item, the testing method may further include: the first electronic device receives a sixth operation for testing the first test item; in response to the sixth operation, the first electronic device tests the first test item.
In a third aspect, an embodiment of the present application provides a testing method, which is applied to a second electronic device, where the testing method may include: the second electronic equipment acquires a first identifier displayed by the first electronic equipment, wherein the first identifier is used for indicating to test a first test item, and the first test item is any one of a plurality of test items included in the first electronic equipment; the second electronic equipment tests the first test item according to the first identifier; the second electronic equipment triggers the first electronic equipment to switch a second test item, wherein the second test item is a test item after a first test item in a plurality of test items included in the first electronic equipment; the second electronic device obtains a second identifier displayed by the first electronic device, and the second identifier is used for indicating to test the second test item.
With reference to the third aspect, in another possible implementation manner, the testing, by the second electronic device, the first test item according to the first identifier may include: the second electronic equipment determines a test type corresponding to the first identifier according to the first identifier, wherein the test type comprises the steps of testing a first test item, acquiring a test result corresponding to the first test item and acquiring test results corresponding to a plurality of test items; in the case where the test type includes testing the first test item, the second electronic device tests the first test item.
With reference to the third aspect, in another possible implementation manner, the testing method may further include: under the condition that the test type comprises the test result corresponding to the first test item, the second electronic equipment obtains and sends the test result corresponding to the first test item to the first electronic equipment.
With reference to the third aspect, in another possible implementation manner, the testing method may further include: and under the condition that the test type comprises test results of a plurality of test items, the second electronic equipment acquires and sends the test results corresponding to the plurality of test items to the first electronic equipment.
With reference to the third aspect, in another possible implementation manner, the testing method may further include: the second electronic equipment acquires a third identifier displayed by the first electronic equipment, wherein the third identifier is used for indicating to acquire a test result corresponding to the first test item; and the second electronic equipment sends the test result corresponding to the first test item to the first electronic equipment.
With reference to the third aspect, in another possible implementation manner, the testing method may further include: the second electronic equipment acquires a fifth identifier displayed by the first electronic equipment, wherein the fifth identifier is used for indicating to acquire test results corresponding to a plurality of test items; and the second electronic equipment sends test results corresponding to the plurality of test items to the first electronic equipment.
With reference to the third aspect, in another possible implementation manner, the testing method may further include: and under the condition that the second electronic equipment determines that the first test item is successfully tested, the second electronic equipment triggers the first electronic equipment to switch the second test item.
In a fourth aspect, an embodiment of the present application provides a testing apparatus, where the testing apparatus may be applied to a first electronic device, for implementing the method in the second aspect. The function of the testing device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions, for example, a receiving module, a display module, and the like.
The receiving module may be configured to receive a first operation to start a test.
The display module can be used for responding to a first operation, displaying a first identification, wherein the first identification is used for indicating to test a first test item, and the first test item is any one of a plurality of test items included in the first electronic equipment.
The receiving module may be further configured to receive a second operation triggered by the second electronic device to switch a second test item, where the second test item is a test item after a first test item in the plurality of test items included in the first electronic device.
The display module may be further configured to display a second identifier in response to a second operation, the second identifier being configured to indicate testing of the second test item.
With reference to the fourth aspect, in another possible implementation manner, the first identifier includes a test type, and the test type includes testing the first test item, acquiring a test result corresponding to the first test item, and acquiring test results corresponding to a plurality of test items.
With reference to the fourth aspect, in another possible implementation manner, the receiving module may be further configured to receive, when the test type includes obtaining a test result corresponding to the first test item, a test result corresponding to the first test item sent by the second electronic device.
With reference to the fourth aspect, in another possible implementation manner, the receiving module may be further configured to receive, when the test type includes obtaining a test result of the plurality of test items, a test result corresponding to the plurality of test items sent by the second electronic device.
With reference to the fourth aspect, in another possible implementation manner, the receiving module may be further configured to receive a third operation of obtaining a test result of the first test item.
The display module is further configured to respond to a third operation, and display a third identifier, where the third identifier is used to indicate that a test result corresponding to the first test item is obtained.
The receiving module is further configured to receive a test result corresponding to the first test item sent by the second electronic device.
With reference to the fourth aspect, in another possible implementation manner, the receiving module may be further configured to receive a test result corresponding to the first test item.
The display module is also used for displaying a fourth mark, and the fourth mark is used for indicating and displaying the test result corresponding to the first test item.
With reference to the fourth aspect, in another possible implementation manner, the receiving module may be further configured to receive a fourth operation of obtaining test results of the plurality of test items by using the first electronic device.
The display module is further configured to respond to the fourth operation, and display a fifth identifier, where the fifth identifier is used to indicate that test results corresponding to the plurality of test items are obtained.
The receiving module is further configured to receive test results corresponding to the plurality of test items sent by the second electronic device.
With reference to the fourth aspect, in another possible implementation manner, the receiving module may be further configured to receive test results corresponding to a plurality of test items.
The display module is further configured to display a sixth identifier, where the sixth identifier is used to instruct display of test results corresponding to the plurality of test items.
With reference to the fourth aspect, in another possible implementation manner, the receiving module may be further configured to receive a fifth operation of switching a third test item, where the third test item is a test item before a first test item in the plurality of test items included in the first electronic device.
The display module may be further configured to display a seventh identifier in response to the fifth operation, the seventh identifier being configured to indicate that the third test item is to be tested.
With reference to the fourth aspect, in another possible implementation manner, the test apparatus may further include a test module.
The receiving module may be further configured to receive a sixth operation of testing the first test item.
And a test module operable to test the first test item in response to a sixth operation.
In a fifth aspect, embodiments of the present application provide a testing apparatus, where the testing apparatus may be applied to a second electronic device, for implementing the method in the third aspect. The function of the testing device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions, for example, an acquisition module, a test module, a trigger module, and the like.
The acquiring module may be configured to acquire a first identifier displayed by the first electronic device, where the first identifier is used to indicate testing of a first test item, and the first test item is any one of a plurality of test items included in the first electronic device.
And the test module can be used for testing the first test item according to the first identifier.
The triggering module can be used for triggering the first electronic equipment to switch the second test item, wherein the second test item is a test item after the first test item in the plurality of test items included in the first electronic equipment.
The acquisition module is further configured to acquire a second identifier displayed by the first electronic device, where the second identifier is used to indicate testing of the second test item.
With reference to the fifth aspect, in another possible implementation manner, the test module may be further configured to determine, according to the first identifier, a test type corresponding to the first identifier, where the test type includes testing the first test item, obtaining a test result corresponding to the first test item, and obtaining test results corresponding to the plurality of test items.
The test module may be further configured to test the first test item if the test type includes testing the first test item.
With reference to the fifth aspect, in another possible implementation manner, the testing apparatus may further include a sending module.
The sending module may be configured to, when the test type includes obtaining a test result corresponding to the first test item, obtain and send, by the second electronic device, the test result corresponding to the first test item to the first electronic device.
With reference to the fifth aspect, in another possible implementation manner, the sending module may be configured to, in a case where the test type includes a test result obtained by obtaining a plurality of test items, obtain and send, by the second electronic device, a test result corresponding to the plurality of test items to the first electronic device.
With reference to the fifth aspect, in another possible implementation manner, the obtaining module may be configured to obtain a third identifier displayed by the first electronic device, where the third identifier is used to indicate that a test result corresponding to the first test item is obtained.
The sending module is further configured to send a test result corresponding to the first test item to the first electronic device.
With reference to the fifth aspect, in another possible implementation manner, the obtaining module may be further configured to obtain a fifth identifier displayed by the first electronic device, where the fifth identifier is used to indicate that test results corresponding to the plurality of test items are obtained.
The sending module is further configured to send test results corresponding to the plurality of test items to the first electronic device.
With reference to the fifth aspect, in another possible implementation manner, the triggering module may be further configured to trigger the first electronic device to switch the second test item if the second electronic device determines that the first test item is tested successfully.
In a sixth aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory for storing instructions executable by the processor. The processor being configured to execute the above-described instructions to cause the electronic device to implement the test method as described in the second aspect or any one of the possible implementation manners of the second aspect; alternatively, the processor is configured to execute the above instructions, to cause the electronic device to implement the test method as described in any one of the third aspect or possible implementations of the third aspect.
In a seventh aspect, embodiments of the present application provide a computer-readable storage medium having computer program instructions stored thereon. When executed by an electronic device, cause the electronic device to implement the test method as in the second aspect or any one of the possible implementations of the second aspect; or, when executed by an electronic device, causes the electronic device to implement the test method as claimed in any one of the third aspect or possible implementations thereof.
In an eighth aspect, embodiments of the present application provide a computer program product comprising computer readable code which, when run in an electronic device, causes the electronic device to implement the test method according to the second aspect or any one of the possible implementations of the second aspect; alternatively, the computer readable code, when run in an electronic device, causes the electronic device to implement the test method as claimed in any one of the third aspect or possible implementations thereof.
In a ninth aspect, embodiments of the present application provide a test system, which may include: a first electronic device and a second electronic device; the first electronic device may be adapted to perform the test method as described in any of the above second aspect or possible implementations of the second aspect, and the second electronic device may be adapted to perform the test method as described in any of the above third aspect or possible implementations of the third aspect.
It should be appreciated that the advantages of the second to ninth aspects may be referred to in the description related to the first aspect, and are not described herein.
Drawings
FIG. 1 is a schematic diagram of a test flow provided in an embodiment of the present application;
FIG. 2 is a second schematic diagram of a test flow provided in an embodiment of the present application;
fig. 3 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a schematic software structure diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a second schematic hardware structure of an electronic device according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating a testing method according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a display interface of an electronic device according to an embodiment of the present application;
fig. 8 is a second schematic diagram of a display interface of the electronic device according to the embodiment of the present application;
fig. 9 is a schematic diagram III of a display interface of an electronic device according to an embodiment of the present application;
fig. 10 is a schematic diagram of a display interface of an electronic device according to an embodiment of the present application;
fig. 11 is a schematic diagram fifth display interface of an electronic device according to an embodiment of the present application;
FIG. 12 is a second flow chart of a testing method according to the embodiment of the present application;
fig. 13 is a flowchart of a test method according to an embodiment of the present application;
fig. 14 is a flow chart diagram of a test method according to an embodiment of the present application;
fig. 15 is a flow chart fifth of a testing method according to an embodiment of the present application;
Fig. 16 is a flowchart sixth of a testing method according to an embodiment of the present application;
FIG. 17 is a schematic diagram of a testing device according to an embodiment of the present disclosure;
fig. 18 is a schematic structural diagram of a testing device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
Currently, before an electronic device (such as a mobile phone) leaves a factory, various functions (such as an earphone function, a charging function, a sensor function and the like) of the electronic device need to be tested to determine whether the various functions of the electronic device are normal. For example, before the electronic device leaves the factory, a man-machine interaction function test system (man machine interface, MMI) may be performed on the electronic device to determine whether each function of the electronic device is normal.
For example, in the final inspection of functions before the whole mobile phone is shipped, such as MMI test, since the product (i.e. the mobile phone) is already installed with commercial software with higher security level, in order to ensure user experience, MMI test performed on the mobile phone usually adopts manual test. MMI testing performed by a cell phone may include subjective testing (e.g., testing performed on the cell phone without the need for a dedicated test fixture) as well as objective testing (e.g., testing performed on the cell phone with the need for various dedicated test fixtures). For example, subjective testing can be used to find problems and intercept faults well when testing functions such as a liquid crystal display (liquid crystal display, LCD) of a mobile phone, audio of a mobile phone, and the like. For some objective tests, such as testing the functions of earphone, charging and various sensors of the mobile phone, the mobile phone needs to be tested by various special test jigs on site.
For subjective test, a user needs to operate the mobile phone to complete the test of functions such as the LCD of the mobile phone and the audio of the mobile phone, for example, the user needs to touch the LCD of the mobile phone to complete the test of the sensitivity of the LCD of the mobile phone, which results in lower test efficiency of electronic equipment such as the mobile phone.
For objective test, the user also needs to operate the mobile phone to complete the test of functions of the earphone, the charging, various sensors and the like of the mobile phone, for example, the user needs to plug the earphone or the charging wire of the mobile phone to complete the test of the earphone or the charging wire of the mobile phone, and the user needs to put the mobile phone at different positions to complete the test of functions of various sensors of the mobile phone. In addition, for objective testing, the user also needs to operate each fixture, which results in lower efficiency in testing electronic devices such as mobile phones. And a great deal of clamps and personnel waste is caused under the condition of considering the line productivity.
That is, at present, manual testing is adopted for the MMI test of the mobile phone, which results in large manpower input (usually 6 to 7 persons are required to complete the MMI test of the mobile phone), and in the testing process, the user is required to perform corresponding operations, such as plugging and unplugging the earphone, charging the wire, placing the mobile phone to different positions, and the like, which results in personnel waste, and the manual testing results in lower efficiency of testing the electronic devices such as the mobile phone.
In addition, when MMI test of the mobile phone is performed, because operation is required by a user, the risk of non-uniform test environment exists in the test process, such as non-standard operation of the user, inaccurate subjective judgment of the user, and poor single side of an interface caused by non-double-sided plugging of the earphone wire or the charging wire by the user, and hidden quality hazards of the earphone wire or the charging wire are caused.
In addition, when MMI test is performed, the test action of the user is single, which leads to easy exhaustion of the user, so that the problems of missing test, false test and the like can be caused, for example, the infrared test judgment of the mobile phone by the user is not strict, and when one test item is completed, the operation needs to be performed manually, so that the next test item can be switched. For example, in conjunction with fig. 1, when an MMI test is performed on a mobile phone, the MMI test may include a plurality of test items, each test item needs a user to perform the test, that is, for one test item, the corresponding user repeatedly performs the operation corresponding to the test item, that is, the test action of the user is relatively single, which may cause the user to be tired, thereby causing problems of missing test, misdetection, and the like. And when one test item is completed, the operation needs to be performed manually to enter the next test item. In addition, when the MMI test includes N test items, N users are required to perform corresponding operations to complete the MMI test of the mobile phone, which may cause waste of personnel, and the efficiency of the test caused by the manual test is low.
In summary, when testing various functions of electronic devices such as a mobile phone, the electronic devices such as the mobile phone need to be manually operated to complete the test of the various functions of the electronic devices such as the mobile phone, which results in lower efficiency of testing the electronic devices such as the mobile phone.
In view of the above problems, the embodiments of the present application provide a test method, which is applied to a test system, where the test system may include a first electronic device and a second electronic device connected to the first electronic device, where the method may display an identifier (such as a two-dimensional code) corresponding to a test item through the first electronic device (such as a mobile phone), and the second electronic device (such as the test device) determines, through the identifier displayed by the first electronic device, a test item to be performed currently, so that the second electronic device may test the current test item of the first electronic device, and when the second electronic device completes testing the current test item of the first electronic device, the first electronic device may display an identifier (such as a two-dimensional code) corresponding to a next test item, so that the second electronic device may test the current test item (i.e., the next test item) of the first electronic device.
That is, according to the scheme of the application, the second electronic device can test the test item according to the identifier of the test item displayed by the first electronic device, and when the test of one test item is completed, the first electronic device can display the identifier of the next test item, so that the second electronic device can complete the test of the next test item, that is, the test of the first electronic device can complete the test of a plurality of test items corresponding to the first electronic device without operation of a user, that is, the scheme of the application can automatically test a plurality of test items corresponding to the first electronic device.
The test method provided in the embodiment of the present application is described below.
In some examples, the solution of the present application can automatically test a plurality of test items corresponding to the first electronic device, where the plurality of test items may be a plurality of test items included in MMI tests performed on the first electronic device (such as a mobile phone).
The plurality of test items included in the MMI test may include subjective test items (i.e., test items that do not require a dedicated pair of test fixtures) and objective test items (i.e., test items that do require the use of various dedicated test fixtures). Subjective test items may include LCD test items (i.e., testing LCDs), audio test items (i.e., testing audio), and the like. Objective test items may include earphone test items (i.e., testing headphones), charging (i.e., testing charging), sensor test items (i.e., testing sensors), and the like.
It should be noted that, for the subjective test item, since the test can be performed without a dedicated test fixture pair, and the subjective test item generally requires a user to perform an operation, or the first electronic device is inconvenient to perform the test using the dedicated test fixture, the test can be performed manually for the subjective test item. For example, for an LCD test item included in a subjective test item, if the LCD test is performed using a dedicated test jig, the LCD screen of the first electronic device is easily damaged, and thus, the LCE test item may be manually tested. For objective test items, by adopting the scheme of the application, a plurality of objective test items can be automatically tested.
For example, as shown in fig. 2, taking a first electronic device as a mobile phone and a second electronic device as test devices as an example, the test method provided in the embodiment of the application is schematically illustrated, that is, the test system for testing the mobile phone may include the mobile phone and the test device. The test equipment can be used for automatically testing a plurality of test items (such as a plurality of objective test items) corresponding to the mobile phone. The subjective test items of the mobile phone can still be tested in a manual test mode.
The N subjective test items corresponding to the mobile phone can be tested in a manual test mode, and the plurality of objective test items corresponding to the mobile phone can be tested automatically through test equipment.
In some examples, the first electronic device may be an electronic device of a cell phone, a notebook computer, a tablet computer, a handheld computer, a PC, a personal digital assistant (personal digital assistant, PDA), or the like. The embodiment of the present application does not limit the specific form of the first electronic device herein. In the embodiment of the application, the first electronic device is taken as an example of a mobile phone to be schematically illustrated.
In some examples, the first electronic device may include a test application, such as an MMI application, that tests the first electronic device.
In some examples, the second electronic device may be a test rack, a test device, or the like, including a plurality of test fixtures. When the electronic device is a test device, the test device may include a plurality of test jigs corresponding to the test items. For example, when the test item is an earphone test item, the test device may include a plurality of test jigs corresponding to the earphone test item, such as a test jig for plugging and unplugging the earphone, a test jig for controlling a volume key of the earphone, or the like. In the embodiment of the application, the second electronic device is taken as the test device for example to be schematically illustrated.
For example, taking a second electronic device as an example of a mobile phone, fig. 3 shows a schematic structural diagram of a first electronic device provided in an embodiment of the present application.
As shown in fig. 3, the first electronic device, i.e., the mobile phone, may include a processor 310, an external memory interface 320, an internal memory 321, a usb interface 330, a charge management module 340, a power management module 341, a battery 342, an antenna 1, an antenna 2, a mobile communication module 350, a wireless communication module 360, an audio module 370, a speaker 370A, a receiver 370B, a microphone 370C, an earphone interface 370D, a sensor module 380, keys 390, a motor 391, an indicator 392, a camera 393, a display screen 394, a SIM card interface 395, and the like. The sensor module 380 may include, among other things, a pressure sensor 380A, a gyroscope sensor 380B, an air pressure sensor 380C, a magnetic sensor 380D, an acceleration sensor 380E, a distance sensor 380F, a proximity sensor 380G, a fingerprint sensor 380H, a temperature sensor 380J, a touch sensor 380K, an ambient light sensor 380L, a bone conduction sensor 380M, and the like.
It is to be understood that the configuration illustrated in this embodiment does not constitute a specific limitation on the electronic apparatus. In other embodiments, the electronic device may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 310 may include one or more processing units, such as: the processor 310 may include an application processor AP, a modem processor, a graphics processor GPU, an image signal processor ISP, a controller, a memory, a video codec, a digital signal processor DSP, a baseband processor, and/or a neural network processor NPU, etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and command center of the electronic device. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 310 for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. The memory may hold instructions or data that the processor 310 has just used or recycled. If the processor 310 needs to reuse the instruction or data, it may be called directly from memory. Repeated accesses are avoided and the latency of the processor 310 is reduced, thereby improving the efficiency of the system.
In some embodiments, processor 310 may include one or more interfaces. The interfaces may include an integrated circuit I2C interface, an integrated circuit built-in audio I2S interface, a pulse code modulation PCM interface, a universal asynchronous receiver transmitter UART interface, a mobile industry processor interface MIPI, a general purpose input output GPIO interface, a subscriber identity module SIM interface, and/or a universal serial bus USB interface, etc.
The electronic device implements display functions through the GPU, display screen 394, and application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 394 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 310 may include one or more GPUs that execute program instructions to generate or change display information.
It will be understood, of course, that the above illustration of fig. 3 is merely exemplary of the case where the electronic device is in the form of a cellular phone. If the electronic device is a tablet computer, a handheld computer, a PC, a PDA, a wearable device (e.g., a smart watch, a smart bracelet), etc., the electronic device may include fewer structures than those shown in fig. 3, or may include more structures than those shown in fig. 3, which is not limited herein.
It will be appreciated that, in general, implementation of the first electronic device functionality requires cooperation of a software system in addition to the hardware support described above.
First oneThe software system of the electronic device may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. Embodiments of the present application are in a layered architectureThe system is an example illustrating the software architecture of an electronic device.
Fig. 4 is a software structural block diagram of the first electronic device according to the embodiment of the present application.
The layered architecture may divide the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, it willThe system is divided into four layers, namely an application layer, an application framework layer (FWK) and an application framework layer from top to bottom, wherein the four layers are respectively an application framework layer (FWK)>Run time (+)>runtimes) and system libraries, which may also be referred to as hardware abstraction layers (hardware abstract layer, HAL), and kernel layers (i.e., kernel layers).
The application layer may include a series of application packages. As shown in fig. 4, the application package may include applications for cameras, gallery, calendar, phone, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 4, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is for providing communication functions of the electronic device. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc.
The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
In operation->runtimes include core libraries and virtual machines. />In operation->runtime is responsible for->Scheduling and management of the system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part isIs a core library of (a).
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media library (edia Libraries), three-dimensional graphics processing library (e.g., openGL ES), two-dimensional graphics engine (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of two-dimensional and three-dimensional layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
A two-dimensional graphics engine is a drawing engine that draws two-dimensional drawings.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
Taking a second electronic device (i.e., a testing device) as an example of a testing cabinet, fig. 5 shows a schematic structural diagram of the second electronic device according to an embodiment of the present application.
As shown in fig. 5, the second electronic device 500 may include: at least one processor 501, communication lines 502, memory 503, and communication interface 504.
Wherein the processor 501 may perform various functions of the second electronic device 500 by running or executing software programs stored in the memory 503 and invoking data stored in the memory 503.
In a specific implementation, as an embodiment, the second electronic device 500 may include one processor or multiple processors. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
The Memory 503 may be, but is not limited to, read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, random access Memory (Random Access Memory, RAM) or other type of dynamic storage device that can store information and instructions, but may also be electrically erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 503 may be stand alone and may be coupled to the processor 501 via a communication line 502. Memory 503 may also be integrated with processor 501.
The memory 503 is used to store a software program for executing the present application, and is controlled by the processor 501 to execute the present application.
The communication interface 504 may be a device, such as any transceiver, for communicating with other devices or communication networks.
Communication lines 502 may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one line is shown in fig. 5, but not only one bus or one type of bus.
The device structure shown in fig. 5 does not constitute a limitation of the second electronic device 500, and the second electronic device 500 may comprise more or less components than shown, or may combine certain components, or may be arranged of different components.
The methods in the following embodiments may be implemented in an electronic device having the above-described hardware structure or software structure.
Methods provided in embodiments of the present application are described below.
The test method provided in the embodiment of the present application is described in detail below with reference to fig. 6. As shown in fig. 6, taking a first electronic device as a mobile phone and a second electronic device as a testing device as an example for schematic illustration, the testing method provided in the embodiment of the present application may include the following S601-S620.
S601, the mobile phone is connected with the testing equipment.
Before the mobile phone is tested, for example, MMI test, the mobile phone and the test equipment can be connected, so that the mobile phone can send the identifier corresponding to the test item to the test equipment, or the test equipment can send the test result corresponding to the test item to the mobile phone.
It should be noted that, the test device may include a plurality of test fixtures, where the test fixtures may be used to test items of the mobile phone, and after the mobile phone is connected to the test device, the test device may perform corresponding operations on the mobile phone through the test fixtures, so as to perform corresponding tests on the mobile phone. For example, when testing the earphone of the mobile phone, the testing device can plug the earphone of the mobile phone through the corresponding testing fixture, so as to determine whether the earphone function of the mobile phone is normal.
It should be noted that, a wired connection may be established between the mobile phone and the test device, for example, a connection may be established by a USB manner, and USB communication may be performed between the mobile phone and the test device. Wireless connection can also be established between the mobile phone and the test equipment. The embodiments of the present application are not limited in this regard.
The test device may be connected to one mobile phone, or may be connected to a plurality of mobile phones, which is not limited in this embodiment of the present application. When the test equipment establishes connection with a plurality of mobile phones, the test equipment can test the plurality of mobile phones at the same time.
S602, the mobile phone receives an operation of starting a test.
After the mobile phone (which may be referred to as a first electronic device in the embodiment of the present application) establishes a connection with the test device (which may be referred to as a second electronic device in the embodiment of the present application), that is, the test device may perform a test on the mobile phone, for example, when the mobile phone may receive an operation of starting the test, so that the mobile phone may perform the MMI test.
In some examples, the operation of initiating the test received by the mobile phone (which may be referred to as a first operation in the embodiments of the present application, that is, the first operation of initiating the test received by the first electronic device) may be an operation of triggering the initiation test by the user. For example, the user may input the identifier for starting the test through the dial corresponding to the contact application of the mobile phone, that is, when the mobile phone receives the identifier for starting the test input by the user at the dial corresponding to the contact application of the mobile phone, that is, the mobile phone receives the operation for starting the test triggered by the user.
In other examples, the operation of starting the test received by the mobile phone may also be that the test equipment triggers the operation of starting the test on the mobile phone through the test fixture. For example, the user may input the identifier for starting the test through the dial corresponding to the contact application of the mobile phone, that is, when the mobile phone receives the identifier for starting the test input by the test fixture at the dial corresponding to the contact application of the mobile phone, that is, the mobile phone receives the operation that the test fixture triggers the start test.
S603, the mobile phone displays a prompt window, and the prompt window is used for confirming whether automatic testing is performed or not.
After the mobile phone receives the operation of starting the test, the mobile phone can display a prompt window, wherein the prompt window is used for confirming whether the automatic test is performed or not.
In some examples, after the handset receives an operation to initiate a test, the handset displays a prompt window for confirming whether to conduct an automatic test, which may include the word "whether to conduct an automatic test". The first prompt window may also include two options, namely a "yes" and a "no" option.
When the mobile phone receives a triggering operation, such as clicking operation, of the No option in the prompt window, the mobile phone can determine that automatic testing is not performed, i.e. the mobile phone can determine that manual testing is performed. When the mobile phone receives a trigger operation, such as a click operation, for the yes option in the prompt window, the mobile phone can determine to perform automatic testing.
For example, when the mobile phone receives the identifier of the start test input by the user at the dial corresponding to the contact application of the mobile phone, that is, after the mobile phone receives the operation of the start test triggered by the user, as shown in (a) of fig. 7, the mobile phone may display a prompt window 701, where the prompt window 701 is used to confirm whether to perform the automatic test, and the prompt window 701 may include a word of "whether to perform the automatic test" and "yes" and "no" options.
S604, the mobile phone receives operation of selecting automatic test.
After the mobile phone displays a prompt window for confirming whether to perform automatic test, the mobile phone can receive the operation of selecting automatic test, so that the mobile phone can perform automatic test.
In some examples, when the prompt window displayed by the mobile phone and used for confirming whether to perform automatic test includes a word of "whether to perform automatic test" and "yes" and "no" options, the mobile phone receives an operation of selecting automatic test, and may receive a trigger operation of the "yes" option included in the prompt window for the mobile phone.
It should be noted that, the mobile phone may receive the trigger operation of the yes option included in the prompt window, for example, the click operation, or the trigger operation of the yes option included in the prompt window, for example, the click operation, for example, the test fixture included in the test device may also be the trigger operation of the yes option included in the prompt window, which is not limited in the embodiment of the present application.
S605, the mobile phone displays the identification of the current test item.
After the mobile phone receives the operation of selecting the automatic test, the mobile phone may display an identifier (may be referred to as a first identifier in the embodiment of the present application) corresponding to the current test item (may be referred to as a first identifier in the embodiment of the present application), that is, the first identifier may be used to indicate to test the first test item, so that the current test item may be tested. That is, the first electronic device receives a first operation to start the test, and in response to the first operation, the first electronic device may display a first identifier, where the first identifier may be used to indicate that the first test item is tested, and the first test item is any one of a plurality of test items included in the first electronic device.
The cell phone may include a plurality of test items, and the plurality of test items may include a plurality of subjective test items and a plurality of objective test items. Subjective test items are test items which need to be tested manually, and objective test items are test items which do not need to be tested manually. That is, when the mobile phone receives the operation of selecting the automatic test, the automatic test can be performed on the plurality of objective test items, that is, the current test item is one of the plurality of objective test items capable of performing the automatic test. For example, the current test item is the first objective test item of a plurality of objective test items capable of automatic testing. Note that, in the embodiment of the present application, the order of the plurality of objective test items for performing the automatic test is not limited.
In some examples, as shown in table 1, the objective test items, i.e., test items that do not require manual testing, may include test items such as an analog earphone test, a digital earphone test, a high-voltage direct-charging test, etc., that is, test items such as table 1, i.e., test items such as an analog earphone test, a digital earphone test, a high-voltage direct-charging test, etc., support automated testing without manual intervention.
TABLE 1
Sequence number Test item Type(s)
1 Analog earphone testing Supporting automated testing
2 Digital earphone testing Supporting automated testing
3 Infrared test Supporting automated testing
4 High voltage charge test Supporting automated testing
5 NFC test Supporting automated testing
In some examples, the identification of the current test item may include the name of the current test item, the identification of the cell phone (e.g., the device serial number of the cell phone), and so forth. That is, the name of the current test item, the identification of the mobile phone (such as the device serial number of the mobile phone) and the like can be obtained through the identification of the current test item.
In some examples, the identifier of the current test item may include a name of the current test item, which may be a code corresponding to the current test item, i.e., the current test item may be determined by the code corresponding to the current test item. For example, as shown in table 2, the code corresponding to the test item may be mmi2a+ serial number, for example, when the test item is an analog earphone test, the code corresponding to the current test item may be mmi2a001, when the test item is a digital earphone test, the code corresponding to the current test item may be mmi2a001, when the current test item is an infrared test, the code corresponding to the current test item may be mmi2a003, and so on.
TABLE 2
NO Content Test item encoding
1 Analog earphone testing MMI2A001
2 Digital earphone testing MMI2A002
3 Infrared test MMI2A003
4 High voltage charge test MMI2A004
5 NFC test MMI2A005
In some examples, the identifier of the current test item may be a two-dimensional code corresponding to the current test item. When the identifier of the current test item is the two-dimensional code corresponding to the current test item, the display content of the two-dimensional code corresponding to the current test item needs to be supported and displayed with a test result, a test item name, an equipment serial number and the like. That is, the information such as the test result, the test item name, the equipment serial number and the like of the current test can be obtained through the two-dimensional code corresponding to the current test item.
In other examples, the content of the two-dimensional code corresponding to the current test item may further include: version number, test result, device serial number (i.e., serial number, SN), test item encoding. And for the test item passing the test, the two-dimensional code corresponding to the test item enters the test item to display the one-time two-dimensional code, and the test is automatically switched to a new test item, namely the two-dimensional code information of the new test item is directly displayed without changing the original two-dimensional code information. That is, the information such as the version number of the current test, the test result, the test item code, the equipment serial number of the mobile phone and the like can be obtained through the two-dimensional code corresponding to the current test item.
In some examples, the identification of the current test item may also include a test type, which may include initiating a test, obtaining a test result, or obtaining all test results. That is, when the identification of the current test item includes a test type that is a launch test, the identification of the current test item may be used to indicate that the current test item is to be tested. When the test type included in the identification of the current test item is the acquired test result, the identification of the current test item may be used to indicate that the test result of the current test item is acquired. When the test types included in the identification of the current test item are all test results obtained, the identification of the current test item may be used to indicate that all test results of the test item are obtained.
Different test types may be identified by different values. For example, the initiation of a test may be represented by 0, i.e., when the identification of the current test item includes a value of 0 for the type of test, it may be determined that the identification of the current test item is indicative of testing the current test item. The obtained test result may be denoted by 1, i.e. when the identifier of the current test item includes a value of 1 for the test type, it may be determined that the identifier of the current test item is used to indicate that the test result of the current test item is obtained. The acquiring of all test results may be identified by 2, i.e. when the identifier of the current test item includes a value of 2 for the test type, it may be determined that the identifier of the current test item is used to indicate that the test results of all test items are acquired.
In some examples, the identifier of the current test item may be a two-dimensional code corresponding to the current test item. When the identifier of the current test item is the two-dimensional code corresponding to the current test item, the format of the two-dimensional code corresponding to the current test item may be the test type+sn+test item code+error code (if failure). For example, when the current test item is an analog earphone test, the test code corresponding to the current test item is MMI2a001, and the format of the two-dimensional code corresponding to the current test item is: the value of the test type is 0 through the two-dimensional code corresponding to the current test item, namely the current test item needs to be tested, and the equipment serial number of the mobile phone and the current test item are tested by the simulated earphone can be obtained.
For example, as shown in table 3, when the current test item is an analog earphone test, the test code corresponding to the current test item is MMI2a001, and the format of the two-dimensional code corresponding to the current test item is: the value of the test type is 0 through the two-dimensional code corresponding to the current test item, namely the current test item needs to be tested, and the equipment serial number of the mobile phone and the current test item are tested by the simulated earphone can be obtained. The mobile phone only displays the name of the current test item, and the test equipment judges whether to start the current test item according to the content of the current two-dimensional code to judge and whether the current test item is completed.
When the current test item is tested by the digital earphone, the test code corresponding to the current test item is MMI2A002, and the format of the two-dimensional code corresponding to the current test item is as follows: the value of the test type is 0 through the two-dimensional code corresponding to the current test item, namely the current test item needs to be tested, and the equipment serial number of the mobile phone and the current test item can be obtained for testing the digital earphone. The mobile phone only displays the name of the current test item, and the test equipment judges whether to start the current test item according to the content of the current two-dimensional code to judge and whether the current test item is completed.
When the current test item is an infrared test, the test code corresponding to the current test item is MMI2A003, and the format of the two-dimensional code corresponding to the current test item is as follows: the value of the test type is 0 through the two-dimensional code corresponding to the current test item, namely the current test item needs to be tested, and the equipment serial number of the mobile phone and the current test item are infrared tests can be obtained. The mobile phone only displays the name of the current test item, and the test equipment judges whether to start the current test item according to the content of the current two-dimensional code to judge and whether the current test item is completed.
When the current test item is a high-voltage charging test, the test code corresponding to the current test item is MMI2A004, and the format of the two-dimensional code corresponding to the current test item is as follows: the value of the test type is 0 through the two-dimensional code corresponding to the current test item, namely the current test item needs to be tested, and the equipment serial number of the mobile phone and the current test item are high-voltage charging tests can be obtained. The mobile phone only displays the name of the current test item, and the test equipment judges whether to start the current test item according to the content of the current two-dimensional code to judge and whether the current test item is completed.
When the current test item is the test failure of the simulated earphone, the test code corresponding to the current test item is MMI2A020, and the format of the two-dimensional code corresponding to the current test item is as follows: 1+SN+MMI2A020, namely, through the two-dimensional code corresponding to the current test item, the value of the test type is 1, namely, the test result of the current test item needs to be obtained, and the equipment serial number of the mobile phone and the test failure of the current test item for simulating the earphone can be obtained. I.e. when the test fails, the test device can read the corresponding test result.
When the current test item is the total test result (namely, all test results are obtained), the test code corresponding to the current test item is MMI2A026, and the format of the two-dimensional code corresponding to the current test item is as follows: 2+SN+MMI2A026, namely, through the two-dimensional code corresponding to the current test item, the value of the test type is 2, namely, the test results corresponding to all the test items need to be obtained, and the equipment serial number of the mobile phone and the current test item are obtained as the total test results.
TABLE 3 Table 3
For example, when the mobile phone receives the identifier of the start test input by the user at the dial corresponding to the contact application of the mobile phone, that is, after the mobile phone receives the operation of the start test triggered by the user, as shown in (a) of fig. 7, the mobile phone may display a prompt window 701, where the prompt window 701 is used to confirm whether to perform the automatic test, and the prompt window 701 may include a word of "whether to perform the automatic test" and "yes" and "no" options. When the mobile phone receives the operation of selecting the automatic test, that is, the mobile phone receives the triggering operation of the yes option in the prompt window 701, the mobile phone may display the identifier corresponding to the current test item (for example, the first test item in the multiple test items, such as the hall sensor test), for example, the two-dimensional code 702 corresponding to the current test item may be in the format of the two-dimensional code corresponding to the two-dimensional code 702 corresponding to the current test item: the 0+sn+mmi2a012, that is, the two-dimensional code 702 corresponding to the current test item, can obtain that the value of the test type is 0, that is, the current test item needs to be tested, and also can obtain the equipment serial number of the mobile phone and that the current test item is a hall sensor test.
It should be noted that, the identifier of the current test item may be not only a two-dimensional code, but also other types of information, which is not limited in this embodiment of the present application.
It should be noted that, when the mobile phone displays the two-dimensional code of the current test item, the two-dimensional code of the current test item may be located at the left side or the right side under the screen of the mobile phone, so as to avoid overlapping with the button of the mobile phone, and in order to prevent screen burn, the two-dimensional code of the current test item may be switched and placed according to the central axis.
It should be noted that, the mobile phone may: public static Optional < Bitmap > generateQrCodebitmap (String content, final Activity activity), a two-dimensional code is generated, the input of the interface can be two-dimensional code information, and the return value of the interface can be two-dimensional code. The mobile phone can be connected with the interface: public String getDeviceSn (), the SN number of the mobile phone is obtained, the input parameters of the interface can be none, and the return value of the interface can be the SN number of the mobile phone. The mobile phone can be connected with the interface: public string switchPostion (), and generating two-dimensional code burn-in screen moving operation.
S606, the mobile phone sends the identification of the current test item to the test equipment.
After the mobile phone displays the identifier of the current test item, the mobile phone can send the identifier of the current test item to the test equipment, so that the test equipment can acquire the identifier of the current test item, and the current test item is tested according to the identifier of the current test item.
When the identifier of the current test item is a two-dimensional code, the mobile phone also can not send the identifier of the current test item to the test equipment, and the test equipment can scan the two-dimensional code corresponding to the current test item displayed by the mobile phone, so that the test equipment can acquire the information of the current test item, and test the current test item according to the identifier of the current test item.
S607, the test equipment acquires the identification of the current test item.
After the mobile phone displays the identifier of the current test item, the mobile phone can send the identifier of the current test item to the test equipment, so that the test equipment can test the current test item according to the identifier of the current test item.
In some examples, the manner in which the test device obtains the identifier of the current test item in the embodiments of the present application is not limited. When the mobile phone displays the identifier of the current test item as the two-dimensional code corresponding to the current test item, the mobile phone may not send the two-dimensional code corresponding to the current test item to the test device, but the test device may acquire the identifier of the current test item (i.e., the two-dimensional code corresponding to the current test item), for example, the test device may acquire the two-dimensional code corresponding to the current test item through scanning, so that the test device may test the current test item according to the two-dimensional code of the current test item. I.e. the second electronic device may obtain the first identification.
S608, according to the identification of the current test item, the test equipment determines the test type corresponding to the identification of the current test item.
In some examples, the identification of the current test item may also include a test type, which may include initiating a test, obtaining a test result, or obtaining all test results. That is, after the test device obtains the identifier of the current test item, the test device may determine, according to the identifier of the current test item, a test type corresponding to the identifier of the current test item. That is, the second electronic device may determine, according to the first identifier, a test type corresponding to the first identifier, where the test type may include testing the first test item, obtaining a test result corresponding to the first test item, and obtaining test results corresponding to the plurality of test items.
When the test device determines that the test type included in the identifier of the current test item is a start test, that is, the identifier of the current test item may be used to indicate to test the current test item, the test device may test the current test item. For example, when the value of the test type included in the identifier of the current test item is 0, the test device determines that the test type corresponding to the identifier of the current test item is a start test, and the test device may test the current test item. I.e. the test device may perform S609 described below. That is, where the test type includes testing the first test item, the second electronic device may test the first test item.
When the test type included in the identifier of the current test item is the acquired test result, that is, the identifier of the current test item can be used for indicating to acquire the test result of the current test item, the test equipment can acquire the test result corresponding to the current test item, and when the test equipment acquires the test result corresponding to the current test item, the test equipment can send the test result corresponding to the current test item to the mobile phone. For example, when the value of the test type included in the identifier of the current test item is 1, the test device determines that the test type corresponding to the identifier of the current test item is the test result of the current test item, the test device may obtain the test result of the current test item, and when the test device obtains the test result corresponding to the current test item, the test device may send the test result corresponding to the current test item to the mobile phone. Namely, under the condition that the test type comprises the test result corresponding to the first test item, the second electronic device can acquire and send the test result corresponding to the first test item to the first electronic device.
When the test types included in the identification of the current test item are all test results, namely the identification of the current test item can be used for indicating the test results of all test items to be obtained, the test equipment can obtain the test results corresponding to all test items, and when the test equipment obtains the test results corresponding to all test items, the test equipment can send the test results corresponding to all test items to the mobile phone. For example, when the value of the test type included in the identifier of the current test item is 2, the test device determines that the test type corresponding to the identifier of the current test item is a test result for acquiring all test items, the test device may acquire the test result for all test items, and when the test device acquires the test result corresponding to all test items, the test device may send the test result corresponding to all test items to the mobile phone. Namely, under the condition that the test type comprises test results of a plurality of test items, the second electronic equipment acquires and sends the test results corresponding to the plurality of test items to the first electronic equipment.
S609, when the test type corresponding to the identification of the current test item starts the test, the test equipment tests the current test item according to the identification of the current test item.
When the test device determines that the test type included in the identifier of the current test item is a start test, that is, the identifier of the current test item may be used to indicate to test the current test item, the test device may test the current test item.
It should be noted that, when the test device tests the current test item, the test device may trigger the mobile phone to test the current test item, that is, the mobile phone may receive an operation (in the embodiment of the present application, may be referred to as a sixth operation) for testing the current test item, so that the mobile phone may test the current test item. That is, the first electronic device may receive a sixth operation to test the first test item, and in response to the sixth operation, the first electronic device tests the first test item.
S610, the test equipment determines whether the current test item is tested successfully.
After the test device tests the current test item according to the identifier of the current test item, the test device may determine whether the current test item is tested successfully, and when the test device determines that the current test item is tested successfully, the test device may obtain a test success result corresponding to the current test item, i.e. the test device may continue to execute S611 described below. When the test device determines that the current test item fails, the test device may acquire a test failure result corresponding to the current test item, that is, the test device may continue to execute S612 described below.
In some examples, the test device determining whether the current test item is tested successfully may include the test device determining a test duration for testing the current test item, and when the test duration for testing the current test item is greater than a test duration threshold, the test device may determine that the current test item fails to test, that is, the test device may determine that the current test item fails to test when the test duration threshold corresponds to a time in which the test device does not obtain a test result corresponding to the current test item.
When the test duration of the current test item is smaller than the test duration threshold, the test equipment can determine that the current test item is tested successfully, that is, the test equipment obtains the test result corresponding to the current test item in the time corresponding to the test duration threshold, and the test equipment can determine that the current test item is tested to be failed.
It should be noted that, in the embodiment of the present application, a specific manner of determining, by the test device, whether the current test item is tested successfully is not limited, and other manners of determining whether the current test item is tested successfully may be also used.
S611, the test equipment acquires a test success result of the current test item.
When the test equipment determines that the current test item is successfully tested, the test equipment can acquire a test success result of the current test item. And the successful test result of the current test item is the value corresponding to the current test item obtained by testing the current test item.
In some examples, after the test device may obtain the test success result of the current test item, the test device may store the obtained test success result of the current test item, so that when the test type included in the identifier of the current test item sent by the mobile phone is the test result corresponding to the current test item, the test device may send the test result corresponding to the current test item to the mobile phone, or when the test type included in the identifier of the current test item is the test result obtained in total, the test device may obtain the test result corresponding to all the test items (including the test success result of the current test item).
S612, the test equipment acquires a test failure result of the current test item.
When the test equipment determines that the current test item fails in test, the test equipment can acquire a test failure result of the current test item. And the test failure result of the current test item, namely, the current test item is tested without obtaining the value corresponding to the current test item.
In some examples, after the test device may obtain the test failure result of the current test item, the test device may store the obtained test failure result of the current test item, so that when the test type included in the identifier of the current test item sent by the mobile phone is the test result corresponding to the current test item, the test device may send the test failure result corresponding to the current test item to the mobile phone, or when the test type included in the identifier of the current test item is the test result obtained in total, the test device may obtain the test result corresponding to all the test items (including the test failure result of the current test item).
S613, the test equipment triggers the operation of switching the test items.
After the test device obtains the test success result of the current test item, the test device may trigger an operation of switching the test item (may be referred to as a second operation in the embodiment of the present application), for example, the test device may trigger an operation of testing the next test item (may be referred to as a second test item in the embodiment of the present application). The next test item, i.e. the test item after the current test item in the plurality of test items included in the mobile phone, i.e. the second test item, may be the test item after the first test item in the plurality of test items included in the first electronic device. That is, in the case that the second electronic device determines that the first test item is successfully tested, the first electronic device may receive a second operation triggered by the second electronic device to switch the second test item.
In some examples, the operation of triggering the switching of the test item may include an operation of triggering the next test item switched by the mobile phone, that is, triggering the mobile phone to display an identifier corresponding to the next test item, so that the test device may test the next test item. I.e., the handset may continue to execute S614 described below.
The operation of triggering the switching test item can also comprise the operation of triggering the mobile phone to acquire the test result of the current test item, namely triggering the mobile phone to display the identification of acquiring the test result corresponding to the current test item, so that the test equipment can send the test result corresponding to the current test item to the mobile phone. I.e., the handset may continue to execute S615 described below.
The operation of triggering the switching of the test item may further include an operation of triggering the mobile phone to switch to the last test item, that is, triggering the mobile phone to display the identifier of the last test item (i.e., the test item before the current test item), so that the test device may test the last test item, or the test device may send a test result corresponding to the last test item to the mobile phone. I.e., the handset may continue to perform S620 described below.
In some examples, when the operation of the test equipment triggering the switching test item triggers the operation of the next test item switched by the mobile phone, the operation of the test equipment triggering the switching test item may include the triggering operation of the test equipment triggering the switching test item by the mobile phone through a test fixture included by the test equipment. For example, the test equipment can operate the volume key of the mobile phone through the test fixture included in the test equipment, so that the mobile phone is triggered to display the identifier corresponding to the next test item.
When the operation of triggering the switching test item by the test equipment triggers the operation of acquiring the test result of the current test item by the mobile phone, the operation of triggering the switching test item by the test equipment can comprise the triggering operation of switching the test item by the test equipment on the mobile phone through the test fixture included by the test equipment. For example, the test device may operate a main key (home key) of the mobile phone through a test fixture included in the test device, so as to trigger the mobile phone to display and obtain an identifier of a test result corresponding to the current test item.
When the operation of triggering the switching test item by the test equipment triggers the operation of switching the mobile phone sending and receiving the mobile phone to the operation of the last test item, the operation of triggering the switching test item by the test equipment can comprise the triggering operation of switching the test item by the test equipment to the mobile phone through the test fixture included by the test equipment. For example, the test device may operate the volume up key of the mobile phone through the test fixture included in the test device, so as to trigger the mobile phone to display the identifier corresponding to the previous test item, so that the previous test item may be tested, or the test result corresponding to the previous test item may be obtained.
S614, when the operation instruction of switching the test items is switched to the next test item, the mobile phone displays the identifier corresponding to the next test item.
When the test equipment triggers the operation of switching the test items, the mobile phone can receive the operation of the test equipment triggering the operation of switching the test items. When the mobile phone receives the operation that the test device triggers the switching test item, the mobile phone can determine the type of the operation that the test item is switched, that is, the mobile phone can determine that the type of the operation that the test item is switched is the operation that triggers the next test item of the mobile phone switching (which may be referred to as a second operation in the embodiment of the application), the operation that triggers the mobile phone to obtain the test result of the current test item (which may be referred to as a third operation in the embodiment of the application), or the operation that triggers the mobile phone to switch to the last test item (which may be referred to as a fifth operation in the embodiment of the application).
When the mobile phone determines that the type of the operation of switching the test item is the operation of the next test item triggering the mobile phone to switch, that is, the operation instruction of switching the test item is switched to the next test item, the mobile phone may display an identifier (may be referred to as a second identifier in the embodiment of the present application) corresponding to the next test item. That is, the first electronic device receives a second operation triggered by the second electronic device to switch the second test item, and in response to the second operation, the first electronic device may display a second identifier, where the second identifier is used to indicate that the second test item is tested.
In some examples, the identifier corresponding to the next test item may be a two-dimensional code corresponding to the next test item. The two-dimensional code corresponding to the next test item can comprise information such as the name of the next test item, the equipment serial number of the mobile phone, the test type of the next test item and the like.
It should be noted that, after the mobile phone displays the identifier corresponding to the next test item, the test device may obtain the identifier corresponding to the next test item, so that the test device may test the next test item, that is, the test device may execute the steps S607 to S613.
For example, when the mobile phone receives the identifier of the start test input by the user at the dial corresponding to the contact application of the mobile phone, that is, after the mobile phone receives the operation of the start test triggered by the user, as shown in (a) of fig. 8, the mobile phone may display a prompt window 801, where the prompt window 801 is used to confirm whether to perform the automatic test, and the prompt window 801 may include a word of "whether to perform the automatic test" and "yes" and "no" options. When the mobile phone receives the operation of selecting the automatic test, that is, when the mobile phone receives the triggering operation of the yes option in the prompt window 801, as shown in (b) in fig. 8, the mobile phone may display an identifier corresponding to the current test item, such as a two-dimensional code 802 corresponding to the current test item. After the mobile phone displays the two-dimensional code 802 corresponding to the current test item, the test device can acquire the two-dimensional code 802 corresponding to the current test item, so as to test the current test item.
After the test device obtains the test result of the current test item, the test device may trigger the operation of switching the test item, and when the operation instruction of switching the test item is switched to the next test item, as shown in (c) in fig. 8, the mobile phone may display the identifier 803 corresponding to the next test item, so that the test device may obtain the identifier 803 corresponding to the next test item, and thus test the next test item according to the identifier 803 corresponding to the next test item.
S615, when the operation instruction of switching the test item is used for acquiring the test result of the current test item, displaying the identification of the test result corresponding to the current test item.
When the mobile phone determines that the type of the operation of switching the test item is an operation (may be referred to as a third operation in the embodiment of the present application) of triggering the mobile phone to obtain the test result of the current test item, that is, when the operation of switching the test item indicates that the test result of the current test item is obtained, the mobile phone may display an identifier for obtaining the test result corresponding to the current test item. That is, the first electronic device receives a third operation of obtaining the test result of the first test item, and in response to the third operation, the first electronic device may display a third identifier, where the third identifier is used to indicate that the test result corresponding to the first test item is obtained.
In some examples, the identifier of the test result corresponding to the current test item may be a two-dimensional code corresponding to the next test item. The two-dimensional code for obtaining the test result corresponding to the current test item may include information such as the name of the current test item, the serial number of the mobile phone device, and the like.
It should be noted that, after the mobile phone determines that the type of operation for switching the test item is an operation for triggering the mobile phone to obtain the test result of the current test item, the mobile phone may also start the current test item, so as to test the current test item, and after the mobile phone tests the current test item, the mobile phone may display an identifier for obtaining the test result corresponding to the current test item, so that the test device may send the test result corresponding to the current test item to the mobile phone.
For example, when the mobile phone receives the identifier of the start test input by the user at the dial corresponding to the contact application of the mobile phone, that is, after the mobile phone receives the operation of the start test triggered by the user, as shown in (a) of fig. 9, the mobile phone may display a prompt window 901, where the prompt window 901 is used to confirm whether to perform the automatic test, and the prompt window 901 may include a word of "whether to perform the automatic test" and "yes" and "no" options. When the mobile phone receives the operation of selecting the automatic test, that is, when the mobile phone receives the triggering operation of the yes option in the prompt window 901, as shown in (b) in fig. 9, the mobile phone may display an identifier corresponding to the current test item, such as a two-dimensional code 902 corresponding to the current test item. After the mobile phone displays the two-dimensional code 902 corresponding to the current test item, the test device can obtain the two-dimensional code 902 corresponding to the current test item, so as to test the current test item.
After the test device obtains the test result of the current test item, the test device may trigger the operation of switching the test item, and when the operation of switching the test item indicates that the corresponding test result of the current test item is obtained, as shown in (c) in fig. 9, the mobile phone may display an identifier 903 corresponding to the obtained corresponding test result of the current test item, so that the test device may obtain the identifier 903 corresponding to the obtained corresponding test result of the current test item, and thus the test device may send the corresponding test result of the current test item to the mobile phone.
In some examples, the type of operation of switching the test items may also be a test result (which may be referred to as a fourth operation in the embodiments of the present application) that triggers the mobile phone to acquire all the test items, that is, the operation of switching the test items may also indicate that the test result of all the test items is acquired. When the mobile phone determines that the type of operation of switching the test items is that the mobile phone is triggered to acquire the test results of all the test items, that is, the operation of switching the test items indicates that the test results of all the test items are acquired, the mobile phone may display an identifier (may be referred to as a fifth identifier in the embodiment of the present application) for acquiring the test results corresponding to all the test items. That is, the first electronic device receives a fourth operation of obtaining test results of the plurality of test items, and in response to the fourth operation, the first electronic device may display a fifth identifier, where the fifth identifier is used to indicate that test results corresponding to the plurality of test items are obtained.
It should be noted that, after the mobile phone displays and displays the identifiers for obtaining the test results corresponding to all the test items, the test device may send the test results corresponding to all the test items to the mobile phone, and after the mobile phone obtains the test results corresponding to all the test items, the mobile phone may display the identifiers corresponding to the test results corresponding to all the test items (in the embodiment of the present application, may be referred to as a sixth identifier, that is, the sixth identifier may be used to indicate and display the test results corresponding to the first test item), for example, the mobile phone may display the two-dimensional code corresponding to the test results corresponding to all the test items. The two-dimensional codes corresponding to the test results corresponding to the all test items can comprise the test results corresponding to the all test items, namely, the mobile phone can acquire the test results corresponding to the all test items through the two-dimensional codes corresponding to the test results corresponding to the all test items. That is, the first electronic device may receive a fourth operation of acquiring test results of the plurality of test items, and in response to the fourth operation, the first electronic device may display a fifth identifier for indicating that the test results corresponding to the plurality of test items are acquired, and the second electronic device may acquire the fifth identifier and send the test results corresponding to the plurality of test items to the first electronic device. After the first electronic device receives the test results corresponding to the plurality of test items, the first electronic device may display a sixth identifier, where the sixth identifier is used to indicate to display the test results corresponding to the plurality of test items.
In some examples, the identifier for obtaining the test results corresponding to all the test items (i.e., the plurality of test items corresponding to the first electronic device) may be a two-dimensional code. The two-dimensional code corresponding to the test result corresponding to all the test items can comprise the names of all the test items, the equipment serial numbers of the mobile phone and other information.
For example, when the mobile phone receives the identification of the start test input by the user at the dial corresponding to the contact application of the mobile phone, that is, after the mobile phone receives the operation of the start test triggered by the user, as shown in (a) of fig. 10, the mobile phone may display a prompt window 1001, where the prompt window 1001 is used to confirm whether to perform the automatic test, and the prompt window 1001 may include a word of "whether to perform the automatic test" and "yes" and "no" options. When the mobile phone receives the operation of selecting the automatic test, that is, when the mobile phone receives the triggering operation of the yes option in the prompt window 1001, as shown in (b) in fig. 10, the mobile phone may display an identifier corresponding to the current test item, such as a two-dimensional code 1002 corresponding to the current test item. After the mobile phone displays the two-dimensional code 1002 corresponding to the current test item, the test device can obtain the two-dimensional code 1002 corresponding to the current test item, so as to test the current test item.
After the test device obtains the test result of the current test item, the test device may trigger the operation of switching the test item, and when the operation of switching the test item indicates that the corresponding test results of all the test items are obtained, as shown in (c) in fig. 10, the mobile phone may display an identifier 1003 corresponding to the corresponding test result of all the test items, so that the test device may obtain an identifier 1003 corresponding to the corresponding test result of all the test items, and thus the test device may send the corresponding test result of all the test items to the mobile phone.
When the mobile phone receives the test results corresponding to all the test items sent by the test equipment, the mobile phone can generate two-dimensional codes corresponding to the test results corresponding to all the test items, as shown in (d) in fig. 10, the mobile phone can display the two-dimensional codes 1004 corresponding to the test results corresponding to all the test items, and the user can identify the two-dimensional codes 1004 corresponding to the test results corresponding to all the test items through the mobile phone, so that the mobile phone can display the test results corresponding to all the test items.
S616, the test equipment acquires the identification of the test result corresponding to the current test item.
After the mobile phone displays the identifier of the test result corresponding to the current test item, the mobile phone can send the identifier of the test result corresponding to the current test item to the test equipment, so that the test equipment can obtain the identifier of the test result corresponding to the current test item according to the identifier of the test result corresponding to the current test item, and send the identifier of the test result corresponding to the current test item to the mobile phone.
In some examples, the manner in which the test device obtains the identifier of the test result corresponding to the current test item in the embodiments of the present application is not limited. When the mobile phone displays the two-dimensional code corresponding to the test result corresponding to the current test item, the mobile phone may not send the two-dimensional code corresponding to the test result corresponding to the current test item to the test device, but the test device may obtain the identifier of the test result corresponding to the current test item (i.e., obtain the two-dimensional code corresponding to the test result corresponding to the current test item), for example, the test device may obtain the two-dimensional code corresponding to the test result corresponding to the current test item by scanning, so that the test device may obtain the identifier of the test result corresponding to the current test item, and send the identifier of the test result corresponding to the current test item to the mobile phone.
S617, the test equipment acquires the identification of the test result corresponding to the current test item.
After the test device obtains the identifier of the test result corresponding to the current test item, the test device may obtain the test result corresponding to the current test item.
S618, the test equipment sends the test result corresponding to the current test item to the mobile phone.
After the test device obtains the test result corresponding to the current test item, the test device can send the test result corresponding to the current test item to the mobile phone.
S619, the mobile phone receives the test result corresponding to the current test item and displays the identification corresponding to the test result corresponding to the current test item.
After the mobile phone receives the test result corresponding to the current test item, the mobile phone may display an identifier corresponding to the test result corresponding to the current test item (in this embodiment, may be referred to as a fourth identifier, i.e. the fourth identifier may be used to indicate to display the test result corresponding to the first test item), for example, the mobile phone may display a two-dimensional code corresponding to the test result corresponding to the current test item. The two-dimensional code corresponding to the test result corresponding to the current test item may include the test result corresponding to the current test item, that is, the mobile phone may obtain the test result corresponding to the current test item through the two-dimensional code corresponding to the test result corresponding to the current test item.
For example, continuing to combine with fig. 9 (c), after the test device obtains the test result of the current test item, the test device may trigger an operation of switching the test item, and when the operation of switching the test item indicates that the corresponding test result of the current test item is obtained, the mobile phone may display the identifier 903 corresponding to the corresponding test result of the current test item, so that the test device may obtain the identifier 903 corresponding to the corresponding test result of the current test item, and thus the test device may send the corresponding test result of the current test item to the mobile phone.
When the mobile phone receives the test result corresponding to the current test item sent by the test device, the mobile phone can generate a two-dimensional code corresponding to the test result corresponding to the current test item, as shown in (d) in fig. 9, the mobile phone can display a two-dimensional code 904 corresponding to the test result corresponding to the current test item, and the user can identify the two-dimensional code 904 corresponding to the test result corresponding to the current test item through the mobile phone, so that the mobile phone can display the test result corresponding to the current test item.
S620, when the operation instruction of switching the test item is switched to the last test item, the mobile phone displays the identifier corresponding to the last test item.
When the mobile phone determines that the type of operation of switching the test item is an operation of triggering the mobile phone to switch to the last test item (which may be referred to as a third test item in the embodiment of the present application), that is, when the operation of switching the test item indicates to switch to the last test item, the mobile phone may display an identifier corresponding to the last test item (which may be referred to as a seventh identifier in the embodiment of the present application, that is, the seventh identifier is used to indicate to test the third test item). In some examples, the identifier for obtaining the test result corresponding to the current test item may be a two-dimensional code corresponding to the previous test item. The two-dimensional code corresponding to the last test item can comprise information such as the name of the current test item, the equipment serial number of the mobile phone and the like.
It should be noted that, after the mobile phone determines that the type of operation of switching the test item is to trigger the mobile phone to display the identifier corresponding to the previous test item, the mobile phone may also display the identifier corresponding to the previous test item, so as to retest the previous test item or obtain the test result of the previous test item.
For example, when the mobile phone receives the identifier of the start test input by the user at the dial corresponding to the contact application of the mobile phone, that is, after the mobile phone receives the operation of the start test triggered by the user, as shown in (a) of fig. 11, the mobile phone may display a prompt window 1101, where the prompt window 1101 is used to confirm whether to perform the automatic test, and the prompt window 1101 may include a word of "whether to perform the automatic test" and "yes" and "no" options. When the mobile phone receives the operation of selecting the automatic test, that is, when the mobile phone receives the triggering operation of the yes option in the prompt window 1101, as shown in (b) in fig. 11, the mobile phone may display an identifier corresponding to the current test item, such as a two-dimensional code 1102 corresponding to the current test item. After the mobile phone displays the two-dimensional code 1102 corresponding to the current test item, the test equipment can acquire the two-dimensional code 1102 corresponding to the current test item, so that the current test item is tested.
After the test device obtains the test result of the current test item, the test device may trigger the operation of switching the test item, and when the operation instruction of switching the test item is switched to the previous test item, as shown in (c) in fig. 11, the mobile phone may display the corresponding identifier 1103 of the previous test item, so that the test device may obtain the corresponding identifier 1103 of the previous test item, and thus the test device may test the previous test item according to the corresponding identifier of the previous test item.
According to the scheme test equipment, the current test item can be tested according to the identifier of the current test item displayed by the mobile phone, and when the test of the current test item is completed, the mobile phone can display the identifier of the next test item, so that the test equipment can complete the test of the next test item, namely, the test of a plurality of test items corresponding to the mobile phone can be completed without operating a user in the test of the mobile phone, namely, the scheme of the application can automatically test a plurality of test items corresponding to the mobile phone.
For ease of understanding, the test methods provided in the embodiments of the present application are described below in conjunction with specific examples.
For example, taking the first electronic device as a mobile phone, performing MMI test on the mobile phone, and taking the second electronic device as a test device, that is, the test device may be a device for performing MMI test on the mobile phone, the test method provided by the embodiment of the application is schematically illustrated.
For example, in combination with (a) in fig. 12, in the test method provided in the embodiment of the present application, the mobile phone may execute the following procedure: the mobile phone can perform automatic test, and can enter the MMI entrance, namely the mobile phone can display a welcome test interface. The handset may perform the test of subjective test item 1. After the subjective test item 1 test is performed, the mobile phone may perform the objective test item 1 test. After the mobile phone performs the test of objective test item 1, the mobile phone may perform the test of subjective test item 2. After the mobile phone performs the test of the subjective test item 2, the mobile phone may perform the test of the objective test item 1, and then the mobile phone may end the test. Referring to fig. 12 (b), in the test method provided in the embodiment of the present application, the mobile phone may execute the following procedure: the mobile phone can perform automatic test, and can enter the MMI entrance, namely the mobile phone can display a welcome test interface. The handset may perform the test of subjective test item 1. After the subjective test item 1 test is performed, the mobile phone may perform the subjective test item 2 test. After the mobile phone performs the test of the subjective test item 2, the mobile phone can display a prompt for switching the test item, so that the mobile phone can perform the test of the objective test item 1. After the mobile phone performs the test of objective test item 1, the mobile phone may perform the test of objective test item 2, after which the mobile phone may end the test.
As another example, in connection with fig. 13, in the test method provided in the embodiment of the present application, the mobile phone may execute the following steps:
first, the handset may begin performing the test. For example, a user may enter a particular character through a dial key of the handset so that the handset may enter MMI testing. After the mobile phone enters the MMI test, the mobile phone can initialize the test items, namely, the mobile phone can determine which test items are subjective test items and which test items are objective test items, namely, which test items can be automatically tested.
After the mobile phone initializes the test items, the mobile phone can also display the two-dimensional code for starting the test, that is, the mobile phone can display the two-dimensional code of the current test item (such as the first test item in the objective test items capable of performing automatic test). The test equipment can acquire the display starting two-dimensional code of the mobile phone in a scanning mode, so that the test equipment can test the current test item of the mobile phone.
After the mobile phone displays the starting two-dimensional code, the mobile phone can display a prompt window so as to determine whether to perform automatic test. After the mobile phone receives the triggering operation of the automatic test, the mobile phone can start the current test item. After the mobile phone starts the current test item, the test equipment can test the current test item of the mobile phone, so that the test equipment can obtain a test result corresponding to the current test item.
After the mobile phone starts the current test item and the test equipment acquires the test result corresponding to the current test item, the mobile phone can display the acquired result two-dimensional code, namely the mobile phone can display the two-dimensional code for acquiring the current test result. The test equipment can acquire the display acquisition result two-dimensional code of the mobile phone in a scanning mode, so that the test equipment can send the test result of the current test item to the mobile phone. After the mobile phone obtains the test result of the current test item sent by the test equipment, the mobile phone can display a result two-dimensional code, namely, the mobile phone can display the test result corresponding to the current test item through the result two-dimensional code.
After the mobile phone acquires the test result corresponding to the current test item, the mobile phone can end the test, can also receive the operation of switching the test item, and can display the two-dimensional code corresponding to the next test item when receiving the operation of switching the test item, such as the operation of switching to the next test item, so that the next test item can be tested until all objective test items are tested. After all objective test items are tested, the mobile phone can display two-dimensional codes for obtaining all test item results. The test equipment can acquire the two-dimensional codes of all test item results displayed by the mobile phone in a scanning mode, so that the test equipment can send the test results of all test items to the mobile phone. After the mobile phone obtains the test results of all the test items sent by the test equipment, the mobile phone can display all the result two-dimensional codes, namely the mobile phone can display the test results corresponding to all the test items through the all the result two-dimensional codes.
After the mobile phone receives the triggering operation of the non-automatic test, the mobile phone can determine whether to receive the operations of the earphone key and the mobile phone key, wherein the earphone key can comprise a volume up key and a volume down key, and the mobile phone key can comprise a confirmation key of the mobile phone and a main key of the mobile phone (such as a key with a function of returning to a main screen on the mobile phone).
After the mobile phone receives the triggering operation of the volume up key of the earphone, the mobile phone can determine that the last test item, namely the test item before the current test item, needs to be returned. When the mobile phone returns to the last test item, the mobile phone can display the two-dimensional code corresponding to the last test item, so that the test equipment can test the last test item of the mobile phone, and the test equipment can obtain a test result corresponding to the last test item. After the test device can obtain the test result corresponding to the last test item, the mobile phone can end the test.
After the mobile phone receives the triggering operation of the volume key of the earphone, the mobile phone can determine that the next test item, namely the test item after the current test item, needs to be switched. When the mobile phone switches the next test item, the mobile phone can display the two-dimensional code corresponding to the next test item, so that the test equipment can test the next test item of the mobile phone, and the test equipment can obtain a test result corresponding to the next test item. After the test device can obtain the test result corresponding to the next test item, the mobile phone can end the test.
That is, the mobile phone can perform a manual test item and also can perform an automatic test item, i.e. the mobile phone can open the manual test item or the automatic test item, when the mobile phone opens the automatic test item, the mobile phone can receive different operations, such as triggering operation on the earphone volume lower key, triggering operation on the earphone volume upper key, or triggering operation on the mobile phone main key, and for different operations, the mobile phone can perform different actions. For example, as shown in (a) of 14, when the mobile phone opens the automatic test item, the mobile phone receives a trigger operation of the earphone volume down key, such as clicking the volume down key, or pressing the earphone volume down key, the mobile phone may start the test or enter the next test item. As another example, as shown in (b) of 14, when the mobile phone opens the automatic test item, the mobile phone receives a trigger operation on the volume up key of the headset, such as clicking the volume up key, or pressing the volume up key of the headset, the mobile phone may return to the previous test item. As another example, as shown in (c) of fig. 14, when the mobile phone opens the automatic test item, the mobile phone receives a trigger operation on a mobile phone key, for example, when a confirm key of the mobile phone is pressed, or when a main key of the mobile phone is pressed, the mobile phone can start the test, that is, the mobile phone can start to test the current test item.
For example, as shown in fig. 15, in the test method provided in the embodiment of the present application, the test device may perform the following steps:
the testing equipment can scan the two-dimensional code displayed by the mobile phone. After the testing equipment scans the two-dimensional code displayed by the mobile phone, the testing equipment can firstly determine the testing type included in the two-dimensional code, namely the numerical value corresponding to the testing type. The corresponding values for the test types may include 0, 1, 2, i.e., the test types may include type 0, type 1, and type 2. The test equipment may perform different actions for different test types.
When the test equipment determines that the test type included in the scanned two-dimensional code is type 1, namely the test equipment can determine that the mobile phone needs to acquire the test result of the current test item, the test equipment can send the test result of the current test item to the mobile phone, and after the test equipment sends the test result of the current test item, the test equipment can end the test.
When the test equipment determines that the test type included in the scanned two-dimensional code is type 2, namely the test equipment can determine that the mobile phone needs to acquire the test results of all the test items, the test equipment can send the test results of all the test items to the mobile phone, and after the test equipment sends the test results of all the test items, the test equipment can end the test.
When the test equipment determines that the test type included in the scanned two-dimensional code is type 0, the test equipment can determine that the mobile phone needs to test the current test item. After the testing equipment determines that the mobile phone needs to test the current test item, the testing equipment can determine whether the test code included in the scanned two-dimensional code is matched with the test item. When the test equipment determines that the test code included in the scanned two-dimensional code is not matched with the test item, the test equipment can set delay waiting, namely, the test equipment can determine whether the test of the current test item is overtime. In the case that the test device determines that the test of the current test item is overtime, the test device may determine that the test of the current test item fails, and the test device may exit the test. And under the condition that the test equipment determines that the test of the current test item is not overtime, the test equipment can acquire the test result of the current test item. Meanwhile, the testing equipment can continuously scan the two-dimensional code displayed by the mobile phone, so that the next test item is tested.
When the test equipment determines that the test code included in the scanned two-dimensional code is matched with the test item, the test equipment can start the test, namely, the current test item is tested, and the test equipment can acquire the test result of the current test item. Meanwhile, the testing equipment can continuously scan the two-dimensional code displayed by the mobile phone, so that the next test item is tested. When the testing equipment scans the next two-dimensional code displayed by the mobile phone, the testing equipment can determine whether the test code included in the scanned two-dimensional code is matched with the test item. When the test equipment determines that the test code included in the scanned two-dimensional code is not matched with the test item, the test equipment can determine that the test is ended and enter the next test item. When the test equipment determines that the test code included in the scanned two-dimensional code is matched with the test item, the test equipment can set delay waiting, namely, the test equipment can determine whether the test of the current test item is overtime. In the case that the test device determines that the test of the current test item is overtime, the test device may determine that the test of the current test item fails, and the test device may exit the test. And under the condition that the test equipment determines that the test of the current test item is not overtime, the test equipment can acquire the test result of the current test item. Meanwhile, the testing equipment can continuously scan the two-dimensional code displayed by the mobile phone, so that the next test item is tested.
For ease of understanding, the test method provided in the embodiment of the present application is described below with reference to fig. 16. As shown in fig. 16, the test method may include the following S1601-S1606. The test method may be applied to a test system, which may include a first electronic device and a second electronic device.
S1601, the first electronic device receives a first operation to start a test.
And S1602, responding to the first operation, and displaying a first identifier by the first electronic equipment, wherein the first identifier is used for indicating the test of the first test item.
S1603, the second electronic device acquires the first identification.
S1604, the second electronic device tests the first test item according to the first identifier.
S1605, the first electronic device receives a second operation triggered by the second electronic device to switch a second test item, wherein the second test item is a test item after a first test item in a plurality of test items included in the first electronic device.
S1606, in response to the second operation, the first electronic device displays a second identifier, the second identifier being used to indicate testing of the second test item.
According to the scheme, the first test item is tested according to the identification of the first test item displayed by the first electronic equipment, when the test of the first test item is completed, the first electronic equipment can display the identification of the second test item, so that the second electronic equipment can complete the test of the second test item, namely, the test of a plurality of test items corresponding to the first electronic equipment can be completed without operating a user in the test of the first electronic equipment, namely, the scheme of the application can automatically test the plurality of test items corresponding to the first electronic equipment, and the test efficiency of the first electronic equipment can be improved.
Corresponding to the method in the foregoing embodiment, the embodiment of the present application further provides a testing device. The testing device can be applied to the first electronic device or the second electronic device, and is used for realizing the method in the previous embodiment. The function of the testing device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
For example, fig. 17 shows a schematic structural diagram of a test device 17, and the test device 17 may be applied to the first electronic apparatus described above. As shown in fig. 17, the test device 17 may include: a receiving module 1701, a display module 1702, and the like.
The receiving module 1701 may be configured to receive a first operation to start a test.
The display module 1702 may be configured to display, in response to a first operation, a first identifier, where the first identifier is configured to indicate that a first test item is tested, and the first test item is any one of a plurality of test items included in the first electronic device.
The receiving module 1701 may be further configured to receive a second operation triggered by the second electronic device to switch a second test item, where the second test item is a test item after a first test item in the plurality of test items included in the first electronic device.
The display module 1702 may be further configured to display a second identifier in response to a second operation, the second identifier being used to indicate that the second test item is to be tested.
In another possible implementation manner, the first identifier includes a test type, and the test type includes testing the first test item, obtaining a test result corresponding to the first test item, and obtaining test results corresponding to the plurality of test items.
In another possible implementation manner, the receiving module 1701 may be further configured to receive, when the test type includes obtaining a test result corresponding to the first test item, a test result corresponding to the first test item sent by the second electronic device.
In another possible implementation manner, the receiving module 1701 may be further configured to receive a test result corresponding to the plurality of test items sent by the second electronic device when the test type includes obtaining a test result of the plurality of test items.
In another possible implementation, the receiving module 1701 may also be configured to receive a third operation of obtaining a test result for the first test item.
The display module 1702 may be further configured to respond to a third operation, and display a third identifier, where the third identifier is used to indicate that a test result corresponding to the first test item is obtained.
The receiving module 1701 may be further configured to receive a test result corresponding to the first test item sent by the second electronic device.
In another possible implementation manner, the receiving module 1701 may be further configured to receive a test result corresponding to the first test item.
The display module 1702 may be further configured to display a fourth identifier, where the fourth identifier is used to instruct to display a test result corresponding to the first test item.
In another possible implementation, the receiving module 1701 may also be configured to receive a fourth operation of the first electronic device that obtains test results for the plurality of test items.
The display module 1702 may be further configured to display, in response to the fourth operation, a fifth identifier, where the fifth identifier is used to indicate that test results corresponding to the plurality of test items are obtained.
The receiving module 1701 may be further configured to receive test results corresponding to the plurality of test items sent by the second electronic device.
In another possible implementation, the receiving module 1701 may also be configured to receive test results corresponding to a plurality of test items.
The display module 1702 may be further configured to display a sixth identifier, where the sixth identifier is used to instruct displaying test results corresponding to the plurality of test items.
In another possible implementation manner, the receiving module 1701 may be further configured to receive a fifth operation of switching a third test item, where the third test item is a test item before a first test item in the plurality of test items included in the first electronic device.
The display module 1702 may be further configured to display a seventh identifier in response to the fifth operation, the seventh identifier being configured to indicate that the third test item is to be tested.
In another possible implementation, the testing device 17 may further include a testing module 1703.
The receiving module 1701 may also be configured to receive a sixth operation for testing the first test item.
The test module 1703 may be configured to test the first test item in response to a sixth operation.
As another example, fig. 18 shows a schematic structural diagram of a test device 18, and the test device 18 may be applied to the second electronic apparatus described above. As shown in fig. 18, the testing device 18 may include: an acquisition module 1801, a test module 1802, a trigger module 1803, and the like.
The obtaining module 1801 may be configured to obtain a first identifier displayed by the first electronic device, where the first identifier is used to indicate testing of a first test item, and the first test item is any one of a plurality of test items included in the first electronic device.
The test module 1802 may be configured to test a first test item according to a first identifier.
The triggering module 1803 may be configured to trigger the first electronic device to switch a second test item, where the second test item is a test item after a first test item in the plurality of test items included in the first electronic device.
The obtaining module 1801 may be further configured to obtain a second identifier displayed by the first electronic device, where the second identifier is used to indicate testing of the second test item.
In another possible implementation manner, the test module 1802 may be further configured to determine, according to the first identifier, a test type corresponding to the first identifier, where the test type includes testing the first test item, obtaining a test result corresponding to the first test item, and obtaining test results corresponding to the plurality of test items.
The test module 1802 may also be configured to test a first test item if the test type includes testing the first test item.
In another possible implementation, the testing device 18 may further include a transmitting module 1804.
The sending module 1804 may be configured to, in a case where the test type includes obtaining a test result corresponding to the first test item, obtain and send, by the second electronic device, the test result corresponding to the first test item to the first electronic device.
In another possible implementation, the sending module 1804 may be configured to, in a case where the test type includes a test result obtained by obtaining a plurality of test items, obtain and send, by the second electronic device, a test result corresponding to the plurality of test items to the first electronic device.
In another possible implementation manner, the obtaining module 1801 may be configured to obtain a third identifier displayed by the first electronic device, where the third identifier is used to indicate that a test result corresponding to the first test item is obtained.
The sending module 1804 may be further configured to send a test result corresponding to the first test item to the first electronic device.
In another possible implementation manner, the obtaining module 1801 may be further configured to obtain a fifth identifier displayed by the first electronic device, where the fifth identifier is used to indicate that test results corresponding to the plurality of test items are obtained.
The sending module 1804 may be further configured to send test results corresponding to the plurality of test items to the first electronic device.
In another possible implementation manner, the triggering module 1803 may be further configured to trigger the first electronic device to switch the second test item if the second electronic device determines that the first test item is tested successfully.
It should be understood that the division of units or modules (hereinafter referred to as units) in the above apparatus is merely a division of logic functions, and may be fully or partially integrated into one physical entity or may be physically separated. And the units in the device can be all realized in the form of software calls through the processing element; or can be realized in hardware; it is also possible that part of the units are implemented in the form of software, which is called by the processing element, and part of the units are implemented in the form of hardware.
For example, each unit may be a processing element that is set up separately, may be implemented as integrated in a certain chip of the apparatus, or may be stored in a memory in the form of a program, and the functions of the unit may be called and executed by a certain processing element of the apparatus. Furthermore, all or part of these units may be integrated together or may be implemented independently. The processing element described herein, which may also be referred to as a processor, may be an integrated circuit with signal processing capabilities. In implementation, each step of the above method or each unit above may be implemented by an integrated logic circuit of hardware in a processor element or in the form of software called by a processing element.
In one example, the units in the above apparatus may be one or more integrated circuits configured to implement the above method, for example: one or more ASICs, or one or more DSPs, or one or more FPGAs, or a combination of at least two of these integrated circuit forms.
For another example, when the units in the apparatus may be implemented in the form of a scheduler of processing elements, the processing elements may be general-purpose processors, such as CPUs or other processors that may invoke programs. For another example, the units may be integrated together and implemented in the form of a system on chip SOC.
In one implementation, the above means for implementing each corresponding step in the above method may be implemented in the form of a processing element scheduler. For example, the apparatus may comprise a processing element and a storage element, the processing element invoking a program stored in the storage element to perform the method described in the above method embodiments. The memory element may be a memory element on the same chip as the processing element, i.e. an on-chip memory element.
In another implementation, the program for performing the above method may be on a memory element on a different chip than the processing element, i.e. an off-chip memory element. At this point, the processing element invokes or loads a program from the off-chip storage element onto the on-chip storage element to invoke and execute the method described in the method embodiments above.
For example, embodiments of the present application may also provide an apparatus, such as: an electronic device may include: a processor, a memory for storing instructions executable by the processor. The processor is configured to execute the above instructions, causing the electronic device to implement the test method as described in the previous embodiments. The memory may be located within the electronic device or may be located external to the electronic device. And the processor includes one or more.
In yet another implementation, the unit implementing each step in the above method may be configured as one or more processing elements, where the processing elements may be disposed on the electronic device corresponding to the above, and the processing elements may be integrated circuits, for example: one or more ASICs, or one or more DSPs, or one or more FPGAs, or a combination of these types of integrated circuits. These integrated circuits may be integrated together to form a chip.
For example, the embodiment of the application also provides a chip, and the chip can be applied to the electronic equipment. The chip includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through a circuit; the processor receives and executes computer instructions from the memory of the electronic device through the interface circuit to implement the test method described in the method embodiments above.
Embodiments of the present application also provide a computer readable storage medium having computer program instructions stored thereon. The computer program instructions, when executed by the electronic device, enable the electronic device to implement the test method as described above.
The embodiment of the application also provides a computer program product, which comprises computer instructions for the electronic device to run, and when the computer instructions run in the electronic device, the electronic device can realize the testing method. From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. With such understanding, the technical solutions of the embodiments of the present application may be essentially or partly contributing to the prior art or all or part of the technical solutions may be embodied in the form of a software product, such as: and (5) program.
The software product is stored in a program product, such as a computer readable storage medium, comprising instructions for causing a device (which may be a single-chip microcomputer, chip or the like) or processor (processor) to perform all or part of the steps of the methods described in the various embodiments of the application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
For example, embodiments of the present application may also provide a computer-readable storage medium having computer program instructions stored thereon. The computer program instructions, when executed by the electronic device, cause the electronic device to implement the test method as described in the method embodiments described above.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (31)

1. A method of testing, applied to a test system, the test system comprising: a first electronic device and a second electronic device, the first electronic device including a plurality of test items, the test system for testing the plurality of test items included in the first electronic device, the method comprising:
the first electronic equipment receives a first operation for starting testing;
in response to the first operation, the first electronic device displays a first identifier, wherein the first identifier is used for indicating to test a first test item, and the first test item is any one of a plurality of test items included in the first electronic device;
the second electronic equipment acquires the first identifier;
the second electronic equipment tests the first test item according to the first identifier;
the first electronic equipment receives a second operation triggered by the second electronic equipment for switching a second test item, wherein the second test item is a test item after the first test item in a plurality of test items included in the first electronic equipment;
in response to the second operation, the first electronic device displays a second identifier, the second identifier being used to indicate testing of a second test item.
2. The method of claim 1, wherein the second electronic device testing the first test item according to the first identification comprises:
the second electronic equipment determines a test type corresponding to the first identifier according to the first identifier, wherein the test type comprises the steps of testing the first test item, obtaining a test result corresponding to the first test item and obtaining test results corresponding to the plurality of test items;
in the case where the test type includes testing the first test item, the second electronic device tests the first test item.
3. The method according to claim 2, wherein the method further comprises:
and under the condition that the test type comprises the test result corresponding to the first test item, the second electronic equipment acquires and sends the test result corresponding to the first test item to the first electronic equipment.
4. The method according to claim 2, wherein the method further comprises:
and under the condition that the test type comprises test results of the plurality of test items, the second electronic equipment acquires and sends the test results corresponding to the plurality of test items to the first electronic equipment.
5. The method according to claim 1, wherein the method further comprises:
the first electronic equipment receives a third operation of acquiring the test result of the first test item;
responding to the third operation, the first electronic equipment displays a third identifier, wherein the third identifier is used for indicating to acquire a test result corresponding to the first test item;
the second electronic equipment acquires the third identifier;
and the second electronic equipment sends the test result corresponding to the first test item to the first electronic equipment.
6. The method of claim 5, wherein the method further comprises:
the first electronic equipment receives a test result corresponding to the first test item;
the first electronic device displays a fourth identifier, and the fourth identifier is used for indicating and displaying a test result corresponding to the first test item.
7. The method according to claim 1, wherein the method further comprises:
the first electronic device receives a fourth operation of acquiring test results of the plurality of test items;
responding to the fourth operation, the first electronic equipment displays a fifth identifier, wherein the fifth identifier is used for indicating to obtain test results corresponding to the plurality of test items;
The second electronic equipment acquires the fifth identifier;
and the second electronic equipment sends the test results corresponding to the plurality of test items to the first electronic equipment.
8. The method of claim 7, wherein the method further comprises:
the first electronic equipment receives test results corresponding to the plurality of test items;
the first electronic device displays a sixth identifier, where the sixth identifier is used to instruct displaying test results corresponding to the multiple test items.
9. The method according to claim 1, wherein the method further comprises:
the first electronic device receives a fifth operation of switching a third test item, wherein the third test item is a test item before the first test item in a plurality of test items included in the first electronic device;
in response to the fifth operation, the first electronic device displays a seventh identifier, the seventh identifier being used to indicate testing of the third test item.
10. The method of any of claims 1-9, wherein prior to the first electronic device receiving a second operation triggered by the second electronic device to switch a second test item, the method further comprises:
The first electronic device receives a sixth operation of testing the first test item;
in response to the sixth operation, the first electronic device tests the first test item.
11. The method according to any one of claims 1-9, further comprising:
and under the condition that the second electronic equipment determines that the first test item is successfully tested, the first electronic equipment receives a second operation triggered by the second electronic equipment to switch a second test item.
12. A method of testing, applied to a first electronic device, the first electronic device comprising a plurality of test items, the method comprising:
the first electronic equipment receives a first operation for starting testing;
in response to the first operation, the first electronic device displays a first identifier, wherein the first identifier is used for indicating to test a first test item, and the first test item is any one of a plurality of test items included in the first electronic device;
the first electronic equipment receives a second operation triggered by a second electronic equipment for switching a second test item, wherein the second test item is a test item after the first test item in a plurality of test items included in the first electronic equipment;
In response to the second operation, the first electronic device displays a second identifier, the second identifier being used to indicate testing of a second test item.
13. The method of claim 12, wherein the first identifier comprises a test type, the test type comprising testing the first test item, obtaining test results corresponding to the first test item, and obtaining test results corresponding to the plurality of test items.
14. The method of claim 13, wherein the method further comprises:
and under the condition that the test type comprises the test result corresponding to the first test item, the first electronic equipment receives the test result corresponding to the first test item sent by the second electronic equipment.
15. The method of claim 13, wherein the method further comprises:
and under the condition that the test type comprises the test results of the plurality of test items, the first electronic equipment receives the test results corresponding to the plurality of test items sent by the second electronic equipment.
16. The method according to claim 12, wherein the method further comprises:
The first electronic equipment receives a third operation of acquiring the test result of the first test item;
responding to the third operation, the first electronic equipment displays a third identifier, wherein the third identifier is used for indicating to acquire a test result corresponding to the first test item;
the first electronic device receives a test result corresponding to the first test item sent by the second electronic device.
17. The method of claim 16, wherein the method further comprises:
the first electronic equipment receives a test result corresponding to the first test item;
the first electronic device displays a fourth identifier, and the fourth identifier is used for indicating and displaying a test result corresponding to the first test item.
18. The method according to claim 12, wherein the method further comprises:
the first electronic device receives a fourth operation of acquiring test results of the plurality of test items;
responding to the fourth operation, the first electronic equipment displays a fifth identifier, wherein the fifth identifier is used for indicating to obtain test results corresponding to the plurality of test items;
the first electronic device receives test results corresponding to the plurality of test items sent by the second electronic device.
19. The method of claim 18, wherein the method further comprises:
the first electronic equipment receives test results corresponding to the plurality of test items;
the first electronic device displays a sixth identifier, where the sixth identifier is used to instruct displaying test results corresponding to the multiple test items.
20. The method according to claim 12, wherein the method further comprises:
the first electronic device receives a fifth operation of switching a third test item, wherein the third test item is a test item before the first test item in a plurality of test items included in the first electronic device;
in response to the fifth operation, the first electronic device displays a seventh identifier, the seventh identifier being used to indicate testing of the third test item.
21. The method of any of claims 12-20, wherein prior to the first electronic device receiving a second operation triggered by the second electronic device to switch a second test item, the method further comprises:
the first electronic device receives a sixth operation of testing the first test item;
in response to the sixth operation, the first electronic device tests the first test item.
22. A method of testing, for use with a second electronic device, the method comprising:
the second electronic equipment acquires a first identifier displayed by the first electronic equipment, wherein the first identifier is used for indicating to test a first test item, and the first test item is any one of a plurality of test items included by the first electronic equipment;
the second electronic equipment tests the first test item according to the first identifier;
the second electronic equipment triggers the first electronic equipment to switch a second test item, wherein the second test item is a test item after the first test item in a plurality of test items included in the first electronic equipment;
the second electronic device obtains a second identifier displayed by the first electronic device, and the second identifier is used for indicating to test a second test item.
23. The method of claim 22, wherein the second electronic device testing the first test item according to the first identification comprises:
the second electronic equipment determines a test type corresponding to the first identifier according to the first identifier, wherein the test type comprises the steps of testing the first test item, obtaining a test result corresponding to the first test item and obtaining test results corresponding to the plurality of test items;
In the case where the test type includes testing the first test item, the second electronic device tests the first test item.
24. The method of claim 23, wherein the method further comprises:
and under the condition that the test type comprises the test result corresponding to the first test item, the second electronic equipment acquires and sends the test result corresponding to the first test item to the first electronic equipment.
25. The method of claim 23, wherein the method further comprises:
and under the condition that the test type comprises test results of the plurality of test items, the second electronic equipment acquires and sends the test results corresponding to the plurality of test items to the first electronic equipment.
26. The method of claim 22, wherein the method further comprises:
the second electronic device obtains a third identifier displayed by the first electronic device, wherein the third identifier is used for indicating to obtain a test result corresponding to the first test item;
and the second electronic equipment sends the test result corresponding to the first test item to the first electronic equipment.
27. The method of claim 22, wherein the method further comprises:
the second electronic device obtains a fifth identifier displayed by the first electronic device, wherein the fifth identifier is used for indicating to obtain test results corresponding to the plurality of test items;
and the second electronic equipment sends the test results corresponding to the plurality of test items to the first electronic equipment.
28. The method according to any one of claims 22-27, further comprising:
and under the condition that the second electronic equipment determines that the first test item is successfully tested, the second electronic equipment triggers the first electronic equipment to switch a second test item.
29. A test system, the test system comprising: the first electronic device and the second electronic device; the first electronic device being adapted to perform the method of any of claims 12 to 21, the second electronic device being adapted to perform the method of any of claims 22 to 28.
30. An electronic device comprising a processor, a memory for storing instructions executable by the processor; the processor being configured to, when executing the instructions, cause the electronic device to implement the method of any one of claims 12 to 21; alternatively, the processor is configured to, when executing the instructions, cause the electronic device to implement the method of any one of claims 22 to 28.
31. A computer readable storage medium having stored thereon computer program instructions; characterized in that the computer program instructions, when executed by an electronic device, cause the electronic device to implement the method of any one of claims 12 to 21; alternatively, the computer program instructions, when executed by an electronic device, cause the electronic device to implement the method of any one of claims 22 to 28.
CN202211159757.6A 2022-09-22 2022-09-22 Test method and electronic equipment Active CN116708632B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211159757.6A CN116708632B (en) 2022-09-22 2022-09-22 Test method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211159757.6A CN116708632B (en) 2022-09-22 2022-09-22 Test method and electronic equipment

Publications (2)

Publication Number Publication Date
CN116708632A CN116708632A (en) 2023-09-05
CN116708632B true CN116708632B (en) 2024-04-05

Family

ID=87826370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211159757.6A Active CN116708632B (en) 2022-09-22 2022-09-22 Test method and electronic equipment

Country Status (1)

Country Link
CN (1) CN116708632B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8484624B1 (en) * 2003-10-15 2013-07-09 Sprint Communications Company L.P. Test integration tool
CN104090964A (en) * 2014-07-15 2014-10-08 上海斐讯数据通信技术有限公司 Electronic device testing method and system
CN106526367A (en) * 2016-10-26 2017-03-22 深圳市赛格导航科技股份有限公司 Electronic equipment testing method and device
CN106708007A (en) * 2016-11-14 2017-05-24 乐视控股(北京)有限公司 Electronic equipment batch test method, apparatus and electronic equipment thereof
CN107561379A (en) * 2017-08-11 2018-01-09 上海斐讯数据通信技术有限公司 The method of testing and system of a kind of electronic product
CN108009451A (en) * 2017-11-30 2018-05-08 美的集团股份有限公司 Test method and testing tool
CN110784370A (en) * 2019-10-08 2020-02-11 Oppo(重庆)智能科技有限公司 Method and device for testing equipment, electronic equipment and medium
CN111224848A (en) * 2020-01-17 2020-06-02 腾讯科技(深圳)有限公司 Network quality testing method, device, equipment and storage medium
CN111445115A (en) * 2020-03-20 2020-07-24 Oppo(重庆)智能科技有限公司 Test item checking method and device, electronic equipment and computer readable storage medium
CN112506724A (en) * 2020-12-02 2021-03-16 深圳米飞泰克科技有限公司 Chip testing method and device and computer readable storage medium
CN113132522A (en) * 2021-03-19 2021-07-16 深圳市几米物联有限公司 Test method, device, server and medium
CN113794602A (en) * 2021-08-20 2021-12-14 海南视联大健康智慧医疗科技有限公司 Equipment testing method and device, terminal equipment and storage medium
CN114222320A (en) * 2021-12-16 2022-03-22 展讯通信(上海)有限公司 Method, device, apparatus, storage medium, and program for testing communication device
CN114328256A (en) * 2021-12-30 2022-04-12 亿咖通(湖北)技术有限公司 Test method, test device, computer-readable storage medium and electronic equipment
WO2022179009A1 (en) * 2021-02-23 2022-09-01 长鑫存储技术有限公司 Method and apparatus for batch testing of devices, and computer device and medium
CN114996168A (en) * 2022-08-03 2022-09-02 荣耀终端有限公司 Multi-device cooperative test method, test device and readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657246A (en) * 2013-11-21 2015-05-27 英业达科技有限公司 Automatic testing system and method thereof
CN111984476B (en) * 2020-06-29 2023-08-01 百度在线网络技术(北京)有限公司 Test method and device

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8484624B1 (en) * 2003-10-15 2013-07-09 Sprint Communications Company L.P. Test integration tool
CN104090964A (en) * 2014-07-15 2014-10-08 上海斐讯数据通信技术有限公司 Electronic device testing method and system
CN106526367A (en) * 2016-10-26 2017-03-22 深圳市赛格导航科技股份有限公司 Electronic equipment testing method and device
CN106708007A (en) * 2016-11-14 2017-05-24 乐视控股(北京)有限公司 Electronic equipment batch test method, apparatus and electronic equipment thereof
CN107561379A (en) * 2017-08-11 2018-01-09 上海斐讯数据通信技术有限公司 The method of testing and system of a kind of electronic product
CN108009451A (en) * 2017-11-30 2018-05-08 美的集团股份有限公司 Test method and testing tool
CN110784370A (en) * 2019-10-08 2020-02-11 Oppo(重庆)智能科技有限公司 Method and device for testing equipment, electronic equipment and medium
CN111224848A (en) * 2020-01-17 2020-06-02 腾讯科技(深圳)有限公司 Network quality testing method, device, equipment and storage medium
CN111445115A (en) * 2020-03-20 2020-07-24 Oppo(重庆)智能科技有限公司 Test item checking method and device, electronic equipment and computer readable storage medium
CN112506724A (en) * 2020-12-02 2021-03-16 深圳米飞泰克科技有限公司 Chip testing method and device and computer readable storage medium
WO2022179009A1 (en) * 2021-02-23 2022-09-01 长鑫存储技术有限公司 Method and apparatus for batch testing of devices, and computer device and medium
CN113132522A (en) * 2021-03-19 2021-07-16 深圳市几米物联有限公司 Test method, device, server and medium
CN113794602A (en) * 2021-08-20 2021-12-14 海南视联大健康智慧医疗科技有限公司 Equipment testing method and device, terminal equipment and storage medium
CN114222320A (en) * 2021-12-16 2022-03-22 展讯通信(上海)有限公司 Method, device, apparatus, storage medium, and program for testing communication device
CN114328256A (en) * 2021-12-30 2022-04-12 亿咖通(湖北)技术有限公司 Test method, test device, computer-readable storage medium and electronic equipment
CN114996168A (en) * 2022-08-03 2022-09-02 荣耀终端有限公司 Multi-device cooperative test method, test device and readable storage medium

Also Published As

Publication number Publication date
CN116708632A (en) 2023-09-05

Similar Documents

Publication Publication Date Title
CN104166610B (en) Mobile terminal detection method and detection system
CN109582579B (en) Application program testing method and device, electronic equipment and storage medium
EP3029678A1 (en) Recording method, playing method, device, terminal and system
CN105677571B (en) Mobile terminal software device for testing compatibility and method
CN111192005B (en) Government affair service processing method and device, computer equipment and readable storage medium
CN112463634B (en) Software testing method and device under micro-service architecture
CN113933581B (en) Power consumption testing method of mobile equipment and mobile equipment
US9990912B2 (en) Electronic device and method for reproducing sound in the electronic device
CN113727333B (en) Downloading system for custom applications
CN111858382A (en) Application program testing method, device, server, system and storage medium
CN108388451A (en) Method for starting up mobile terminal, device and mobile terminal
CN114371985A (en) Automated testing method, electronic device, and storage medium
CN114064450A (en) Application program testing method and device, electronic equipment and storage medium
CN111857531A (en) Mobile terminal and file display method thereof
CN108848492A (en) Enabling method, apparatus, terminal and the storage medium of subscriber identification card
CN116708632B (en) Test method and electronic equipment
CN111209195B (en) Method and device for generating test case
CN112364249A (en) Terminal information display control method, device, terminal and storage medium
CN115314427B (en) Protocol testing method, electronic equipment and chip system
CN112052167A (en) Method and device for generating test script code
CN108874495B (en) Theme resource conversion method and device and electronic equipment
CN114443117B (en) Custom package processing method and electronic equipment
CN111522798B (en) Data synchronization method, device, equipment and readable storage medium
CN114675786A (en) Large-capacity storage mounting method, device, terminal and medium
CN110647433A (en) Function self-checking method and device and computer readable storage medium

Legal Events

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