Computer batch testing method, device, electronic equipment and storage medium
By receiving and displaying feedback information from computer batch tests in real time, it solves the problem of users being unable to monitor test progress in real time, improves testing efficiency and data transmission efficiency, and ensures the real-time and reliability of computer batch tests.
Patent Information
- Application Number
- CN202311785364.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-12-25
AI Technical Summary
In computer batch testing, users cannot view test progress and status in real time, which limits real-time monitoring and feedback of the testing process.
By obtaining the test number and list input by the user, the machine under test and the test script are queried, feedback information is received in real time and the test status is displayed, including testing, failed and successful, and the reliability and efficiency of data transmission are ensured through a two-way communication channel.
It enables users to have real-time understanding of test progress and results, improves test efficiency, identifies abnormal situations, and reduces data transmission costs and time.
Smart Images

Figure CN117453575B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of computer testing, and in particular to a computer batch testing method, device, electronic equipment and storage medium. Background Art
[0002] At present, in order to meet production needs, it is necessary to perform batch testing on multiple computers in a production environment and monitor the performance of the computers to ensure that when a computer failure occurs in the production environment, the problem can be discovered and solved quickly.
[0003] In the related art, when batch testing of computers is performed, it is necessary to disconnect the connection between the user-side server and the tested machine, which results in the user being unable to view the progress and status of the test in real time, limiting the user's real-time monitoring and feedback of the test process.
[0004] Therefore, there is an urgent need for a computer batch testing method, device, electronic device and storage medium that can solve the above problems. Summary of the invention
[0005] The present application provides a computer batch testing method, device, electronic device and storage medium, which solves the problem that users cannot view the progress and status of the test in real time in traditional methods, which limits the user's real-time monitoring and feedback of the test process.
[0006] In the first aspect of the present application, a computer batch testing method, device, electronic device and storage medium are provided, which are applied to a testing platform, and the method includes: obtaining multiple test numbers and multiple test lists input by a user, one test number corresponds to one test list; in a preset tested machine library, querying a first tested machine corresponding to a first test number; wherein the first test number is any one of the multiple test numbers, and the preset tested machine library includes the correspondence between the test number and the tested machine; in a preset test script library, querying a first test script corresponding to the first test list; wherein the first test list is a test list corresponding to the first test number in multiple test lists, and the preset test script library includes the correspondence between the test list and the test script; calling the first test script to test the first tested machine; receiving feedback information of the first tested machine in real time and displaying the feedback information to the user, the feedback information including the first test number and its corresponding test status, the test status including testing, test failure and test success.
[0007] By adopting the above technical solution, users are allowed to enter multiple test numbers and test lists, and test operations are automatically managed and executed based on these inputs. This helps improve test efficiency, especially when large-scale tests need to be performed. The solution realizes real-time reception of feedback information from the machine under test, including test status. This allows users to understand the progress and results of the test in a timely manner without having to wait until the test is over to view it. The test status is displayed to the user, including testing, test failure, and test success, so that users can quickly identify problems and take appropriate actions.
[0008] Optionally, calling the first test script list to test the first machine under test specifically includes: obtaining a first download link corresponding to the first test script; sending the first download link to the first machine under test corresponding to the first test script, so that the first machine under test downloads the test code corresponding to the first test script according to the first download link for testing.
[0009] By adopting the above technical solution, by obtaining the download link corresponding to the test script and then sending the download link to the machine under test, the machine under test can remotely download the test script, which realizes remote automatic testing. At the same time, sending only the download link instead of the complete test script can reduce the cost and time of data transmission. The test script may be very large, and only sending the link can significantly reduce the transmission overhead. By dynamically obtaining the test script, it can be ensured that the script received by the machine under test is the latest version. This helps to maintain the consistency of the test, especially when updating and maintaining the test script. It saves storage and network bandwidth resources.
[0010] Optionally, after receiving the feedback information of the first tested machine in real time and displaying the feedback information to the user, the method further includes: counting the number of feedback information sent by the tested machines corresponding to the multiple test numbers; and determining whether the number of information is the same as the number of the multiple test numbers;
[0011] If the number of information is different from the number of multiple test numbers, determine a second test number among the multiple test numbers, where the second test number is a test number not included in the test numbers corresponding to the multiple feedback information; and determine a second tested machine in an offline state based on the second test number.
[0012] By adopting the above technical solution, by counting the number of feedback information, it is possible to detect whether any tested machine has failed to send feedback information. If the number of information is different from the number of test numbers, it means that some tested machines may have encountered problems and cannot send feedback information, or are not online. This helps to identify abnormal situations. Once it is detected that the number of information is different from the number of test numbers, the test platform can further determine which tested machines corresponding to which test numbers are offline for further processing.
[0013] Optionally, after receiving feedback information from the first machine under test in real time and displaying the feedback information to the user, the method also includes: if the test status is successful, querying the second test script corresponding to the first test list in the preset test script library, wherein a test list in the preset test script library corresponds to at least one test script; calling the second test script to test the first machine under test.
[0014] By adopting the above technical solution, if the first test script is tested successfully, the second test script will be automatically executed, thereby realizing an automated test process. This can improve test efficiency, especially in batch test scenarios. By executing multiple test scripts in succession, the system is able to perform multiple tests to ensure the performance and stability of the machine under test. This helps to discover potential problems and abnormal situations. By executing different test scripts, the test platform can perform more comprehensive tests, including various test scenarios and conditions.
[0015] Optionally, after determining the second machine under test that is offline according to the second test number, the method also includes: determining the physical address data corresponding to the second test number according to a preset address correspondence rule, so that the user can perform manual testing on the second machine under test, the physical address data is the location information of the machine under test, the location information includes the factory number and the machine under test number, and the address correspondence rule is a pre-established correspondence rule between the test number of the machine under test and the physical address data.
[0016] By adopting the above technical solution, the physical location information of the machine under test in the offline state, including the plant number and the machine under test number, can be accurately determined by using the preset address correspondence rules. This helps users quickly find the actual location of the machine under test. After determining the location of the machine under test, users can perform manual testing to further diagnose the cause of the offline, fix the problem, or perform other necessary operations. Users can take proactive measures to solve the problem instead of relying solely on automated testing. By providing accurate location information, the troubleshooting process can be accelerated and maintenance time and costs can be reduced. Establishing the correspondence rules between the test number and the physical address data provides an effective way to manage and associate test data and physical location data.
[0017] Optionally, sending the first download link to the first tested machine corresponding to the first test script specifically includes: sending the first download link to the first tested machine corresponding to the first test script through a first communication channel.
[0018] Through the above technical solution, a separate communication channel is used to send signals, thereby preventing the sent signals from being interfered with during the sending process.
[0019] Optionally, receiving feedback information from the first machine under test in real time specifically includes: receiving feedback information sent by the first machine under test in real time through a second communication channel, wherein a communication frequency of the second communication channel is different from a communication frequency of the first communication channel.
[0020] By adopting the above technical solution, a two-way communication system is established through the first communication channel and the second communication channel, allowing two-way data transmission between the test platform and the machine under test. This two-way communication provides the test platform with more control and monitoring capabilities. This helps to ensure reliable data transmission. By receiving feedback information sent by the machine under test in real time through the second communication channel, the test platform can quickly understand the test status, progress and results. This helps to take necessary measures in a timely manner, such as retesting or reporting test failures. By separating the communication channels, the test platform can better control the transmitted data and information.
[0021] In a second aspect of the present application, a computer batch testing device is provided, the device comprising: a test platform comprising an acquisition module, a query module, a sending module and a processing module, wherein: the acquisition module is used to acquire multiple test numbers and multiple test lists input by a user, one test number corresponds to one test list; the query module is used to query a first machine under test corresponding to a first test number in a preset machine under test library; wherein the first test number is any one of the multiple test numbers, and the preset machine under test library includes the correspondence between the test number and the machine under test; the query module is also used to query a first test script corresponding to a first test list in a preset test script library; wherein the first test list is a test list corresponding to the first test number in multiple test lists, and the preset test script library includes the correspondence between the test list and the test script; the sending module is used to call the first test script to test the first machine under test; the processing module is used to receive feedback information of the first machine under test in real time and display the feedback information to the user, the feedback information includes the first test number and its corresponding test status, and the test status includes testing, test failure and test success.
[0022] Optionally, the sending module calls the first test script list to test the first machine under test, specifically including: the acquisition module obtains the first download link corresponding to the first test script; the sending module sends the first download link to the first machine under test corresponding to the first test script, so that the first machine under test downloads the test code corresponding to the first test script according to the first download link for testing.
[0023] Optionally, after the processing module receives the feedback information of the first machine under test in real time and displays the feedback information to the user, the method also includes: the processing module counts the number of feedback information sent by the machines under test corresponding to multiple test numbers; the processing module determines whether the number of information is the same as the number of multiple test numbers; if the number of information is different from the number of multiple test numbers, the processing module determines a second test number among the multiple test numbers, and the second test number is a test number not included in the test numbers corresponding to the multiple feedback information; based on the second test number, the processing module determines a second machine under test that is in an offline state.
[0024] Optionally, after the processing module receives feedback information from the first machine under test in real time and displays the feedback information to the user, the method also includes: if the test status is successful, then in the preset test script library, the query module queries the second test script corresponding to the first test list, wherein a test list in the preset test script library corresponds to at least one test script; the sending module calls the second test script to test the first machine under test.
[0025] Optionally, after the processing module determines the second machine under test that is offline based on the second test number, the method also includes: based on a preset address correspondence rule, the processing module determines the physical address data corresponding to the second test number, so that the user can perform manual testing on the second machine under test, the physical address data is the location information of the machine under test, the location information includes the factory number and the machine under test number, and the address correspondence rule is a pre-established correspondence rule between the test number of the machine under test and the physical address data.
[0026] Optionally, the sending module sends the first download link to the first tested machine corresponding to the first test script, specifically including: the sending module sends the first download link to the first tested machine corresponding to the first test script through the first communication channel.
[0027] Optionally, the processing module receives feedback information from the first machine under test in real time, specifically including: the processing module receives feedback information sent by the first machine under test in real time through a second communication channel, and the communication frequency of the second communication channel is different from the communication frequency of the first communication channel.
[0028] In the third aspect of the present application, an electronic device is provided, including a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device performs any of the methods described above.
[0029] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any of the above methods is executed.
[0030] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0031] 1. Allow users to enter multiple test numbers and test lists, and automatically manage and execute test operations based on these inputs, which helps improve test efficiency, especially when large-scale testing is required. The solution realizes real-time feedback from the machine under test, including test status. This allows users to understand the progress and results of the test in a timely manner without having to wait until the test is over. The test status is displayed to the user, including testing, test failure, and test success, so that users can quickly identify problems and take appropriate actions;
[0032] 2. By obtaining the download link corresponding to the test script and then sending the download link to the machine under test, the machine under test can remotely download the test script, which realizes remote automatic testing. At the same time, sending only the download link instead of the complete test script can reduce the cost and time of data transmission. Test scripts can be very large, and only sending the link can significantly reduce the transmission overhead. By dynamically obtaining the test script, you can ensure that the machine under test receives the latest version of the script. This helps maintain the consistency of the test, especially when updating and maintaining the test script. It saves storage and network bandwidth resources.
[0033] 3. By counting the number of feedback messages, it is possible to detect whether any of the tested machines failed to send feedback messages. If the number of messages is different from the number of test numbers, it means that some of the tested machines may have encountered problems and cannot send feedback messages, or are not online. This helps to identify abnormal situations. Once it is detected that the number of messages is different from the number of test numbers, the test platform can further determine which tested machines corresponding to which test numbers are offline for further processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a flowchart of a computer batch testing method disclosed in an embodiment of the present application.
[0035] Figure 2 It is a structural schematic diagram of a computer batch testing device disclosed in an embodiment of the present application.
[0036] Figure 3 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application.
[0037] Explanation of the reference numerals: 201, acquisition module; 202, query module; 203, sending module; 204, processing module; 301, processor; 302, communication bus; 303, user interface; 304, network interface; 305, memory. DETAILED DESCRIPTION
[0038] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0039] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.
[0040] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0041] The present application provides a computer batch testing method, device, electronic device and storage medium, referring to Figure 1 , Figure 1 1 is a flow chart of a computer batch testing method disclosed in an embodiment of the present application. The method is applied to a server and includes steps S101 to S105, which are as follows:
[0042] Step S101: obtaining multiple test numbers and multiple test lists input by a user, where one test number corresponds to one test list.
[0043] In the above steps, the user enters multiple test numbers and multiple test lists through the test platform interface. A test number corresponds to a test list, and a test list contains one or more test items. The test items can be consistency tests, firmware upgrades, and aging tests, etc. At the same time, a test item can correspond to one or more test scripts, that is, a test list corresponds to one or more test scripts.
[0044] Step S102: In a preset tested machine library, query a first tested machine corresponding to a first test number; wherein the first test number is any one of a plurality of test numbers, and the preset tested machine library includes a correspondence between the test numbers and the tested machines.
[0045] In the above steps, a preset tested machine library is pre-built, and the preset tested machine library contains the correspondence between the test number and the tested machine. When the first test number input by the user is obtained, a query operation is performed to query the first tested machine corresponding to the first test number, and the first test number is any one of the multiple test numbers input by the user. By building the correspondence between the test number and the tested machine, the tested machine that needs to be tested can be determined.
[0046] Step S103: In the preset test script library, query the first test script corresponding to the first test list; wherein the first test list is a test list corresponding to the first test number in multiple test lists, the first test list corresponds to the first test number, and the preset test script library includes the correspondence between the test lists and the test scripts.
[0047] In the above steps, a preset test script library is pre-built, and the preset test script library contains the correspondence between the test list and the test script. One test list corresponds to one or more test items, and one test item corresponds to one or more test scripts. The test script includes the test code to be executed and the version information of the script. By establishing the correspondence between the test number, the machine under test, the test list and the test script, the test management process is simplified and the manageability of the test is improved.
[0048] Step S104: calling the first test script to test the first machine under test.
[0049] In the above steps, calling the first test script to test the first machine under test specifically includes: obtaining a first download link corresponding to the first test script; sending the first download link to the first machine under test corresponding to the first test script, so that the first machine under test downloads the test code corresponding to the first test script according to the first download link for testing.
[0050] In a possible implementation, sending the first download link to the first tested machine corresponding to the first test script specifically includes: sending the first download link to the first tested machine corresponding to the first test script through a first communication channel.
[0051] Specifically, the test platform will first obtain the first test script from the preset test script library, as well as the download link corresponding to the test script. These test scripts may be pre-written and stored test codes, and the download link is the URL pointing to the test script. The test platform determines the target machine under test to be tested, and then sends a paging message to the machine under test through the first communication channel, similar to the dialing of a mobile phone, that is, the test platform attempts to establish a communication connection and notify the machine under test to prepare to receive the test script. After receiving the paging message, the machine under test will respond to the request of the test platform. Once the machine under test responds, the test platform will send a first download link to the machine under test through the first communication channel. The machine under test downloads the corresponding test script file through the link and executes the test script.
[0052] Step S105: receiving feedback information from the first tested machine in real time and displaying the feedback information to the user, wherein the feedback information includes the first test number and its corresponding test status, wherein the test status includes testing in progress, test failure, and test success.
[0053] In the above steps, firstly, a plurality of test numbers and corresponding test lists are obtained from the user. Among them, one test number corresponds to one test list, and each test number corresponds to one machine under test. According to the corresponding relationship, the machine under test and the test list corresponding to the machine under test can be determined. The test list may include one test item or multiple test items. The first test script corresponding to the first test list is found in the preset script list. After finding the acquired first test script, the test platform calls the script to execute the test. The specific execution process of the test can refer to the content in the above step S104. Once the test is started, the machine under test needs to send feedback information to the test platform in real time. The test platform can present the received feedback information to the user in a visual manner. The feedback information includes the test number of the machine under test and the test status corresponding to the test number. The user can view the test status of each machine under test in real time. The test status includes testing, test failure, and test success.
[0054] In a possible implementation, receiving feedback information from the first machine under test in real time and displaying the feedback information to a user specifically includes: receiving feedback information sent by the first machine under test in real time through a second communication channel, wherein the communication frequency of the second communication channel is different from the communication frequency of the first communication channel.
[0055] Specifically, the second communication channel is used to receive the feedback information of the first machine under test, and the communication is divided into two channels, one for sending and one for receiving, which helps to ensure the stability and reliability of communication, which reduces communication interference. At the same time, the first communication channel and the second communication channel use different frequencies for data, that is, different frequencies are used to send and receive signals. At this time, by allocating different frequencies, signal interference can be reduced. Using different frequencies can achieve simultaneous two-way communication. The test platform can send messages to the frequency of the machine under test, and the machine under test can listen and receive messages on its designated receiving frequency, so that sending and receiving can be carried out simultaneously without waiting for the completion of the other party.
[0056] In a possible implementation, after receiving feedback information from the first machine under test in real time and displaying the feedback information to the user, the method also includes: counting the number of feedback information sent by multiple machines under test; determining whether the number of information is the same as the number of multiple test numbers; if the number of information is different from the number of multiple test numbers, determining a second test number among the multiple test numbers, the second test number being a test number not included in the test numbers corresponding to the multiple feedback information; and determining a second machine under test that is offline based on the second test number.
[0057] Specifically, after completing the test of the first machine under test, the test platform will continue to receive feedback information sent by the machine under test. Since the first test number is any one of multiple test numbers, the first machine under test is any one of the multiple machines under test that need to be tested. It can be obtained that the first test is the first test script of all test machines corresponding to all test numbers input by the user. After the test is completed, the test platform will count the received feedback information to determine the machines under test that have sent feedback information. The number of these feedback information may not completely match the number of test numbers input by the user, because some machines under test may not send feedback information. If the number of feedback information is different from the number of test numbers, the test platform will determine the second test number based on the test number not included in the feedback information. Once the second test number is determined, the test platform will search for the corresponding machine under test based on the second test number. These machines under test are considered to be offline.
[0058] In a possible implementation, after receiving feedback information from the first machine under test in real time and displaying the feedback information to the user, the method also includes: if the test status is successful, querying the second test script corresponding to the first test list in the preset test script library, wherein a test list in the preset test script library corresponds to at least one test script; calling the second test script to test the first machine under test.
[0059] Specifically, the test platform will receive feedback information sent by the first machine under test in real time. The feedback information includes the test status. If the test status indicates that the test is successful, the test platform will query the second test script corresponding to the first test list in the preset script library and call the second test script to test the first machine under test.
[0060] In a possible implementation, after determining the second machine under test that is offline according to the second test number, the method further includes: determining the physical address data corresponding to the second test number according to a preset address correspondence rule, so that the user can perform manual testing on the second machine under test, the physical address data is the location information of the machine under test, the location information includes the factory number and the machine under test number, and the address correspondence rule is a pre-established correspondence rule between the test number of the machine under test and the physical address data.
[0061] Specifically, different machines under test are numbered at the factory site, and a correspondence is established between the test number of the machine under test and its actual physical location information, that is, a preset address correspondence rule. Its actual physical location information includes the factory number and the machine under test number. For example, the machine under test with the test number 001 is located at the 5th position of the first factory, and the 5th position is the fifth in the first row. When a machine under test that has not sent feedback information is detected, the user can find the specific location of the second machine under test according to the preset address correspondence rule, and then go to the designated location according to the location information to perform corresponding manual operations on the second machine under test.
[0062] This embodiment discloses a computer batch testing device, referring to Figure 1 The device includes an acquisition module 201, a query module 202, a sending module 203 and a processing module 204, wherein: the acquisition module 201 is used to acquire multiple test numbers and multiple test lists input by a user, and one test number corresponds to one test list; the query module 202 is used to query the first tested machine corresponding to the first test number in the preset tested machine library; wherein the first test number is any one of the multiple test numbers, and the preset tested machine library includes the correspondence between the test number and the tested machine; the query module 202 is also used to query the first test script corresponding to the first test list in the preset test script library; wherein the first test list is the test list corresponding to the first test number in the multiple test lists, and the preset test script library includes the correspondence between the test list and the test script; the sending module 203 is used to call the first test script to test the first tested machine; the processing module 204 is used to receive feedback information of the first tested machine in real time and display the feedback information to the user, the feedback information includes the first test number and the test status corresponding to it, and the test status includes testing, test failure and test success.
[0063] In a possible implementation, the sending module 203 calls the first test script list to test the first machine under test, specifically including: the acquisition module 201 acquires the first download link corresponding to the first test script; the sending module 203 sends the first download link to the first machine under test corresponding to the first test script, so that the first machine under test downloads the test code corresponding to the first test script according to the first download link for testing.
[0064] In a possible implementation, after the processing module 204 receives the feedback information of the first machine under test in real time and displays the feedback information to the user, the method also includes: the processing module 204 counts the number of feedback information sent by the machines under test corresponding to multiple test numbers; the processing module 204 determines whether the number of information is the same as the number of multiple test numbers; if the number of information is different from the number of multiple test numbers, the processing module 204 determines a second test number among the multiple test numbers, and the second test number is a test number not included in the test numbers corresponding to the multiple feedback information; based on the second test number, the processing module 204 determines a second machine under test that is in an offline state.
[0065] In a possible implementation, after the processing module 204 receives feedback information from the first machine under test in real time and displays the feedback information to the user, the method also includes: if the test status is a successful test, then in the preset test script library, the query module 202 queries the second test script corresponding to the first test list, wherein a test list in the preset test script library corresponds to at least one test script; the sending module 203 calls the second test script to test the first machine under test.
[0066] In a possible implementation, after the processing module 204 determines the second machine under test that is offline based on the second test number, the method further includes: based on a preset address correspondence rule, the processing module 204 determines the physical address data corresponding to the second test number to facilitate a user to perform manual testing on the second machine under test, the physical address data is the location information of the machine under test, the location information includes the factory number and the machine under test number, and the address correspondence rule is a pre-established correspondence rule between the test number of the machine under test and the physical address data.
[0067] In a possible implementation, the sending module 203 sends the first download link to the first tested machine corresponding to the first test script, specifically including: the sending module 203 sends the first download link to the first tested machine corresponding to the first test script through the first communication channel.
[0068] In a possible implementation, the processing module 204 receives feedback information from the first machine under test in real time, specifically including: the processing module 204 receives feedback information sent by the first machine under test in real time through a second communication channel, and the communication frequency of the second communication channel is different from the communication frequency of the first communication channel.
[0069] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0070] This embodiment also discloses an electronic device, referring to Figure 3 The electronic device may include: at least one processor 301 , at least one communication bus 302 , a user interface 303 , a network interface 304 , and at least one memory 305 .
[0071] The communication bus 302 is used to realize the connection and communication between these components.
[0072] The user interface 303 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.
[0073] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0074] Among them, the processor 301 may include one or more processing cores. The processor 301 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the processor 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 301 can integrate one or a combination of a central processing unit 301 (Central Processing Unit, CPU), an image processor 301 (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 301, and it can be implemented separately through a chip.
[0075] Among them, the memory 305 may include a random access memory 305 (Random Access Memory, RAM), and may also include a read-only memory 305 (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may also be at least one storage device located away from the aforementioned processor 301. As shown in the figure, the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface 303 module, and an application program for a computer batch testing method.
[0076] exist Figure 3In the electronic device shown, the user interface 303 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 301 can be used to call an application program for a computer batch testing method stored in the memory 305. When executed by one or more processors 301, the electronic device executes one or more methods in the above-mentioned embodiments.
[0077] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0078] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0079] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0080] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0081] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0082] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory 305. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory 305 and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory 305 includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk.
[0083] The above are only exemplary embodiments of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, it will be easy for those skilled in the art to think of other embodiments of the present disclosure. This application is intended to cover any variation, use or adaptive change of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure.
Claims
1. A computer batch testing method, characterized in that: The method comprises: Acquire multiple test numbers and multiple test lists input by a user, where one test number corresponds to one test list; In a preset tested machine library, query a first tested machine corresponding to a first test number; wherein the first test number is any one of the multiple test numbers, and the preset tested machine library includes a correspondence between the test number and the tested machine; In a preset test script library, query a first test script corresponding to a first test list; wherein the first test list is a test list corresponding to the first test number in a plurality of the test lists, and the preset test script library includes a correspondence between the test lists and the test scripts; Calling the first test script to test the first tested machine; receiving feedback information from the first tested machine in real time and displaying the feedback information to the user, the feedback information including the first test number and its corresponding test status, the test status including testing in progress, test failure, and test success; The calling the first test script list to test the first tested machine specifically includes: Obtain a first download link corresponding to the first test script; The first download link is sent to a first tested machine corresponding to the first test script, so that the first tested machine downloads the test code corresponding to the first test script according to the first download link for testing.
2. The method according to claim 1, characterized in that: After receiving the feedback information of the first tested machine in real time and displaying the feedback information to the user, the method further includes: Counting the number of feedback messages sent by the tested machines corresponding to the multiple test numbers; Determining whether the number of the information is the same as the number of the plurality of test numbers; If the number of the information is different from the number of the multiple test numbers, determining a second test number among the multiple test numbers, where the second test number is a test number not included in the test numbers corresponding to the multiple feedback information; A second tested machine in an offline state is determined according to the second test number.
3. The method according to claim 1, characterized in that After receiving the feedback information of the first tested machine in real time and displaying the feedback information to the user, the method further includes: If the test status is that the test is successful, query the preset test script library for a second test script corresponding to the first test list, wherein one of the test lists in the preset test script library corresponds to at least one test script; The second test script is called to test the first tested machine.
4. The method according to claim 2, characterized in that: After determining the second tested machine in an offline state according to the second test number, the method further includes: According to the preset address correspondence rule, the physical address data corresponding to the second test number is determined to facilitate the user to perform manual testing on the second machine under test. The physical address data is the location information of the machine under test, and the location information includes the factory number and the machine under test number. The address correspondence rule is a pre-established correspondence rule between the test number of the machine under test and the physical address data.
5. The method according to claim 1, characterized in that The sending the first download link to the first tested machine corresponding to the first test script specifically includes: The first download link is sent to a first tested machine corresponding to the first test script through a first communication channel.
6. The method according to claim 5, characterized in that The real-time receiving of feedback information from the first tested machine specifically includes: The feedback information sent by the first tested machine is received in real time through a second communication channel, and the communication frequency of the second communication channel is different from the communication frequency of the first communication channel.
7. A computer batch testing device, characterized in that: The device is used to execute the method according to any one of claims 1 to 6, and comprises an acquisition module (201), a query module (202), a sending module (203) and a processing module (204), wherein: The acquisition module (201) is used to acquire multiple test numbers and multiple test lists input by a user, where one test number corresponds to one test list; The query module (202) is used to query a first tested machine corresponding to a first test number in a preset tested machine library; wherein the first test number is any one of a plurality of test numbers, and the preset tested machine library includes a correspondence between test numbers and tested machines; The query module (202) is further used to query a preset test script library for a first test script corresponding to a first test list; wherein the first test list is a test list corresponding to the first test number in a plurality of test lists, and the preset test script library includes a correspondence between test lists and test scripts; The sending module (203) is used to call the first test script to test the first tested machine; The processing module (204) is used to receive feedback information from the first machine under test in real time and display the feedback information to the user, wherein the feedback information includes the first test number and its corresponding test status, and the test status includes testing, test failure and test success.
8. An electronic device, characterized in that: It includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 6 is executed.
