Automatic testing system and method, computer equipment and storage medium

By providing an automated test system, including intelligent editing services and a service interface set of multiple test services, the problem of difficult and inefficient writing of test cases in existing automated test solutions is solved, and the effect of simplifying the writing process and improving testing efficiency is achieved.

CN119782135AInactive Publication Date: 2025-04-08BEIJING CO WHEELS TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410649842.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2025-04-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In existing automated testing solutions, the writing of test cases is difficult, low efficiency, and error-prone, and requires high programming capabilities of testers.

Method used

It provides an automated testing system, including a service layer, an application layer, an interface layer and an execution layer. The service layer provides a service interface set of intelligent editing services and a variety of test services. The script editing module in the application layer can automatically generate test scripts, the interface layer receives test instructions, and the execution layer executes test scripts.

Benefits of technology

It simplifies the writing process of test scripts, reduces the requirements for testers' writing ability, improves the efficiency of automated testing, and improves the scalability of the testing field.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119782135A_ABST
    Figure CN119782135A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of automatic testing, in particular to an automatic testing system and method, computer equipment and a storage medium, and the automatic testing system comprises a service layer used for providing an intelligent editing service and a service interface set corresponding to multiple testing services respectively, and an application layer used for completing script editing. The interface layer is used for receiving a first test instruction; the execution layer is used for executing a test script; a script editing module in the application layer can automatically generate a first test script according to a test case and a service interface provided by the service layer, the compiling process of the test script is simplified, the requirement for the compiling ability of a tester is reduced, and the efficiency of automatic testing is improved; in addition, a plurality of test services provided by the service layer respectively correspond to the service interface sets, so that the expandability of the automatic test field is improved, and continuous expansion integration and dynamic management of business services are facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of automated testing technology, and in particular to an automated testing system, method, computer equipment, and storage medium. Background Art

[0002] Software testing is the use of testing tools to conduct functional and performance testing of products according to test plans and use cases, and to analyze and evaluate problems that arise during testing to ensure that the developed product meets the requirements.

[0003] In the process of automated testing of network data equipment, most of the current automated testing solutions are to write test cases in a specific scripting language on the host computer, and then send the test cases to the bench equipment to execute the test, and finally obtain the test results, and then conduct test analysis.

[0004] However, in the current testing scheme, the writing of test cases is difficult, inefficient, and error-prone, and requires high programming ability from testers. Summary of the invention

[0005] In order to solve the above technical problems, the present disclosure provides an automated testing system, method, computer device and storage medium.

[0006] In a first aspect, the present invention provides an automated testing system, comprising:

[0007] Service layer, application layer, interface layer and execution layer; the service layer is used to provide a set of service interfaces corresponding to a variety of test services, and the service layer is also used to provide intelligent editing services; the application layer includes a script editing module, which is used to call the intelligent editing service and generate a first test script based on the pre-acquired test cases and the service interface set corresponding to the test service to which the test cases obtained from the service layer belong; the interface layer includes a first interface, which is used to receive a first test instruction issued by the cloud platform when the first test script is qualified; the execution layer is used to execute the first test script based on the first test instruction to complete the automated test.

[0008] The automated testing system provided in this embodiment includes a service layer for providing intelligent editing services and a set of service interfaces corresponding to a variety of testing services, an application layer for completing script editing, an interface layer for receiving a first test instruction, and an execution layer for executing a test script; the script editing module in the application layer can automatically generate a first test script based on the test case and the service interface provided by the service layer. The emergence of this module simplifies the test script writing process, reduces the requirements for the writing ability of testers, and improves the efficiency of automated testing; in addition, the service interface sets corresponding to the various testing services provided by the service layer improve the scalability of the automated testing field and facilitate the continuous expansion, integration and dynamic management of business services.

[0009] In an optional implementation, the testing services in the service layer include: system services and device integration services.

[0010] In an optional embodiment, the script editing module is also used to obtain a second test script when the first test script fails, and the second test script is written using at least one script writing form; the first interface is also used to receive a second test instruction issued by the cloud platform when the second test script passes; the execution layer is also used to execute the second test script based on the second test instruction to complete the automated test.

[0011] The automated testing system provided by the embodiment of the present invention can reformulate the test script through user editing after determining that the first test script is unqualified. The system also provides a multimodal script editing method to correspond to the characteristics of each test module, thereby completing the writing of the test script at the fastest speed and improving the testing efficiency.

[0012] In an optional implementation, the application layer further includes:

[0013] The device under test management module is used to receive the request sent by the script editing module and read information from the device under test based on the request.

[0014] In an optional implementation, the interface layer further includes:

[0015] The second interface is used for application program calls and access.

[0016] In a second aspect, the present invention provides an automated testing method, applied to the system of the first aspect and any embodiment thereof, comprising:

[0017] Obtain the test case and the service interface set corresponding to the test service to which the test case belongs; call the intelligent editing service to generate a first test script based on the test case and the service interface set; when the first test script is qualified, receive a first test instruction; execute the first test script based on the first test instruction to generate a first test result.

[0018] The automated testing method provided in this embodiment can generate a first test script directly based on the test case and the service interface set corresponding to the test case by calling the intelligent editing service after acquiring the test case and the service interface set. When the first test script is qualified, the first test script is executed based on the first test instruction to generate a test result. This process does not require human participation, reduces the requirements on the tester's writing ability, and improves the efficiency of automated testing.

[0019] In an optional embodiment, the method further comprises:

[0020] When the first test script fails, a second test script is obtained, where the second test script is written using at least one script writing format; when the second test script passes, a second test instruction is received; and the second test script is executed based on the second test instruction to generate a second test result.

[0021] In an optional implementation, generating a first test result based on executing a first test script based on a first test instruction includes:

[0022] The interpreter is called to parse the first test script to obtain a parsing result; based on the parsing result, a service interface in the service interface set is called to complete the automated test.

[0023] In a third aspect, the present invention provides a computer device, comprising:

[0024] The memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the automated testing method of any implementation in the second aspect by executing the computer instructions.

[0025] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the automated testing method of any one of the embodiments in the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0027] In order to more clearly illustrate the embodiments of the present invention 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.

[0028] Figure 1 is a flow chart of an automated testing method provided according to an embodiment of the present invention;

[0029] Figure 2 is a flow chart of an automated testing method provided according to another embodiment of the present invention;

[0030] Figure 3 It is a schematic diagram of the hardware structure of a computer device provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0032] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0033] Before describing the embodiments of the present invention in detail, a brief description of the background of current automated testing is first given. Software testing is the process of running a system using manual or automatic means to test whether the system meets the specified requirements or to clarify the difference between the expected results and the actual results. Currently, in the process of automated testing of network data equipment, testers are required to complete the writing of test scripts according to test cases in order to complete automated testing by running test scripts. However, this process requires high programming capabilities of testers, making the testing threshold higher and higher. In addition, most of the current tests are limited to testing services in specific fields, and do not support UI testing and voice algorithm testing of car computers and mobile phones, etc., and cannot cover the business scenarios of the entire smart cockpit. To this end, the present invention provides an automated testing system, method, computer equipment and storage medium to solve the current problems of high testing thresholds and single testing services.

[0034] In this embodiment, an automated testing system is provided. Figure 1 FIG. 4 shows an architecture diagram of an automated testing system in an embodiment of the present invention. Figure 1 As shown, the system includes:

[0035] The service layer 110 , the application layer 120 , the interface layer 130 and the execution layer 140 .

[0036] The service layer 110 is used to provide a set of service interfaces corresponding to a variety of test services. The service layer is also used to provide intelligent editing services.

[0037] Specifically, the service layer 110 is used to provide a set of service interfaces corresponding to a variety of different test services. The service interface set includes all the service interfaces required in the test service, which is convenient for the subsequent writing of test scripts and the calling of test processes. Moreover, the service interface set in the service layer 110 can be continuously expanded as the test needs, and the service interface set corresponding to each expanded test service is encapsulated in the service layer 110. This process reduces the difficulty of expanding the business functions of the automated test system, so that the automated test system can cover all types of test scenarios in the field of smart cockpits.

[0038] Specifically, the service layer 110 is also capable of providing intelligent editing services. The intelligent editing service in this embodiment may be a trained neural network algorithm for automatically writing corresponding test scripts according to test cases.

[0039] Exemplarily, in an optional embodiment, the test services include two major categories, namely system services and device integration services. Among them, system services specifically include Android services, IOS services, bus communication services and system security services; device integration services specifically include device integration, device monitoring, general framework extensions and third-party tool integration, etc. Each service has a corresponding service interface set, and different service interface sets support different corresponding test services. For example, the system security service refers to "identity authentication, verification" and "data encryption service", then the service interface set corresponding to the system security service can support security-related tests. Similarly, the service interface set corresponding to the Android service can support systematic testing of Android devices.

[0040] The application layer 120 includes a script editing module 121 for invoking an intelligent editing service to generate a first test script based on a pre-acquired test case and a service interface set corresponding to a test service to which the test case belongs obtained from the service layer.

[0041] Specifically, the test case is written by the user based on the current test task and uploaded to the automated test system. This embodiment does not limit the method for obtaining the test case, but only provides an exemplary description.

[0042] Specifically, when a test case is obtained, the script editing module first selects a service interface set corresponding to the test service to which the test case belongs from a plurality of service interface sets provided by the service layer 110. Then, the intelligent editing service is called from the service layer 110, and the intelligent editing service identifies the test actions and test requirements in the test case to obtain an identification result. Finally, a first test script that meets the test requirements and corresponds to the test action is generated based on the identification result and the service interface set corresponding to the test service to which the test case belongs. In the process of generating the first test script, it is necessary to select the service interface to be called for each test step from the service interface set, and write the service interface to the corresponding location. After the first test script is written, the first test script is displayed on the interactive interface to allow the user to determine whether the first test script is qualified.

[0043] The interface layer 130 includes a first interface 131 for receiving a first test instruction issued by the cloud platform when the first test script is qualified.

[0044] Specifically, the first test instruction is generated after the user determines that the first test script is qualified and triggers the interactive interface, and is an instruction issued by the cloud platform to instruct the start of the test operation.

[0045] Specifically, the basis for the user to judge whether the first test script is qualified includes but is not limited to whether there is a program error and whether it meets the test requirements of this test.

[0046] Exemplarily, the first interface may be an http interface.

[0047] The execution layer 140 is used to execute the first test script based on the first test instruction to complete the automated test.

[0048] Specifically, after receiving the first test instruction, the execution layer parses the first test script by calling an interpreter, so as to call the service interface in the first test script based on the parsed content to execute the corresponding test process.

[0049] The automated testing system provided in this embodiment includes a service layer for providing intelligent editing services and a set of service interfaces corresponding to a variety of testing services, an application layer for completing script editing, an interface layer for receiving a first test instruction, and an execution layer for executing a test script; the script editing module in the application layer can automatically generate a first test script based on the test case and the service interface provided by the service layer. The emergence of this module simplifies the test script writing process, reduces the requirements for the writing ability of testers, and improves the efficiency of automated testing; in addition, the service interface sets corresponding to the various testing services provided by the service layer improve the scalability of the automated testing field and facilitate the continuous expansion, integration and dynamic management of business services.

[0050] In an optional implementation, the device information of the device under test also needs to be provided during the writing of the first test script. In this scenario, the application layer 120 also includes a device under test management module 122, which is used to receive a request from the script editing module and read information from the device under test based on the request.

[0051] Specifically, when the device information of the device under test needs to be provided during the writing of the first test script, the script editing module 121 generates a data acquisition request and sends the request to the device under test management module 122. The device under test management module 122 reads the device information from the device under test based on the request and returns the device information to the script editing module 121.

[0052] In addition, the device management module 122 is also used to respond to other requests from the client to perform corresponding management and maintenance on the device based on the request. Other requests include but are not limited to data update requests and online status detection requests.

[0053] Exemplarily, the information read from the device under test includes, but is not limited to, a device identification, a device address, a device online status, and the like.

[0054] Exemplarily, the devices to be tested include but are not limited to mobile phones, car computers, touch bars, head-up displays, etc.

[0055] In an optional implementation, the application layer 120 further includes a test tool management module 123, and the test tool management module 123 is used to manage the connection and disconnection between the test tool and the device under test based on a client request.

[0056] Specifically, after the device to be tested and the automated test system complete the hardware connection, the test tool management module 123 completes the connection between the device to be tested and the automated test system at the software level in response to the client's connection request to achieve data transmission. After the automated test is completed, the test tool management module 123 responds to the client's disconnection request, first disconnects the software level connection, and then disconnects the hardware connection. It should be noted that the client's connection request includes the identification information of the device to be connected. When the automated test system is connected to at least two devices to be tested at the hardware level, the test tool management module 123 completes the connection between the test tool and the device to be tested based on the identification information of the device to be connected carried in the connection request.

[0057] Exemplarily, the test tools include but are not limited to vehicle bus tools, programmable power supplies or other third-party tools.

[0058] In an optional embodiment, when the first test script fails to pass, the tester may also modify the errors or unreasonable parts in the first test script to make the first test script pass.

[0059] When the first test script fails, the script editing module 121 is also used to obtain a second test script when the first test script fails, and the second test script is written using at least one script writing form; the first interface 131 is also used to receive a second test instruction issued by the cloud platform when the second test script passes; the execution layer 140 is also used to execute the second test script based on the second test instruction to complete the automated test.

[0060] Specifically, when the first test script fails, the user can choose to re-edit the test script in the interactive interface. When the test case includes different test modules, the user can choose the corresponding script editing form based on the characteristics of the test module to write it. After the writing is completed, the script editing module 121 generates a second test script according to the sequence of each test module and the editing content corresponding to each test module, and displays the second test script on the interactive interface, thereby completing the acquisition of the second test script. When the user confirms that the second test script is qualified, the second test instruction generated by the user triggering the "test" function button of the interactive interface is issued by the cloud platform. When the first interface 131 receives the second test instruction, the execution layer executes the second test script based on the second test instruction, thereby completing this automated test.

[0061] Exemplarily, the script writing forms include Python script writing, Table script writing, XML script writing and graphical script writing. When the writing method selected by the user is Python script writing, the writing can be completed directly in the editing area corresponding to the writing method; when the writing method selected by the user is Table script writing, the Table script editing tool can be used to edit the script in the form of a table. The Table script includes multiple steps, each step has multiple parameters, and each parameter can be some basic data types or a function; when the writing method selected by the user is XML script writing, a test script can be created by editing an XML file, and the test process can be described in a structured document; when the writing method selected by the user is graphical script writing, the graphical script writing can be completed by dragging and dropping.

[0062] Exemplarily, the second test script contains a script written in at least one script writing form. For example, the second test script in this embodiment is formed by a Python script, a Table script, an XML script, and a graphical script written in sequence. When the execution layer receives the second test instruction, it sequentially calls the Python interpreter to parse the Python script, calls the Table interpreter to parse the Table script, calls the XML interpreter to parse the XML script, and calls the Python interpreter to parse the graphical script; according to the parsed results, the corresponding service interface is called to perform the test operation, thereby completing the automated test process based on the second test script.

[0063] The automated testing system provided by the embodiment of the present invention can reformulate the test script through user editing after determining that the first test script is unqualified. The system also provides a multimodal script editing method to correspond to the characteristics of each test module, thereby completing the writing of the test script at the fastest speed and improving the testing efficiency.

[0064] In an optional implementation, the interface layer 130 further includes a second interface 132 for application program to call and access.

[0065] Specifically, when an application has a test function, the second interface can be called to complete the test work using the current automated test system, and the test results can be fed back to the interactive interface of the application, thereby completing the test function in the application.

[0066] Exemplarily, the second interface may be a serial communication interface (COM interface).

[0067] According to an embodiment of the present invention, an embodiment of an automated testing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0068] In this embodiment, an automated testing method is provided, which can be used to Figure 1 The automated testing system shown, Figure 2 is a flow chart of an automated testing method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0069] Step S201, obtaining a test case and a service interface set corresponding to the test service to which the test case belongs.

[0070] Exemplarily, after the test case is acquired, the test target may be extracted from the test case, and a service interface set corresponding to the test service to which the test target belongs may be selected and acquired.

[0071] Step S202: calling the intelligent editing service to generate a first test script based on the test case and the service interface set.

[0072] Specifically, the generation process of the first test script will not be repeated here. For details, please refer to the corresponding description in the application layer.

[0073] Step S203: When the first test script is qualified, receiving the first test instruction.

[0074] Specifically, the eligibility of the first test script is confirmed by the user.

[0075] Exemplarily, when the first test script fails, a second test script is obtained, the second test script is written using at least one script writing form, and when the second test script passes, a second test instruction is received; the second test script is executed based on the second test instruction to generate a second test result.

[0076] Exemplarily, when the first test script fails, a third test script can be generated based on the user's modifications to the first test script. When the third test script is determined to be qualified, a third test instruction is received to execute the third test script based on the third test instruction to generate a third test result.

[0077] Step S204: execute the first test script based on the first test instruction to generate a first test result.

[0078] Specifically, after receiving the first test instruction, the interpreter is called to parse the first test script to obtain a parsing result; based on the parsing result, the service in the device under test is called to complete the automated test.

[0079] Specifically, the interpreter corresponds to the script writing form and is used to parse the script. After calling the interpreter to perform a parsing operation on the test script, the parsing result obtained is a binary language understandable by the computer, and then, according to the parsing result, the process of performing automated testing is performed by calling the service interface in the first test script, thereby obtaining a first test result, and displaying the first test result on the interactive interface.

[0080] The automated testing method provided in this embodiment can generate a first test script directly based on the test case and the service interface set corresponding to the test case by calling the intelligent editing service after acquiring the test case and the service interface set. When the first test script is qualified, the first test script is executed based on the first test instruction to generate a test result. This process does not require human participation, reduces the requirements on the tester's writing ability, and improves the efficiency of automated testing.

[0081] The embodiment of the present invention also provides a computer device, see Figure 3 , Figure 3 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 3 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 3 A processor 10 is taken as an example.

[0082] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0083] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0084] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0085] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0086] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0087] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0088] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0089] The above are only specific embodiments of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An automated testing system, characterized in that: include: Service layer, application layer, interface layer and execution layer; The service layer is used to provide a set of service interfaces corresponding to a plurality of test services, and the service layer is also used to provide intelligent editing services; The application layer includes a script editing module, which is used to call the intelligent editing service to generate a first test script based on a pre-acquired test case and a service interface set corresponding to a test service to which the test case belongs obtained from the service layer; The interface layer includes a first interface for receiving a first test instruction issued by the cloud platform when the first test script is qualified; The execution layer is used to execute the first test script based on the first test instruction to complete the automated test.

2. The system according to claim 1, characterized in that The test services in the service layer include: system services and device integration services.

3. The system according to claim 1, characterized in that The script editing module is further used to obtain a second test script when the first test script fails, where the second test script is written using at least one script writing form; The first interface is further used to receive a second test instruction issued by the cloud platform when the second test script is qualified; The execution layer is further used to execute the second test script based on the second test instruction to complete the automated test.

4. The system according to any one of claims 1 to 3, characterized in that The application layer also includes: The device under test management module is used to receive the request sent by the script editing module and read information from the device under test based on the request.

5. The system according to any one of claims 1 to 3, characterized in that The interface layer also includes: The second interface is used for application program calls and access.

6. An automated testing method, applied to the system according to any one of claims 1 to 5, characterized in that: include: Obtaining a test case and a service interface set corresponding to the test service to which the test case belongs; Invoke an intelligent editing service to generate a first test script based on the test case and the service interface set; When the first test script is qualified, receiving a first test instruction; The first test script is executed based on the first test instruction to generate a first test result.

7. The method according to claim 6, characterized in that The method further comprises: When the first test script fails, obtaining a second test script, where the second test script is written using at least one script writing form; When the second test script is qualified, receiving a second test instruction; The second test script is executed based on the second test instruction to generate a second test result.

8. The method according to claim 7, characterized in that The executing the first test script based on the first test instruction to generate a first test result includes: Calling an interpreter to parse the first test script to obtain a parsing result; Based on the analysis result, the service interface in the service interface set is called to complete the automated test.

9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the automated testing method according to any one of claims 6 to 8 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the automated testing method according to any one of claims 6 to 8.

Citation Information

Patent Citations

  • Automated testing method and equipment

    CN102306122A

  • Method and device for creating interface case automatic test script

    CN110221975A

  • Automatic test method for reducing test technical threshold of intelligent terminal system

    CN117931620A