Automatic test method and system based on automatic test platform

By creating test tasks on the automated test platform and issuing them to the corresponding test machines to be tested, the problem of confusion in multi-product automated test management is solved, and the parallel execution and unified management of test tasks are realized, which improves the testing efficiency and management effect.

CN119311577APending Publication Date: 2025-01-14SHENZHEN FENGRUNDA TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411271379.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

Existing automated testing technologies are difficult to effectively manage uniformly due to differences and complexity when facing multiple products.

Method used

Create test tasks through a visual test interface based on the automated test platform, determine the bound machines to be tested, and issue the tasks to the corresponding machines for execution, realizing unified management of automated tests for multiple products.

Benefits of technology

It effectively solves the problem of confusing product automation testing management, realizes parallel testing and unified progress display of multiple products, and improves testing efficiency and management effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119311577A_ABST
    Figure CN119311577A_ABST
Patent Text Reader

Abstract

The invention discloses an automated testing method and system based on an automated testing platform, and relates to the technical field of automated testing, the automated testing method based on the automated testing platform is applied to the automated testing platform, and the automated testing platform comprises a visual testing interface. A plurality of to-be-tested machines are managed through the visual test interface. The method comprises the following steps: creating a test task through the visual test interface; determining a bound to-be-tested machine according to the test task; and issuing the test task to the bound to-be-tested machine, so that the bound to-be-tested machine executes a corresponding test according to the test task. According to the invention, unified management is carried out on product automatic testing, so that the problem of disordered management of product automatic testing is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automated testing technology, and in particular to an automated testing method and system based on an automated testing platform. Background Art

[0002] With the continuous progress and development of computer technology, the complexity and scale of software development are also increasing. In this case, traditional manual testing can no longer meet the needs of efficient and comprehensive testing, and automated testing methods can significantly improve testing efficiency, so automated testing technology has gradually developed. However, when the existing automated testing technology is used to perform automated testing on multiple products, due to the differences between different products and the complexity of the testing process, management confusion will occur. Therefore, the problem of chaotic management of product automated testing still needs to be solved.

[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of this application is to provide an automated testing method and system based on an automated testing platform, aiming to solve the technical problem of chaotic management of product automated testing.

[0005] To achieve the above-mentioned purpose, the present application proposes an automated testing method based on an automated testing platform, wherein the automated testing method based on the automated testing platform is applied to the automated testing platform, wherein the automated testing platform includes a visual testing interface, and multiple machines to be tested are managed through the visual testing interface, wherein the method includes:

[0006] Creating a test task through the visual test interface;

[0007] Determine the bound machine to be tested according to the test task;

[0008] The test task is sent to the bound machine to be tested, so that the bound machine to be tested performs the corresponding test according to the test task.

[0009] In one embodiment, the backend server of the automated testing platform uses Tornado to provide web services, and the Web front-end page is developed using HTML combined with JS to obtain a visual testing interface.

[0010] In one embodiment, before sending the test task to the bound machine to be tested, the method further includes:

[0011] Obtaining registration information of the machine to be tested;

[0012] The machine to be tested is registered according to the registration information.

[0013] In one embodiment, before sending the test task to the bound machine to be tested, the method further includes:

[0014] Obtaining binding information of the test task;

[0015] The test task is bound to the machine to be tested according to the binding information.

[0016] In one embodiment, after sending the test task to the bound machine to be tested, the method further includes:

[0017] Acquire test data of the test task;

[0018] A test report for the test task is generated according to the test data.

[0019] In one embodiment, after generating the test report of the test task according to the test data, the method further includes:

[0020] Obtaining a preset sending method of the test report;

[0021] Send the test report according to the preset sending method.

[0022] In one embodiment, after sending the test task to the bound machine to be tested, the method further includes:

[0023] Acquire information data generated by the test task during the test process;

[0024] A test log is generated according to the information data.

[0025] In one embodiment, the automated testing platform includes a machine to be tested, and the method described includes:

[0026] Receive test tasks;

[0027] According to the test task, execute the automated test program to perform the test.

[0028] In one embodiment, before executing the automated test program to perform the test according to the test task, the method further includes:

[0029] Get the test code;

[0030] The test code is deployed to obtain an automated test program.

[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes an automated testing device based on an automated testing platform, wherein the automated testing device based on the automated testing platform comprises:

[0032] A creation module, used to create a test task through the visual test interface;

[0033] A confirmation module determines the bound to-be-tested machine according to the test task;

[0034] The sending module sends the test task to the bound machine to be tested, so that the bound machine to be tested performs the corresponding test according to the test task.

[0035] In addition, to achieve the above-mentioned objectives, the present application also proposes an automated testing device based on an automated testing platform, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the automated testing method based on the automated testing platform as described above.

[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the automated testing method based on the automated testing platform as described above are implemented.

[0037] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the automated testing method based on the automated testing platform as described above.

[0038] The present application proposes an automated testing method based on an automated testing platform, which first creates a test task through the visual testing interface; determines the bound machine to be tested according to the test task; and sends the test task to the bound machine to be tested so that the bound machine to be tested performs the corresponding test according to the test task.

[0039] In summary, the present application solves the problem of chaotic management of product automated testing by uniformly managing the automated testing of products by sending the testing tasks of the products to the machines to be tested for execution. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0042] Figure 1 A flowchart of an automated testing method according to an automated testing platform of the present invention;

[0043] Figure 2 This is a functional schematic diagram of an automated testing platform of an automated testing system based on an automated testing platform in a first embodiment of an automated testing method based on an automated testing platform of the present application;

[0044] Figure 3 A schematic diagram of the simplified architecture of an automated testing system based on an automated testing platform in the first embodiment of the automated testing method based on an automated testing platform of the present application;

[0045] Figure 4 This is a schematic diagram of the test machine architecture of an automated test system based on an automated test platform in the first embodiment of the automated test method based on an automated test platform of the present application;

[0046] Figure 5 This is an overall functional schematic diagram of an automated testing system based on an automated testing platform in the first embodiment of the automated testing method based on an automated testing platform of the present application;

[0047] Figure 6 A flowchart of the second embodiment of the automated testing method based on the automated testing platform of the present application is provided;

[0048] Figure 7 A flowchart of the third embodiment of the automated testing method based on the automated testing platform of the present application is provided;

[0049] Figure 8 This is a schematic diagram of the overall architecture of an automated testing system based on an automated testing platform in the third embodiment of the automated testing method based on an automated testing platform of the present application;

[0050] Fig. 9 This is a schematic diagram of the module structure of an automated testing device based on an automated testing platform according to an embodiment of the present application;

[0051] Fig.10 A schematic diagram of an automated testing platform design system involved in an automated testing method based on an automated testing platform in an embodiment of the present application.

[0052] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0053] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0054] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0055] The main solution of the embodiment of the present application is: create a test task through the visual test interface; determine the bound machine to be tested according to the test task; send the test task to the bound machine to be tested so that the bound machine to be tested performs the corresponding test according to the test task.

[0056] At present, it is usually to directly write automated test programs to test products. However, when this method is used to perform automated tests on multiple products, management confusion will occur due to the differences between different products and the complexity of the test process. Therefore, the problem of chaotic management of product automated testing still needs to be solved.

[0057] This application solves the problem of chaotic management of product automation testing by unified management of product automation testing.

[0058] Based on this, the embodiment of the present application provides an automated testing method based on an automated testing platform. Figure 1 , Figure 1 This is a flow chart of the first embodiment of the automated testing method based on the automated testing platform of the present application.

[0059] In this embodiment, the automated testing method based on the automated testing platform includes steps S10 to S30:

[0060] Step S10: creating a test task through the visual test interface;

[0061] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, an automated testing platform, etc. The following takes the automated testing platform as an example to illustrate this embodiment and the following second embodiment.

[0062] It should be noted that the visual test interface is an interface that can directly perform interactive automated testing. Multiple test tasks can be created through the visual test interface, and the test progress of each test task can be viewed. Figure 2, Figure 2 This is a functional diagram of the automated testing platform of the automated testing system based on the automated testing platform. The Webserver in the figure is the automated testing platform, which provides testing services in the form of Web. Through the Webserver, you can create test tasks, view test progress and view test logs.

[0063] It is understandable that the backend server of the automated testing platform uses tornado to provide web services, and the web front-end page uses HTML combined with JS to develop a visual test interface. Tornado is a high-performance and scalable web framework that makes full use of the characteristics of non-blocking I / O and event loops, and has excellent performance when processing concurrent requests. HTML (HyperText Markup Language) defines the structure and content of web pages; JS is JavaScript, a scripting language that can add dynamic functions to web pages. HTML and JS are the basis for building web front-end pages.

[0064] Step S20: determining the bound to-be-tested machine according to the test task;

[0065] It should be noted that there are significant differences between different test tasks, so each test task needs to be executed on the corresponding test machine. Therefore, it is necessary to determine the test machine to which the test task needs to be bound. Figure 3 , Figure 3 The following is a brief architecture diagram of an automated test system based on an automated test platform. The Webserver in the figure is the automated test platform, which provides test services in the form of a Web. The system includes three test machines: Slave test machine A, Slave test machine B, and Slave test machine C.

[0066] Step S30: Send the test task to the bound machine to be tested, so that the bound machine to be tested executes the corresponding test according to the test task.

[0067] It should be noted that when there are multiple test tasks, each test task can be sent to the corresponding bound test machine, so that the test machine can execute the test tasks in parallel without affecting each other. Figure 4 , Figure 4 The schematic diagram of the test machine architecture of the automated test system based on the automated test platform. The test machine in the figure is the slave layer 2 or 3 switch test machine A, the automated test framework is the automated test program deployed in the slave layer 2 or 3 switch test machine A, and the DUT is the device under test, that is, the layer 2 or 3 switch.

[0068] In a feasible manner, before sending the test task to the bound machine to be tested, the method further includes the following steps:

[0069] Obtaining registration information of the machine to be tested;

[0070] The machine to be tested is registered according to the registration information.

[0071] It is understandable that the registration information of the machine to be tested may include basic information such as name and model; configuration information such as memory, storage space, operating system version, etc.; network environment information such as IP address, etc. The machine to be tested is registered through these registration information.

[0072] It is understandable that before sending the test task to the bound machine to be tested, the following steps are also included:

[0073] Obtaining binding information of the test task;

[0074] The test task is bound to the machine to be tested according to the binding information.

[0075] Binding information can include the test target, scope, required test machine, etc. Through the binding information, the test task can be bound to the corresponding test machine. Figure 5 , Figure 5 The figure is a schematic diagram of the overall function of the automated test system based on the automated test platform. The Webserver in the figure is the automated test platform, which provides test services in the form of the Web. The system includes three test machines: Slave test machine A, Slave test machine B, and Slave test machine C. Test machine A executes the test task of the second-layer switch of product A, test machine B executes the test task of the third-layer switch of product B, and test machine C executes the test task of product C-WiFi router. The specific steps are to create test tasks for the three products on the web page, and then click to execute the test task. When creating a new task, bind the task to the corresponding slave test machine. The test task will be sent to the corresponding slave test machine according to the slave test machine bound to the corresponding task, and the corresponding slave test machine will complete the corresponding test task, thereby completing the parallel execution test of the test task.

[0076] This embodiment first creates a test task through the visual test interface; determines the bound machine to be tested according to the test task; and sends the test task to the bound machine to be tested, so that the bound machine to be tested performs the corresponding test according to the test task. It can perform automated testing on multiple products at the same time, and can display the progress of automated testing of each product. By unified management of product automated testing, the problem of chaotic management of product automated testing is solved.

[0077] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 6 After step S30, the automated testing method based on the automated testing platform further includes steps S01 to S02:

[0078] Step S01: Acquire test data of the test task;

[0079] It should be noted that the test data may include the start and end time of the test execution, the scope of the test, the focus, the test results, etc.

[0080] Step S02: Generate a test report for the test task according to the test data.

[0081] It is understandable that based on the test data, a test report for the test task can be generated. The test report is a clear display of the results of a product's automated testing, and records in detail the execution process, results, and problems found in the automated testing.

[0082] In a feasible manner, after generating the test report of the test task according to the test data, the method further includes:

[0083] Obtaining a preset sending method of the test report;

[0084] Send the test report according to the preset sending method.

[0085] It is understandable that the preset sending method may include an email sending method, an instant messaging tool sending method, etc. According to the preset sending method, the test report can be sent to relevant personnel at the first time.

[0086] In a feasible manner, after sending the test task to the bound machine to be tested, the method further includes:

[0087] Acquire information data generated by the test task during the test process;

[0088] A test log is generated according to the information data.

[0089] It should be noted that the information data generated during the test process may include each specific step of the test process, descriptions of the problems generated during the test process, etc. A test log can be generated through the information data. The test log records in detail the operations, inputs, outputs, and system responses during the test process, which can provide strong support for subsequent troubleshooting and problem location.

[0090] This embodiment first obtains the test data of the test task; and generates a test report of the test task based on the test data. By generating a test report, this embodiment can clearly display the test results of each test task, facilitate the management of the test tasks, and solve the problem of chaotic product automation test management.

[0091] The present invention provides an automated testing method based on an automated testing platform. Figure 7 , Figure 7 This is a flow chart of the third embodiment of the automated testing method based on the automated testing platform of the present application.

[0092] In this embodiment, the automated testing method based on the automated testing platform includes steps S100 to S300:

[0093] Step S100: receiving a test task;

[0094] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a machine to be tested, etc. The following takes the machine to be tested as an example to illustrate this embodiment.

[0095] It is understandable that the process of receiving a test task mainly receives a series of key information related to test execution, such as test parameters, test environment requirements, etc. This information usually contains all the necessary details required to perform the test to ensure that the test can be carried out as expected and accurately evaluate the performance and functionality of the software.

[0096] Step S200: Execute the automated testing program to perform testing according to the testing task.

[0097] It should be noted that the automated test program is a code program deployed in advance for automated testing. Different code programs will be deployed for different test tasks.

[0098] In a feasible manner, before executing the automated test program to perform the test according to the test task, the method further includes:

[0099] Get the test code;

[0100] The test code is deployed to obtain an automated test program.

[0101] It should be noted that the test code is an automated test code customized according to the test task. By deploying the test code, an automated test program can be obtained. Figure 8 , Figure 8The overall architecture diagram of the automated test system based on the automated test platform. Webserver is the automated test platform, which provides test services in the form of Web. The system includes three test machines: Slave test machine A, Slave test machine B, and Slave test machine C. Each test machine is deployed with a corresponding automated test program, and the test machine can be horizontally expanded. DUT is the device under test. The devices under test in the figure are: Layer 2 and Layer 3 switches; WiFi routers; APPOLLO platform. Through the browser, you can create a new test task on the automated test platform, execute the schedule, and view the test execution progress. In the test task list, you can view the information of each test task, such as Layer 2 and Layer 3 switches; Sonic platform white box switches; WiFi routers; WiFi-AP; APPOLLO platform.

[0102] This embodiment obtains an automated test program by deploying test code. The automated test programs of each machine to be tested are not coupled with each other and can be easily expanded horizontally to perform different test tasks. This solves the problem of chaotic product automated test management.

[0103] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the automated testing method based on the automated testing platform of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0104] This application also provides an automated testing device based on an automated testing platform, please refer to Fig. 9 , the automated testing device based on the automated testing platform comprises:

[0105] A creation module 10, used to create a test task through the visual test interface;

[0106] A confirmation module 20, which determines the bound to-be-tested machine according to the test task;

[0107] The sending module 30 sends the test task to the bound machine to be tested, so that the bound machine to be tested executes the corresponding test according to the test task.

[0108] This embodiment first creates a test task through the visual test interface; determines the bound machine to be tested according to the test task; and sends the test task to the bound machine to be tested, so that the bound machine to be tested performs the corresponding test according to the test task. It can perform automated testing on multiple products at the same time, and can display the progress of automated testing of each product. By unified management of product automated testing, the problem of chaotic management of product automated testing is solved.

[0109] In one embodiment, the backend server of the automated testing platform uses Tornado to provide web services, and the Web front-end page is developed using HTML combined with JS to obtain a visual testing interface.

[0110] In one embodiment, the sending module 30 is further used to obtain registration information of the machine to be tested; and register the machine to be tested according to the registration information.

[0111] In one embodiment, the issuing module 30 is further configured to obtain binding information of the test task; and bind the test task to the machine to be tested according to the binding information.

[0112] In one embodiment, the sending module 30 is further used to obtain test data of the test task; and generate a test report of the test task according to the test data.

[0113] In one embodiment, the sending module 30 is further used to obtain a preset sending method of the test report; and send the test report according to the preset sending method.

[0114] In one embodiment, the sending module 30 is further used to obtain information data generated by the test task during the test process; and generate a test log according to the information data.

[0115] The automated testing device based on the automated testing platform provided by the present application adopts the automated testing method based on the automated testing platform in the above-mentioned embodiment, which can solve the technical problem of chaotic management of automated testing of products. Compared with the prior art, the beneficial effects of the automated testing device based on the automated testing platform provided by the present application are the same as the beneficial effects of the automated testing method based on the automated testing platform provided by the above-mentioned embodiment, and the other technical features in the automated testing device based on the automated testing platform are the same as the features disclosed in the above-mentioned embodiment method, which will not be described in detail here.

[0116] This application provides an automated test platform design system, such as Fig.10 As shown, the automated test platform design system includes a machine to be tested and an automated test platform.

[0117] The present application provides an automated testing device based on an automated testing platform, and the automated testing device based on the automated testing platform includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the automated testing method based on the automated testing platform in the above-mentioned embodiment one.

[0118] The automated test equipment based on the automated test platform in the embodiments of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The automated test equipment based on the automated test platform is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0119] The automated test equipment based on the automated test platform may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. Various programs and data required for the operation of the automated test equipment based on the automated test platform are also stored in the RAM 1004. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the automated test equipment based on the automated test platform to communicate wirelessly or wired with other devices to exchange data. Although the figure shows an automated test equipment based on the automated test platform with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.

[0120] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0121] The automated testing equipment based on the automated testing platform provided by the present application adopts the automated testing method based on the automated testing platform in the above-mentioned embodiment, which can solve the technical problem of chaotic management of automated testing of products. Compared with the prior art, the beneficial effects of the automated testing equipment based on the automated testing platform provided by the present application are the same as the beneficial effects of the automated testing method based on the automated testing platform provided by the above-mentioned embodiment, and the other technical features of the automated testing equipment based on the automated testing platform are the same as the features disclosed in the method of the previous embodiment, which will not be described in detail here.

[0122] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0123] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0124] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the automated testing method based on the automated testing platform in the above-mentioned embodiment.

[0125] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0126] The computer-readable storage medium may be included in an automated testing device based on an automated testing platform; or may exist independently without being assembled into an automated testing device based on an automated testing platform.

[0127] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an automated testing device based on an automated testing platform, the automated testing device based on the automated testing platform: creates a test task through the visual testing interface;

[0128] Determine the bound machine to be tested according to the test task;

[0129] The test task is sent to the bound machine to be tested, so that the bound machine to be tested performs the corresponding test according to the test task.

[0130] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0131] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0132] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0133] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned automated testing method based on the automated testing platform, and can solve the technical problem of chaotic management of product automated testing. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the automated testing method based on the automated testing platform provided by the above-mentioned embodiment, and will not be elaborated here.

[0134] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned automated testing method based on the automated testing platform when executed by a processor.

[0135] The computer program product provided by this application can solve the technical problem of chaotic product automated test management. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the automated test method based on the automated test platform provided by the above embodiment, which will not be repeated here.

[0136] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. An automated testing method based on an automated testing platform, characterized in that: The automated testing method based on the automated testing platform is applied to the automated testing platform, the automated testing platform includes a visual testing interface, and multiple machines to be tested are managed through the visual testing interface, and the method includes: Creating a test task through the visual test interface; Determine the bound machine to be tested according to the test task; The test task is sent to the bound machine to be tested, so that the bound machine to be tested performs the corresponding test according to the test task.

2. The method according to claim 1, characterized in that The backend server of the automated testing platform uses Tornado to provide web services, and the Web frontend page is developed using HTML combined with JS to obtain a visual testing interface.

3. The method according to claim 1, characterized in that Before sending the test task to the bound machine to be tested, the method further includes: Obtaining registration information of the machine to be tested; The machine to be tested is registered according to the registration information.

4. The method according to claim 1, characterized in that Before sending the test task to the bound machine to be tested, the method further includes: Obtaining binding information of the test task; The test task is bound to the machine to be tested according to the binding information.

5. The method according to claim 1, characterized in that After sending the test task to the bound machine to be tested, the method further includes: Acquire test data of the test task; A test report for the test task is generated according to the test data.

6. The method according to claim 5, characterized in that After generating a test report for the test task according to the test data, the method further includes: Obtaining a preset sending method of the test report; Send the test report according to the preset sending method.

7. The method according to claim 1, characterized in that After sending the test task to the bound machine to be tested, the method further includes: Acquire information data generated by the test task during the test process; A test log is generated according to the information data.

8. An automated testing method based on an automated testing platform, characterized in that: The automated testing platform includes a machine to be tested, and the method includes: Receive test tasks; According to the test task, execute the automated test program to perform the test.

9. The method according to claim 8, characterized in that Before executing the automated test program to perform the test according to the test task, the method further includes: Get the test code; The test code is deployed to obtain an automated test program.

10. An automated test platform design system, characterized in that: The automated testing platform design system includes a machine to be tested and an automated testing platform, wherein the automated testing platform executes the automated testing method based on the automated testing platform as described in any one of claims 1-7; the machine to be tested implements the automated testing method based on the automated testing platform as described in any one of claims 8-9.

Citation Information

Cited By

  • Automatic system and method for ADAS HIL test

    CN120406408A