Test result acquisition method and device, electronic equipment and storage medium
Real-time monitoring and comparison of test parameters between devices enable efficient detection of test abnormalities, improving test efficiency by minimizing retesting.
Patent Information
- Application Number
- CN202411192850.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-12-06
AI Technical Summary
Existing test methods fail to detect test environment abnormalities in real-time, leading to wasted time and reduced efficiency due to the need for retesting after completing tests.
A method and device for real-time monitoring and comparison of test parameters between a test device and a comparison device, allowing immediate detection of abnormalities and adjustment of test environments, thereby avoiding retesting.
Enhances test efficiency by allowing timely detection of test abnormalities and reducing unnecessary retesting, thus optimizing test processes.
Smart Images

Figure CN119088697A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of equipment testing technology, and in particular to a test result acquisition method, device, electronic equipment and storage medium. Background Art
[0002] Placing the test equipment in a test environment for testing is an essential means of determining the performance of the equipment.
[0003] At present, the test results of the test equipment are usually obtained in the following way: after the test is completed, the log data of the test equipment is exported, and the test results of the test equipment are determined by analyzing the log data. However, since the export and analysis of log data are performed after the test is completed, it is impossible to determine whether the test environment is abnormal in real time during the test process. If there is an abnormality in the test result, it is necessary to test again, which wastes test time and reduces test efficiency. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a test result acquisition method, device, electronic device and storage medium.
[0005] In a first aspect, the present application provides a method for obtaining a test result, comprising:
[0006] In response to a start-up operation for a target application triggered by a user, a first page is displayed in a display interface of a target device, wherein the first page includes test parameters, and the target device includes a test device and a comparison device;
[0007] Real-time monitoring of test parameter values of the target device during the test;
[0008] updating the value of the test parameter in the first page according to the test parameter value, and displaying it on the first page;
[0009] The test parameter values of the test device and the comparison device are compared, and the test result of the test device is determined according to the comparison result.
[0010] In some embodiments, in response to a user-triggered launch operation for a target application, after displaying the first page in a display page of the target device, the method further includes:
[0011] In response to a user's selection operation of a target test parameter in the first page, switching the first page to a second page;
[0012] The target test parameters are displayed in the second page.
[0013] In some embodiments, the real-time monitoring of the test parameter value of the target device during the test process and updating the value of the test parameter in the first page according to the test parameter value includes:
[0014] Real-time monitoring of test parameter values of the target device during the test;
[0015] The value of the target test parameter in the second page is updated according to the test parameter value.
[0016] In some embodiments, the test parameters displayed in the first page include test environment parameters, and the test environment parameters are used to characterize the test environment in which the target device is located;
[0017] After updating the value of the test parameter in the first page according to the test parameter value, the method further includes:
[0018] Determining, according to the test environment parameters in the first page displayed by the target device, whether the test device and the comparison device are in the same test environment;
[0019] If not, the test is stopped, and the test device and the comparison device are adjusted to be in the same test environment to re-perform the test.
[0020] In some embodiments, comparing the test parameter values of the test device and the comparison device, and determining the test result of the test device according to the comparison result, includes:
[0021] comparing test parameter values of the test device and the comparison device;
[0022] When the test device and the comparison device are in the same test environment, if the comparison result shows that the test parameter value of the test device does not meet the standard corresponding to the test parameter value of the comparison device, it is determined that the test result of the test device is abnormal and the log data is saved.
[0023] In some embodiments, before switching the first page to the second page in response to a user selecting a target test parameter in the first page, the method further includes:
[0024] Obtaining a test case for the test device;
[0025] Target test parameters are determined according to the test case.
[0026] In some embodiments, the method further comprises:
[0027] In response to a user closing operation on the target application, the first page is closed.
[0028] In a second aspect, the present application provides a test result acquisition device, comprising:
[0029] A display module, configured to display a first page in a display interface of a target device in response to a start-up operation for a target application triggered by a user, wherein the first page includes test parameters, and the target device includes a test device and a comparison device;
[0030] A monitoring module, used for real-time monitoring of the test parameter values of the target device during the test process;
[0031] An updating module, used for updating the value of the test parameter in the first page according to the test parameter value, and displaying it on the first page;
[0032] The determination module is used to compare the test parameter values of the test device and the comparison device, and determine the test result of the test device according to the comparison result.
[0033] In some embodiments, the apparatus further comprises a switching module, configured to:
[0034] In response to a user's selection operation of a target test parameter in the first page, switching the first page to a second page;
[0035] The target test parameters are displayed in the second page.
[0036] In some embodiments, the monitoring module is specifically used to monitor the test parameter value of the target device during the test in real time;
[0037] The value of the target test parameter in the second page is updated according to the test parameter value.
[0038] In some embodiments, the test parameters displayed in the first page include test environment parameters, and the test environment parameters are used to characterize the test environment in which the target device is located;
[0039] The device also includes a judging module, which is used to:
[0040] Determining, according to the test environment parameters in the first page displayed by the target device, whether the test device and the comparison device are in the same test environment;
[0041] If not, the test is stopped, and the test device and the comparison device are adjusted to be in the same test environment to re-perform the test.
[0042] In some embodiments, the determining module is specifically configured to:
[0043] comparing test parameter values of the test device and the comparison device;
[0044] When the test device and the comparison device are in the same test environment, if the comparison result shows that the test parameter value of the test device does not meet the standard corresponding to the test parameter value of the comparison device, it is determined that the test result of the test device is abnormal and the log data is saved.
[0045] In some embodiments, the determining module is further configured to:
[0046] Obtaining a test case for the test device;
[0047] Target test parameters are determined according to the test case.
[0048] In some embodiments, the device further comprises a closing module, configured to:
[0049] In response to a user closing operation on the target application, the first page is closed.
[0050] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, the memory being used to store a computer program, the processor being used to execute the test result acquisition method described in the first aspect or any optional implementation of the first aspect when calling the computer program.
[0051] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the test result acquisition method described in the first aspect or any optional implementation manner of the first aspect is implemented.
[0052] Compared with the prior art, the technical solution provided by the embodiments of the present application has the following advantages:
[0053] The test result acquisition method provided by the embodiment of the present application includes: in response to the startup operation for the target application triggered by the user, displaying a first page in the display interface of the target device, the first page includes test parameters, and the target device includes a test device and a comparison device; real-time monitoring of the test parameter value of the target device during the test; updating the value of the test parameter in the first page according to the test parameter value, and displaying it on the first page; comparing the test parameter values of the test device and the comparison device, and determining the test result of the test device according to the comparison result. Since the target application is installed on the test device and the comparison device, during the test process, if the target application is started, the test parameters can be displayed, so the tester can obtain the test parameters in time, and thus can timely find out whether a test abnormality occurs through the test parameter values of the test device and the comparison device, and whether to re-test. Compared with the related art that exports log data for analysis after the test is completed, it can avoid wasting test time and improve test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0055] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0056] Figure 1 A flowchart of the steps of a method for obtaining test results provided in one embodiment of the present application;
[0057] Figure 2 A schematic diagram of a second page of a target device provided by another embodiment of the present application;
[0058] Figure 3 A structural block diagram of a test result acquisition device provided in one embodiment of the present application;
[0059] Figure 4 An internal structure diagram of an electronic device provided for one embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to make the purpose, implementation mode and advantages of the present application clearer, the exemplary implementation mode of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, not all of the embodiments.
[0061] Based on the exemplary embodiments described in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the claims attached to this application. In addition, although the disclosure in this application is introduced according to one or several exemplary examples, it should be understood that each aspect of these disclosures can also constitute a complete implementation method separately. It should be noted that the brief description of the terms in this application is only for the convenience of understanding the implementation methods described below, and is not intended to limit the implementation methods of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.
[0062] First, the application scenario of the embodiment of the present application is described exemplarily. In order to ensure that new devices such as mobile phones can meet the performance requirements, new devices such as mobile phones need to be tested as test devices, such as testing throughput, latency, etc. In the related art, the test device and the comparison device are tested at the same time. After the test is completed, the log data of the test device and the comparison device are exported, and the test results of the test device are determined by comparing the log data. However, since the export and analysis of the log data are performed after the test is completed, it is impossible to determine in real time whether the test environment is abnormal during the test process. When there is an abnormality in the test result, it is necessary to retest again. Since the abnormality cannot be discovered in time during the test process and retesting on the spot, test time is wasted and test efficiency is reduced.
[0063] Based on this, an embodiment of the present application provides a method for obtaining test results. During the test process, the test parameters are displayed on the interface of the test device and the comparison device, so that the user can read and compare them in time, so as to promptly determine whether the test parameters are abnormal and retest immediately without waiting for the log data after the test is completed to be analyzed to determine whether the test parameters are abnormal, thereby avoiding wasting test time and improving test efficiency.
[0064] The test result acquisition method provided by the present application will be described and elaborated through specific exemplary embodiments below.
[0065] Figure 1 A flowchart of a method for obtaining test results provided in an embodiment of the present application is provided. Figure 1 As shown, the test result acquisition method provided in this embodiment includes the following steps S11 to S13.
[0066] S11. In response to a start-up operation for a target application program triggered by a user, a first page is displayed in a display interface of a target device.
[0067] Among them, the first page contains test parameters, and the target device includes a test device and a comparison device. The target application is pre-installed on the target device for displaying test parameters. The test device is an electronic device whose performance parameters are to be determined, such as a new mobile phone. The comparison device is an electronic device whose performance parameters have been determined and there are no abnormalities. The startup operation of the target application is the operation of opening the target application, such as clicking on the target application icon. The target application is used in the test process and will not be installed on electronic devices used by third-party users, and will not affect the users.
[0068] Specifically, during the test, the target application is installed on the test device and the comparison device. During the test, the user starts the target application on the test device, and the display interface of the test device displays the first page. The user starts the target application on the comparison device, and the display interface of the comparison device displays the first page.
[0069] S12. Real-time monitoring of the test parameter values of the target device during the test process.
[0070] The test parameter value is the actual value of the test parameter during the test process. The test parameter may include the performance parameters of the target device, the test environment parameters, etc. The performance parameters may be, for example, hardware performance parameters, screen parameters, signals, signal-to-noise ratio, modulation mode assigned by the network, etc. The test environment parameters are used to characterize the test environment in which the target device is located. For example, the test environment parameters may be frequency points, cells, etc. A cell is a service area divided into several smaller areas, each of which is covered by a low-power base station transmitter.
[0071] Specifically, the test device and the comparison device are in the same test environment. During the test process, the target applications on the test device and the comparison device obtain the corresponding parameter interface through the code, obtain the values corresponding to the test parameters displayed on the first page, and display the obtained test parameter values at the corresponding positions of the first page.
[0072] In some embodiments, the user may determine whether the test device and the comparison device are in the same test environment by comparing the test environment parameters displayed on the first page of the test device and the comparison device.
[0073] Exemplarily, based on the test environment parameters in the first page displayed by the target device, it is determined whether the test device and the comparison device are in the same test environment; if not, the test is stopped, and the test device and the comparison device are adjusted to be in the same test environment to re-test.
[0074] Specifically, the test environment parameters displayed by the test device and the test environment parameters displayed by the comparison device are obtained, and the two are compared. If the frequency points and cells are different, it is determined that the test environments of the test device and the comparison device are different. If the test environments of the test device and the comparison device are different, it may cause differences in the test results. Therefore, if it is possible to promptly detect that the test environment of the test device or the comparison device has changed, the network settings of the test device or the comparison device can be adjusted in time to make the test device and the comparison device in the same frequency cell to ensure the consistency of the test environment, so as to retest and improve the test efficiency.
[0075] For example, when conducting a video browsing test on the test device, you can select frequency cells, time points and other test parameters as target test parameters, so that when problems such as lag occur, you can record the time point, frequency cell, etc. when the current problem occurs in real time to confirm whether the log data is valid.
[0076] S13. Update the value of the test parameter in the first page according to the test parameter value, and display it on the first page.
[0077] Specifically, the test parameter values at the corresponding positions of each test parameter in the first page on the test device are updated in real time according to the test values, and the test parameter values at the corresponding positions of each test parameter in the first page on the comparison device are also updated in real time according to the test values to ensure the accuracy of the test parameter values displayed on the first page.
[0078] In some embodiments, in order to ensure that the test parameters displayed on the display interfaces of the test device and the comparison device are the test parameters required by the user, the test parameters to be displayed may be selected according to the test case.
[0079] Exemplarily, after the test device and the comparison device display a first page, in response to a user's selection operation on a target test parameter in the first page, the first page is switched to a second page; and the target test parameter is displayed in the second page.
[0080] The target test parameters are one or more parameters in the test parameters in the first page, for example, refer to Figure 2 As shown, Figure 2 This is a schematic diagram of the second page of the target device in one embodiment of the present application. On the first page, the user selects the time point, frequency point, cell, modulation mode, signal, signal-to-noise ratio and resource block allocated by the network for the test, and the time point, frequency point, cell, modulation mode, signal, signal-to-noise ratio and resource block allocated by the network are displayed on the second page as target test parameters.
[0081] In some embodiments, a test case of a test device is obtained, and a target test parameter is determined according to the test case, so that the target test parameter can be selected from the test parameters on the first page.
[0082] For the target test parameters displayed on the second page, the test parameter values of the target device during the test process can be monitored in real time, and the values of the target test parameters in the second page can be updated according to the test parameter values.
[0083] S14, comparing the test parameter values of the test device and the comparison device, and determining the test result of the test device according to the comparison result.
[0084] The comparison result may represent the difference between the test parameter value of the test device and the corresponding test parameter value of the comparison device.
[0085] In some embodiments, the test parameter values of the test device and the comparison device are compared; when the test device and the comparison device are in the same test environment, if the comparison result shows that the test parameter value of the test device does not meet the standard corresponding to the test parameter value of the comparison device, the test result of the test device is determined to be abnormal, and the log data is saved.
[0086] For example, if the test device and the comparison device are in the same test environment, such as in the same frequency cell, if the test device has a freeze and the comparison device is normal, then the corresponding test parameter value of the test device does not meet the standard corresponding to the test parameter value of the comparison device, and the test result of the test device is determined to be abnormal. The log data is saved and provided to R&D personnel to improve the performance of the test device.
[0087] Based on the test result acquisition method provided in the embodiment of the present application, the tester can timely judge whether the current network is stable and whether the test is effective, thereby reducing the number of times the log is returned, thereby improving work efficiency and saving work time.
[0088] During the test process or after the test is completed, in response to a user's closing operation on the target application, the first page is closed; or in response to a user's closing operation on the target application, the second page is closed.
[0089] Exemplarily, when the user closes the target application of the test device and the test device exits the target application, the test parameters displayed on the first page or the target test parameters displayed on the second page disappear. When the user closes the target application of the comparison device and the comparison device exits the target application, the test parameters displayed on the first page or the target test parameters displayed on the second page disappear.
[0090] The embodiment of the present application provides a test result acquisition method, including: in response to a user-triggered startup operation for a target application, displaying a first page in a display interface of a target device, the first page including test parameters, and the target device including a test device and a comparison device; real-time monitoring of the test parameter value of the target device during the test; updating the value of the test parameter in the first page according to the test parameter value, and displaying it on the first page; comparing the test parameter values of the test device and the comparison device, and determining the test result of the test device according to the comparison result. Since the target application is installed on the test device and the comparison device, during the test process, if the target application is started, the test parameters can be displayed, so the tester can obtain the test parameters in time, and thus can timely find out whether a test abnormality occurs through the test parameter values of the test device and the comparison device, and whether to re-test. Compared with the related art in which log data is exported for analysis after the test is completed, it can avoid wasting test time and improve test efficiency.
[0091] Based on the same inventive concept, as an implementation of the above method, the embodiment of the present application also provides a test result acquisition device for executing the above embodiment. The device embodiment corresponds to the above method embodiment. For ease of reading, the device embodiment will no longer repeat the details of the above method embodiment one by one, but it should be clear that the test result acquisition device in this embodiment can correspond to all the contents of the above method embodiment.
[0092] Figure 3 A schematic diagram of the structure of the test result acquisition device provided in the embodiment of the present application, such as Figure 3 As shown, the test result acquisition device 300 provided in this embodiment includes:
[0093] The display module 310 is used to display a first page in a display interface of a target device in response to a start-up operation for a target application triggered by a user, wherein the first page includes test parameters, and the target device includes a test device and a comparison device;
[0094] A monitoring module 320, used for real-time monitoring of the test parameter value of the target device during the test process;
[0095] An updating module 330, configured to update the value of the test parameter in the first page according to the test parameter value, and display it on the first page;
[0096] The determination module 340 is used to compare the test parameter values of the test device and the comparison device, and determine the test result of the test device according to the comparison result.
[0097] When the test result acquisition device provided in the embodiment executes the test result acquisition method, since the target application is installed on the test device and the comparison device, during the test process, if the target application is started, the test parameters can be displayed, so the tester can obtain the test parameters in time. Therefore, through the test parameter values of the test device and the comparison device, it is possible to timely discover whether a test abnormality occurs and whether to re-test. Compared with the related art of exporting log data for analysis after the test is completed, it can avoid wasting test time and improve test efficiency.
[0098] In some embodiments, the apparatus further comprises a switching module, configured to:
[0099] In response to a user's selection operation on a target test parameter in the first page, the first page is switched to a second page; and the target test parameter is displayed in the second page.
[0100] In some embodiments, the monitoring module is specifically used to monitor the test parameter value of the target device in real time during the test process; and update the value of the target test parameter in the second page according to the test parameter value.
[0101] In some embodiments, the test parameters displayed in the first page include test environment parameters, and the test environment parameters are used to characterize the test environment in which the target device is located;
[0102] The device also includes a judgment module, which is used to: judge whether the test device and the comparison device are in the same test environment based on the test environment parameters in the first page displayed by the target device; if not, stop the test and adjust the test device and the comparison device to be in the same test environment to re-test.
[0103] In some embodiments, the determining module is specifically configured to:
[0104] Compare the test parameter values of the test device and the comparison device; when the test device and the comparison device are in the same test environment, if the comparison result shows that the test parameter value of the test device does not meet the standard corresponding to the test parameter value of the comparison device, determine that the test result of the test device is abnormal, and save the log data.
[0105] In some embodiments, the determining module is further configured to:
[0106] Acquire a test case of the test device; and determine target test parameters according to the test case.
[0107] In some embodiments, the device further comprises a closing module, configured to:
[0108] In response to a user closing operation on the target application, the first page is closed.
[0109] The test result acquisition device provided in this embodiment can execute the test result acquisition method provided in the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here. Each module in the above test result acquisition device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0110] In one embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the test result acquisition methods described in the above method embodiments when executing the computer program.
[0111] For example, Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown, the electronic device provided in this embodiment includes: a memory 41 and a processor 42, the memory 41 is used to store a computer program; the processor 42 is used to execute the steps in the test result acquisition method provided in the above method embodiment when calling the computer program, and its implementation principle and technical effect are similar, which will not be repeated here. Those skilled in the art can understand that Figure 4 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0112] In one embodiment, the test result acquisition method provided by the present application can be implemented in the form of a computer program. The computer program can be Figure 4 The memory of the electronic device may store various program modules constituting the electronic device, for example, Figure 3 The display module 310 and the update module 330 are shown. The computer program composed of various program modules enables the processor to execute the steps of the test result acquisition method of each embodiment of the present application described in this specification.
[0113] In one embodiment, an electronic device is provided, including a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: in response to a startup operation for a target application triggered by a user, displaying a first page in a display interface of the target device, wherein the first page includes test parameters, and the target device includes a test device and a comparison device; real-time monitoring of the test parameter value of the target device during the test; updating the value of the test parameter in the first page according to the test parameter value, and displaying it on the first page; comparing the test parameter values of the test device and the comparison device, and determining the test result of the test device according to the comparison result.
[0114] In one embodiment, when the processor executes the computer program, the following steps are further implemented: in response to a user's selection operation on a target test parameter in the first page, switching the first page to a second page; and displaying the target test parameter in the second page.
[0115] In one embodiment, when the processor executes the computer program, the following steps are also implemented: real-time monitoring of the test parameter value of the target device during the test process; and updating the value of the target test parameter in the second page according to the test parameter value.
[0116] In one embodiment, the test parameters displayed in the first page include test environment parameters, which are used to characterize the test environment in which the target device is located; when the processor executes the computer program, the following steps are also implemented: based on the test environment parameters in the first page displayed by the target device, it is determined whether the test device and the comparison device are in the same test environment; if not, the test is stopped, and the test device and the comparison device are adjusted to be in the same test environment to re-test.
[0117] In one embodiment, when the processor executes the computer program, the following steps are also implemented: comparing the test parameter values of the test device and the comparison device; when the test device and the comparison device are in the same test environment, if the comparison result shows that the test parameter value of the test device does not meet the standard corresponding to the test parameter value of the comparison device, then determining that the test result of the test device is abnormal, and saving the log data.
[0118] In one embodiment, when the processor executes the computer program, the following steps are further implemented: obtaining a test case of the test device; and determining a target test parameter according to the test case.
[0119] In one embodiment, when the processor executes the computer program, the processor further implements the following steps: in response to a user closing operation on the target application, closing the first page.
[0120] When the electronic device provided in the embodiment of the present application executes the test result acquisition method, since the target application is installed on the test device and the comparison device, during the test process, if the target application is started, the test parameters can be displayed, so the tester can obtain the test parameters in time. Therefore, through the test parameter values of the test device and the comparison device, it is possible to timely discover whether a test abnormality occurs and whether to re-test. Compared with the related art of exporting log data for analysis after the test is completed, it can avoid wasting test time and improve test efficiency.
[0121] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: in response to a startup operation for a target application triggered by a user, a first page is displayed in a display interface of a target device, wherein the first page includes test parameters, and the target device includes a test device and a comparison device; the test parameter value of the target device during the test is monitored in real time; the value of the test parameter in the first page is updated according to the test parameter value, and displayed on the first page; the test parameter values of the test device and the comparison device are compared, and the test result of the test device is determined according to the comparison result.
[0122] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to a user's selection operation on a target test parameter in the first page, switching the first page to a second page; and displaying the target test parameter in the second page.
[0123] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: real-time monitoring of the test parameter value of the target device during the test process; and updating the value of the target test parameter in the second page according to the test parameter value.
[0124] In one embodiment, the test parameters displayed in the first page include test environment parameters, which are used to characterize the test environment in which the target device is located; when the computer program is executed by the processor, the following steps are also implemented: based on the test environment parameters in the first page displayed by the target device, determine whether the test device and the comparison device are in the same test environment; if not, stop the test, and adjust the test device and the comparison device to be in the same test environment to re-test.
[0125] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: comparing the test parameter values of the test device and the comparison device; when the test device and the comparison device are in the same test environment, if the comparison result shows that the test parameter value of the test device does not meet the standard corresponding to the test parameter value of the comparison device, then determining that the test result of the test device is abnormal, and saving the log data.
[0126] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: obtaining a test case of the test device; and determining a target test parameter according to the test case.
[0127] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: in response to a user closing operation on the target application, closing the first page.
[0128] When the computer program provided in the embodiment of the present application is executed by an electronic device, since the target application is installed on the test device and the comparison device, during the test process, if the target application is started, the test parameters can be displayed, so the tester can obtain the test parameters in time. Therefore, through the test parameter values of the test device and the comparison device, it is possible to timely discover whether a test abnormality occurs and whether to re-test. Compared with the related art of exporting log data for analysis after the test is completed, it can avoid wasting test time and improve test efficiency.
[0129] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static random access memory (SRAM) and dynamic random access memory (DRAM).
[0130] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0131] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, 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 described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for obtaining test results, It is characterized in that include: In response to a start-up operation for a target application triggered by a user, a first page is displayed in a display interface of a target device, wherein the first page includes test parameters, and the target device includes a test device and a comparison device; Real-time monitoring of test parameter values of the target device during the test; updating the value of the test parameter in the first page according to the test parameter value, and displaying it on the first page; The test parameter values of the test device and the comparison device are compared, and the test result of the test device is determined according to the comparison result.
2. The method according to claim 1, It is characterized in that After displaying the first page in a display page of the target device in response to a start-up operation for the target application triggered by the user, the method further includes: In response to a user's selection operation of a target test parameter in the first page, switching the first page to a second page; The target test parameters are displayed in the second page.
3. The method according to claim 2, It is characterized in that The real-time monitoring of the test parameter value of the target device during the test process, and updating the value of the test parameter in the first page according to the test parameter value, includes: Real-time monitoring of test parameter values of the target device during the test; The value of the target test parameter in the second page is updated according to the test parameter value.
4. The method according to claim 1, It is characterized in that The test parameters displayed in the first page include test environment parameters, and the test environment parameters are used to characterize the test environment in which the target device is located; After updating the value of the test parameter in the first page according to the test parameter value, the method further includes: Determining, according to the test environment parameters in the first page displayed by the target device, whether the test device and the comparison device are in the same test environment; If not, the test is stopped, and the test device and the comparison device are adjusted to be in the same test environment to re-perform the test.
5. The method according to claim 4, It is characterized in that The comparing the test parameter values of the test device and the comparison device, and determining the test result of the test device according to the comparison result, includes: comparing test parameter values of the test device and the comparison device; When the test device and the comparison device are in the same test environment, if the comparison result shows that the test parameter value of the test device does not meet the standard corresponding to the test parameter value of the comparison device, it is determined that the test result of the test device is abnormal and the log data is saved.
6. The method according to claim 2, It is characterized in that Before switching the first page to the second page in response to a user selecting a target test parameter in the first page, the method further includes: Obtaining a test case for the test device; Target test parameters are determined according to the test case.
7. The method according to claim 1, It is characterized in that The method further comprises: In response to a user closing operation on the target application, the first page is closed.
8. A test result acquisition device, It is characterized in that include: A display module, configured to display a first page in a display interface of a target device in response to a start-up operation for a target application triggered by a user, wherein the first page includes test parameters, and the target device includes a test device and a comparison device; A monitoring module, used for real-time monitoring of the test parameter values of the target device during the test process; An updating module, used for updating the value of the test parameter in the first page according to the test parameter value, and displaying it on the first page; The determination module is used to compare the test parameter values of the test device and the comparison device, and determine the test result of the test device according to the comparison result.
9. An electronic device, include: A memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the test result acquisition method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the test result acquisition method according to any one of claims 1 to 7 is implemented.
