Method and device for testing electronic equipment
By conducting multiple rounds of testing and parameter adjustment on the test object in the testing method of electronic equipment, the problem that the existing technology cannot detect potential errors in the equipment is solved, and the accuracy of the test and the ability to detect problems early are improved.
Patent Information
- Application Number
- CN202410686438.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-13
AI Technical Summary
Existing electronic equipment testing methods cannot effectively detect potential errors or abnormal trends when the equipment is running at full load, resulting in errors that have not been tested during actual operation.
Adopting a testing method for electronic equipment, the test object is tested in the first test cycle. If the result meets the abnormal trend condition, the number of test items is adjusted, and further testing is performed in the second test cycle. If the result meets the error condition, An error result is recorded. The method includes a plurality of test modules: a first test module, an adjustment module, a second test module and a recording module, which are used to implement testing, adjust test parameters, conduct a second round of testing and record error results.
The accuracy of the test is improved, and possible abnormal trends can be discovered under smaller test pressure and erroneous results can be recorded, so as to detect and solve potential problems early and avoid problems in actual operation.
Smart Images

Figure CN118642901A
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing, and more specifically, to a testing method and device for electronic equipment. Background Art
[0002] Currently, in order to realize interactive control of the screen, the display screen of the paired remote device can be controlled through the local device to realize device interconnection.
[0003] The existing electronic equipment testing method is to apply pressure to the electronic equipment (such as controlling it to run at full load), and then determine whether there is an error in the system as a criterion for whether the test has passed.
[0004] During the test process, the purpose of correct operation can be achieved, but there is a certain tendency or precursor to an error. Current testing methods cannot detect this situation, resulting in errors that may occur during the actual operation of the electronic equipment and cannot be tested. Summary of the invention
[0005] In view of this, the present application provides a method and device for testing an electronic device, as follows:
[0006] A method for testing an electronic device, comprising:
[0007] In a first test cycle, performing a first test on at least one test object in the electronic device based on at least one test parameter, and obtaining at least one test result corresponding to each test parameter of each test object;
[0008] If the test result of the first test parameter satisfies the abnormal trend condition, at least the number of test items corresponding to the first test parameter is adjusted, and based on the adjustment, a second test of a second test cycle is performed on the first test parameter, where the second test cycle is adjacent to and later than the first test cycle;
[0009] If the test result of the second test meets the error condition, at least the test result of the second test that meets the error condition is recorded.
[0010] Optionally, the above-mentioned electronic device testing method, in the first test cycle, before performing a first test on at least one test object in the electronic device based on at least one test parameter and obtaining at least one test result of the test object corresponding to the first test parameter, further includes:
[0011] According to the test target, at least one test parameter of at least one test object is determined among several test parameters of a plurality of test objects of the electronic device.
[0012] Optionally, in the above-mentioned electronic device testing method, in a first test cycle, performing a first test on at least one test object in the electronic device based on at least one test parameter, and obtaining at least one test result of the test object corresponding to the first test parameter, includes any of the following:
[0013] In a first test cycle, at least two test parameters are input; corresponding test objects are tested respectively according to the at least two test parameters to obtain at least two test results;
[0014] In the first test cycle, at least two test parameters are input in sequence according to a set test sequence, and corresponding test objects are tested in sequence according to the input test parameters to obtain at least two test results in sequence.
[0015] Optionally, the above-mentioned electronic device testing method, determining whether the test result meets the abnormal trend condition, includes:
[0016] Compare each test result with the corresponding standard threshold in turn;
[0017] If any test result does not meet the corresponding standard threshold, determine that the test result meets the abnormal trend condition;
[0018] If any test result meets the corresponding standard threshold, it is determined that the test result does not meet the abnormal trend condition.
[0019] Optionally, the above-mentioned electronic device testing method, in the first test cycle, before performing a first test on at least one test object in the electronic device based on at least one test parameter and obtaining at least one test result of the test object corresponding to the first test parameter, further includes:
[0020] During the target duration, at least one test object in the electronic device is controlled to run based on at least one test parameter to obtain the running result of each test object corresponding to the test parameter during the target duration, wherein the target duration is less than the first test cycle;
[0021] The operating result of the test parameters corresponding to each test object in the target time period is used as the standard threshold value of the corresponding test object.
[0022] Optionally, the above-mentioned electronic device testing method, after determining that the test result of the first test parameter meets the abnormal trend condition, further includes:
[0023] If the number of test items corresponding to the first test parameter does not reach the upper limit threshold, performing at least adjusting the number of test items corresponding to the first test parameter, and performing a second test step of a second test cycle for the first test parameter based on the adjustment;
[0024] If the number of test items corresponding to the first test parameter reaches the upper limit threshold, the test items corresponding to the first test parameter are adjusted to the initial test number; based on the test result of the second test parameter satisfying the abnormal trend condition, the number of test items corresponding to the second test parameter is adjusted, and based on the adjustment, a second test of the second test cycle is performed on the second test parameter, and the second test parameter is a test parameter of any test object in the electronic device.
[0025] Optionally, in the above-mentioned electronic device testing method, the step of adjusting at least the number of test items corresponding to the first test parameter includes:
[0026] Based on the fact that the number of test items corresponding to the first test parameter is less than an upper limit threshold, the number of test items corresponding to the first test parameter is increased by a preset adjustment value.
[0027] Optionally, in the above-mentioned electronic device testing method, the step of adjusting at least the number of test items corresponding to the first test parameter includes:
[0028] Based on the fact that the number of test items corresponding to the first test parameter is less than the upper limit threshold, the number of test items corresponding to the first test parameter is increased by a preset adjustment value;
[0029] The number of test items corresponding to a third test parameter is reduced by the preset adjustment value, the third test parameter and the first test parameter correspond to the same test object, and the third test parameter is ranked after the first test parameter in the test sequence of the preset test parameters.
[0030] Optionally, the above-mentioned electronic device testing method further includes:
[0031] In a first test cycle, during a first test process of at least one test object in the electronic device based on at least one test parameter, monitoring whether a preset error prompt information is obtained;
[0032] End the test based on the preset error prompt information;
[0033] Based on the fact that the preset error prompt information is not obtained, a first test is performed on at least one test object in the electronic device based on at least one test parameter to obtain at least one test result corresponding to the test parameter of the test object.
[0034] A testing device for electronic equipment, comprising:
[0035] A first testing module, configured to perform a first test on at least one test object in the electronic device based on at least one test parameter in a first testing cycle, and obtain at least one test result corresponding to each test parameter of each test object;
[0036] An adjustment module, configured to adjust at least the number of test items corresponding to the first test parameter if the test result of the first test parameter meets the abnormal trend condition;
[0037] A second test module, configured to perform a second test of a second test cycle on the first test parameter based on the adjustment, wherein the second test cycle is adjacent to the first test cycle and later than the first test cycle;
[0038] The recording module is used for recording at least the test result of the second test that meets the error condition if the test result of the second test meets the error condition.
[0039] The present application also provides an electronic device, including: a memory, a processor;
[0040] Wherein, the memory stores a processing program;
[0041] The processor is used to load and execute the processing program stored in the memory to implement each step of any of the above-mentioned electronic device testing methods.
[0042] The present application also provides a readable storage medium on which a computer program is stored. The computer program is called and executed by a processor to implement each step of any of the above-mentioned electronic device testing methods.
[0043] The present application also provides the computer program product, including a computer program / instruction, which implements each step of any of the above-mentioned electronic device testing methods when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without creative work.
[0045] Figure 1 is a flow chart of a method for testing an electronic device provided in an embodiment of the present application;
[0046] Figure 2 is a schematic diagram of test parameters of various test objects in the electronic device in the embodiment of the present application;
[0047] Figure 3 A flowchart of an embodiment of the present application for performing a first test on at least one test object in an electronic device based on at least one test parameter in a first test cycle to obtain at least one test result of the test object corresponding to the first test parameter;
[0048] Figure 4 is a flow chart for determining whether a test result meets an abnormal trend condition provided by an embodiment of the present application;
[0049] Figure 5 is a flow chart of a process for determining a standard threshold value for judging a test result provided by an embodiment of the present application;
[0050] Figure 6 is a flowchart of limiting the number of test items corresponding to the first test parameter provided by an embodiment of the present application;
[0051] Figure 7 A flowchart for adjusting the number of test items corresponding to at least a first test parameter provided by an embodiment of the present application;
[0052] Figure 8 is another flow chart for adjusting the number of test items corresponding to at least a first test parameter provided by an embodiment of the present application;
[0053] Fig. 9 is a flowchart of at least recording the test result of the second test that meets the error condition provided by an embodiment of the present application;
[0054] Fig.10 is a flowchart of the execution process of the first test provided in an embodiment of the present application;
[0055] Fig.11 It is a structural schematic diagram of a testing device for an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0057] Figure 1 1 is a flow chart of a method for testing an electronic device provided in an embodiment of the present application. The method is applied to an electronic device, and the method includes the following steps:
[0058] Step S101: In a first test cycle, a first test is performed on at least one test object in the electronic device based on at least one test parameter to obtain at least one test result corresponding to each test parameter of each test object;
[0059] There may be multiple test objects to be tested in the electronic device, such as a CPU (central processing unit), a memory, a hard disk, etc., and each test object may have multiple test parameters that can be tested.
[0060] The test data of the test object is determined based on the test target, and at least one test parameter of at least one test object is determined among a plurality of test parameters of a plurality of test objects of the electronic device.
[0061] The test target may be to test the cause of a fault that has occurred in the electronic device, or to test the entire structure of the electronic device.
[0062] In some implementations, if an electronic device sends a certain fault, the technician can preliminarily determine that it is caused by a memory or CPU failure, determine that the objects to be tested are the memory and the CPU, and subsequently test various test parameters of the memory and the CPU.
[0063] In some implementations, if an electronic device sends a certain fault, the technician can preliminarily determine that it is caused by a hard disk failure, determine that the object to be tested is the hard disk, and subsequently test various test parameters of the hard disk.
[0064] In some implementations, if an electronic device is only provided with a CPU and a memory but no physical hard disk structure, when testing the electronic device, it is determined that the objects to be tested are the memory and the CPU, and then various test parameters of the memory and the CPU are tested.
[0065] After determining each test parameter of each test object to be tested, the test parameters corresponding to the test object are tested to obtain corresponding test results.
[0066] The test times are set for the test items corresponding to the various test parameters of each test object, and the test is performed according to the set test times to obtain the corresponding test results.
[0067] Figure 2It is a schematic diagram of the test parameters of each test object in the electronic device in the embodiment of the present application, wherein the test objects include CPU, memory and hard disk. Among them, the test parameters of CPU include integer operations and floating-point operations, wherein floating-point operations include two types of single-precision values and double-precision values, and integer operations include four word length types of BYTE / WORD / DWORD / QWORD; wherein the test parameters of memory include write-read operations, shift operations (walk) and address binding operations (toggle); wherein the test parameters of hard disk include conventional read-write (write back), write-through read-write (write through) and search operations.
[0068] Among them, the integer operation test of the CPU is to perform addition, subtraction, multiplication, division, arithmetic series and geometric series operations on integers to achieve the test. The test results include the time required for the test and the CPU temperature. The X and Y values (input values used to perform operations) are random content and will cover word lengths such as BYTE / WORD / DWORD / QWORD.
[0069] Among them, the floating-point operation test of the CPU is to perform addition, subtraction, multiplication, division, arithmetic series and geometric series operations on single-precision and double-precision values to achieve the test, where the X and Y values (input values used to perform the operation) are random content, and the test results include the time required for the test and the CPU temperature.
[0070] Among them, the write and read operation test of the memory is to write specific binary structure data (data pattern) to an address in the memory and read from the address to determine whether the read data is the written content, and execute each address in the memory space of a set size according to the above-mentioned write comparison method to achieve the test. The test results include the time required to execute the above-mentioned write comparison method once for each address in the memory space.
[0071] In some implementations, the specific binary structure data may be 0x5555, 0x0, and 0xFFFF, where 0x0 is converted to a data structure of all 0s in binary, 0x5555 is converted to a data structure of 0s and 1s arranged alternately in sequence, and 0xFFFF is converted to a data structure of all 1s in binary.
[0072] In some implementations, the set size of the memory space may be 1G.
[0073] Among them, the shift operation test of the memory is to write specific binary structure data to an address in the memory, then move the written content one bit to the high or low position, and read whether the shifted data is the written data. The test result includes the time required to perform the above shift operation once for each address in the memory space.
[0074] In some implementations, walk 0 / 1 is used, specifically, all bits in the memory are set to 1 first, then 0 is written to the low address, and then 0 is moved to the high bit, and the result (whether the shifted data is the written data) is checked. The same is true for Walk 1 / 0.
[0075] Among them, the address binding operation test of the memory writes a value into the space corresponding to a certain address of the memory to be tested; finds any base address address line, obtains the corresponding data, and then flips the value of this address line to get a new address, and then obtains the corresponding data. If the corresponding data obtained is inconsistent with the corresponding data content of the address just obtained, continue to execute the above process for the next address, and execute it for each address in the memory space of a set size to realize the test. The test results include the time required to execute the above shift operation method once for each address in the memory space.
[0076] Among them, the regular read and write test of the hard disk is to perform the default disk write operation of the OS (Operating System) with data in several fixed data patterns, use a specific size of memory space as the file mapping area, and perform write and read operations on the disk. The word length of the written content is DWORD and QWORD. Tests are performed for different word lengths to implement the test. The test results include the time required for the hard disk to perform the above test.
[0077] In some implementations, it is also necessary to determine whether the content of the read operation on the disk is consistent with the content of the write operation. If the two are consistent, the test continues. If the two are inconsistent, the test result meets the error condition.
[0078] Among them, the hard disk's penetrating read and write test performs penetrating disk write operations with data in several fixed data patterns, uses a specific size of memory space as the file mapping area, and performs write and read operations on the disk. The word length of the written content is DWORD and QWORD. Tests are performed for different word lengths to achieve the test. The test results include the time required for the hard disk to perform the above test.
[0079] In some implementations, it is also necessary to determine whether the content of the read operation on the disk is consistent with the content of the write operation. If the two are consistent, the test continues. If the two are inconsistent, the test result meets the error condition.
[0080] Among them, the hard disk search operation test is to search in the file by using various search distances, and can also perform write and read operations in combination with file search. In the test, objects with and without data verification mechanisms can be used. The files to be operated are files that the hard disk has completed writing, and the size of the operated files can be set according to requirements.
[0081] In some implementations, for testing of hard disks, the values involved in the abnormal trend conditions of whether the test results meet the abnormal trend conditions are different for different types of hard disks, which include multiple types, such as mixed mechanical hard disks and non-mixed mechanical hard disks.
[0082] It should be noted that the first test cycle and the second test cycle in the present application are used to distinguish two consecutive cycles.
[0083] Among them, in each test cycle, various test parameters of each test object involved are tested, so that all test parameters of all test objects to be tested in the electronic device are tested in the same test cycle, instead of testing each test object separately. This can cover the situation where any two test parameters that can affect each other or any two test objects that cannot show the influence when tested separately, thereby improving the accuracy of the test.
[0084] In some implementations, various test parameters of various test objects can be tested simultaneously to obtain test results of various test parameters of various test objects. Figure 3 The test method is described in detail in .
[0085] In some implementations, various test parameters of each test object can be sorted, and one test parameter is selected each time for testing in order to obtain the test results of each test parameter of each test object. Figure 4 The test method is described in detail in .
[0086] Step S102: if the test result of the first test parameter meets the abnormal trend condition, at least the number of test items corresponding to the first test parameter is adjusted, and based on the adjustment, a second test of a second test cycle is performed on the first test parameter, the second test cycle is adjacent to the first test cycle and later than the first test cycle;
[0087] Here, it is judged whether the test results corresponding to the test parameters of each test object meet the abnormal trend.
[0088] The abnormal trend may be satisfied when there is an abnormal value change relative to normal operation, but no operation error occurs.
[0089] Among them, in the first test cycle, a first test is performed on various test parameters of each test object to obtain a test result, and a judgment is first made as to whether each test result meets an error condition. If a test result corresponding to a test parameter of a test object meets the error condition, the test process is stopped, and the test object causing the error is determined based on the test parameters corresponding to the test result that meets the error condition. After adjusting the parameters of the test object, the solution in this application is executed again.
[0090] If each test result does not satisfy the error condition, it is determined whether the abnormal trend condition is satisfied.
[0091] Of course, it is also possible to determine whether each test result satisfies the error condition and the abnormal trend condition at the same time.
[0092] Among them, if the test results corresponding to the test parameters of a test object do not meet the abnormal trend, the test parameters of the test object are normal, the test object of the electronic device will not malfunction due to the operation of the test parameters, the number of test items corresponding to the test parameters will not increase, and when the number of test items corresponding to other test parameters is adjusted, the number of test items corresponding to the test parameters may decrease or remain unchanged.
[0093] Among them, if the test results corresponding to the test parameters of a test object meet the abnormal trend, the test object of the electronic device may fail due to the operation of the test parameters. In order to further determine whether a failure will occur, the number of test items corresponding to the test parameter is adjusted to perform the next test cycle test on the test parameter based on the adjusted number of test items.
[0094] Among them, if the test result of the first test parameter meets the abnormal trend condition, then based on the current number of test items corresponding to the first test parameter, it is impossible to determine whether the first test parameter will cause the corresponding test object to fail. The number of test items corresponding to the first test parameter is adjusted to increase the test pressure for the first test parameter, so as to realize testing under a greater test pressure to determine whether the first test parameter will cause the corresponding test object to fail.
[0095] In some implementations, only the number of test items corresponding to the first test parameter may be adjusted, while the number of test items corresponding to other test parameters remains unchanged.
[0096] In some implementations, in order to ensure the stability of the overall number of tests within the test cycle, the number of test items corresponding to the first test parameter is adjusted by increasing the number of test items corresponding to the first test parameter and reducing the number of test items corresponding to other test parameters. Figure 7 and Figure 8The process of adjusting the number of test items corresponding to the first test parameter is described in detail.
[0097] In some implementations, an upper threshold is set for the number of test items, and each adjustment needs to be below the upper threshold to reduce the burden of the test. Figure 6 and Figure 7 The process of limiting the number of test items corresponding to the first test parameter is described in detail.
[0098] The second test cycle and the first test cycle may have the same duration, such as 24 hours, and within the 24 hours, the test parameters are tested according to the set number of test items.
[0099] In some implementations, if an error occurs during the first test of various test parameters of the test object, the test process can be terminated directly. Fig.11 The execution process of the first test is described.
[0100] Step S103: If the test result of the second test meets the error condition, at least the test result of the second test that meets the error condition is recorded.
[0101] If the test result of the second test performed with respect to the first test parameter using the adjusted number of items meets the error condition, the test result of the second test meeting the error condition is recorded.
[0102] Among them, recording the test result can be recording that the test result of this test cycle meets the error condition, or it can be more detailed test result content, or it can be recording a more detailed test process and test results that meet the error condition.
[0103] The error condition may be that a failure of the electronic device occurs, such as CATERR (Catastrophic Error).
[0104] The test result of the second test satisfies the error condition, indicating that the first test parameter corresponding to the result will cause an error under a larger operating pressure.
[0105] Among them, the test result of the first test parameter in the first test meets the abnormal trend condition, and the number of test items corresponding to the first test parameter is adjusted, with the purpose of increasing the test pressure for the first test parameter to realize the test under a larger test pressure. Whether the first test parameter will cause the corresponding test object to fail, and the second test is that the first test parameter has an error under a larger test pressure. It can be determined that the first test parameter will have an error under a larger test pressure. Subsequent technicians can adjust the first test parameter to solve the problem of its error.
[0106] In some implementations, recording the test result of the second test that meets the error condition may be recording the first parameter and the corresponding first test object. Fig. 9 A process for recording the test result of the second test satisfying the error condition is described.
[0107] In the present embodiment, in the first test cycle, a first test is performed on each test object in the electronic device based on the corresponding various test parameters, and in the first cycle, multiple test parameters corresponding to multiple test objects are tested. When the test result of the first parameter obtained meets the abnormal trend condition, at least the number of test items corresponding to the first test parameter is adjusted to increase the test pressure of the first test parameter, and a second test is performed on the first test parameter in the next cycle based on the adjustment. When the test result of the second test meets the error condition, the test result of the second test that meets the error condition is recorded, so that only abnormal trends occur under a smaller test pressure and no errors occur. Moreover, in the present embodiment, in each test cycle, various test parameters of each test object involved are tested, so that all test parameters of all test objects to be tested in the electronic device are tested in the same test cycle, which can cover the situation where any two test parameters or any two test objects that can affect each other and the influence cannot be revealed by a single test, thereby improving the accuracy of the test.
[0108] Figure 3 The present invention provides a flowchart of performing a first test on at least one test object in an electronic device based on at least one test parameter in a first test cycle to obtain at least one test result of the test object corresponding to the first test parameter, including the following steps:
[0109] Step S301: In the first test cycle, at least two test parameters are input;
[0110] After the test parameters to be tested and the number of test items corresponding to each test parameter are determined, a process of testing the test parameters with the number of test items is implemented in the test cycle.
[0111] In this embodiment, the process of testing various test parameters simultaneously is described.
[0112] As an example, the test objects include CPU and memory, the test parameters corresponding to the CPU include integer operations and floating-point operations, and the test parameters corresponding to the memory include write-read operations, shift operations, and address binding operations. For each test parameter, the corresponding number of test items is set to perform tests based on the above five test parameters.
[0113] In the first test cycle, the multiple test parameters are input into the electronic device. This process is to input all the test parameters of each test object to be tested in the electronic device, so as to provide a basis for subsequent simultaneous testing.
[0114] Step S302: testing the corresponding test objects respectively according to the at least two test parameters to obtain at least two test results.
[0115] Among them, the corresponding number of test items is set for each test parameter, and accordingly, the multiple test parameters are tested simultaneously, and each test object is operated according to its corresponding test parameter to implement the first test, and the test result corresponding to each test parameter is obtained.
[0116] Among them, testing the test parameters corresponding to each test object can simulate the actual operation scenario of the electronic device, in which at least two of the CPU, memory and hard disk run simultaneously, and the operation process may affect each other. Therefore, it is possible to simulate the usage of the actual operation scenarios of each test object in the electronic device, consider the mutual influence between each test parameter, and improve the test effect.
[0117] Moreover, in the subsequent steps, if it is determined that the test result of the first test parameter meets the abnormal trend condition, the number of test items corresponding to the first test parameter is adjusted to increase the test pressure of the first test parameter. Since the test parameters corresponding to each test object are tested at the same time and the test pressure of the first test parameter is increased, it can further simulate the results caused by the operation of the first test parameter under extreme conditions in the actual operation scenario, making it easier for the first test parameter to have a test result that meets the error condition, thereby improving the test effect.
[0118] In some implementations, a script is pre-set for the test process, the script includes various test parameters of various test objects, and multiple test item instances (cases) are set in the script, and each test item instance is run according to a set number of times.
[0119] As an example, during the testing of the CPU, memory, and hard disk, each test item instance in the script will be repeatedly calculated according to the set number of times, such as the calculation of each word length of the integer type. When a test cycle ends, the time for calculating the number of times each item is performed is consistent. If not, it is further determined whether the following conditions are met: (1) Is the time variation getting longer and longer? (2) Does the time consumed by each test item fluctuate regularly or rise or fall in a spiral? (3) Does the memory have a test item with the same algorithm that slows down? Is there a regular trend of abnormal trends related to specific test items? (4) Does the CPU have a specific test item that slows down during operation or does the temperature rise regularly each time the test item is executed? (5) Does the hard disk have a trend of abnormal slowdown when executing specific read and write test items? If any of these conditions are met, the corresponding test script needs to be dynamically adjusted, with emphasis on adjusting the number of test items that meet the above conditions. The adjustment method can be referred to in the subsequent Figure 7 and Figure 8 , execute the test of the next test cycle.
[0120] In this embodiment, in the first test cycle, multiple test parameters to be tested are input; corresponding test objects are tested according to the multiple test parameters respectively, and at least two test results are obtained. In one test cycle, multiple test parameters are tested simultaneously, and the actual operation scenario of each test object in the electronic device can be simulated, and the mutual influence between each test parameter is considered to improve the test effect.
[0121] The embodiment of the present application further provides another process of performing a first test on at least one test object in the electronic device based on at least one test parameter in a first test cycle to obtain at least one test result of the test object corresponding to the first test parameter, including the following steps:
[0122] In the first test cycle, at least two test parameters are input in sequence according to a set test sequence, and corresponding test objects are tested in sequence according to the input test parameters to obtain at least two test results in sequence.
[0123] After the test parameters to be tested and the number of test items corresponding to each test parameter are determined, a process of testing the test parameters with the number of test items is implemented in the test cycle.
[0124] In this embodiment, the process of testing various test parameters in sequence is described.
[0125] As an example, the test objects include memory and hard disk. The test parameters corresponding to the memory include write-read operations, shift operations, and address binding operations. The test parameters corresponding to the hard disk include conventional read-write, penetrating read-write, and search operations. For each test parameter, the corresponding number of test items is set to perform tests based on the above six test parameters.
[0126] The test parameters corresponding to each test object are tested in sequence, and the test parameters corresponding to each electronic color plate can be tested independently, thereby improving the test effect.
[0127] Moreover, in the subsequent steps, if it is determined that the test result of the first test parameter meets the abnormal trend condition, the number of test items corresponding to the first test parameter is adjusted to increase the test pressure of the first test parameter. Since the test parameters corresponding to each test object are tested separately and the test pressure of the first test parameter is increased, it is possible to further perform a higher pressure test on the individual test parameters, making it easier for the first test parameter to have a test result that meets the error condition, thereby improving the test effect.
[0128] In this embodiment, in the first test cycle, multiple test parameters are input in sequence according to the set test order, and the corresponding test objects are tested in sequence according to the input test parameters, and multiple test results are obtained in sequence. It is possible to test multiple test parameters separately in one test cycle, and conveniently and quickly determine which test parameter is likely to cause errors, thereby improving the test effect.
[0129] Figure 4 The flowchart of determining whether the test result meets the abnormal trend condition provided by the embodiment of the present application includes the following steps:
[0130] Step S401: Compare each test result with the corresponding standard threshold in turn;
[0131] Among them, for each test parameter, a corresponding standard threshold is set. If the test result meets the standard threshold, the test parameter corresponding to the test result is determined to be qualified and will not cause errors. If the test result does not meet the standard threshold, the test parameter corresponding to the test result may cause errors.
[0132] The standard threshold may be a threshold of a change between the test result of the current cycle and the test result of the historical cycle.
[0133] In some implementations, as the operating time of components increases, the components may cause slower operating efficiency and increased heat generation due to various problems. Therefore, the standard threshold may be the increase in the test results of the current cycle relative to the test results of the historical cycle.
[0134] As an example, the test result includes time, which can be the time consumed to execute a specific number of tests using corresponding test parameters. Accordingly, the standard threshold can be the time consumed for the specific number of tests, the incremental threshold of the current test cycle relative to the historical test cycle, such as 10%, 20%, 25%, 50%, etc.
[0135] As an example, the test result includes temperature, which can be the temperature reached by performing a specific number of tests using corresponding test parameters. Accordingly, the standard threshold can be the temperature reached by the specific number of tests, and the incremental threshold of this test cycle relative to the historical test cycle, such as 10%.
[0136] It should be noted that the present application does not impose any restrictions on the values of the various standard thresholds, and in specific implementations, they can be set according to actual conditions.
[0137] Among them, the standard thresholds used by the CPU, memory and hard disk in the electronic device may be different.
[0138] As an example, the standard threshold of the CPU includes a temperature threshold and a time threshold. The temperature threshold may be the temperature reached by the CPU after executing a specific number of tests, and the increment threshold of the current test cycle relative to the average value of multiple historical test cycles, for example, the increment is greater than or equal to 10%; the time threshold may correspond to the time taken to execute a specific number of tests, and the increment threshold of the current test cycle relative to the average value of multiple historical test cycles, for example, the increment threshold is 10%.
[0139] As an example, the standard threshold of memory includes a time threshold, which may be the time taken to execute a specific number of tests, or an increment threshold of the current test cycle relative to an average value of multiple historical test cycles, such as an increment greater than or equal to 25%.
[0140] As an example, the standard threshold of the hard disk includes a time threshold. According to the two categories of mixed mechanical hard disk and non-mixed mechanical hard disk, the time threshold can be the time taken to perform a specific number of tests, and the incremental threshold of the current test cycle relative to the average of multiple historical test cycles. For example, the incremental threshold for mixed mechanical hard disk is 50%, and the incremental threshold for non-mixed mechanical hard disk is 20%.
[0141] Step S402: If any test result does not meet the corresponding standard threshold, determine that the test result meets the abnormal trend condition;
[0142] Among them, judging whether the test result meets the corresponding standard threshold value may be that the value in the test result is less than the standard threshold value.
[0143] When any one of the multiple test results corresponding to the multiple test parameters does not meet the corresponding standard threshold, it is determined that the corresponding test result meets the abnormal trend condition.
[0144] As an example, in the integer operation test of the CPU, if the test with a word length of BYTE does not meet the corresponding standard threshold, it is determined that the test result corresponding to the test parameter with a word length of BYTE meets the abnormal trend condition. In subsequent steps, the number of test items corresponding to the test parameter with a word length of BYTE is increased.
[0145] Step S403: If any test result meets the corresponding standard threshold, it is determined that the test result does not meet the abnormal trend condition.
[0146] Among them, if the test results corresponding to the multiple test parameters meet the corresponding standard thresholds, it can be determined that the corresponding test results do not meet the abnormal trend conditions and can be determined to be normal and will not cause errors.
[0147] In this embodiment, a standard threshold value corresponding to each test parameter is set to determine whether the test result obtained by testing each test parameter meets the corresponding standard threshold value. If the test result meets the abnormal trend condition, the subsequent adjustment of the test item corresponding to the test parameter can be executed at this time. Otherwise, the test result does not meet the abnormal trend condition, and the test item corresponding to the test parameter may not be adjusted, which provides a basis for determining which test items corresponding to the test parameters are to be adjusted.
[0148] Figure 5 : is a flowchart of a standard threshold determination process for judging a test result provided by an embodiment of the present application. The process includes the following steps before the first test cycle:
[0149] Step S501: During the target duration, at least one test object in the electronic device is controlled to run based on at least one test parameter, and the running result of the test parameter corresponding to each test object during the target duration is obtained, and the target duration is less than the first test cycle;
[0150] In this embodiment, a process of setting standard thresholds for various test parameters of various test objects in the electronic device is described.
[0151] Among them, the target duration is less than the duration of the test cycle, and the process in this embodiment is to pre-control the operation of each test object for the test parameters before testing the test parameters of each test object in the electronic device to determine its operation results in the target duration.
[0152] As an example, the test period may be 24 hours, and the target duration may be 2 hours.
[0153] The operation result may include one or more of the time taken for each test object to run a specific number of times within the target duration, the temperature reached, etc.
[0154] Step S502: The operating result of the test parameters corresponding to each test object in the target time period is used as the standard threshold value of the corresponding test object.
[0155] As the running time increases, the functions of various structures in the electronic device will deteriorate. Therefore, before testing the electronic device, the running results of the test parameters corresponding to each test object are controlled to determine the corresponding standard threshold value accordingly.
[0156] After the operation results of each test parameter are obtained, the standard threshold of the test parameter of the corresponding test object is determined according to the operation results.
[0157] In this embodiment, each test object in the electronic device is controlled to run based on each test parameter in advance within the target time length to obtain a corresponding operation result, and a corresponding standard threshold is determined based on the operation result, so as to provide a basis for subsequent testing of the test parameters of each test object in the electronic device to determine whether there are any test parameters that meet the abnormal trend conditions.
[0158] Figure 6 : is a flowchart of limiting the number of test items corresponding to the first test parameter provided by an embodiment of the present application. After determining that the test result of the first test parameter meets the abnormal trend condition, the process includes the following steps:
[0159] Step S601: Determine whether the number of test items corresponding to the first test parameter reaches an upper limit threshold;
[0160] Among them, when it is determined that the test result of the first test parameter meets the abnormal trend condition, the number of test items of the first test parameter is adjusted to increase the test pressure on the first test parameter. However, even if the number of test items of the first test parameter is adjusted to a maximum, the test result of the first test parameter only meets the abnormal trend condition without any error. In order to reduce the testing burden, an upper limit threshold can be set for the number of test items corresponding to the first test parameter.
[0161] Among them, the upper limit threshold corresponding to each test parameter may be different.
[0162] The upper limit threshold may be expressed as a ratio, specifically, the ratio of the missed test parameters among the various test parameters belonging to the same test object.
[0163] Among them, the upper limit thresholds corresponding to various test parameters in the CPU, memory and hard disk of the electronic device are different. For example, the upper limit thresholds corresponding to the test items of the CPU and memory are 90%, and the upper limit thresholds corresponding to the test items of the hard disk are 75%.
[0164] In some implementations, after determining that the test result of the first test parameter meets the abnormal trend condition, the proportion of the number of test items adopted by the first test parameter in the first test cycle to the overall number of test items of each test parameter of the first test object is determined. If the proportion is less than the upper limit threshold, execute step S602; otherwise, execute steps S603-S604.
[0165] Step S602: If the number of test items corresponding to the first test parameter does not reach the upper limit threshold, at least adjusting the number of test items corresponding to the first test parameter, and performing a second test step of a second test cycle for the first test parameter based on the adjustment;
[0166] If the number of test items corresponding to the first test parameter does not reach the upper limit threshold, at least the number of test items corresponding to the first test parameter is adjusted, and a second test of a second test cycle is performed on the first test parameter based on the adjustment.
[0167] The adjustment of the number of test items may be to adjust the ratio of the number of test items corresponding to the first test parameter to the sum of the number of test items of each test parameter of the corresponding test object according to the ratio of the number of test items corresponding to the first test parameter.
[0168] As an example, if the proportion of the number of test items corresponding to the first test parameter increases by 10%, and the upper limit threshold is 75%, then the proportion of the number of test items corresponding to the first test parameter reaches 75%.
[0169] Step S603: if the number of test items corresponding to the first test parameter reaches the upper limit threshold, adjust the test items corresponding to the first test parameter to the initial test number;
[0170] Among them, if the test item corresponding to the first test parameter reaches the upper limit threshold at this time, the first test parameter shows an abnormal trend under a larger test pressure, but cannot reach an error, then it is determined that the first test parameter will not have an error during the actual operation process. It can be considered that the first test parameter has passed the test, and the number of corresponding test items is set to the initial test number.
[0171] Step S604: Based on the test result of the second test parameter satisfying the abnormal trend condition, the number of test items corresponding to the second test parameter is adjusted, and a second test of the second test cycle is performed on the second test parameter based on the adjustment. The second test parameter is a test parameter of any test object in the electronic device.
[0172] After it is determined that the first test parameter passes the test, the number of test items corresponding to the first test parameter is adjusted to the initial test number, and the test parameters ranked after the first test parameter are tested.
[0173] If the test result of the second test parameter meets the abnormal trend condition, the number of test items corresponding to the second test parameter is adjusted.
[0174] The second test parameter may belong to the same test object as the first test parameter, or may not belong to the same test object, which is not limited in the present application.
[0175] In this embodiment, if the number of test items corresponding to the first test parameter does not reach the upper limit threshold, the number of test items corresponding to the first test parameter is subsequently adjusted, and a second test step of performing a second test cycle on the first test parameter is performed based on the adjustment to increase the test pressure of the first test parameter to determine whether the first test parameter shows an abnormal trend or is an error under a larger test pressure; if the number of test items corresponding to the first test parameter reaches the upper limit threshold, the test items corresponding to the first test parameter are adjusted to the initial test number; based on the test result of the second test parameter satisfying the abnormal trend condition, the number of test items corresponding to the second test parameter is adjusted, and a second test of the second test cycle is performed on the second test parameter based on the adjustment, and the second test parameter is a test parameter of any test object in the electronic device, so as to implement a test with increased pressure on other test parameters that meet the abnormal trend condition.
[0176] Figure 7 A flowchart for adjusting the number of test items corresponding to at least a first test parameter provided by an embodiment of the present application includes the following steps:
[0177] Step S701: Determine whether the number of test items corresponding to the first test parameter reaches an upper limit threshold;
[0178] When it is determined that the test result of the first test parameter meets the abnormal trend condition, it is necessary to increase the test pressure on the first test parameter, specifically by increasing the number of times the test items are adjusted.
[0179] Among them, in order to reduce the burden of testing each test parameter, an upper limit threshold can be set, which represents the number of valid test items of the test parameter. When the number of test items of the test parameter is equal to and greater than the upper limit threshold, the test effect is similar. Therefore, in this embodiment, it will be determined whether to adjust the number of test items based on the upper limit threshold.
[0180] Step S702: based on the fact that the number of test items corresponding to the first test parameter is less than the upper limit threshold, the number of test items corresponding to the first test parameter is increased by a preset adjustment value.
[0181] When the number of test items corresponding to the test parameter is less than the upper limit threshold, the number of test items corresponding to the first test parameter is increased.
[0182] Different test items correspond to different preset adjustment values.
[0183] As an example, in the CPU's integer operation, for the test of four word lengths, BYTE, WORD, DWORD, and QWORD, 100,000 operations are set respectively, and the integer operation has a total of 400,000 operations. In the CPU's floating-point operation, for the test of single-precision values and double-precision values, 200,000 operations are set respectively, and the floating-point operation has a total of 400,000 operations. Correspondingly, the corresponding preset adjustment value can be 20% of the overall operation. For example, if the test result for BYTE indicates that it meets the abnormal trend condition, the corresponding test number increases by 80,000 times.
[0184] As an example, in the memory write and read operations, shift operations, and address binding operations, 1G memory is tested, and accordingly, the corresponding preset adjustment value may be 30% of the 1G memory. For example, if the test results of the write and read operations indicate that the abnormal trend condition is met, the corresponding write data volume increases by 30%.
[0185] As an example, in both normal reading and writing and penetrating reading and writing of the hard disk, 500MB of memory space can be used as the file mapping area, corresponding to the two word lengths of DWORD and QWORD. The read and write operations for each word length are performed 10 times. Accordingly, the corresponding preset adjustment value can be 10% of the data volume. If the test result for the DWORD word length indicates that it meets the abnormal trend condition, the amount of data written will be increased by 10%.
[0186] As an example, in a hard disk search operation, the size of the file being operated is 5GB. If the hard disk is a mixed mechanical hard disk or a non-mixed mechanical hard disk, the corresponding preset adjustment values are the same, but the values used to determine whether the abnormal trend condition is met are different.
[0187] In this embodiment, based on the fact that the number of test items corresponding to the first test parameter is less than the upper limit threshold, the number of test items corresponding to the first test parameter is increased by a preset adjustment value to increase the test pressure of the first test parameter, so that the tested hardware has a greater chance of exposing potential problems early, discovering and solving problems early, and avoiding problems from flowing to the customer site and affecting customer business. Moreover, only the number of test items corresponding to the test parameters that meet the abnormal trend conditions is adjusted, so as to improve the test efficiency with a more efficient method, better cover the discovery of low-probability problems, and save internal testing costs.
[0188] Figure 8 Another flow chart of adjusting the number of test items corresponding to at least the first test parameter provided by an embodiment of the present application includes the following steps:
[0189] Step S801: Determine whether the number of test items corresponding to the first test parameter reaches an upper limit threshold;
[0190] When it is determined that the test result of the first test parameter meets the abnormal trend condition, it is necessary to increase the test pressure on the first test parameter, specifically by increasing the number of times the test items are adjusted.
[0191] Among them, in order to reduce the burden of testing each test parameter, an upper limit threshold can be set, which represents the number of valid test items of the test parameter. When the number of test items of the test parameter is equal to and greater than the upper limit threshold, the test effect is similar. Therefore, in this embodiment, it will be determined whether to adjust the number of test items based on the upper limit threshold.
[0192] Step S802: based on the fact that the number of test items corresponding to the first test parameter is less than the upper limit threshold, the number of test items corresponding to the first test parameter is increased by a preset adjustment value;
[0193] Step S803: reduce the number of test items corresponding to a third test parameter by the preset adjustment value, the third test parameter and the first test parameter corresponding to the same test object, and the third test parameter is ranked after the first test parameter in the test sequence of the preset test parameters.
[0194] Among them, when the number of test items corresponding to the test parameter is less than the upper limit threshold, the number of test items corresponding to the first test parameter is increased, and the number of test items corresponding to other test parameters belonging to the same test object is correspondingly reduced.
[0195] Different test items correspond to different preset adjustment values.
[0196] In some implementations, the number of test items for a certain test parameter of a certain test object is increased by a preset adjustment value, and the number of test items for other test parameters of the test object is correspondingly reduced by the preset adjustment value. If the number of other test parameters of the test object is greater than or equal to 2, the reduction amount of the number of test items for other test parameters can be the same to divide the reduced preset adjustment value, and the reduction amount of test items for other test parameters may not be necessary at this time.
[0197] As an example, in the CPU integer operation, for the test of four word lengths, namely BYTE, WORD, DWORD, and QWORD, 100,000 operations are set respectively, and the integer operation has a total of 400,000 operations. In the CPU floating-point operation, for the test of single-precision value and double-precision value, 200,000 operations are set respectively, and the floating-point operation has a total of 400,000 operations. Accordingly, the corresponding preset adjustment value may be 20% of the overall operation.
[0198] For example, if the test result of BYTE satisfies the abnormal trend condition, the corresponding test times will be increased by 80,000 times, and the test times will be adjusted to 180,000 times. The tests of the other three word lengths will be adjusted to 73,000 times, 73,000 times, and 74,000 times respectively.
[0199] For example, if the test result for WORD satisfies the abnormal trend condition, the corresponding test times will increase by 80,000 times, and the test times will be adjusted to 180,000 times. The test times for BYTE word length remain unchanged, and the test times for DWORD and QWORD word lengths will be adjusted to 60,000 times respectively.
[0200] In this embodiment, based on the fact that the number of test items corresponding to the first test parameter is less than the upper limit threshold of the number of times, the number of test items corresponding to the first test parameter is increased by a preset adjustment value; the number of test items corresponding to the third test parameter is reduced by a preset adjustment value, the third test parameter and the first test parameter correspond to the same test object, and the third test parameter is sorted after the first test parameter in the test order of the preset test parameters, and after it is determined that the first test parameter satisfies the abnormal trend condition, only the number of test items corresponding to the test parameter that satisfies the abnormal trend condition is increased, while the number of test items of other test parameters belonging to the same test object as the first test parameter is reduced, so as to increase the test pressure of the first test parameter, so that the tested hardware has a greater chance of exposing potential problems early, discovering and solving problems early, avoiding problems from flowing to the customer site and affecting customer business, and using more efficient methods to improve testing efficiency, better cover the discovery of low-probability problems, and save internal testing costs.
[0201] Fig. 9 The flowchart of at least recording the test result of the second test satisfying the error condition provided by the embodiment of the present application includes the following steps:
[0202] Step S901: determining the first test parameter, where the first test parameter corresponds to a test result that satisfies an error condition;
[0203] Step S902: Record the first test parameter and the corresponding first test object.
[0204] Among them, when the number of test items corresponding to the first test parameter is adjusted to increase the test pressure of the first test parameter, if a second test is performed in a second test cycle for the increased number of test items of the first test parameter, a test result that meets the error condition is obtained, and the test result is caused by the adjustment of the number of test items by the first test parameter.
[0205] Among them, the test result that meets the error condition is caused by adjusting the first test parameter of the number of test items. Therefore, when recording the test result that meets the error condition, it is necessary to record the first test parameter and its corresponding test object.
[0206] Among them, after recording the first test parameter and the corresponding test object, the test object and the first test parameter can be output based on the set output method, so that technicians can quickly understand the test parameters that are prone to errors under greater operating pressure and discover and solve problems as early as possible.
[0207] In this embodiment, it is determined in the first test cycle that the test result of the first test parameter meets the abnormal trend condition, and a second test is performed in the second test cycle for the increased number of test items of the first test parameter to obtain a test result that meets the error condition, and the first test parameter and the corresponding test object are recorded so that technical personnel can quickly understand the test parameters that are prone to errors under greater operating pressure, discover and solve problems early, and avoid problems flowing to the customer site and affecting customer business.
[0208] Fig.10 : is a flowchart of the execution process of the first test provided in the embodiment of the present application, comprising the following steps:
[0209] Step S1001: In a first test cycle, during a first test process of at least one test object in the electronic device based on at least one test parameter, monitoring whether a preset error prompt information is obtained;
[0210] In the process of performing the first test on each test object in the electronic device based on various test parameters, it is also monitored whether an error occurs.
[0211] The system of the electronic device records various errors and records them in a specific storage area.
[0212] By monitoring the storage area, it can be determined whether an error occurs.
[0213] The preset error prompt information is the information that the system prompts when an error occurs during the operation of the electronic device.
[0214] In some implementations, the preset error prompt information may be a CE (Correctable Error) of an MCE (Mechine Check Exception) or an ECC (Error Correcting Code) error.
[0215] Step S1002: End the test based on the preset error prompt information obtained;
[0216] If the preset error prompt information is obtained during monitoring, it indicates that an error has occurred in the current test cycle, and the test process is stopped.
[0217] The preset error prompt information will include the cause of the error, and the technician can analyze and determine the structure where the error occurs, such as the CPU, memory, or hard disk, based on the information contained in the error prompt information.
[0218] In some implementations, the information in the specific storage area may be read according to a read cycle.
[0219] Step S1003: Based on the fact that the preset error prompt information is not obtained, a first test is performed on at least one test object in the electronic device based on at least one test parameter to obtain at least one test result corresponding to the test parameter of the test object.
[0220] If no preset error prompt information is obtained, it indicates that no error occurs during the execution of this test cycle, and the process of testing each test object based on various test parameters continues until the end of this test cycle to obtain the test results corresponding to each test parameter.
[0221] In the present embodiment, in the first test cycle, during the first test process of performing the first test on each test object in the electronic device based on various test parameters, it is monitored whether a preset error prompt information is obtained. If the preset error prompt information is obtained, the test is terminated. If the preset error prompt information is not obtained, a first test is performed on at least one test object in the electronic device based on at least one test parameter to obtain at least one test result of the test parameter corresponding to the test object. The error handling priority generated during the test process is higher than the test process of the test parameter, so that the error can be handled as soon as possible when it occurs during the test process.
[0222] Corresponding to the above-mentioned embodiment of a testing method for an electronic device provided by the present application, the present application also provides an embodiment of a device applying the testing method for an electronic device.
[0223] Fig.11 11 is a schematic diagram of a structure of a testing device for an electronic device provided in an embodiment of the present application, the device comprising the following structures: a first testing module 1101, an adjustment module 1102, a second testing module 1103 and a recording module 1104;
[0224] The first test module 1101 is used to perform a first test on at least one test object in the electronic device based on at least one test parameter in a first test cycle, and obtain at least one test result corresponding to each test parameter of each test object;
[0225] The adjustment module 1102 is used to adjust at least the number of test items corresponding to the first test parameter if the test result of the first test parameter meets the abnormal trend condition;
[0226] The second test module 1103 is configured to perform a second test of a second test cycle on the first test parameter based on the adjustment, wherein the second test cycle is adjacent to the first test cycle and is later than the first test cycle;
[0227] The recording module 1104 is configured to record at least the test result of the second test that meets the error condition if the test result of the second test meets the error condition.
[0228] Optionally, also include:
[0229] The first determination module is used to perform a first test on at least one test object in the electronic device based on at least one test parameter in a first test cycle, and before obtaining at least one test result of the test object corresponding to the first test parameter, determine at least one test parameter of at least one test object from among several test parameters of multiple test objects of the electronic device according to the test target.
[0230] Optionally, the first test module includes any of the following:
[0231] A first testing unit is used to input at least two testing parameters in a first testing cycle; and to test corresponding test objects according to the at least two testing parameters to obtain at least two test results;
[0232] The second test unit is used to input at least two test parameters in sequence according to a set test sequence in a first test cycle, test the corresponding test objects in sequence according to the input test parameters, and obtain at least two test results in sequence.
[0233] Optionally, also include:
[0234] The judgment module is used to judge whether the test results meet the abnormal trend condition;
[0235] The judgment module includes:
[0236] A comparison unit, used to compare each test result with the corresponding standard threshold in turn;
[0237] The determination unit is used to determine that if any test result does not meet the corresponding standard threshold, the test result meets the abnormal trend condition; if any test result meets the corresponding standard threshold, the test result does not meet the abnormal trend condition.
[0238] Optionally, in the first test cycle, before performing a first test on at least one test object in the electronic device based on at least one test parameter and obtaining at least one test result of the test object corresponding to the first test parameter, the method further includes:
[0239] A control module, configured to control at least one test object in the electronic device to run based on at least one test parameter during a target duration, and obtain a running result of each test object corresponding to the test parameter during the target duration, wherein the target duration is less than the first test cycle;
[0240] The second determination module is used to take the operating result of the test parameter corresponding to each test object in the target time as the standard threshold value of the corresponding test object.
[0241] Optional, adjustment modules, including:
[0242] A first adjustment unit, configured to adjust at least the number of test items corresponding to the first test parameter if the number of test items corresponding to the first test parameter does not reach an upper limit threshold;
[0243] The second adjustment unit is used to adjust the test items corresponding to the first test parameter to the initial test number if the number of test items corresponding to the first test parameter reaches an upper limit threshold; based on the test result of the second test parameter satisfying the abnormal trend condition, the number of test items corresponding to the second test parameter is adjusted, and based on the adjustment, a second test of the second test cycle is performed on the second test parameter, and the second test parameter is a test parameter of any test object in the electronic device.
[0244] Optionally, the adjustment unit is specifically used for:
[0245] Based on the fact that the number of test items corresponding to the first test parameter is less than the upper limit threshold, the number of test items corresponding to the first test parameter is increased by a preset adjustment value.
[0246] Optional, adjustment modules, including:
[0247] A third adjustment unit, configured to increase the number of test items corresponding to the first test parameter by a preset adjustment value based on the number of test items corresponding to the first test parameter being less than an upper limit threshold value of the number of test items;
[0248] The fourth adjustment unit is used to reduce the number of test items corresponding to a third test parameter by the preset adjustment value. The third test parameter and the first test parameter correspond to the same test object, and the third test parameter is ranked after the first test parameter in the test sequence of the preset test parameters.
[0249] Optionally, also include:
[0250] The monitoring module is used to monitor whether a preset error prompt information is obtained during a first test cycle when a first test is performed on at least one test object in the electronic device based on at least one test parameter; trigger an end module based on obtaining the preset error prompt information; and maintain the first test module to perform a first test on at least one test object in the electronic device based on at least one test parameter based on not obtaining the preset error prompt information, so as to obtain at least one test result of the test object corresponding to the test parameter.
[0251] It should be noted that for the functional explanation of the structure of each component in the testing device of an electronic device provided in the embodiment of the present application, please refer to the explanation in the aforementioned corresponding method embodiment, which will not be repeated in this embodiment.
[0252] In the present embodiment, in the first test cycle, a first test is performed on each test object in the electronic device based on the corresponding various test parameters, and in the first cycle, multiple test parameters corresponding to multiple test objects are tested. When the test result of the first parameter obtained meets the abnormal trend condition, at least the number of test items corresponding to the first test parameter is adjusted to increase the test pressure of the first test parameter, and a second test is performed on the first test parameter in the next cycle based on the adjustment. When the test result of the second test meets the error condition, the test result of the second test that meets the error condition is recorded, so that only abnormal trends occur under a smaller test pressure and no errors occur. Moreover, in the present embodiment, in each test cycle, various test parameters of each test object involved are tested, so that all test parameters of all test objects to be tested in the electronic device are tested in the same test cycle, which can cover the situation where any two test parameters or any two test objects that can affect each other and the influence cannot be revealed by a single test, thereby improving the accuracy of the test.
[0253] Corresponding to the above-mentioned embodiment of a test method for an electronic device provided by the present application, the present application also provides an electronic device, a readable storage medium and a computer program product corresponding to the test method for the electronic device.
[0254] Wherein, the electronic device includes: the delay circuit in the above embodiment.
[0255] The electronic device includes: a memory and a processor;
[0256] Wherein, the memory stores a processing program;
[0257] The processor is used to load and execute the processing program stored in the memory to implement each step of any of the above-mentioned electronic device testing methods.
[0258] For details on the implementation of the electronic device and the testing method of the electronic device, please refer to the aforementioned embodiments of the testing method of the electronic device.
[0259] The readable storage medium stores a computer program thereon, and the computer program is called and executed by a processor to implement each step of any of the above-mentioned electronic device testing methods.
[0260] Specifically, the computer program stored in the readable storage medium is executed to implement the test method of the electronic device, and reference may be made to the test method embodiment of the electronic device described above.
[0261] The computer program product includes a computer program / instruction, and when the computer program / instruction is executed by a processor, each step of any of the above-mentioned electronic device testing methods is implemented.
[0262] Specifically, the computer program product executes and implements the test method for the electronic device, and reference may be made to the test method embodiment for the electronic device described above.
[0263] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device provided in the embodiment, since it corresponds to the method provided in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0264] The above description of the embodiments provided enables professionals and technicians in the field to implement or use the present application. Various modifications to these embodiments will be apparent to professionals and technicians in the field, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features provided herein.
Claims
1. A method for testing an electronic device, include: In a first test cycle, performing a first test on at least one test object in the electronic device based on at least one test parameter, and obtaining at least one test result corresponding to each test parameter of each test object; If the test result of the first test parameter satisfies the abnormal trend condition, at least the number of test items corresponding to the first test parameter is adjusted, and based on the adjustment, a second test of a second test cycle is performed on the first test parameter, where the second test cycle is adjacent to and later than the first test cycle; If the test result of the second test meets the error condition, at least the test result of the second test that meets the error condition is recorded.
2. The electronic device testing method according to claim 1, wherein in the first test cycle, before performing a first test on at least one test object in the electronic device based on at least one test parameter and obtaining at least one test result of the test object corresponding to the first test parameter, further include: According to the test target, at least one test parameter of at least one test object is determined among several test parameters of a plurality of test objects of the electronic device.
3. The electronic device testing method according to claim 1, wherein in a first test cycle, a first test is performed on at least one test object in the electronic device based on at least one test parameter to obtain at least one test result of the test object corresponding to the first test parameter, including any one of the following: In the first test cycle, at least two test parameters are input ; Testing the corresponding test objects respectively according to the at least two test parameters to obtain at least two test results; In the first test cycle, at least two test parameters are input in sequence according to a set test sequence, and corresponding test objects are tested in sequence according to the input test parameters to obtain at least two test results in sequence.
4. The electronic device testing method according to claim 1, wherein the step of determining whether the test result satisfies an abnormal trend condition is: include: Compare each test result with the corresponding standard threshold in turn; If any test result does not meet the corresponding standard threshold, determine that the test result meets the abnormal trend condition; If any test result meets the corresponding standard threshold, it is determined that the test result does not meet the abnormal trend condition.
5. The electronic device testing method according to claim 4, wherein in the first test cycle, before performing a first test on at least one test object in the electronic device based on at least one test parameter and obtaining at least one test result of the test object corresponding to the first test parameter, further include: During the target duration, at least one test object in the electronic device is controlled to run based on at least one test parameter to obtain the running result of each test object corresponding to the test parameter during the target duration, wherein the target duration is less than the first test cycle; The operating result of the test parameters corresponding to each test object in the target time period is used as the standard threshold value of the corresponding test object.
6. The electronic device testing method according to claim 1, after determining that the test result of the first test parameter meets the abnormal trend condition, further include: If the number of test items corresponding to the first test parameter does not reach the upper limit threshold, performing at least adjusting the number of test items corresponding to the first test parameter, and performing a second test step of a second test cycle for the first test parameter based on the adjustment; If the number of test items corresponding to the first test parameter reaches an upper limit threshold, adjusting the test items corresponding to the first test parameter to an initial test number; Based on the test result of the second test parameter satisfying the abnormal trend condition, the number of test items corresponding to the second test parameter is adjusted, and a second test of the second test cycle is performed on the second test parameter based on the adjustment. The second test parameter is a test parameter of any test object in the electronic device.
7. The electronic device testing method according to claim 1, wherein at least the number of test items corresponding to the first test parameter is adjusted. include: Based on the fact that the number of test items corresponding to the first test parameter is less than an upper limit threshold, the number of test items corresponding to the first test parameter is increased by a preset adjustment value.
8. The electronic device testing method according to claim 1, wherein at least the number of test items corresponding to the first test parameter is adjusted. include: Based on the fact that the number of test items corresponding to the first test parameter is less than the upper limit threshold, the number of test items corresponding to the first test parameter is increased by a preset adjustment value; The number of test items corresponding to a third test parameter is reduced by the preset adjustment value, the third test parameter and the first test parameter correspond to the same test object, and the third test parameter is ranked after the first test parameter in the test sequence of the preset test parameters.
9. The method for testing an electronic device according to claim 1, further comprising: include: In a first test cycle, during a first test process of at least one test object in the electronic device based on at least one test parameter, monitoring whether a preset error prompt information is obtained; End the test based on the preset error prompt information; Based on the fact that the preset error prompt information is not obtained, a first test is performed on at least one test object in the electronic device based on at least one test parameter to obtain at least one test result corresponding to the test parameter of the test object.
10. A testing device for electronic equipment, include: A first testing module, configured to perform a first test on at least one test object in the electronic device based on at least one test parameter in a first testing cycle, and obtain at least one test result corresponding to each test parameter of each test object; An adjustment module, configured to adjust at least the number of test items corresponding to the first test parameter if the test result of the first test parameter meets the abnormal trend condition; A second test module, configured to perform a second test of a second test cycle on the first test parameter based on the adjustment, wherein the second test cycle is adjacent to the first test cycle and later than the first test cycle; The recording module is used for recording at least the test result of the second test that meets the error condition if the test result of the second test meets the error condition.
Citation Information
Cited By
Resonator chip test method and device, electronic equipment and storage medium
CN120629897A
Resonator chip testing method and device, electronic equipment and storage medium
CN120629897B
