Embedded automated testing method, device, equipment and medium based on online game client

By implementing embedded automated testing methods on the online game client, dynamically read and parse the test process tree, and automatically execute the test process, the problem of cumbersome testing process and only testing for specific modules is solved, and the rapid iteration environment is realized Efficient and reliable automated testing ensures the quality of game products.

CN112433953BActive Publication Date: 2024-12-06HANGZHOU ELECTRONICS SOUL NETWORK TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011459099.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-11
Publication Date
2024-12-06
Estimated Expiration
2040-12-11

AI Technical Summary

Technical Problem

In the prior art, the testing process of online games is complicated and can only be automated for specific modules, which cannot meet the needs of rapid iteration and version updates, making it difficult to guarantee the quality of game products.

Method used

By implementing embedded automated testing methods on online game clients, dynamically read and parse the automated test process tree, automatically execute each node of the test process tree, continuously output test results, simulate player operations, and test all services of the client and server side Module to reduce the complexity of test script modification.

Benefits of technology

It realizes continuous and reliable automated testing in a fast iterative environment, reduces the workload of test development, improves the reliability of test results, and can fully cover all business modules of the client and server side, solving the cumbersome test process and Problems that can only be tested for specific modules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112433953B_ABST
    Figure CN112433953B_ABST
Patent Text Reader

Abstract

The present invention discloses an embedded automated testing method, device, electronic device and computer storage medium based on an online game client, which relates to the field of software testing technology and aims to solve the problem that the test process is cumbersome and complicated and can only perform automated testing on specific modules. The method comprises the following steps: dynamically reading the automated testing process tree in the automated process configuration file; parsing the automated testing process tree; automatically executing each node of the automated testing process tree and continuously outputting the test results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of software testing, and in particular to an embedded automatic testing method, device, equipment and medium based on an online game client. Background Art

[0002] Nowadays, the development cycle of online games is getting shorter and shorter, and the iteration speed is getting faster and faster. The development team cannot quickly and completely test each system module in the game in a short period of time. As the version is constantly updated, how to ensure the quality of the game product has always been a problem to be solved. At present, the only way is to extend the version update interval or release the version hastily and then fix the problem through quick updates.

[0003] Currently, commonly used testing solutions are generally divided into two categories: manual black box testing and automated white box testing. Manual black box testing is inefficient and requires a lot of manpower and time costs, which makes it difficult to meet the needs of game testing. Automated testing can only be used for specific modules or specific scenarios. When the product content is iterated quickly and the update range is large, it is necessary to constantly modify the automated testing logic according to product changes, making the entire testing process very cumbersome. For example, through a set of automated testing solutions that identify game interface elements and simulate player operations by simulating interactions with game interface elements, when the game interface changes significantly during the iterative development process, the test engineer needs to constantly modify the test script to meet the testing requirements. In addition, among the commonly used automated testing solutions, there is also a typical common testing solution that can only test specific modules or specific scenarios, that is, using an automatic robot to send simulated client instructions to the online game server to test the functions of each system module of the server. The implementation of this solution requires some understanding of the modules on the server side, which is not only difficult to develop, but also impossible to test the client.

[0004] There is currently no effective solution to the problem that the entire testing process is cumbersome and complicated and that automated testing can only be performed on specific modules. Summary of the invention

[0005] The embodiments of the present invention provide an embedded automated testing method, device, equipment and medium based on an online game client, so as to at least solve the problem that the testing process is cumbersome and complicated and automated testing can only be performed on specific modules.

[0006] In a first aspect, an embodiment of the present invention provides an embedded automated testing method based on an online game client, which is applied to the game client and includes the following steps:

[0007] Dynamically read the automated test process tree in the automated process configuration file;

[0008] Parsing the automated testing process tree;

[0009] Automatically execute each node of the automated test process tree and continuously output test results.

[0010] In some embodiments, the automatically executing each node of the automated test process tree and continuously outputting test results includes:

[0011] Each node of the automated test process tree is traversed in depth, and the traversed nodes are executed in sequence through the following steps:

[0012] Query the game interface elements required to execute the current node and trigger interface element interaction events;

[0013] Respond to the interface element interaction events and execute corresponding logic to update the current game state;

[0014] Verify whether the current game state is consistent with the state required by the current node;

[0015] If they are inconsistent, outputting the verification result as the test result;

[0016] The current node is the traversed node.

[0017] In some embodiments, before dynamically reading the automated test process tree in the automated process configuration file, pre-configuring the automated process configuration file includes:

[0018] Analyze the game logic and extract the atomic interface of the game process according to the pre-set test framework;

[0019] According to the test requirements, the automated test process tree is configured in combination with the atomic interface to form the automated process configuration file.

[0020] In some embodiments, the querying and executing the game interface elements required by the current node and triggering the interface element interaction event include:

[0021] According to the atomic interface, disassemble the execution logic corresponding to the current node in sequence;

[0022] According to the corresponding execution logic, the interface elements required for executing the current node are queried, and the interface element interaction event is triggered.

[0023] In some embodiments, responding to the interface element interaction event and executing corresponding logic to update the current game state includes:

[0024] If the interface element interaction event requires the execution of server-side logic, an uplink request is sent to the server, and after receiving the execution result sent by the server, the current game status is updated;

[0025] If the interface element interaction event does not need to execute server-side logic, the client logic corresponding to the interface interaction event is executed to update the current game state.

[0026] In some embodiments, responding to the interface element interaction event and executing corresponding logic to update the current game state also includes:

[0027] If the interface element interaction event requires the execution of server-side logic and client-side logic at the same time, an uplink request is sent to the server, and after receiving the execution result sent by the server, the corresponding client-side logic is executed to update the current game status.

[0028] In some embodiments, after sending the uplink request to the server, the process includes:

[0029] The server executes the corresponding business logic according to the uplink request and sends the execution result.

[0030] In a second aspect, an embodiment of the present invention provides an embedded automated testing device based on an online game client, comprising:

[0031] Configuration reading module, used to dynamically read the automated test process tree in the automated process configuration file;

[0032] A logic parsing module, used to parse the automated test process tree;

[0033] The automatic testing module is used to automatically execute each node of the automatic testing process tree and continuously output the test results.

[0034] In a third aspect, an embodiment of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the embedded automated testing method based on the online game client as described in the first aspect above is implemented.

[0035] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the embedded automated testing method based on the online game client as described in the first aspect above.

[0036] Compared with the prior art, the embodiment of the present invention provides an embedded automated testing method, device, equipment and medium based on the online game client, which performs automated testing through a pre-configured automated testing process tree, does not require constant modification of the test script, and solves the problem of cumbersome and complicated testing processes. The automated testing process tree is executed on the client, so that the player operation can be simulated to the greatest extent. By simulating the player operation, all business modules of the client and the server are tested, thereby improving the reliability of the test results.

[0037] The details of one or more embodiments of the invention are set forth in the following drawings and description so that other features, objects, and advantages of the invention are more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0039] Figure 1 It is a flow chart of the embedded automatic testing method based on the network game client of the present invention;

[0040] Figure 2 It is a structural block diagram of an embedded automatic testing device based on an online game client according to an embodiment of the present invention;

[0041] Figure 3 The figure is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0042] In order to make the purpose and technical solution of the present application clearer, the present invention is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments provided by the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of this application.

[0043] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.

[0044] Reference to "embodiments" in this application 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. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0045] Example 1

[0046] Based on the above principles, this embodiment provides an embedded automated testing method based on a network game client. Figure 1 It is a flow chart of the embedded automatic testing method based on the network game client of the present invention, such as Figure 1 As shown, the embedded automated testing method based on the network game client is applied to the game client and includes the following steps:

[0047] S101. Dynamically read the automated test process tree in the automated process configuration file.

[0048] After the client is started, according to the test requirements, the client can dynamically read the automation process configuration file. The automation process configuration file is the configuration information containing the automation test process tree. The automation test process tree contains all the business logic based on the client operation, so that the test environment in the test process is consistent with the production environment, which can improve the reliability of the test results.

[0049] S102, parsing the automated testing process tree.

[0050] Parse the automation process tree to break down the business logic corresponding to each node of the automation process tree.

[0051] S103, automatically executing each node of the automated test process tree and continuously outputting test results.

[0052] Starting from the root node of the automated test process tree, each node of the automated process tree is automatically executed from top to bottom and from left to right, that is, the business logic corresponding to each node is executed to achieve comprehensive testing of the product. It should be noted that the automated process test tree can be executed in a loop to achieve multiple tests of the product.

[0053] When the above method proposed in this embodiment is executed on the client, it is suitable for a development environment with a short development cycle and rapid iteration. The method of this embodiment can be used to perform continuous and reliable automated testing. For a product, it is only necessary to configure the automated test process tree. Regardless of whether there is a version drop in the later stage, there is no need to modify the relevant test scripts or redevelop the test tools adapted to the new version, which can reduce the complexity of executing the automated test process and the workload of test development. Because users rely on the client to use the product, executing each business module of the product from the client can simulate user operations to the greatest extent, so that the test scope can cover all business modules of the client and server that will be involved in the user's use, solving the problem that the existing technology can only perform automated testing on specific modules. Therefore, through the embedded automated testing method based on the network client of this embodiment, the quality of the product launch can be guaranteed.

[0054] Preferably, before dynamically reading the automated test process tree in the automated process configuration file, pre-configuring the automated process configuration file includes:

[0055] Analyze the game logic and extract the atomic interface of the game process according to the pre-set test framework;

[0056] According to the test requirements, the automated test process tree is configured in combination with the atomic interface to form the automated process configuration file.

[0057] To implement the embedded automated testing method based on the network client of this embodiment, it is first necessary to configure the automated testing process tree. Under the pre-set test framework, by analyzing the business logic of the game (product), the atomic interface of the game process is extracted, and the atomic interface of each business logic is obtained. In combination with the atomic interface of each business logic, each business logic is configured as each node of the tree to construct an automated testing process tree and provide it to the client for operation, so as to realize the execution of the automated testing process based on the game client.

[0058] This embodiment combines the atomic interface to configure the automated test process tree, so that when the surface interface of the functional module remains unchanged, even if the internal logic and interface layout are iterated and modified, there is no need to adjust the automated test process tree or reconfigure the test process, thereby reducing the workload of test development and being suitable for products with frequent iterations.

[0059] Preferably, each node of the automated test process tree is automatically executed, and the test results are continuously output, including:

[0060] Each node of the automated test process tree is traversed in depth, and the traversed nodes are executed in sequence through the following steps:

[0061] Query the game interface elements required to execute the current node and trigger interface element interaction events;

[0062] Respond to the interface element interaction events and execute corresponding logic to update the current game state;

[0063] Verify whether the current game state is consistent with the state required by the current node;

[0064] If they are inconsistent, outputting the verification result as the test result;

[0065] The current node is the traversed node.

[0066] Preferably, querying the game interface elements required for executing the current node and triggering the interface element interaction event includes:

[0067] According to the atomic interface, disassemble the execution logic corresponding to the current node in turn;

[0068] According to the corresponding execution logic, the interface elements required for executing the current node are queried and the interaction events of the interface elements are triggered.

[0069] The automated test process tree is executed by deep traversal. Each time a node is traversed, the traversed node is used as the current node. The current node is executed by the following steps: According to the business logic of the current node, the game interface elements required for executing the business logic of the current node are queried, and the relevant interface element interaction events are triggered (the interaction events of the game interface elements are queried). The system responds to the interface element interaction event and executes the logic corresponding to the interface element interaction event. According to the execution result, the current game state is updated; after the game state is updated, it is checked whether the current game state is consistent with the state required by the current node. If it is consistent, the next node is traversed; otherwise, the verification result is output as the test result, and the next node is traversed. The nodes of the automatic test process tree are executed in sequence to achieve continuous output of test results.

[0070] In other embodiments, if the current game state is inconsistent with the state required by the current node, after outputting the verification result as the test result, the execution of the next node can be stopped, and the automated test process tree can be re-executed after the BUG in the test result is fixed.

[0071] Preferably, responding to the interface element interaction event and executing the corresponding logic to update the current game state includes:

[0072] If the interface element interaction event requires the execution of server-side logic, an upstream request is sent to the server. After receiving the execution result sent by the server, the current game status is updated;

[0073] If the interface element interaction event does not require the execution of server-side logic, the client-side logic corresponding to the interface interaction event is executed to update the current game status;

[0074] If the interface element interaction event requires the execution of both server-side logic and client-side logic, an uplink request is sent to the server. After receiving the execution result sent by the server, the corresponding client-side logic is executed to update the current game status.

[0075] When the system responds to interface interaction events, it includes logic that relies solely on client implementation, logic that relies on server implementation, and logic that relies on both server and client implementation. Therefore, for different interface interaction events, when executing the logic corresponding to each interface interaction event, different operation processes need to be executed to update the current game status.

[0076] Therefore, the embedded automated testing method based on the game client of this embodiment, when executed on the client, executes each business process in a bottom-up manner to perform an automated testing process, which can comprehensively cover all business modules of the client and the server, has a wide test scope, and reliable test results.

[0077] Preferably, after sending the uplink request to the server, the following steps are included:

[0078] The server executes the corresponding business logic according to the upstream request and sends the execution result.

[0079] The client sends an uplink request to the server to request the server to execute the business process required by the current node. After the server executes the corresponding business process, it sends the execution result to the client in the form of a downlink message.

[0080] Example 2

[0081] This embodiment provides an embedded automated testing device based on an online game client, which is used to implement the above-mentioned embodiments and preferred embodiments. The descriptions that have been made will not be repeated. The terms "module", "unit", "subunit", etc. used below can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0082] Figure 2 is a structural block diagram of an embedded automatic testing device based on a network game client according to an embodiment of the present invention, such as Figure 2 As shown, the device comprises:

[0083] The configuration reading module 21 is used to dynamically read the automated test process tree in the automated process configuration file;

[0084] A logic parsing module 22, used for parsing the automated test process tree;

[0085] The automatic testing module 23 is used to automatically execute each node of the automatic testing process tree and continuously output the test results.

[0086] The embedded automatic testing device based on the network game client of this embodiment is a test program running on the game client.

[0087] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0088] Example 3

[0089] Figure 3 FIG. 1 is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Figure 3 As shown, an electronic device is provided, which can be a PC or a mobile terminal, etc., and its internal structure diagram can be as shown in Figure 3 The electronic device includes a processor, a memory, an input device, and an output device; wherein the number of processors in the electronic device may be one or more, Figure 3 A processor is taken as an example; the processor, memory, input device and output device in the electronic device can be connected by a bus or other means. Figure 3 The example of connecting through bus is taken in the following.

[0090] As a computer-readable storage medium, the memory may include a high-speed random access memory, a non-volatile memory, etc., and may be used to store operating systems, software programs, computer executable programs, and databases, such as the program instructions / modules corresponding to the embedded automated testing method based on the online game client in Example 1 of the present invention, and may also include a memory, which may be used to provide an operating environment for the operating system and the computer program. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the electronic device via a network.

[0091] The processor is used to provide computing and control capabilities, and may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application. The processor executes various functional applications and data processing of the electronic device by running computer executable programs, software programs, instructions, and modules stored in the memory, that is, implementing the embedded automated testing method based on the online game client of embodiment 1.

[0092] The output device of the electronic device can be a liquid crystal display or an electronic ink display, and the input device of the electronic device can be a touch layer covering the display, or a key, trackball or touchpad provided on the housing of a computer device, or an external keyboard, touchpad or mouse.

[0093] The electronic device may also include a network interface / communication interface, and the network interface of the electronic device is used to communicate with an external terminal via a network connection. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.

[0094] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than those described in the figure, or combine certain components, or have a different arrangement of components.

[0095] Those of ordinary skill in the art can understand that all or part of the processes in the embedded automated testing method based on the online game client of embodiment 1 can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0096] Example 4

[0097] An embodiment of the present invention provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to implement an embedded automated testing method based on a network game client when executed by a computer processor, the method comprising:

[0098] Dynamically read the automated test process tree in the automated process configuration file;

[0099] Parse the automated testing process tree;

[0100] Automatically execute each node of the automated test process tree and continuously output test results.

[0101] Of course, the storage medium containing computer executable instructions provided by an embodiment of the present invention is not limited to the operations of the embedded automated testing method based on the online game client in the above-mentioned embodiment, and can also execute related operations in the embedded automated testing method based on the online game client provided by any embodiment of the present invention.

[0102] Through the above description of the implementation mode, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation mode. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (FLASH), a hard disk or an optical disk, etc., including a number of instructions for an electronic device (which can be a mobile phone, a personal computer, a server, or a network device, etc.) to perform the embedded automated testing method based on the online game client described in each embodiment of the present invention.

[0103] It is worth noting that in the above-mentioned embodiment of the embedded automated testing method based on the online game client, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0104] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0105] For those skilled in the art, various other corresponding changes and deformations can be made according to the technical solutions and concepts described above, and all of these changes and deformations should fall within the protection scope of the claims of the present invention.

Claims

1. An embedded automated testing method based on an online game client, characterized in that: Applied to the game client, it includes the following steps: Dynamically read the automated test process tree in the automated process configuration file, wherein the automated process configuration file is obtained in the following manner: according to a pre-set test framework, the game logic is analyzed, the atomic interface of the game process is extracted, and according to the test requirements, the automated test process tree is configured in combination with the atomic interface to form the automated process configuration file; Parsing the automated testing process tree; Automatically execute each node of the automated test process tree, continuously output test results, traverse each node of the automated test process tree in a deep traversal manner, and execute the traversed nodes in sequence through the following steps: Query the game interface elements required to execute the current node and trigger interface element interaction events, respond to the interface element interaction events and execute corresponding logic, and update the current game state. Verify whether the current game state is consistent with the state required by the current node. If not, output the verification result as the test result, wherein the current node is the traversed node.

2. The embedded automated testing method based on the online game client according to claim 1, characterized in that: The querying and executing the game interface elements required by the current node and triggering the interface element interaction events include: According to the atomic interface, disassemble the execution logic corresponding to the current node in sequence; According to the corresponding execution logic, the interface elements required for executing the current node are queried, and the interface element interaction event is triggered.

3. The embedded automated testing method based on the online game client according to claim 1, characterized in that: The responding to the interface element interaction event and executing corresponding logic to update the current game state includes: If the interface element interaction event requires the execution of server-side logic, an uplink request is sent to the server, and after receiving the execution result sent by the server, the current game status is updated; If the interface element interaction event does not need to execute server-side logic, the client-side logic corresponding to the interface element interaction event is executed to update the current game state.

4. The embedded automated testing method based on the online game client according to claim 3, characterized in that: The responding to the interface element interaction event and executing the corresponding logic to update the current game state also includes: If the interface element interaction event requires the execution of server-side logic and client-side logic at the same time, an uplink request is sent to the server, and after receiving the execution result sent by the server, the corresponding client-side logic is executed to update the current game status.

5. The embedded automated testing method based on the online game client according to claim 3 or 4, characterized in that: After sending the uplink request to the server, the method includes: The server executes the corresponding business logic according to the uplink request and sends the execution result.

6. An embedded automated testing device based on an online game client, characterized in that: include: A configuration reading module is used to dynamically read an automated test process tree in an automated process configuration file, wherein the automated process configuration file is obtained by: analyzing the game logic according to a pre-set test framework, extracting the atomic interface of the game process, and configuring the automated test process tree in combination with the atomic interface according to test requirements to form an automated process configuration file; A logic parsing module, used to parse the automated test process tree; The automatic testing module is used to automatically execute each node of the automatic testing process tree, continuously output the test results, traverse each node of the automatic testing process tree in a deep traversal manner, and execute the traversed nodes in sequence through the following steps: Query the game interface elements required to execute the current node and trigger interface element interaction events, respond to the interface element interaction events and execute corresponding logic, and update the current game state. Verify whether the current game state is consistent with the state required by the current node. If not, output the verification result as the test result, wherein the current node is the traversed node.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the embedded automated testing method based on the online game client according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the embedded automated testing method based on the online game client according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Method, equipment and device for automated testing of game run by machine and computer readable storage medium

    CN110013672A