CN110141864B - Automatic game testing method and device and terminal - Google Patents

Automatic game testing method and device and terminal Download PDF

Info

Publication number
CN110141864B
CN110141864B CN201910362687.6A CN201910362687A CN110141864B CN 110141864 B CN110141864 B CN 110141864B CN 201910362687 A CN201910362687 A CN 201910362687A CN 110141864 B CN110141864 B CN 110141864B
Authority
CN
China
Prior art keywords
role
game
skill
target
target game
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910362687.6A
Other languages
Chinese (zh)
Other versions
CN110141864A (en
Inventor
杨军
陈强
文施嘉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tencent Domain Computer Network Co Ltd
Original Assignee
Shenzhen Tencent Domain Computer Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tencent Domain Computer Network Co Ltd filed Critical Shenzhen Tencent Domain Computer Network Co Ltd
Priority to CN201910362687.6A priority Critical patent/CN110141864B/en
Publication of CN110141864A publication Critical patent/CN110141864A/en
Application granted granted Critical
Publication of CN110141864B publication Critical patent/CN110141864B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/6009Methods for processing data by generating or executing the game program for importing or creating game content, e.g. authoring tools during game development, adapting content to different platforms, use of a scripting language to create content
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/64Methods for processing data by generating or executing the game program for computing dynamical parameters of game objects, e.g. motion determination or computation of frictional forces for a virtual car

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an automatic game testing method, an automatic game testing device and a terminal, wherein the automatic game testing method comprises the following steps: determining a target game role corresponding to a target game frame of the test case; the game scene corresponding to the test case comprises at least one target game role; determining the role identification of the target game role and the skill information of the target game role in the target game frame based on the configuration file of the test case; generating a skill frame instruction of the target game role according to the role identification and the skill information of the target game role; and executing the skill release of the target game role according to the skill frame instruction of the target game role. The invention realizes the control of a plurality of game roles including the main control role and the non-main control role on the single client, does not need a plurality of clients to carry out the matching test, saves the game test cost and the maintenance cost of the test script, improves the stability of the test process and avoids the asynchronous phenomenon among the clients.

Description

Automatic game testing method and device and terminal
Technical Field
The invention relates to the technical field of computers, in particular to an automatic game testing method, an automatic game testing device and a terminal.
Background
In the development process of games, games need to be tested, and for games of Multiplayer Online tactical sports (english acronym: Multiplayer Online Battle Arena, english abbreviation: Moba), the testing often involves a scene of interaction of multiple game characters. Because a single client can only control the corresponding master control game role and cannot control other game roles, the client can only use a plurality of clients to open a room to enter the game, and each client runs respective automatic test script to complete the test.
In the related art, if the number of game characters included in the interactive scene is large, more clients are required to participate, and the test cost is high. In addition, each client independently runs respective automatic test script, so that unified maintenance is not facilitated, normal running of each client can be guaranteed, if a certain client fails, test failure can be caused, and the stability of the test process is poor. In addition, when multiple clients run respective automated test scripts, if some GM instructions are used in the test code of a certain client and the GM instructions are not synchronized to other clients, the logic of each client is inconsistent, resulting in an asynchronous phenomenon.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide an automatic game testing method, apparatus, and terminal. The technical scheme is as follows:
in one aspect, an automatic game testing method is provided, and the method includes:
determining a target game role corresponding to a target game frame of the test case; the game scene corresponding to the test case comprises at least one target game role;
determining a role identification of the target game role and skill information of the target game role in the target game frame based on the configuration file of the test case;
generating a skill frame instruction of the target game role according to the role identification and the skill information of the target game role;
and executing the skill release of the target game role according to the skill frame instruction of the target game role.
In another aspect, there is provided a game automatic testing apparatus, the apparatus comprising:
the first determining module is used for determining a target game role corresponding to a target game frame of the test case; the game scene corresponding to the test case comprises at least one target game role;
a second determining module, configured to determine, based on the configuration file of the test case, a character identifier of the target game character and skill information of the target game character in the target game frame;
the generating module is used for generating a skill frame instruction of the target game role according to the role identification and the skill information of the target game role;
and the execution module is used for executing the skill release of the target game role according to the skill frame instruction of the target game role.
Optionally, the generating module includes:
the third determination module is used for determining a skill release interface function matched with the skill information;
the adjusting module is used for adjusting the role identification information in the skill release interface function into the role identification of the target game role;
and the generation submodule is used for calling the adjusted skill release interface function and generating a skill frame instruction of the target game role.
Optionally, the apparatus further comprises:
the first acquisition module is used for acquiring the configuration file of the test case; the configuration file comprises role information of the at least one target game role;
the creating module is used for calling a role creating interface function to create a basic game role corresponding to the role information in the game scene;
and the initialization module is used for carrying out skill initialization on the basic game role according to a component corresponding to the skill information in the role information to obtain the target game role in the game scene.
Optionally, the creating module includes:
the creating submodule is used for calling a role creating interface function and creating a basic game role corresponding to the role identification in the role information through the role creating interface function;
and the adding module is used for adding the basic game role into the game scene according to the position coordinate of the basic game role in the game scene in the role information.
Optionally, the second determining module includes:
the fourth determining module is used for determining a target role identifier corresponding to the target game role in the configuration file of the test case;
a fifth determining module, configured to determine a target skill information sequence corresponding to the target role identifier in a configuration file of the test case;
and the second acquisition module is used for acquiring the target skill information matched with the target game frame from the target skill information sequence to obtain the skill information of the target game role in the target game frame.
Optionally, the apparatus further comprises:
the data acquisition module is used for acquiring skill effect data corresponding to the skill release to obtain target test data corresponding to the target game frame;
a third obtaining module, configured to obtain expected test data corresponding to the target game frame in the test case;
and the comparison module is used for determining the test result of the target game frame according to the comparison result of the target test data and the expected test data.
In another aspect, a terminal is provided, which includes a processor and a memory, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the above game automatic testing method.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the method comprises the steps of determining a target game role corresponding to a target game frame of a test case; the game scene corresponding to the test case comprises at least one target game role; determining the character identification of the target game character and the skill information of the target game character in the target game frame based on the configuration file of the test case; generating a skill frame instruction of the target game role according to the role identification and the skill information of the target game role; according to the skill frame instruction of the target game role, the skill release of the target game role is executed, so that the control of a plurality of game roles including a main control role and a non-main control role is realized on a single client during game testing, a plurality of clients are not required to be matched for testing, the game testing cost is saved, the unified maintenance of an automatic testing script is facilitated, the maintenance cost is reduced, the stability of the testing process is improved, and the asynchronous phenomenon among the clients is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart of an automatic game testing method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for generating skill frame instructions of the target game character according to the character identifier and skill information of the target game character according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of another automatic game testing method provided by the embodiment of the invention;
FIG. 4 is a flow chart of another automatic testing method for games provided by embodiments of the present invention;
FIG. 5 is a schematic structural diagram of an automatic game testing device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a generating module according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of another automatic game testing device according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of another automatic game testing device provided in the embodiment of the present invention;
fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention provides an automatic game testing method, which can be applied to the automatic game testing device in the embodiment of the invention, and the automatic game testing device can be configured in a terminal or a client of the terminal. The terminal can be a hardware device with various operating systems, such as a smart phone, a desktop computer, a tablet computer, a notebook computer, and the like. The client may be a game application installed in the terminal, and the game application may be a multiplayer online tactical sports game or the like.
Referring to fig. 1, which is a flow chart illustrating a method for automatically testing a game according to an embodiment of the present invention, it should be noted that the present specification provides the method operation steps as described in the embodiment or the flow chart, but more or less operation steps may be included based on conventional or non-creative labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In actual system or end product execution, sequential execution or parallel execution (e.g., parallel processor or multi-threaded environment) may be possible according to the embodiments or methods shown in the figures. Specifically, as shown in fig. 1, the method includes:
s101, determining a target game role corresponding to a target game frame of a test case; the game scene corresponding to the test case comprises at least one target game role.
In the embodiment of the description, a tester designs a corresponding test case according to the test requirements of an interactive scene, and the test case is obtained by combining behavior tree nodes by a preset application program, wherein the behavior tree nodes can be selected from a preset behavior tree node library, and the behavior tree nodes are obtained by packaging the test behaviors of game logic coupling.
It should be noted that the behavior tree is a multi-branch tree data structure, the node type of the behavior tree can be divided into logic nodes, condition nodes and behavior nodes according to rules, and each type of node can be continuously enriched and expanded according to the requirements of test cases.
After the test case is determined, the corresponding parameters need to be configured according to the test case to form a configuration file corresponding to the test case. The configuration file comprises the role identification of the game role related to the test case and the role information of each game role. The character identifier is used for uniquely identifying a middle character of a game scene, and the character information may include a skill information sequence of a corresponding game character.
In practical application, a test case is run through a test client, and a configuration file corresponding to the test case is loaded. In an embodiment of the present specification, a game scene corresponding to a test case includes at least one target game role.
S103, determining the character identification of the target game character and the skill information of the target game character in the target game frame based on the configuration file of the test case.
The skill information includes specific skill content and an object of the skill effect, the target game role is an implementation subject of the skill information, for example, if the skill information of the target game role a is an attack B, then a is the implementation subject of the attack, and B is the object of the attack effect. The skill content may include attributes, bullets, buffs, equipment, and the like, and the attributes may include attack power, speed, defense power, and the like.
And S105, generating a skill frame instruction of the target game role according to the role identification and the skill information of the target game role.
In this embodiment of the present specification, when generating a skill frame command for a target game character, based on a character identifier of the target game character and skill information, an implementation subject of the skill information is specified in the skill frame command as the target game character corresponding to the character identifier.
In practical applications, the skill frame instruction for generating the target game character according to the character identifier and the skill information of the target game character may adopt a method shown in fig. 2, where the method may include:
s201, determining a skill release interface function matched with the skill information.
Specifically, a skill release interface function matched with the skill content is obtained according to the specific skill content in the skill information, and a skill action object in the skill release interface function is updated to an action object in the skill information.
S203, adjusting the character identification information in the skill release interface function to the character identification of the target game character.
Specifically, the character identification information in the skill release interface function is used to specify the skill implementing subject, i.e., the player of the skill in the game. And adjusting the character identification information in the skill release interface function to the character identification of the target game character, so that the release person or the implementation subject of the skill corresponding to the skill release interface function is determined as the target game character corresponding to the character identification. It is understood that the target game character may be a master game character of the test client or a non-master game character.
And S205, calling the adjusted skill release interface function to generate a skill frame instruction of the target game role.
In practical application, before the skill release interface function is called, the position information of the target game role in the target game frame and the position information of the skill effect object in the skill information can be further acquired, and the position information of the target game role and the position information of the skill effect object in the skill information are updated into the skill release interface function. Of course, other parameters in the skill release interface function may also be updated according to actual requirements, for example, a release angle when the skill is released, and the like.
And S107, executing the skill release of the target game role according to the skill frame instruction of the target game role.
In the embodiment of the present specification, since the skill frame command of the target game character specifies that the implementation subject or the releaser of the corresponding skill is the target game character, the target game character releases when the skill is released, and the control of all the game characters involved in the test case is realized, instead of the control of only the master game character of the test client.
In practical application, the skill frame instruction of the target game role can be sent to a logic module in the test client, the logic module receives the skill frame instruction and then analyzes the skill frame instruction to obtain a corresponding role identifier, skill information and the like, the target game role with the released skill is determined according to the role identifier, and then the state of the behavior tree is modified based on the skill information, so that the skill release of the target game role is realized.
According to the technical scheme, the target game role corresponding to the target game frame of the test case is determined; the game scene corresponding to the test case comprises at least one target game role; determining the character identification of the target game character and the skill information of the target game character in the target game frame based on the configuration file of the test case; generating a skill frame instruction of the target game role according to the role identification and the skill information of the target game role; according to the skill frame instruction of the target game role, the skill release of the target game role is executed, so that the control of a plurality of game roles including a main control role and a non-main control role is realized on a single client during game testing, a plurality of clients are not required to be matched for testing, the game testing cost is saved, the unified maintenance of an automatic testing script is facilitated, the maintenance cost is reduced, the stability of the testing process is improved, and the asynchronous phenomenon among the clients is avoided.
Referring to fig. 3, there is shown another automatic game testing method according to an embodiment of the present invention, as shown in fig. 3, the method may include:
s301, acquiring a configuration file of the test case; the configuration file comprises role information of the at least one target game role.
Specifically, a test case is run through a test client, a configuration file corresponding to the test case is obtained, and role information of game roles included in a game scene corresponding to the test case is configured in the configuration file.
S303, calling a role creating interface function to create a basic game role corresponding to the role information in the game scene.
Specifically, a base game character corresponding to character information is created based on the character information of each game character.
In practical applications, the character information of the game character may include creation information for creating the game character, and the creation information may include a character identifier of the game character and position coordinates of the game character in the game scene.
In the specific creating process of the basic game character, a character creating interface function may be called, and the basic game character corresponding to the character identifier in the character information is created through the character creating interface function. Specifically, a role creation interface function may be configured on the test client, and creation of a plurality of game roles is implemented by the role creation interface function, and it can be understood that the plurality of game roles include a game role that is not a master control of the test client.
And adding the basic game role into the game scene according to the position coordinate of the basic game role in the game scene in the role information.
The created basic game role can be a robot, and the robot refers to an entity which can be controlled and can simulate the user behavior.
S305, carrying out skill initialization on the basic game role according to the components corresponding to the skill information in the role information to obtain the target game role in the game scene.
In an embodiment of the present specification, the character information further includes a skill information sequence of the target game character, the skill information sequence including skill information of the target game character in the sequentially progressing game frames. And performing skill initialization on each basic game role, so that each basic game role obtains skill capability, and a target game role in a game scene corresponding to the test case is obtained.
Specifically, the skill initialization is based on the skill content included in the skill information, and may include, for example, initialization of attributes, bullets, buffs, and equipment, where the attributes may include attack force, speed, defense force, and the like.
In addition to the skill initialization of the base game character, the player information initialization of the base game character may be performed. Specifically, the character information of each game character may further include player basic information, such as a play, a VIP level, a segment, a ranking, and the like, and the player information is initialized by the player information to be assigned to the corresponding game character.
After initialization, automatic testing of the game scene corresponding to the test case can be performed.
And S307, determining a target game role corresponding to the target game frame of the test case.
S309, determining the character identification of the target game character and the skill information of the target game character in the target game frame based on the configuration file of the test case.
In some embodiments, this step can be implemented in three steps:
determining a target role identifier corresponding to the target game role in a configuration file of the test case;
determining a target skill information sequence corresponding to the target role identification in a configuration file of the test case;
and acquiring target skill information matched with the target game frame from the target skill information sequence to obtain the skill information of the target game role in the target game frame.
S311, generating a skill frame instruction of the target game role according to the role identification and the skill information of the target game role.
S313, according to the skill frame instruction of the target game character, the skill release of the target game character is executed.
The details of steps S307 to S313 may refer to the contents of the corresponding steps in the embodiment of the method shown in fig. 1, and are not repeated herein.
In practical applications, it is necessary to obtain a test result, that is, whether a test case passes or not, so that, after the skill release of the target game character is executed according to the skill frame instruction of the target game character, as shown in fig. 4, the method may further include:
and S109, acquiring skill effect data corresponding to the skill release to obtain target test data corresponding to the target game frame.
Specifically, when acquiring skill effect data, target game characters in a game scene may be traversed, and skill effect data corresponding to each target game character may be acquired, where the skill effect data may include, for example, each attribute value, a buff effect, and the like. For example, if a test a hero releases a skill and then shields buff itself and teammates, the collected skill effect data may include buff for itself and teammates.
And S111, acquiring expected test data corresponding to the target game frame in the test case.
S113, determining the test result of the target game frame according to the comparison result of the target test data and the expected test data.
Specifically, when the target test data is consistent with the expected test data, the test result of the target game frame may be determined to be passed, otherwise, the test result of the target game frame may be determined to be not passed. For example, if the target test data includes buff for oneself and teammates, it indicates that the target test data is consistent with the expected test data, and the test of the target game frame passes. When the test results of all the game frames in the test case are passed, the test result of the test case is passed; on the contrary, if the test result of the game frame is failed, the test result of the corresponding test case is failed.
It should be noted that step S111 and step S113 may be performed after each skill is released, or may be performed after all skills in the skill information sequence corresponding to the test case are released, which is not limited in the present invention.
According to the technical scheme of the embodiment of the invention, the embodiment of the invention can realize the control of a plurality of game roles including the main control role and the non-main control role on a single client, and does not need a plurality of clients for matching test, so that the game test cost is saved, the unified maintenance of an automatic test script is facilitated, the maintenance cost is reduced, the stability of the test process is improved, and the phenomenon of desynchrony among the clients is avoided.
Corresponding to the automatic game testing methods provided in the above embodiments, embodiments of the present invention further provide an automatic game testing apparatus, and since the automatic game testing apparatus provided in embodiments of the present invention corresponds to the automatic game testing methods provided in the above embodiments, embodiments of the automatic game testing method are also applicable to the automatic game testing apparatus provided in this embodiment, and will not be described in detail in this embodiment.
Referring to fig. 5, which is a schematic structural diagram of an automatic game testing apparatus according to an embodiment of the present invention, as shown in fig. 5, the apparatus may include: a first determining module 510, a second determining module 520, a generating module 530, and an executing module 540, wherein,
a first determining module 510, configured to determine a target game role corresponding to a target game frame of a test case; the game scene corresponding to the test case comprises at least one target game role;
a second determining module 520, configured to determine, based on the configuration file of the test case, a character identifier of the target game character and skill information of the target game character in the target game frame;
a generating module 530, configured to generate a skill frame instruction of the target game role according to the role identifier and the skill information of the target game role;
and an executing module 540, configured to execute skill release of the target game character according to the skill frame instruction of the target game character.
In some embodiments, as shown in fig. 6, the generating module 530 may include:
a third determining module 5310, configured to determine a skill release interface function matched with the skill information;
an adjusting module 5320, configured to adjust the character identifier information in the skill release interface function to the character identifier of the target game character;
the generating submodule 5330 is configured to invoke the adjusted skill release interface function, and generate a skill frame instruction of the target game character.
In some embodiments, as shown in fig. 7, the structural diagram of another automatic testing device for games may further include:
a first obtaining module 550, configured to obtain a configuration file of the test case; the configuration file comprises role information of the at least one target game role;
a creating module 560, configured to invoke a role creating interface function to create a basic game role corresponding to the role information in the game scene;
the initializing module 570 is configured to perform skill initialization on the basic game role according to a component corresponding to the skill information in the role information, so as to obtain the target game role in the game scene.
Optionally, the creating module 560 may include:
the creating submodule is used for calling a role creating interface function and creating a basic game role corresponding to the role identification in the role information through the role creating interface function;
and the adding module is used for adding the basic game role into the game scene according to the position coordinate of the basic game role in the game scene in the role information.
Optionally, the second determining module 520 may include:
the fourth determining module is used for determining a target role identifier corresponding to the target game role in the configuration file of the test case;
a fifth determining module, configured to determine a target skill information sequence corresponding to the target role identifier in a configuration file of the test case;
and the second acquisition module is used for acquiring the target skill information matched with the target game frame from the target skill information sequence to obtain the skill information of the target game role in the target game frame.
Optionally, as shown in fig. 8, the apparatus may further include:
a data collecting module 580, configured to collect skill effect data corresponding to the skill release, so as to obtain target test data corresponding to the target game frame;
a third obtaining module 590, configured to obtain expected test data corresponding to the target game frame in the test case;
a comparison module 500, configured to determine a test result of the target game frame according to a comparison result between the target test data and the expected test data.
The automatic game testing device determines the target game role corresponding to the target game frame of the test case; the game scene corresponding to the test case comprises at least one target game role; determining the character identification of the target game character and the skill information of the target game character in the target game frame based on the configuration file of the test case; generating a skill frame instruction of the target game role according to the role identification and the skill information of the target game role; and executing the skill release of the target game role according to the skill frame instruction of the target game role, thereby realizing the control of a plurality of game roles including a master control role and a non-master control role on a single client during game test, avoiding the need of matching test of a plurality of clients, saving the game test cost, facilitating the unified maintenance of an automatic test script, reducing the maintenance cost, improving the stability of the test process and avoiding the asynchronous phenomenon among the clients.
Please refer to fig. 9, which is a schematic structural diagram of a terminal according to an embodiment of the present invention, the terminal is used for implementing the automatic game testing method provided in the foregoing embodiment. Specifically, the method comprises the following steps:
the terminal 900 may include RF (Radio Frequency) circuitry 910, memory 920 including one or more computer-readable storage media, an input unit 930, a display unit 940, a video sensor 950, audio circuitry 960, a WiFi (wireless fidelity) module 970, a processor 980 including one or more processing cores, and a power supply 90. Those skilled in the art will appreciate that the terminal structure shown in fig. 9 does not constitute a limitation of the terminal, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 910 may be used for receiving and transmitting signals during a message transmission or call, and in particular, for receiving downlink information from a base station and then processing the received downlink information by the one or more processors 980; in addition, data relating to uplink is transmitted to the base station. In general, RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), and the like.
The memory 920 may be used to store software programs and modules, and the processor 980 performs various functional applications and data processing by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as video data, a phone book, etc.) created according to the use of the terminal 900, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 920 may also include a memory controller to provide the processor 980 and the input unit 930 with access to the memory 920.
The input unit 930 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Specifically, the input unit 930 may include an image input device 931 and other input devices 932. The image input device 931 may be a camera or a photoelectric scanning device. The input unit 930 may include other input devices 932 in addition to the image input device 931. In particular, other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 940 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal 900, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 940 may include a Display panel 941, and optionally, the Display panel 941 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
Terminal 900 can include at least one video sensor 950 for obtaining video information of a user. Terminal 900 can also include other sensors (not shown), such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 941 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 941 and/or a backlight when the terminal 900 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal 900, detailed descriptions thereof are omitted.
Video circuitry 960, speaker 961, microphone 962 may provide a video interface between a user and terminal 900. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and convert the electrical signal into a sound signal for output by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 960, and then outputs the audio data to the processor 990 for processing, and then transmits the audio data to, for example, another terminal via the RF circuit 910, or outputs the audio data to the memory 920 for further processing. The audio circuit 960 may also include an earbud jack to provide communication of peripheral headphones with the terminal 900.
WiFi belongs to a short-distance wireless transmission technology, and the terminal 900 can help a user send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 970, which provides the user with wireless broadband internet access. Although fig. 9 shows the WiFi module 970, it is understood that it does not belong to the essential constitution of the terminal 900 and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 980 is a control center of the terminal 900, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal 900 and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the handset. Optionally, processor 980 may include one or more processing cores; preferably, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
The terminal 900 also includes a power supply 90 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 980 via a power management system that provides management of charging, discharging, and power consumption. The power supply 90 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal 900 may further include a bluetooth module, etc., which will not be described in detail herein.
In this embodiment, the terminal 900 further includes a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs include instructions for performing the automatic testing method for games provided by the above method embodiments.
In an embodiment of the present invention, there is also provided a non-transitory computer readable storage medium, such as a memory, comprising instructions executable by a processor of a terminal to perform the steps in the above-described method embodiments. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (9)

1. An automatic game testing method is applied to a multiplayer online tactical competitive game, and comprises the following steps:
determining a target game role corresponding to a target game frame of the test case; the game scene corresponding to the test case comprises at least one target game role, and the target game role comprises a master control game role and a non-master control game role;
determining a role identification of the target game role and skill information of the target game role in the target game frame based on the configuration file of the test case; the skill information comprises skill content and a skill effect object;
acquiring a skill release interface function matched with the skill content according to the skill content in the skill information, adjusting the skill action object information in the skill release interface function to be the skill action object in the skill information, and adjusting the role identification information in the skill release interface function to be the role identification of the target game role; the role identification information in the skill release interface function is used for indicating a skill implementation subject;
calling the adjusted skill release interface function to generate a skill frame instruction of the target game role;
and executing the skill release of the target game role according to the skill frame instruction of the target game role, so that the control of a plurality of game roles including a main control role and a non-main control role is realized on a single client during game testing, and the cooperation test of a plurality of clients is not required.
2. The automated game testing method of claim 1, further comprising:
acquiring a configuration file of the test case; the configuration file comprises role information of the at least one target game role;
calling a role creating interface function to create a basic game role corresponding to the role information in the game scene;
and carrying out skill initialization on the basic game role according to a component corresponding to the skill information in the role information to obtain a target game role in the game scene.
3. The automatic game testing method of claim 2, wherein the invoking of the character creation interface function to create the base game character corresponding to the character information in the game scene comprises:
calling a role creating interface function, and creating a basic game role corresponding to the role identification in the role information through the role creating interface function;
and adding the basic game role into the game scene according to the position coordinate of the basic game role in the game scene in the role information.
4. The method of claim 3, wherein the determining the character identifier of the target game character based on the configuration file of the test case, and the skill information of the target game character in the target game frame comprises:
determining a target role identifier corresponding to the target game role in a configuration file of the test case;
determining a target skill information sequence corresponding to the target role identification in a configuration file of the test case;
and acquiring target skill information matched with the target game frame from the target skill information sequence to obtain the skill information of the target game role in the target game frame.
5. The game automatic testing method according to claim 1, wherein after the skill release of the target game character is performed according to the skill frame instruction of the target game character, the method further comprises:
acquiring skill effect data corresponding to the skill release to obtain target test data corresponding to the target game frame;
obtaining expected test data corresponding to the target game frame in the test case;
and determining the test result of the target game frame according to the comparison result of the target test data and the expected test data.
6. An automatic game testing device, which is applied to a multiplayer online tactical competitive game, the device comprising:
the first determining module is used for determining a target game role corresponding to a target game frame of the test case; the game scene corresponding to the test case comprises at least one target game role, and the target game role comprises a master control game role and a non-master control game role;
a second determining module, configured to determine, based on the configuration file of the test case, a character identifier of the target game character and skill information of the target game character in the target game frame;
the generating module is used for acquiring a skill release interface function matched with the skill content according to the skill content in the skill information, adjusting the skill action object information in the skill release interface function to be the skill action object in the skill information, and adjusting the character identification information in the skill release interface function to be the character identification of the target game character; the role identification information in the skill release interface function is used for indicating a skill implementation subject; calling the adjusted skill release interface function to generate a skill frame instruction of the target game role;
and the execution module is used for executing the skill release of the target game role according to the skill frame instruction of the target game role, so that the control of a plurality of game roles including a main control role and a non-main control role is realized on a single client during game testing, and the cooperation test of a plurality of clients is not required.
7. The automatic game testing apparatus of claim 6, further comprising: the first acquisition module is used for acquiring the configuration file of the test case; the configuration file comprises role information of the at least one target game role;
the creating module is used for calling a role creating interface function to create a basic game role corresponding to the role information in the game scene;
and the initialization module is used for carrying out skill initialization on the basic game role according to a component corresponding to the skill information in the role information to obtain the target game role in the game scene.
8. A terminal comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes or set of instructions, the at least one instruction, the at least one program, the set of codes or set of instructions being loaded and executed by the processor to implement a method of automatic testing of a game according to any of claims 1 to 5.
9. A computer readable storage medium having stored therein at least one instruction or at least one program, the at least one instruction or the at least one program being loaded and executed by a processor to implement the method of automatic testing of a game according to any one of claims 1 to 5.
CN201910362687.6A 2019-04-30 2019-04-30 Automatic game testing method and device and terminal Active CN110141864B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910362687.6A CN110141864B (en) 2019-04-30 2019-04-30 Automatic game testing method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910362687.6A CN110141864B (en) 2019-04-30 2019-04-30 Automatic game testing method and device and terminal

Publications (2)

Publication Number Publication Date
CN110141864A CN110141864A (en) 2019-08-20
CN110141864B true CN110141864B (en) 2022-08-23

Family

ID=67593878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910362687.6A Active CN110141864B (en) 2019-04-30 2019-04-30 Automatic game testing method and device and terminal

Country Status (1)

Country Link
CN (1) CN110141864B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026371B (en) * 2019-12-11 2023-09-29 上海米哈游网络科技股份有限公司 Game development method and device, electronic equipment and storage medium
CN111068315A (en) * 2019-12-12 2020-04-28 珠海豹趣科技有限公司 Method and device for positioning frame synchronization problem and electronic equipment
CN111143223A (en) * 2019-12-30 2020-05-12 珠海金山网络游戏科技有限公司 Server pressure testing method and device
CN111274151B (en) * 2020-02-10 2021-08-20 腾讯科技(深圳)有限公司 Game testing method, related device and storage medium
CN111400184B (en) * 2020-03-17 2021-10-29 腾讯科技(深圳)有限公司 Game testing method, device, system, equipment and cloud platform
CN111481937B (en) * 2020-04-09 2023-04-07 网易(杭州)网络有限公司 Game task testing method and device, testing terminal and server
CN111494951B (en) * 2020-04-15 2022-02-22 腾讯科技(深圳)有限公司 Virtual object control method, device, terminal and storage medium
CN111589126B (en) * 2020-04-23 2023-07-04 腾讯科技(深圳)有限公司 Virtual object control method, device, equipment and storage medium
CN111813686B (en) * 2020-07-20 2022-05-27 腾讯科技(深圳)有限公司 Game testing method and device, testing terminal and storage medium
CN112069079B (en) * 2020-09-22 2024-03-22 腾讯科技(成都)有限公司 Performance test method, related device and storage medium
CN112231220B (en) * 2020-10-26 2022-09-09 腾讯科技(深圳)有限公司 Game testing method and device
CN112860579B (en) * 2021-03-17 2024-03-22 深圳市腾讯信息技术有限公司 Service testing method, device, storage medium and equipment
CN113608978B (en) * 2021-07-15 2022-08-02 荣耀终端有限公司 Test method, test device and computer readable storage medium
CN114191822B (en) * 2021-11-19 2023-07-25 腾讯科技(深圳)有限公司 Test method, test device, computer equipment, storage medium and product

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106610897A (en) * 2015-10-27 2017-05-03 广州爱九游信息技术有限公司 Automatic test method and system for balance of game values

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050086022A1 (en) * 2003-10-15 2005-04-21 Microsoft Corporation System and method for providing a standardized test framework
CN104102799B (en) * 2013-04-01 2020-09-11 腾讯科技(深圳)有限公司 Game data testing method and testing device
CN106657127B (en) * 2017-01-05 2020-09-08 腾讯科技(深圳)有限公司 Information processing method and device and server
CN107678970A (en) * 2017-10-20 2018-02-09 网易(杭州)网络有限公司 Automated testing method and device, storage medium, electronic equipment
CN108536598B (en) * 2018-04-12 2023-03-10 深圳市腾讯网络信息技术有限公司 Skill logic testing method and device, testing terminal and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106610897A (en) * 2015-10-27 2017-05-03 广州爱九游信息技术有限公司 Automatic test method and system for balance of game values

Also Published As

Publication number Publication date
CN110141864A (en) 2019-08-20

Similar Documents

Publication Publication Date Title
CN110141864B (en) Automatic game testing method and device and terminal
CN106686396B (en) Method and system for switching live broadcast room
US10824449B2 (en) Application running method and device
CN111420399B (en) Virtual character reloading method, device, terminal and storage medium
CN111282268B (en) Plot showing method, plot showing device, plot showing terminal and storage medium in virtual environment
CN104954149B (en) The method, apparatus and system of data sharing are carried out in Web conference
CN108958805A (en) menu display method and device
US20140376415A1 (en) Systems and Methods for Voice Communication
CN107908765B (en) Game resource processing method, mobile terminal and server
CN112328492B (en) Interaction control method and device between anchor and electronic equipment
CN105447124A (en) Virtual article sharing method and device
CN110069375A (en) A kind of method and relevant apparatus of pressure test
US20150178667A1 (en) Method, apparatus, and communication system of updating user data
CN108874653A (en) Task test method, test machine, shared server and readable storage medium storing program for executing
CN104536782A (en) Guide content display method, and file generation method and device
CN105512150A (en) Method and device for information search
CN111273955A (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
US20160119695A1 (en) Method, apparatus, and system for sending and playing multimedia information
WO2014169639A1 (en) Systems and methods for data exchange in voice communication
CN105320532B (en) Method, device and terminal for displaying interactive interface
CN111367502A (en) Numerical value processing method and device
CN108920086B (en) Split screen quitting method and device, storage medium and electronic equipment
CN105528220B (en) Method and device for loading dynamic shared object
CN112732250A (en) Interface processing method, device and storage medium
CN106209601B (en) State update message pushing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant