The content of the invention
For drawbacks described above, a kind of game automatic test approach, system and relevant device are embodiments provided, used
In the automatic test for realizing game, and improve development efficiency and reduce the game R&D cycle.
First aspect present invention provides a kind of game automatic test approach, is applied to engine ghost, the engine ghost
Install on the terminal device, the engine ghost is configured, so that the engine ghost possesses the energy of test game automatically
Power, methods described includes:
When being initially opened the engine ghost, or during engine ghost test game, the engine ghost
Whether the detection game has renewal;
The engine ghost sends to engine server and updates request when it is determined that the game has renewal;
The engine ghost receives the correspondence more new resources for updating request that the engine server is returned, and loads institute
The renewal that more new resources are stated to complete the game is tested.
Further, the engine ghost receives the correspondence renewal money for updating request that the engine server is returned
Source includes:The engine ghost receives the game renewal list that the engine server is returned, and the game renewal list includes
Update entry;The engine ghost to the engine server sends download request, and the download request includes updating entry;Institute
State the more new resources that engine ghost receives the renewal entry of the correspondence download request that the engine server is returned.
Further, it is described configuration is carried out to the engine ghost to include:The allocation engine service in the engine ghost
Device address, port numbers and game icon.
Second aspect present invention provides a kind of game automatic test approach, it may include:
The engine server receives the renewal request that engine ghost sends;
Described renewal is asked corresponding more new resources to be sent to the engine ghost by the engine server, so as to described
Engine ghost realizes the parsing test to playing by more new resources described in loading, and the more new resources are developer right
The engine server is developed or uploaded to after updating in the game.
Further, the engine server is received includes after the renewal request that engine ghost sends:The engine clothes
Business device updates request according to described, obtains the corresponding game renewal list of the renewal request;The engine server is to described
Engine ghost sends the game renewal list, so that the engine ghost selects to update entry according to the renewal list.
Further, described renewal is asked corresponding more new resources to be sent to the engine ghost by the engine server
Including:The engine server receives the download request that the engine ghost sends, and the download request includes updating entry;Institute
State the more new resources that engine server sends the renewal entry of the correspondence download request to the engine ghost.
Third aspect present invention provides a kind of engine ghost, and the engine ghost is installed on the terminal device, and to institute
State engine ghost to be configured, so that the engine ghost possesses the ability of test game automatically, the engine ghost includes:
Detection module, for working as the engine ghost is initially opened, or during engine ghost test game,
Whether the detection game has renewal;
Request sending module, for when it is determined that the game has renewal, sending to engine server and updating request;
Load-on module, for receiving the correspondence more new resources for updating request that the engine server is returned, loading
The more new resources are tested with the parsing for completing the game.
Further, the load-on module includes:First sub- receiver module, for receiving what the engine server was returned
Game renewal list, the game renewal list includes updating entry;First sub- sending module, for the engine server
Download request is sent, the download request includes updating entry;Second sub- receiver module, returns for receiving the engine server
The more new resources of the renewal entry of the correspondence download request returned;First load-on module, for loading institute on specified path
State more new resources.
Fourth aspect present invention additionally provides a kind of engine server, including:
Request receiving module.For receiving the renewal request of engine ghost transmission;
Resource sending module, for asking corresponding more new resources to be sent to the engine ghost described renewal, so as to
The engine ghost realizes the renewal test to playing by more new resources described in loading, and the more new resources are developer
The engine server is uploaded to after the game is developed or updated.
Further, the engine server also includes:First sub-acquisition module, for updating request according to described, obtains
Take described renewal and ask corresponding game renewal list;Second sub- sending module, for sending the trip to the engine ghost
Play updates list, so that the engine ghost selects to update entry according to the renewal list.
As can be seen from the above technical solutions, a kind of game automatic test approach of the embodiment of the present invention has following excellent
Point:By installing engine ghost on the terminal device, then the engine ghost tool is caused by carrying out configuration to the engine ghost
The ability of the standby game of test automatically, then be initially opened engine ghost or in game test process, engine ghost can be examined
Measure whether game has renewal, when finding to have renewal, send to engine server and update request, so as to ask engine server
Send more new resources.Can pass through that engine ghost is installed on the terminal device in the embodiment of the present invention, as long as follow-up loading game,
And then game is tested, without the need for installing game package on the terminal device again, test automatically of playing can be realized, improve trip
The efficiency of play test, reduces the game R&D cycle.
Specific embodiment
Below in conjunction with the accompanying drawing of the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground description, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.Based on this
Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example is applied, the scope of protection of the invention is belonged to.
A kind of game automatic test approach, system and relevant device are embodiments provided, for realizing to game
Test is automatically updated, the efficiency of game test is improved.
Before technical solution of the present invention is discussed in detail, first engine ghost provided in an embodiment of the present invention is briefly described.
Engine ghost is, based on a mobile terminal parser of C++ (C plus plus) language development, can to load based on dynamic
The script of some game of language development, so as to complete loaded and displayed and the test played.
Engine ghost provides the unified standard of dynamic script, that is, write that dynamic script provides for developer can
With reference to template, therefore, developer only needs to the dynamic script played on the normative foundation that provided in engine ghost
Exploitation, then the test played then can be completed in engine ghost.
Current reference code has security requirements, therefore, exploitation engine needs to be carried out in Intranet, issues after the completion of exploitation and draws
Hold up ghost.Game item writes the dynamic script of the specification for meeting the offer of engine ghost in outer net.In the terminal device of outer net
Engine ghost is installed, the script to developing in the specification based on engine ghost offer can be loaded directly into parsing.
Therefore, engine ghost provided in an embodiment of the present invention is installed on the terminal device, and then engine ghost is matched somebody with somebody
Put.Wherein, after engine ghost is installed, configuration prompt can be provided, engine server address, end is then carried out to engine ghost
The configuration of the information such as mouth and game icon.
After allocation engine ghost, engine ghost is initially opened, according to the engine server address of configuration, is needed from engine clothes
Business device obtains game renewal resource, that is, whole game item.The more new resources for obtaining game from engine server afterwards enter
After row loading, then, what is shown in engine ghost is then whole game item.
Afterwards, game is carried out in automatic testing process in engine ghost, engine ghost can be completed to the automatic of game
Test is updated, therefore, a kind of game automatic test approach provided in an embodiment of the present invention includes step as shown in Figure 1:
Whether S101, engine ghost detection game have renewal;
By above-mentioned introduction, by installing engine ghost in terminal device, then engine ghost is configured, then
Automatically request engine server, obtains game renewal resource and is loaded, to obtain whole game item.Afterwards, it is right when continuing
When game is updated, engine ghost can detect whether game has renewal.And without repacking game again in terminal device
Middle installation, saves the development time, shortens the R&D cycle.
S102, the engine ghost send to engine server and update request when it is determined that the game has fresh information;
When engine ghost detects game and has renewal, then send to engine server and update request, the renewal request is used
In to engine server request more new resources.
Wherein, incremental update component is also provided with engine ghost, for after game renewal, pointing out to update letter
Breath.
More new resources are the functions or module of game renewal, some plug-in units are can also be, specifically using dynamic language
The dynamic script write, so that engine ghost can complete to automatically update test.
S103, the engine ghost receive the correspondence more new resources for updating request that the engine server is returned,
More new resources described in loading are tested with the renewal for completing the game.
The more new resources that engine ghost is returned by loading engine server, to game test is updated.
In the embodiment of the present invention, by installing engine ghost on the terminal device, then by carrying out to the engine ghost
Configuration, can be tested game by the engine ghost.When subsequent game has renewal, engine ghost is by detecting game
It is no to have renewal, when confirming to have renewal, send to engine server and update request, update money so as to ask engine server to send
Source.The loading that engine ghost first completes more new resources can be passed through in the embodiment of the present invention, game item is obtained, then, rear
It is continuous then can directly by engine ghost test be updated debugging, without the need for again again on the terminal device install play
Wrap, it is possible to increase the efficiency of game test, and engine ghost provided in an embodiment of the present invention can be realized automatically updating debugging.
Fig. 2 is referred to, further above-described embodiment will be introduced, one kind game method of testing may include:
Whether S201, engine ghost detection game have fresh information;
By above-mentioned introduction, by installing engine ghost in terminal device, then engine ghost is configured and
Some scripts that loading game above needs, show game, and obtain engine ghost.Afterwards, when continuation is carried out more to game
When new, engine ghost can detect whether game has fresh information.And install in terminal device without repacking game again,
The testing time can be saved, testing efficiency is improved.
S202, the engine ghost send to engine server and update request when it is determined that the game has fresh information;
When engine ghost detects game and has renewal, then send to engine server and update request, the renewal request is used
In to engine server request more new resources.
Wherein, incremental update component is also provided with engine ghost, for after game renewal, pointing out to update letter
Breath.
More new resources are the functions or module of game renewal, some plug-in units are can also be, specifically using dynamic language
The dynamic script write, so that engine ghost can complete to automatically update.
S203, the engine ghost receive the game renewal list that the engine server is returned, the game renewal row
Table includes updating entry;
Engine ghost sends to engine server and updates after request, and the renewal list of game is returned to and drawn by engine server
Ghost is held up, so that engine ghost can be updated test according to list is updated.
Updating list includes updating entry, updates entry possibly game concrete function or the corresponding function module, also
It can be the plug-in unit in concrete function.
S204, the engine ghost to the engine server sends download request, and the download request includes exploit person
The selected renewal entry of member;
Return and update after entry, developer can optionally select some renewal entries to be tested;Certainly, update
The content that game must update is potentially included in entry, as long as after being updated to this renewal entry again, just can guarantee that game
Normal operation.
In addition, the embodiment of the present invention is mainly accomplished that game can realize automatically updating test, and need to it is all more
Prototype test is newly carried out, therefore, after engine server is returned and updates entry, engine ghost will be all to engine server request
The more new resources of entry are updated, more new resources is loaded directly into and is tested.
S205, the engine ghost receive the renewal entry of the correspondence download request that the engine server is returned
More new resources;
The download request that engine server sends according to engine ghost, the more new resources that entry is updated in download request are returned
Back to engine ghost, and then, engine ghost can then pass through loading more new resources and realize the corresponding function of corresponding renewal entry
Update test.
S206, more new resources described in engine ghost loading are tested with the renewal for completing the game.
In embodiments of the present invention, engine ghost sends more when detecting game and having fresh information to engine server
New request, so that engine server is according to the renewal request for receiving, by the renewal flow table of game engine ghost, engine is returned to
Ghost sends download request further according to the renewal entry updated in flow table to engine server, corresponding so as to obtain renewal entry
More new resources, so as to complete the test that automatically updates played, and when every time game is updated, without the need for the weight in terminal device
It is new that game is installed, but more new resources are directly obtained from engine server by engine ghost, it is loaded directly into being updated test,
Testing process is reduced, the development time is saved, the construction cycle is reduced.
Above the present invention is described from engine ghost side, will be further described this from engine server side below
Bright technical scheme.As shown in figure 3, a kind of game method of testing, it may include:
S301, the engine server receive the renewal request that engine ghost sends;
The engine server of the embodiment of the present invention can be conventional version control system (Subversion, abbreviation SVN)
Server, plays after exploitation is good, and the resource of game is uploaded in engine server.And after game has renewal, exploit person
Member also more will upload to engine server by new resources.And engine ghost is by being configured with the address of engine server, then can be with
Engine server is interacted, so as to obtain the more new resources of game.
Described renewal is asked corresponding more new resources to be sent to the engine ghost by S302, the engine server, with
Toilet states engine ghost by more new resources described in loading, realizes the renewal test to playing, and the more new resources are exploit person
Member uploads to the engine server after renewal is developed to the game.
Engine server is asked according to the renewal that engine ghost sends, and then more new resources is sent to into engine ghost, with
Just engine ghost is tested by the renewal for loading more new resources to complete and playing.
After the renewal request for receiving the transmission of engine ghost, by updating, request is right for engine server in the embodiment of the present invention
The more new resources answered return to engine ghost, and engine ghost is only needed to load the then achievable renewal test of more new resources, saved again
Packing game and the process reinstalled, have saved the testing time, improve the whole efficiency of test.
Refer to Fig. 4, the schematic flow sheet of the game method of testing that Fig. 4 is provided for another embodiment of the present invention;Such as Fig. 4 institutes
Show, one kind game method of testing may include:
S401, the engine server receive the renewal request that engine ghost sends;
The engine server of the embodiment of the present invention can be conventional version control system (Subversion, abbreviation SVN)
Server, plays after exploitation is good, and the resource of game is uploaded in engine server.And after game has renewal, exploit person
Member also more will upload to engine server by new resources.And engine ghost is by being configured with the address of engine server, then can be with
Engine server is interacted, so as to obtain the more new resources of game.
S402, the engine server update request according to described, obtain described renewal and ask corresponding game renewal row
Table;
The renewal entry of game is returned to engine ghost by engine server according to request is updated.
S403, the engine server to the engine ghost sends the game renewal list, so as to engine sky
Shell selects to update entry according to the renewal list;
Return and update after entry, developer can optionally select some renewal entries to be tested;Certainly, update
The content that game must update is potentially included in entry, as long as after being updated to this renewal entry again, just can guarantee that game
Normal operation.
In addition, the embodiment of the present invention is mainly accomplished that game can realize automatically updating test, and need to it is all more
Prototype test is newly carried out, therefore, after engine server is returned and updates entry, engine ghost will be all to engine server request
The more new resources of entry are updated, more new resources is loaded directly into and is tested.
S404, the engine server receive the download request that the engine ghost sends, and the download request is included more
New entry;
Engine server is returned and updated after list, and engine ghost sends download request according to list is updated.
S405, the engine server send the renewal of the renewal entry of the correspondence download request to the engine ghost
Resource.
Engine server will update again the corresponding more new resources of entry in download request and be sent to engine ghost, so as to engine
Ghost can be realized updating test by loading more new resources.
It is understood that the engine ghost in the embodiment of the present invention is not limited to be used as, with the test of a game, may be used also
For the test that other are played, if the specification that the game developed is provided based on engine ghost, and adopt dynamic language
Write.
The embodiment of the present invention additionally provides a kind of engine ghost, refers to Fig. 5, and the engine ghost is arranged on terminal device
On, and the engine ghost is configured, so that the engine ghost possesses the ability of test game automatically.As shown in figure 5,
A kind of engine ghost includes:
Detection module 510, for working as the engine ghost is initially opened, or tests the process of game in the engine ghost
In, whether detection game has fresh information;
Request sending module 520, for when it is determined that the game has renewal, sending to engine server and updating request;
Load-on module 530, for receiving the correspondence more new resources for updating request that the engine server is returned, plus
More new resources described in carrying are tested with the parsing for completing the game.
Wherein, detection module 510 is when detecting game and having renewal, by request sending module 520 to engine server
Send and update request, for obtaining more new resources to engine server.Load-on module 530 sends engine server is loaded more
New resources, then complete the renewal test played in engine ghost.
Further, above-mentioned load-on module 530 is specifically included:
First sub- receiver module, for receiving the game renewal list that the engine server is returned, the game renewal
List includes updating entry;
First sub- sending module, for sending download request to the engine server, the download request includes updating
Entry;
Second sub- receiver module, for receiving the renewal entry of the correspondence download request that the engine server is returned
More new resources;
First load-on module, for more new resources described in the loading on specified path.
Fig. 6 is referred to, the embodiment of the present invention additionally provides a kind of engine server, can include:
Request receiving module 610.For receiving the renewal request of engine ghost transmission;
Resource sending module 620, for asking corresponding more new resources to be sent to the engine ghost described renewal, with
Toilet states engine ghost by more new resources described in loading, realizes the renewal test to playing, and the more new resources are exploit person
Member uploads to the engine server after renewal is developed to the game.
Further, the engine server also includes:
First sub-acquisition module, for updating request according to described, obtains described renewal and asks corresponding game renewal row
Table;
Second sub- sending module, for sending the game renewal list to the engine ghost, so as to engine sky
Shell selects to update entry according to the renewal list.
Fig. 7 is referred to, the embodiment of the present invention additionally provides a kind of game Auto-Test System, it may include shown in accompanying drawing 5
Engine ghost and engine server as shown in Figure 6.
Wherein, engine ghost can be attached with engine server by network, and engine ghost and engine server can
Refering to above-mentioned introduction, will not be described here.
Game method of testing provided in an embodiment of the present invention, by installing engine ghost on the terminal device, then passes through
The engine ghost is configured, then game is tested by the engine ghost.When there is renewal, engine ghost is by inspection
Survey whether game has renewal, send to engine server and update request, so as to ask engine server to send more new resources.This
Bright embodiment directly can be updated debugging by the test in engine ghost, without the need for installing game on the terminal device again
Bag, it is possible to achieve game debugging automatically, saves the development time, shortens the R&D cycle.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without the portion described in detail in certain embodiment
Point, may refer to the associated description of other embodiment.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematic, for example, the unit
Divide, only a kind of division of logic function can have other dividing mode, such as multiple units or component when actually realizing
Can with reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or
The coupling each other for discussing or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit
Close or communicate to connect, can be electrical, mechanical or other forms.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can according to the actual needs be selected to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list
Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used
When, during a computer read/write memory medium can be stored in.Based on such understanding, technical scheme is substantially
The part for contributing to prior art in other words or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the invention
Portion or part steps.And aforesaid storage medium includes:USB flash disk, portable hard drive, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
Above detailed Jie is carried out to a kind of game automatic test approach provided by the present invention, system and relevant device
Continue, for one of ordinary skill in the art, according to the thought of the embodiment of the present invention, in specific embodiments and applications
Will change, in sum, this specification content should not be construed as limiting the invention.