Automatic testing method and device, equipment and storage medium
Through automated testing methods, call edge test nodes to record video streams in mobile phone tests, solving the problem that real-time live video broadcast and large-scale testing cannot be achieved in the prior art, and achieving efficient testing process transparency and traceability.
Patent Information
- Application Number
- CN202411796239.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2044-12-09
AI Technical Summary
Existing mobile phone testing methods cannot implement live video broadcasting functions and are difficult to scale to remote testing at scale, limiting the transparency and traceability of the test.
Through automated testing methods, edge testing nodes are called to perform test tasks on target devices and recorded the generated video stream to realize real-time live video broadcasting function. The distributed architecture design is used to deploy test resources in a distributed manner, and large-scale device management and scheduling are supported.
Realize live video broadcast of the test process, improves the transparency and traceability of the test, supports large-scale device testing, and enhances user experience and testing efficiency.
Smart Images

Figure CN119292950A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of testing technology, and in particular to an automated testing method, device, equipment and storage medium. Background Art
[0002] In the technical solutions of the prior art, mobile phone testing is mainly divided into two types: laboratory testing and simulator-based testing. Laboratory testing relies on real mobile phone devices and can simulate real user environments; simulator-based testing can be quickly deployed on computers. However, during the above testing process, users cannot view the screen and operation of the mobile phone device in real time during the test, which limits the transparency and traceability of the test. In addition, these tools are usually suitable for local or small-scale network environments and are difficult to expand to large-scale remote testing.
[0003] Therefore, how to provide a mobile phone testing method that can realize the real-time video live broadcast function and can be applied on a large scale is a technical problem to be solved in this field. Summary of the invention
[0004] The main purpose of this application is to provide an automated testing method, apparatus, computer equipment and storage medium, aiming to solve how to provide a mobile phone testing method that can realize real-time video live broadcast function and can be applied on a large scale, which is a technical problem to be solved in this field.
[0005] To achieve the above objectives, the present application provides an automated testing method, which includes: Receiving a test instruction; the test instruction is used to indicate a test on a target device; In response to the test instruction, calling an edge test node to execute a corresponding test task on the target device; the edge test node includes a plurality of devices to be tested and a task corresponding to each device to be tested; The edge test node is called to record the video stream generated when the target device executes the corresponding test task.
[0006] Optionally, the calling the edge test node to execute a corresponding test task on the target device includes: Calling the test resources associated with the test task through the edge test node; Controlling the target device to execute a corresponding test script through the test resource to generate a test result and a log file; the test script is determined based on the test task, and the log file includes a log generated when the target device executes the corresponding test script; The test results and log files are stored.
[0007] Optionally, calling the edge test node to record a video stream generated when the target device executes a corresponding test task includes: Calling the edge test node to capture the video generated when the target device executes the corresponding test task; The video screen is compressed and encoded to obtain the video stream.
[0008] Optionally, after calling the edge test node to record the video stream generated when the target device executes the corresponding test task, the method further includes: receiving an access request sent by a test terminal; In response to the access request, the video stream is sent to the test terminal.
[0009] Optionally, the sending the video stream to the test terminal includes: Calling the edge test node to encrypt the video stream to obtain an encrypted video stream; The encrypted video stream is sent to the test terminal.
[0010] Optionally, the calling the edge test node to execute a corresponding test task on the target device includes: Receive adjustment instructions sent by the test terminal; In response to the adjustment instruction, adjusting the test task; The edge test node is called to execute the adjusted test task on the target device.
[0011] Optionally, the method further comprises: During the testing of the target device, if a fault is detected, the test resources are backed up and the test task is interrupted; In the case that the failure condition does not exist, restarting the test resource controls the target device to retry the test task.
[0012] In addition, to achieve the above-mentioned purpose, the present application also provides an automated testing device, the automated testing device comprising: A test management platform, used to receive a test instruction; the test instruction is used to represent a test on a target device; In response to the test instruction, calling an edge test node; The edge test node is used to perform a corresponding test task on the target device; the edge test node includes a plurality of devices to be tested and a task corresponding to each device to be tested; Record the video stream generated when the target device executes the corresponding test task.
[0013] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution: The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any one of the automated testing methods proposed in the embodiments of the present application are implemented.
[0014] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of any one of the automated testing methods proposed in the embodiments of the present application are implemented.
[0015] Compared with the prior art, the embodiments of the present application have the following beneficial effects: The present application provides an automated testing method, apparatus, device and storage medium, the method comprising: receiving a test instruction; the test instruction is used to characterize the test of a target device; in response to the test instruction, calling an edge test node to perform a corresponding test task on the target device; the edge test node includes multiple devices to be tested and tasks corresponding to each device to be tested; calling the edge test node to record the video stream generated when the target device performs the corresponding test task. In an embodiment of the present application, in the process of automated testing of the target device, the video stream generated when the target device performs the corresponding test task is recorded, so as to realize the real-time video live broadcast function during the test process; through the distributed architecture design, the test resources are dispersedly deployed on the edge test nodes, and a large number of devices to be tested can be effectively managed and scheduled, realizing the large-scale application of automated testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 is an exemplary system architecture diagram to which the present application may be applied; Figure 2 is a flow chart of the automated testing method provided in an embodiment of the present application; Figure 3 is an application flow chart of test task scheduling provided by an embodiment of the present application; Figure 4 This is an application flow chart of live video broadcasting provided by an embodiment of the present application; Figure 5 is an application flow chart of the automated testing method provided in the embodiment of the present application; Figure 6 It is a structural schematic diagram of an embodiment of an automated testing device provided in an embodiment of the present application; Figure 7 It is a basic structural block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0018] The automated testing method provided in the embodiment of the present application is applied to an automated testing device. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" in the specification and claims of the present application and the above-mentioned drawings and any variations thereof are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0019] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0020] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0021] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0022] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social online platform software, etc.
[0023] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV), laptop computers, desktop computers, etc.
[0024] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0025] It should be noted that the automated testing method provided in the embodiments of the present application is generally executed by a server / terminal device, and accordingly, the automated testing apparatus is generally disposed in the server / terminal device.
[0026] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0027] Please refer to Figure 2 , shows a flow chart of an embodiment of the automated testing method proposed in the present application. The embodiment of the present application can acquire and process relevant data based on artificial intelligence technology.
[0028] In an optional application scenario, the automated testing method provided in the embodiment of the present application can be applied to an automated testing device, which includes a test management platform, an edge test node, a test terminal, and a target device. The test management platform is respectively connected to the edge test node and the test terminal in communication, the test terminal is respectively connected to the test management platform and the edge test node in communication, the edge test node is respectively connected to the test management platform, the test terminal, and the target device in communication, and the target device is also called a device to be tested.
[0029] The automated testing method provided in the embodiment of the present application comprises the following steps: S210, receiving a test instruction.
[0030] In this step, a test instruction is received.
[0031] An optional implementation is that the user performs corresponding operations on the test management platform to generate a test instruction, and the test management platform receives the test instruction.
[0032] Another optional implementation is that the test management platform receives the test instruction sent by the test terminal.
[0033] The test instruction is used to indicate that a test is performed on the target device.
[0034] S220: In response to the test instruction, call the edge test node to execute the corresponding test task on the target device.
[0035] After receiving the test instruction, the test management platform calls the edge test node in response to the test instruction.
[0036] The edge test node performs the corresponding test task on the target device. The edge test node includes multiple devices to be tested and tasks corresponding to each device to be tested. For specific implementation methods, please refer to the subsequent embodiments.
[0037] S230, calling the edge test node to record the video stream generated when the target device executes the corresponding test task.
[0038] In this step, in the process of calling the edge test node to execute the corresponding test task on the target device, the video stream generated when the target device executes the corresponding test task is recorded.
[0039] In an embodiment of the present application, during the process of automated testing of the target device, the video stream generated by the target device executing the corresponding test task is recorded, so as to realize the real-time video live broadcast function during the test process; through the distributed architecture design, the test resources are dispersedly deployed on the edge test nodes, so that a large number of devices to be tested can be effectively managed and scheduled, realizing the large-scale application of automated testing.
[0040] In addition, the test management platform supports a variety of devices to be tested and test scripts, and has high platform compatibility and flexibility.
[0041] In addition, the embodiment of the present application executes the test task by deploying the target device at the edge test node to ensure that the test environment is as close to the real scene as possible. At the same time, the data analysis and optimization capabilities of the test management platform are used to improve the accuracy and reliability of the test results.
[0042] Optionally, the calling the edge test node to execute a corresponding test task on the target device includes: Calling the test resources associated with the test task through the edge test node; Controlling the target device to execute a corresponding test script through the test resource to generate a test result and a log file; the test script is determined based on the test task, and the log file includes a log generated when the target device executes the corresponding test script; The test results and log files are stored.
[0043] In this embodiment, the edge test node calls the test resources associated with the test task, controls the target device to execute the corresponding test script through the test resources, generates test results and log files, and stores the test results and log files.
[0044] In an optional implementation manner, the test terminal sends a corresponding instruction to the test management platform to call the test results and log files, and the test management platform sends the above test results and log files to the test terminal.
[0045] It should be understood that the test script can be obtained by parsing the test task. The above log file includes the log generated when the target device executes the corresponding test script.
[0046] In this embodiment, the test resources are dispersedly deployed on the edge test nodes, which realizes the effective management and scheduling of the devices to be tested, enables the system to cope with larger-scale test needs, and improves the scalability and flexibility of the system. An efficient resource scheduling and load balancing algorithm is introduced, which can dynamically allocate test resources according to the requirements of the test tasks and the current resource status, ensure that the test tasks are evenly distributed among the edge test nodes, optimize resource utilization, reduce test waiting time, and improve test efficiency.
[0047] To understand the technical solution provided by this embodiment, please refer to Figure 3 , Figure 3 The application process shown includes the steps of task submission, task analysis, resource scheduling, task execution, result summary, test report generation, and sending the test report to the user. Each step is described below: Task submission: Users submit test tasks through the user interface of the test management platform or the test terminal. The submitted information includes key information such as test script, target mobile phone model, test duration, expected results, etc. The platform receives and stores this information and prepares for subsequent processing.
[0048] Task analysis: The test management platform conducts a detailed analysis of the submitted test tasks. The analysis includes but is not limited to the target device model of the test script, the resource requirements for the test duration, and the estimated network bandwidth. Based on the analysis results, the platform determines the specific resources required to execute the test task, such as a specific model of device, a certain number of devices, and the estimated network bandwidth.
[0049] Resource scheduling: The platform queries the current available test resource status, including the device model, quantity, current load, network status, etc. of the edge test node. Based on the results of task analysis and the current resource status, the platform dynamically schedules resources. The scheduling result is to assign the test task to the most suitable edge test node to ensure that the test task can be executed efficiently.
[0050] Task execution: After receiving the assigned test task, the edge test node starts the test execution engine. Install and run the test script on the device to simulate user operations or automate the test process. At the same time, use the screen recording function of the mobile phone system or third-party applications to capture the screen video stream. And perform real-time encoding processing on the captured video stream to reduce the data transmission bandwidth requirement. The encoded video stream is sent to the test management platform and authorized test terminal users in real time through low-latency network transmission protocols (such as WebSocket, RTMP, WebRTC).
[0051] Result summary: After the test task is completed, the edge test node collects the test results and log information. Then, this information is uploaded to the test management platform, which summarizes and analyzes the received data.
[0052] Generate test report: Based on the test results and log information, the platform generates a detailed test report, including test success rate, failure reasons, performance indicators, etc.
[0053] Send test report to user: Finally, the platform sends the test report to the test terminal via email, SMS or platform notification.
[0054] Optionally, calling the edge test node to record a video stream generated when the target device executes a corresponding test task includes: Calling the edge test node to capture the video generated when the target device executes the corresponding test task; The video screen is compressed and encoded to obtain the video stream.
[0055] In this embodiment, in the process of calling the edge test node to execute the corresponding test task on the target device, the video generated when the target device executes the corresponding test task is captured, and the video is compressed and encoded to obtain a video stream.
[0056] In an optional implementation, the edge test node may also send the video stream to the test management platform and the test terminal, wherein the user may parse the video stream on the test terminal, obtain the video, and watch the test video.
[0057] In this embodiment, by integrating real-time video broadcast technology, real-time visualization of the test process is achieved, and users can remotely watch the test process of the device, which improves the transparency and traceability of the test. It not only enhances the user experience, but also enables test problems to be discovered and located in a timely manner, improving test efficiency and accuracy.
[0058] To understand the technical solution provided by this embodiment, please refer to Figure 4 , Figure 4 The application process shown includes the steps of video capture, video encoding, video transmission, video distribution, video playback and video viewing. Each step is described below: Video capture: When the edge test node controls the target device to execute the test script, it can choose system-level screen recording or capture through a third-party application. System-level recording is usually more stable, but may require additional permissions; while application-level recording is more flexible.
[0059] Video encoding: The amount of data in the captured original video stream is huge, and direct transmission will consume a lot of bandwidth. Therefore, it is necessary to use an efficient video encoder to compress the video stream. The captured video stream is compressed by an efficient video encoder to reduce the bandwidth requirement for data transmission. The encoder supports adaptive encoding algorithms and can dynamically adjust encoding parameters (such as bit rate, resolution, frame rate, etc.) according to network conditions to ensure the smoothness and image quality of the video stream.
[0060] Video transmission: The encoded video stream is sent to the cloud test management platform via a low-latency network transmission protocol.
[0061] Video distribution: The platform distributes video streams to all authorized test terminals. Only authorized test terminals can receive and play video streams.
[0062] Video playback: The test terminal receives and plays the video stream through the player. The player supports multiple video decoding formats.
[0063] Video viewing: The test terminal watches the video through the player to realize real-time viewing of the test process.
[0064] Optionally, after calling the edge test node to record the video stream generated when the target device executes the corresponding test task, the method further includes: receiving an access request sent by a test terminal; In response to the access request, the video stream is sent to the test terminal.
[0065] Optionally, the sending the video stream to the test terminal includes: Calling the edge test node to encrypt the video stream to obtain an encrypted video stream; The encrypted video stream is sent to the test terminal.
[0066] In this embodiment, the test terminal sends an access request to the test management platform, and after receiving the access request, the test management platform sends a video stream to the test terminal.
[0067] In this embodiment, after generating the video stream, the edge test node encrypts the video stream to obtain the encrypted video stream. In this way, the test management platform sends the encrypted video stream to the test terminal.
[0068] Optionally, after generating the video stream, the edge test node sends the video stream to the test management platform, the test management encrypts the video stream, and sends the encrypted video stream to the test terminal.
[0069] In this embodiment, data encryption transmission is adopted to ensure user privacy and data security, thereby improving the security and reliability of automated testing.
[0070] In addition, the test management platform can also assign different permissions to different test terminals to ensure that only authorized terminals can perform specific test tasks and real-time video streams. At the same time, the system also records the operation logs and access records of all users for auditing and tracing when necessary.
[0071] To ensure high availability and scalability of the system, multiple instances are deployed on the cloud test management platform and edge test nodes to provide backup and redundancy support. At the same time, requests are distributed to different instances through a load balancer to achieve load balancing and failover.
[0072] Through the implementation of the above technical solutions, the automated testing method provided in the embodiments of the present application can improve testing efficiency, reduce testing costs, and enhance the accuracy and reliability of test results. Optionally, the calling the edge test node to execute a corresponding test task on the target device includes: Receive adjustment instructions sent by the test terminal; In response to the adjustment instruction, adjusting the test task; The edge test node is called to execute the adjusted test task on the target device.
[0073] In this embodiment, the test terminal may further send an adjustment instruction to the edge test node. The edge test node adjusts the test task in response to the adjustment instruction and executes the adjusted test task on the target device.
[0074] In this embodiment, the test terminal performs remote control operations in the above manner, such as interrupting the test, adjusting the test parameters, etc., thereby realizing remote control of the automated test.
[0075] To understand the technical solution provided by this embodiment, please refer to Figure 5 ,exist Figure 5 In the application scenario shown, the automated testing method provided in the embodiment of the present application can be applied to an automated testing device, which includes a cloud testing management platform, an edge testing node, a testing terminal and a mobile phone device.
[0076] Cloud test management platform: Deployed in the cloud, it is responsible for test task management, resource scheduling, data analysis and report generation. The platform has powerful data processing and analysis capabilities, can dynamically allocate test resources according to test requirements, and track test progress and results in real time. It supports users to access and operate through test terminals.
[0077] Edge test node: A mobile device cluster deployed at the edge of the network. Each node contains multiple mobile devices and corresponding test execution engines. The node is responsible for receiving test tasks from the cloud test management platform and executing test scripts locally, while capturing the screen video stream of the mobile device for real-time encoding and transmission.
[0078] Test terminal: Users can access the cloud test management platform through the test terminal to view the status of the test task, real-time video broadcast and final test results. The test terminal can also perform remote control operations, such as interrupting the test, adjusting test parameters, etc.
[0079] Mobile devices: Mobile devices are used to simulate real user environments for testing, provide a mobile application running environment, cooperate with edge test nodes to complete application operations corresponding to test scripts, and provide support for capabilities such as mobile screen recording and mobile remote control.
[0080] Among them, the above-mentioned cloud test management platform is also called a test management platform, and the test management platform provided in the embodiment of the present application can be deployed in the cloud; the above-mentioned mobile phone device is also called a target device, and the automated testing method provided in the embodiment of the present application can test electronic devices including mobile phones and tablets.
[0081] Optionally, the method further comprises: During the testing of the target device, if a fault is detected, the test resources are backed up and the test task is interrupted; In the case that the failure condition does not exist, restarting the test resource controls the target device to retry the test task.
[0082] It should be understood that the above-mentioned failure conditions include but are not limited to network failure and equipment failure.
[0083] In this embodiment, when a network failure, device failure or other abnormal situation is detected, a recovery process is triggered, that is, backing up the test resources and interrupting the test task. When the fault disappears, the test resources are restarted to control the target device to retry the test task. In this way, it is ensured that the automated test can continue to be provided and executed when a fault occurs, and the security of the data is protected.
[0084] See also Figure 6 , an automated testing device 600 provided in an embodiment of the present application, the automated testing device 600 comprising: The test management platform 610 is used to receive a test instruction; the test instruction is used to indicate a test to be performed on a target device; In response to the test instruction, calling the edge test node 620; The edge test node 620 is used to perform a corresponding test task on the target device 630; the edge test node includes a plurality of devices to be tested and a task corresponding to each device to be tested; Record the video stream generated when the target device 630 executes the corresponding test task.
[0085] Optionally, the edge test node 620 is further used to call the test resources associated with the test task; Control the target device 630 to execute the corresponding test script through the test resource to generate test results and log files; the test script is determined based on the test task, and the log file includes the log generated when the target device executes the corresponding test script; The test results and log files are stored.
[0086] Optionally, the edge test node 620 is further used to capture a video screen generated when the target device executes a corresponding test task; The video screen is compressed and encoded to obtain the video stream.
[0087] Optionally, the automated testing device 600 further includes a testing terminal; The test terminal is used to send an access request; The test management platform 610 is also used to receive an access request sent by a test terminal; In response to the access request, the video stream is sent to the test terminal.
[0088] Optionally, the edge test node 620 is further used to encrypt the video stream to obtain an encrypted video stream; The test management platform 610 is further configured to send the encrypted video stream to the test terminal.
[0089] Optionally, the test terminal is further used to send an adjustment instruction; The edge test node 620 is further configured to receive an adjustment instruction sent by the test terminal; In response to the adjustment instruction, adjusting the test task; The edge test node is called to execute the adjusted test task on the target device 630 .
[0090] Optionally, the test management platform 610 is further used to back up test resources and interrupt test tasks if a failure is detected during the test of the target device 630; In the case that the failure situation does not exist, the test resource is restarted to control the target device 630 to retry the test task.
[0091] To solve the above technical problems, the present application also provides a computer device. Figure 7 , Figure 7 This is a basic structural block diagram of the computer device in this embodiment. The computer device 7 includes a memory 71, a processor 72, and a network interface 73 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 7 with components 71-73, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0092] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0093] The memory 71 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 71 can be an internal storage unit of the computer device 7, such as a hard disk or memory of the computer device 7. In other embodiments, the memory 71 can also be an external storage device of the computer device 7, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the computer device 7. Of course, the memory 71 can also include both the internal storage unit of the computer device 7 and its external storage device. In this embodiment, the memory 71 is generally used to store the operating system and various application software installed on the computer device 7, such as the program code of the automated test method, etc. In addition, the memory 71 can also be used to temporarily store various types of data that have been output or are to be output.
[0094] The processor 72 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 72 is generally used to control the overall operation of the computer device 7. In this embodiment, the processor 72 is used to run the program code stored in the memory 71 or process data, such as running the program code of the automated testing method.
[0095] The network interface 73 may include a wireless network interface or a wired network interface. The network interface 73 is generally used to establish a communication connection between the computer device 7 and other electronic devices.
[0096] The present application also provides another implementation, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores the automated testing program, and the automated testing program can be executed by at least one processor so that the at least one processor performs the steps of the automated testing method as described above.
[0097] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware online platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0098] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0099] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. An automated testing method, characterized in that: include: Receive test instructions; The test instruction is used to represent the test of the target device; In response to the test instruction, calling an edge test node to execute a corresponding test task on the target device; the edge test node includes a plurality of devices to be tested and a task corresponding to each device to be tested; The edge test node is called to record the video stream generated when the target device executes the corresponding test task.
2. The method according to claim 1, characterized in that The calling edge test node to execute a corresponding test task on the target device includes: Calling the test resources associated with the test task through the edge test node; Controlling the target device to execute a corresponding test script through the test resource to generate a test result and a log file; the test script is determined based on the test task, and the log file includes a log generated when the target device executes the corresponding test script; The test results and log files are stored.
3. The method according to claim 1, characterized in that The calling the edge test node to record the video stream generated when the target device executes the corresponding test task includes: Calling the edge test node to capture the video generated when the target device executes the corresponding test task; The video screen is compressed and encoded to obtain the video stream.
4. The method according to claim 1, characterized in that: After calling the edge test node to record the video stream generated when the target device executes the corresponding test task, the method further includes: receiving an access request sent by a test terminal; In response to the access request, the video stream is sent to the test terminal.
5. The method according to claim 4, characterized in that The sending the video stream to the test terminal includes: Calling the edge test node to encrypt the video stream to obtain an encrypted video stream; The encrypted video stream is sent to the test terminal.
6. The method according to claim 1, characterized in that The calling edge test node to execute a corresponding test task on the target device includes: Receive adjustment instructions sent by the test terminal; In response to the adjustment instruction, adjusting the test task; The edge test node is called to execute the adjusted test task on the target device.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: During the testing of the target device, if a fault is detected, the test resources are backed up and the test task is interrupted; In the case that the failure condition does not exist, restarting the test resource controls the target device to retry the test task.
8. An automated testing device, characterized in that: include: A test management platform for receiving test instructions; The test instruction is used to represent the test of the target device; In response to the test instruction, calling an edge test node; The edge test node is used to perform a corresponding test task on the target device; The edge test node includes a plurality of devices to be tested and a task corresponding to each device to be tested; Record the video stream generated when the target device executes the corresponding test task.
9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the automated testing method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the automated testing method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Mobile application testing system and method
CN106371998A
Edge computing test method and device, equipment and readable storage medium
CN111506508A
Terminal testing method and device, computer storage medium and electronic equipment
CN113220562A
Browser compatibility automatic test method, system, equipment and storage medium
CN113836036A
Training data extraction method, system and equipment for vehicle-road cooperation and medium
CN116363556A
Cited By
Processing method and device for continuous integration test environment exception, electronic equipment, storage medium and program product
CN120315941A