CN110141864A - A kind of game automatic test approach, device and terminal - Google Patents

A kind of game automatic test approach, device and terminal Download PDF

Info

Publication number
CN110141864A
CN110141864A CN201910362687.6A CN201910362687A CN110141864A CN 110141864 A CN110141864 A CN 110141864A CN 201910362687 A CN201910362687 A CN 201910362687A CN 110141864 A CN110141864 A CN 110141864A
Authority
CN
China
Prior art keywords
role
game
target game
target
technical ability
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.)
Granted
Application number
CN201910362687.6A
Other languages
Chinese (zh)
Other versions
CN110141864B (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

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)
  • Debugging And Monitoring (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of game automatic test approach, device and terminals, and wherein game automatic test approach comprises determining that the corresponding target game role of the target game frame of test case;It include at least one target game role in the corresponding scene of game of the test case;The performance information of the role identification and target game role of target game role in target game frame is determined based on the configuration file of the test case;According to the role identification and performance information of target game role, the technical ability frame instruction of target game role is generated;It is instructed according to the technical ability frame of target game role, the technical ability release of performance objective game role.The present invention realizes the manipulation to the multiple game roles for including primary role and non-primary role in single client, more clients are no longer needed to carry out cooperation test, the maintenance cost of game testing cost and test script is saved, the stability of test process is improved, avoids between each client and asynchrony phenomenon occurs.

Description

A kind of game automatic test approach, device and terminal
Technical field
The present invention relates to field of computer technology, in particular to a kind of game automatic test approach, device and terminal.
Background technique
In the development process of game, need to test game, the sports of online for more people tactics (full name in English: Multiplayer Online Battle Arena, english abbreviation: Moba) for class game, test frequently refers to multiple The scene of game role interaction.Since single client can only manipulate its corresponding master control game role, cannot go to manipulate other trips Play role, therefore can only be rented a room in a hotel by using multiple client into intra-office, and each client runs respective automation and surveys Training is completed to test originally.
In the related technology, if the game role for including in interaction scenarios is relatively more, more client is needed to join With testing cost is larger.In addition, each respective automatic test script of client isolated operation is unfavorable for uniformly safeguarding, and And need to guarantee that each client can operate normally, it if wherein some client goes wrong, will lead to test crash, survey The stability of examination process is poor.In addition, when multiple client runs respective automatic test script, if some client Test code in instructed using some GM, and these instructions are not synchronized to other clients, and it will cause each clients The logic at end is inconsistent, leads to nonsynchronous phenomenon.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of game automatic test approach, device and Terminal.The technical solution is as follows:
On the one hand, a kind of game automatic test approach is provided, which comprises
Determine the corresponding target game role of the target game frame of test case;The corresponding scene of game of the test case In include at least one target game role;
The role identification and the target of the target game role are determined based on the configuration file of the test case Performance information of the game role in the target game frame;
According to the role identification and performance information of the target game role, the technical ability frame of the target game role is generated Instruction;
It is instructed according to the technical ability frame of the target game role, executes the technical ability release of the target game role.
On the other hand, a kind of game automatic testing equipment is provided, described device includes:
First determining module, the corresponding target game role of target game frame for determining test case;The test It include at least one target game role in the corresponding scene of game of use-case;
Second determining module, for determining the role of the target game role based on the configuration file of the test case The performance information of mark and the target game role in the target game frame;
Generation module generates the target trip for the role identification and performance information according to the target game role The technical ability frame instruction of play role;
Execution module executes the target game role's for instructing according to the technical ability frame of the target game role Technical ability release.
Optionally, the generation module includes:
Third determining module, for the determining technical ability realizing interface function to match with the performance information;
Module is adjusted, for the role identification information in the technical ability realizing interface function to be adjusted to the target game The role identification of role;
It generates submodule and generates the target game role for calling the technical ability realizing interface function adjusted Technical ability frame instruction.
Optionally, described device further include:
First obtains module, for obtaining the configuration file of the test case;Described in including in the configuration file extremely The Role Information of a few target game role;
Creation module, it is corresponding for calling role's creation interface function to create the Role Information in the scene of game Basic game role;
Initialization module, for according to the corresponding component of performance information in the Role Information to the basic game angle Color carries out technical ability initialization, obtains the target game role in the scene of game.
Optionally, the creation module includes:
Submodule is created, for calling role to create interface function, interface function creation and institute are created by the role State the corresponding basic game role of role identification in Role Information;
Adding module, for position of the basic game role in the scene of game according to the Role Information The basic game role is added in the scene of game by coordinate.
Optionally, second determining module includes:
4th determining module, target corresponding with the target game role in the configuration file for determining test case Role identification;
5th determining module, for determining that target roles described in the configuration file of test case identify corresponding target skill It can information sequence;
Second obtains module, matches for obtaining from the target performance information sequence with the target game frame Target performance information obtains performance information of the target game role in the target game frame.
Optionally, described device further include:
Data acquisition module discharges corresponding technical ability effect data for acquiring the technical ability, obtains corresponding to the mesh Mark the target detection data of game frame;
Third obtains module, for obtaining expectation test number corresponding with the target game frame in the test case According to;
Comparison module determines institute for the comparison result according to the target detection data and the expectation test data State the test result of target game frame.
On the other hand, a kind of terminal, including processor and memory are provided, is stored at least one in the memory Instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set Or instruction set is loaded by the processor and is executed to realize above-mentioned game automatic test approach.
Technical solution provided in an embodiment of the present invention has the benefit that
The embodiment of the present invention passes through the corresponding target game role of target game frame for determining test case;The test is used It include at least one target game role in the corresponding scene of game of example;Described in configuration file determination based on the test case The performance information of the role identification of target game role and the target game role in the target game frame;According to The role identification and performance information of the target game role generates the technical ability frame instruction of the target game role;According to institute The technical ability frame instruction for stating target game role executes the technical ability release of the target game role, thus in game test, The manipulation to the multiple game roles for including primary role and non-primary role is realized in single client, it is no longer necessary to more clients End carries out cooperation test, has saved game testing cost, convenient for the unified maintenance of automatic test script, reduce maintenance at This, and improves the stability of test process, avoids between each client and asynchrony phenomenon occurs.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of flow diagram of game automatic test approach provided in an embodiment of the present invention;
Fig. 2 is the role identification and performance information provided in an embodiment of the present invention according to the target game role, is generated A kind of flow diagram of method of the technical ability frame instruction of the target game role;
Fig. 3 is the flow diagram of another game automatic test approach provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of another game automatic test approach provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of game automatic testing equipment provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of generation module provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another game automatic testing equipment provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of another game automatic testing equipment provided in an embodiment of the present invention;
Fig. 9 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
The embodiment of the invention provides a kind of game automatic test approach, this method can be applied to the embodiment of the present invention Game automatic testing equipment, the game automatic testing equipment are configured in the client of terminal or terminal.Wherein, terminal can To be the hardware device with various operating systems such as smart phone, desktop computer, tablet computer, laptop.Client It can be mounted in the game application of terminal, which can be online tactics competitive game of more people etc..
Referring to Fig. 1, its flow diagram for showing a kind of game automatic test approach provided in an embodiment of the present invention, It should be noted that present description provides the method operating procedures as described in embodiment or flow chart, but based on conventional or No creative labor may include more or less operating procedure.The step of enumerating in embodiment sequence is only numerous One of step execution sequence mode does not represent and unique executes sequence.When system or end product in practice executes, Can be executed according to embodiment or the execution of method shown in the drawings sequence or parallel (such as parallel processor or multithreading The environment of processing).Specifically, as shown in Figure 1, which comprises
S101 determines the corresponding target game role of the target game frame of test case;The corresponding trip of the test case It include at least one target game role in scene of playing.
In this specification embodiment, tester designs corresponding test case according to the testing requirement of interaction scenarios, Test case is combined to obtain by default application program to behavior tree node, wherein behavior tree node can be from presetting Behavior tree node library in choose, behavior tree node for the behavioral test that game logic couples by being packaged to obtain.
It should be noted that behavior tree is a multi-branch tree data structure, behavior burl vertex type can be drawn according to rule It is divided into logical node, condition node and behavior node, all types of nodes can be enriched constantly extension according to test case demand.
After test case has been determined, needs to carry out the configuration of corresponding parameter according to test case, form test case pair The configuration file answered.The role identification for the game role being related in the configuration file including test case and each game angle The Role Information of color.Wherein, role identification is used for the middle role of unique identification scene of game, and Role Information may include corresponding trip The performance information sequence of play role.
In practical application, test case is run by a test client, and load the corresponding configuration of the test case File.It include at least one target game role in the corresponding scene of game of test case in this specification embodiment.
S103 determines the role identification of the target game role, Yi Jisuo based on the configuration file of the test case State performance information of the target game role in the target game frame.
Wherein, performance information includes the object of specific technical ability content and technical ability effect, and target game role is should The subject of implementation of performance information, for example, the performance information of target game role A is to hit B cruelly, then A is the subject of implementation hit cruelly, B is the object for hitting effect cruelly.Wherein, technical ability content may include attribute, bullet, buff and equipment etc., and attribute may include Attack, speed, phylactic power defensive power etc..
S105 generates the target game role's according to the role identification and performance information of the target game role The instruction of technical ability frame.
In this specification embodiment, in the technical ability frame instruction for generating target game role, based on target game role's Role identification and performance information, so that the subject of implementation for defining the performance information in the instruction of technical ability frame is the role identification Corresponding target game role, it is possible to understand that, target game role can be the master control game angle of test client at this time Color is also possible to non-master control game role.
In practical application, the role identification and performance information according to the target game role generates the target The technical ability frame instruction of game role can use method shown in Fig. 2, and this method may include:
S201, the determining technical ability realizing interface function to match with the performance information.
It is connect specifically, obtaining the technical ability release to match with the technical ability content according to the specific technical ability content in performance information Mouth function, and the technical ability effective object in the technical ability realizing interface function is updated to the effective object in the performance information.
Role identification information in the technical ability realizing interface function is adjusted to the angle of the target game role by S203 Colour code is known.
Specifically, the role identification information in technical ability realizing interface function is used to provide the subject of implementation of technical ability, that is, The releaser of technical ability in game.By the way that the role identification information in technical ability realizing interface function is adjusted to target game role's Role identification is marked so that the releaser of the corresponding technical ability of technical ability realizing interface function or subject of implementation are determined as the role Know corresponding target game role.It should be understood that target game role can be the master control game role of test client, It is also possible to non-master control game role.
S205, calls the technical ability realizing interface function adjusted, and the technical ability frame for generating the target game role refers to It enables.
In practical application, target game role can also further be obtained in target before technical ability realizing interface function by calling The location information of technical ability effective object in location information and performance information in game frame, and by the updating location information of the two Into technical ability realizing interface function.It is, of course, also possible to according to actual needs to the other parameters in technical ability realizing interface function into Row updates, for example, the release angle etc. when technical ability discharges.
S107 is instructed according to the technical ability frame of the target game role, executes the technical ability release of the target game role.
In this specification embodiment, due to defining the implementation of corresponding technical ability in the technical ability frame instruction of target game role Releaser is target game role to main body in other words, thus discharged when executing technical ability release by target game role, The manipulation to all game roles involved in test case is realized, rather than only to the master control game angle of test client The manipulation of color.
In practical application, the technical ability frame of target game role can be instructed into the logic mould being sent in test client Block, the logic module parse the technical ability frame and instruct to obtain corresponding role identification and performance information after receiving the instruction of technical ability frame Deng, the releasable target game role of skill is determined according to the role identification, is then based on the state of performance information act of revision tree, To realize the technical ability release of target game role.
The above-mentioned technical proposal implemented by the present invention is as it can be seen that the embodiment of the present invention passes through the target game for determining test case The corresponding target game role of frame;It include at least one target game role in the corresponding scene of game of the test case;Base Determine that the role identification of the target game role and the target game role exist in the configuration file of the test case Performance information in the target game frame;According to the role identification and performance information of the target game role, described in generation The technical ability frame of target game role instructs;It is instructed according to the technical ability frame of the target game role, executes the target game angle The technical ability of color discharges, thus in game test, is realized in single client to including the more of primary role and non-primary role The manipulation of a game role, it is no longer necessary to which more clients carry out cooperation test, have saved game testing cost, convenient for automation The unified maintenance of test script, reduces maintenance cost, and improve the stability of test process, avoids between each client There is asynchrony phenomenon.
Referring to Fig. 3, it show another game automatic test approach provided in an embodiment of the present invention, as shown in figure 3, This method may include:
S301 obtains the configuration file of the test case;It include at least one target trip in the configuration file The Role Information of play role.
Specifically, running test case by a test client, and the corresponding configuration file of the test case is obtained, Role Information configured with the game role for including in the corresponding scene of game of test case in the configuration file.
S303 calls role to create interface function and creates the corresponding basis trip of the Role Information in the scene of game Play role.
Specifically, creating the basic game role of the corresponding Role Information according to the Role Information of each game role.
In practical application, the Role Information of game role may include the creation information for creating game role, the wound Build the position coordinates of role identification and game role that information may include game role in scene of game.
During carrying out the specific creation of basic game role, role can be called to create interface function, by described Role creates interface function and creates basic game role corresponding with the role identification in the Role Information.Specifically, can Interface function is created to configure role on test client, interface function is created by the role and realizes multiple game roles Creation, it is possible to understand that, multiple game role includes the game role of the non-master control of test client.
According to position coordinates of the basic game role in the scene of game described in the Role Information, by the base Plinth game role is added in the scene of game.
Wherein, the basic game role of creation can be robot, which, which refers to, can be controlled and can be simulated The entity of user behavior.
S305 carries out technical ability to the basic game role according to the corresponding component of performance information in the Role Information Initialization, obtains the target game role in the scene of game.
In this specification embodiment, Role Information further includes the performance information sequence of target game role, technical ability letter Ceasing sequence includes performance information of the target game role in the game frame sequentially carried out.By to each basic game role into The initialization of row technical ability obtains the corresponding scene of game of test case so that each basic game role obtains skill and ability In target game role.
Specifically, the initialization that technical ability initialization is carried out based on the technical ability content that performance information includes, such as can be with Initialization including attribute, bullet, buff and equipment, wherein attribute may include attack, speed, phylactic power defensive power etc..
It should be noted that other than carrying out technical ability initialization to basic game role, it can also be to basic game role Carry out player information initialization initialization.Specifically, can also include that player believes substantially in the Role Information of each game role Breath, such as camp, VIP grade, section and seniority among brothers and sisters, are initialized by player information, assign player information to corresponding trip Play role.
Upon initialization, it can carry out the automatic test that test case corresponds to scene of game.
S307 determines the corresponding target game role of the target game frame of test case.
S309 determines the role identification of the target game role, Yi Jisuo based on the configuration file of the test case State performance information of the target game role in the target game frame.
In some embodiments, which can be decomposed into following three steps to implement:
Determine target roles mark corresponding with the target game role in the configuration file of test case;
Determine that target roles described in the configuration file of test case identify corresponding target performance information sequence;
The target performance information to match with the target game frame is obtained from the target performance information sequence, is obtained Performance information of the target game role in the target game frame.
S311 generates the target game role's according to the role identification and performance information of the target game role The instruction of technical ability frame.
S313 is instructed according to the technical ability frame of the target game role, executes the technical ability release of the target game role.
Wherein, the detailed content of step S307 to step S313 may refer to pair in embodiment of the method shown in earlier figures 1 The content of step is answered, details are not described herein.
In practical application, needs to obtain test result namely whether test case passes through, therefore, according to the target The technical ability frame of game role instructs, after the technical ability release for executing the target game role, as shown in figure 4, the method is also May include:
S109 acquires the technical ability and discharges corresponding technical ability effect data, obtains the mesh corresponding to the target game frame Mark test data.
Specifically, can traverse the target game role in scene of game when acquiring technical ability effect data, acquisition is corresponded to In the technical ability effect data of each target game role, which for example may include each attribute value, buff effect Deng.For example, test A hero can add shield buff with teammate to oneself after discharging a technical ability, then the technical ability effect data acquired In may include comprising to oneself and teammate buff.
S111 obtains expectation test data corresponding with the target game frame in the test case.
S113 determines the target trip according to the comparison result of the target detection data and the expectation test data The test result of play frame.
Specifically, can determine the target game frame when target detection data are consistent with desired test data Test result is to pass through, otherwise not pass through.For example, it is desirable to test data be A hero discharge a technical ability after can to oneself and Teammate adds shield buff, if in target detection data comprising to oneself and teammate buff, show target detection data and It is expected that test data is consistent, the test of target game frame passes through.When the test result of game frames all in test case is to survey It is out-of-date to ping, and shows that the test result of the test case passes through for test;Conversely, the test result of game frame is obstructed if it exists It crosses, then the test result of corresponding test case is not pass through.
It should be noted that step S111 and step S113 can be carried out after the release of each technical ability, can also survey Technical ability in the corresponding performance information sequence of example on probation carries out again after all releasing, and this is not limited by the present invention.
By the above-mentioned technical proposal of the embodiment of the present invention as it can be seen that the embodiment of the present invention can be realized in single client to packet Include the manipulation of multiple game roles of primary role and non-primary role, it is no longer necessary to which more clients carry out cooperation test, section About game testing cost reduces maintenance cost, and improve test process convenient for the unified maintenance of automatic test script Stability, avoid between each client and asynchrony phenomenon occur.
Corresponding with the game automatic test approach that above-mentioned several embodiments provide, the embodiment of the present invention also provides a kind of trip Play automatic testing equipment, due to the trip of game automatic testing equipment provided in an embodiment of the present invention and above-mentioned several embodiments offers Play automatic test approach it is corresponding, therefore the embodiment of aforementioned game automatic test approach be also applied for it is provided in this embodiment Game automatic testing equipment, is not described in detail in the present embodiment.
Referring to Fig. 5, its structural schematic diagram for showing a kind of game automatic testing equipment provided in an embodiment of the present invention, As shown in figure 5, the apparatus may include: the first determining module 510, the second determining module 520, generation module 530 and execution mould Block 540, wherein
First determining module 510, the corresponding target game role of target game frame for determining test case;The survey It include at least one target game role in the corresponding scene of game of example on probation;
Second determining module 520, for determining the target game role's based on the configuration file of the test case The performance information of role identification and the target game role in the target game frame;
Generation module 530 generates the target for the role identification and performance information according to the target game role The technical ability frame of game role instructs;
Execution module 540 executes the target game role for instructing according to the technical ability frame of the target game role Technical ability release.
In some embodiments, as shown in fig. 6, the generation module 530 may include:
Third determining module 5310, for the determining technical ability realizing interface function to match with the performance information;
Module 5320 is adjusted, for the role identification information in the technical ability realizing interface function to be adjusted to the target The role identification of game role;
It generates submodule 5330 and generates the target game for calling the technical ability realizing interface function adjusted The technical ability frame of role instructs.
In some embodiments, such as the structural schematic diagram of Fig. 7 another game automatic testing equipment provided, the device is also May include:
First obtains module 550, for obtaining the configuration file of the test case;It include described in the configuration file The Role Information of at least one target game role;
Creation module 560 creates the Role Information for calling role to create interface function in the scene of game Corresponding basic game role;
Initialization module 570, for being swum according to the corresponding component of performance information in the Role Information to the basis The role that plays carries out technical ability initialization, obtains the target game role in the scene of game.
Optionally, the creation module 560 may include:
Submodule is created, for calling role to create interface function, interface function creation and institute are created by the role State the corresponding basic game role of role identification in Role Information;
Adding module, for position of the basic game role in the scene of game according to the Role Information The basic game role is added in the scene of game by coordinate.
Optionally, second determining module 520 may include:
4th determining module, target corresponding with the target game role in the configuration file for determining test case Role identification;
5th determining module, for determining that target roles described in the configuration file of test case identify corresponding target skill It can information sequence;
Second obtains module, matches for obtaining from the target performance information sequence with the target game frame Target performance information obtains performance information of the target game role in the target game frame.
Optionally, as shown in figure 8, the device can also include:
Data acquisition module 580 discharges corresponding technical ability effect data for acquiring the technical ability, obtains corresponding to described The target detection data of target game frame;
Third obtains module 590, for obtaining expectation test corresponding with the target game frame in the test case Data;
Comparison module 500 is determined for the comparison result according to the target detection data and the expectation test data The test result of the target game frame.
The game automatic testing equipment of the embodiment of the present invention passes through the corresponding target of target game frame for determining test case Game role;It include at least one target game role in the corresponding scene of game of the test case;It is used based on the test The configuration file role identification that determines the target game role of example and the target game role are in the target game Performance information in frame;According to the role identification and performance information of the target game role, the target game role is generated Technical ability frame instruction;It is instructed according to the technical ability frame of the target game role, executes the technical ability release of the target game role, To realize the behaviour to the multiple game roles for including primary role and non-primary role in single client in game test Control, it is no longer necessary to which more clients carry out cooperation test, have saved game testing cost, convenient for the unification of automatic test script Maintenance, reduces maintenance cost, and improve the stability of test process, avoid between each client occur it is asynchronous existing As.
Referring to Fig. 9, its structural schematic diagram for showing a kind of terminal provided in an embodiment of the present invention, the terminal is for real The game automatic test approach provided in above-described embodiment is provided.Specifically:
Terminal 900 may include RF (Radio Frequency, radio frequency) circuit 910, include one or more meter Memory 920, input unit 930, display unit 940, the video sensor 950, voicefrequency circuit of calculation machine readable storage medium storing program for executing 960, WiFi (wireless fidelity, Wireless Fidelity) module 970, include one or more than one processing core The components such as processor 980 and power supply 90.It will be understood by those skilled in the art that terminal structure shown in Fig. 9 is not constituted Restriction to terminal may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.Wherein:
RF circuit 910 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or the processing of more than one processor 980 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuit 910 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, uses Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..In addition, RF circuit 910 can also be communicated with network and other equipment by wireless communication.The wireless communication can make With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc..
Memory 920 can be used for storing software program and module, and processor 980 is stored in memory 920 by operation Software program and module, thereby executing various function application and data processing.Memory 920 can mainly include storage journey Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created number according to terminal 900 According to (such as video data, phone directory etc.) etc..In addition, memory 920 may include high-speed random access memory, can also wrap Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 920 can also include Memory Controller, to provide processor 980 and input unit 930 to memory 920 access.
Input unit 930 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 930 may include figure As input equipment 931 and other input equipments 932.Image input device 931 can be camera, be also possible to optoelectronic scanning Equipment.In addition to image input device 931, input unit 930 can also include other input equipments 932.Specifically, other are inputted Equipment 932 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse One of mark, operating stick etc. are a variety of.
Display unit 940 can be used for showing information input by user or the information and terminal 900 that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof. Display unit 940 may include display panel 941, optionally, can use LCD (Liquid Crystal Display, liquid crystal Show device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 941。
Terminal 900 may include at least one video sensor 950, and video sensor is used to obtain the video information of user. Terminal 900 can also include other sensor (not shown), such as optical sensor, motion sensor and other sensors.Tool Body, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjusts the brightness of display panel 941, and proximity sensor can close display panel 941 when terminal 900 is moved in one's ear And/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for terminal 900 The other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensor that can also configure, details are not described herein.
Video circuit 960, loudspeaker 961, microphone 962 can provide the video interface between user and terminal 900.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 961, be converted to sound by loudspeaker 961 by circuit 960 Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, after being received by voicefrequency circuit 960 Audio data is converted to, then by after the processing of audio data output processor 990, such as another end is sent to through RF circuit 910 End, or audio data is exported to memory 920 to be further processed.Voicefrequency circuit 960 is also possible that earphone jack, To provide the communication of peripheral hardware earphone Yu terminal 900.
WiFi belongs to short range wireless transmission technology, and terminal 900 can help user's transceiver electronics by WiFi module 970 Mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 9 is shown WiFi module 970, but it is understood that, and it is not belonging to must be configured into for terminal 900, it can according to need completely Do not change in the range of the essence of invention and omits.
Processor 980 is the control centre of terminal 900, utilizes each portion of various interfaces and connection whole mobile phone Point, by running or execute the software program and/or module that are stored in memory 920, and calls and be stored in memory 920 Interior data execute the various functions and processing data of terminal 900, to carry out integral monitoring to mobile phone.Optionally, processor 980 may include one or more processing cores;Preferably, processor 980 can integrate application processor and modem processor, Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing Line communication.It is understood that above-mentioned modem processor can not also be integrated into processor 980.
Terminal 900 further includes the power supply 90 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply Management system and processor 980 are logically contiguous, to realize management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.Power supply 90 can also include one or more direct current or AC power source, recharging system, power failure inspection The random components such as slowdown monitoring circuit, power adapter or inverter, power supply status indicator.
Although being not shown, terminal 900 can also be including bluetooth module etc., and details are not described herein.
Specifically in the present embodiment, terminal 900 further includes having memory and one or more than one program, In one perhaps more than one program be stored in memory and be configured to be executed by one or more than one processor. Said one or more than one program include the finger for executing the game automatic test approach of above method embodiment offer It enables.
In embodiments of the present invention, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory of instruction, above-metioned instruction can be executed by the processor of terminal to complete each step in above method embodiment Suddenly.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, magnetic Band, floppy disk and optical data storage devices etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or device including a series of elements are not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or device Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or device including the element.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of game automatic test approach, which is characterized in that the described method includes:
Determine the corresponding target game role of the target game frame of test case;It is wrapped in the corresponding scene of game of the test case Include at least one target game role;
Based on the test case configuration file determine the target game role role identification and the target game Performance information of the role in the target game frame;
According to the role identification and performance information of the target game role, the technical ability frame for generating the target game role refers to It enables;
It is instructed according to the technical ability frame of the target game role, executes the technical ability release of the target game role.
2. game automatic test approach according to claim 1, which is characterized in that described according to the target game role Role identification and performance information, generate the target game role technical ability frame instruction includes:
The determining technical ability realizing interface function to match with the performance information;
Role identification information in the technical ability realizing interface function is adjusted to the role identification of the target game role;
The technical ability realizing interface function adjusted is called, the technical ability frame instruction of the target game role is generated.
3. game automatic test approach according to claim 1, which is characterized in that the method also includes:
Obtain the configuration file of the test case;It include the angle of at least one target game role in the configuration file Color information;
It calls role to create interface function and creates the corresponding basic game role of the Role Information in the scene of game;
Technical ability initialization is carried out to the basic game role according to the performance information corresponding component in the Role Information, is obtained To the target game role in the scene of game.
4. game automatic test approach according to claim 3, which is characterized in that the calling role creates interface function The corresponding basic game role of the Role Information is created in the scene of game includes:
It calls role to create interface function, interface function creation is created by the role and is marked with the role in the Role Information Sensible corresponding basic game role;
According to position coordinates of the basic game role in the scene of game described in the Role Information, the basis is swum Play role is added in the scene of game.
5. game automatic test approach according to claim 4, which is characterized in that the matching based on the test case Role identification and the target game role that file determines the target game role are set in the target game frame Performance information includes:
Determine target roles mark corresponding with the target game role in the configuration file of test case;
Determine that target roles described in the configuration file of test case identify corresponding target performance information sequence;
The target performance information to match with the target game frame is obtained from the target performance information sequence, is obtained described Performance information of the target game role in the target game frame.
6. game automatic test approach according to claim 1, which is characterized in that according to the target game role's The instruction of technical ability frame, after the technical ability release for executing the target game role, the method also includes:
It acquires the technical ability and discharges corresponding technical ability effect data, obtain the target detection number corresponding to the target game frame According to;
Obtain expectation test data corresponding with the target game frame in the test case;
According to the comparison result of the target detection data and the expectation test data, the test of the target game frame is determined As a result.
7. a kind of game automatic testing equipment, which is characterized in that described device includes:
First determining module, the corresponding target game role of target game frame for determining test case;The test case It include at least one target game role in corresponding scene of game;
Second determining module, for determining that the role of the target game role marks based on the configuration file of the test case The performance information of knowledge and the target game role in the target game frame;
Generation module generates the target game angle for the role identification and performance information according to the target game role The technical ability frame of color instructs;
Execution module executes the technical ability of the target game role for instructing according to the technical ability frame of the target game role Release.
8. game automatic testing equipment according to claim 7, which is characterized in that the generation module includes:
Third determining module, for the determining technical ability realizing interface function to match with the performance information;
Module is adjusted, for the role identification information in the technical ability realizing interface function to be adjusted to the target game role Role identification;
It generates submodule and generates the skill of the target game role for calling the technical ability realizing interface function adjusted It can frame instruction.
9. game automatic testing equipment according to claim 7, which is characterized in that described device further include:
First obtains module, for obtaining the configuration file of the test case;It include described at least one in the configuration file The Role Information of a target game role;
Creation module creates the corresponding base of the Role Information for calling role to create interface function in the scene of game Plinth game role;
Initialization module, for according to the corresponding component of performance information in the Role Information to the basic game role into The initialization of row technical ability, obtains the target game role in the scene of game.
10. a kind of terminal, including processor and memory, at least one instruction, at least a Duan Cheng are stored in the memory Sequence, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or instruction set are by described Processor is loaded and is executed to realize the game automatic test approach.
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 true CN110141864A (en) 2019-08-20
CN110141864B 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)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026371A (en) * 2019-12-11 2020-04-17 上海米哈游网络科技股份有限公司 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
CN111274151A (en) * 2020-02-10 2020-06-12 腾讯科技(深圳)有限公司 Game testing method, related device and storage medium
CN111400184A (en) * 2020-03-17 2020-07-10 腾讯科技(深圳)有限公司 Game testing method, device, system, equipment and cloud platform
CN111481937A (en) * 2020-04-09 2020-08-04 网易(杭州)网络有限公司 Game task testing method and device, testing terminal and server
CN111494951A (en) * 2020-04-15 2020-08-07 腾讯科技(深圳)有限公司 Virtual object control method, device, terminal and storage medium
CN111589126A (en) * 2020-04-23 2020-08-28 腾讯科技(深圳)有限公司 Virtual object control method, device, equipment and storage medium
CN111813686A (en) * 2020-07-20 2020-10-23 腾讯科技(深圳)有限公司 Game testing method and device, testing terminal and storage medium
CN112069079A (en) * 2020-09-22 2020-12-11 腾讯科技(成都)有限公司 Performance test method, related device and storage medium
CN112231220A (en) * 2020-10-26 2021-01-15 腾讯科技(深圳)有限公司 Game testing method and device
CN112860579A (en) * 2021-03-17 2021-05-28 深圳市腾讯信息技术有限公司 Service testing method, device, storage medium and equipment
CN113608978A (en) * 2021-07-15 2021-11-05 荣耀终端有限公司 Test method, test device and computer readable storage medium
CN114191822A (en) * 2021-11-19 2022-03-18 腾讯科技(深圳)有限公司 Test method, test device, computer equipment, storage medium and product

Citations (7)

* 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
CN103593294A (en) * 2013-11-21 2014-02-19 福建天晴数码有限公司 Method and system for testing network game performance
CN104102799A (en) * 2013-04-01 2014-10-15 腾讯科技(深圳)有限公司 Test method and test device for game data
CN106610897A (en) * 2015-10-27 2017-05-03 广州爱九游信息技术有限公司 Automatic test method and system for balance of game values
CN106657127A (en) * 2017-01-05 2017-05-10 腾讯科技(深圳)有限公司 Information processing method and device as well as server
CN107678970A (en) * 2017-10-20 2018-02-09 网易(杭州)网络有限公司 Automated testing method and device, storage medium, electronic equipment
CN108536598A (en) * 2018-04-12 2018-09-14 深圳市腾讯网络信息技术有限公司 A kind of technical ability logic test method, device, test terminal and storage medium

Patent Citations (7)

* 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
CN104102799A (en) * 2013-04-01 2014-10-15 腾讯科技(深圳)有限公司 Test method and test device for game data
CN103593294A (en) * 2013-11-21 2014-02-19 福建天晴数码有限公司 Method and system for testing network game performance
CN106610897A (en) * 2015-10-27 2017-05-03 广州爱九游信息技术有限公司 Automatic test method and system for balance of game values
CN106657127A (en) * 2017-01-05 2017-05-10 腾讯科技(深圳)有限公司 Information processing method and device as well as server
CN107678970A (en) * 2017-10-20 2018-02-09 网易(杭州)网络有限公司 Automated testing method and device, storage medium, electronic equipment
CN108536598A (en) * 2018-04-12 2018-09-14 深圳市腾讯网络信息技术有限公司 A kind of technical ability logic test method, device, test terminal and storage medium

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026371A (en) * 2019-12-11 2020-04-17 上海米哈游网络科技股份有限公司 Game development method and device, electronic equipment and storage medium
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
CN111274151A (en) * 2020-02-10 2020-06-12 腾讯科技(深圳)有限公司 Game testing method, related device and storage medium
CN111274151B (en) * 2020-02-10 2021-08-20 腾讯科技(深圳)有限公司 Game testing method, related device and storage medium
CN111400184A (en) * 2020-03-17 2020-07-10 腾讯科技(深圳)有限公司 Game testing method, device, system, equipment and cloud platform
CN111400184B (en) * 2020-03-17 2021-10-29 腾讯科技(深圳)有限公司 Game testing method, device, system, equipment and cloud platform
CN111481937A (en) * 2020-04-09 2020-08-04 网易(杭州)网络有限公司 Game task testing method and device, testing terminal and server
CN111481937B (en) * 2020-04-09 2023-04-07 网易(杭州)网络有限公司 Game task testing method and device, testing terminal and server
CN111494951A (en) * 2020-04-15 2020-08-07 腾讯科技(深圳)有限公司 Virtual object control method, device, terminal and storage medium
CN111589126A (en) * 2020-04-23 2020-08-28 腾讯科技(深圳)有限公司 Virtual object control method, device, equipment and storage medium
CN111813686A (en) * 2020-07-20 2020-10-23 腾讯科技(深圳)有限公司 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
CN112069079A (en) * 2020-09-22 2020-12-11 腾讯科技(成都)有限公司 Performance test method, related device and storage medium
CN112231220A (en) * 2020-10-26 2021-01-15 腾讯科技(深圳)有限公司 Game testing method and device
CN112860579B (en) * 2021-03-17 2024-03-22 深圳市腾讯信息技术有限公司 Service testing method, device, storage medium and equipment
CN112860579A (en) * 2021-03-17 2021-05-28 深圳市腾讯信息技术有限公司 Service testing method, device, storage medium and equipment
CN113608978A (en) * 2021-07-15 2021-11-05 荣耀终端有限公司 Test method, test device and computer readable storage medium
CN114191822A (en) * 2021-11-19 2022-03-18 腾讯科技(深圳)有限公司 Test method, test device, computer equipment, storage medium and product
CN114191822B (en) * 2021-11-19 2023-07-25 腾讯科技(深圳)有限公司 Test method, test device, computer equipment, storage medium and product

Also Published As

Publication number Publication date
CN110141864B (en) 2022-08-23

Similar Documents

Publication Publication Date Title
CN110141864A (en) A kind of game automatic test approach, device and terminal
CN106454404B (en) A kind of methods, devices and systems playing live video
CN106162236B (en) A kind of method and device of sharing video frequency
CN107741809A (en) Interactive approach, terminal, server and system between a kind of virtual image
CN106502906B (en) A kind of method and apparatus of test application program
CN104142868B (en) Establish the method and device of connection
CN104252341B (en) The client device of the skin change method of application program, device and application program
CN111282268B (en) Plot showing method, plot showing device, plot showing terminal and storage medium in virtual environment
WO2015172704A1 (en) To-be-shared interface processing method, and terminal
CN105447124B (en) Virtual objects sharing method and device
CN106488296B (en) A kind of method and apparatus showing video barrage
CN110032512A (en) A kind of adjustment method of small routine, relevant device and terminal
CN108958805A (en) menu display method and device
CN110058850A (en) A kind of development approach of application, device and storage medium
CN108415741A (en) Object serialization and unserializing method and relevant apparatus
KR102641797B1 (en) Method, device, terminal and storage medium for previewing in-game actions in a non-game environment
CN107362538A (en) One kind game auxiliary information methods of exhibiting, device and client
CN105185401B (en) The method and device of synchronized multimedia listed files
CN108021224A (en) Screen lights method and device
CN106453030B (en) A kind of method and device obtaining social networks chain
CN106303605B (en) A kind of methods, devices and systems to send a notification message
CN107396193B (en) The method and apparatus of video playing
CN105786439B (en) The control method and device of sound in a kind of terminal
CN109126124A (en) Engine adaptation method, relevant device and computer readable storage medium
CN108595483A (en) Data processing method and relevant apparatus

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