CN109885477A - A kind of game automated testing method - Google Patents
A kind of game automated testing method Download PDFInfo
- Publication number
- CN109885477A CN109885477A CN201811580265.8A CN201811580265A CN109885477A CN 109885477 A CN109885477 A CN 109885477A CN 201811580265 A CN201811580265 A CN 201811580265A CN 109885477 A CN109885477 A CN 109885477A
- Authority
- CN
- China
- Prior art keywords
- test
- testing method
- game
- automated testing
- playback
- 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.)
- Withdrawn
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
A kind of game automated testing method, comprising the following steps: the test interface of access record test content;The test information that the test interface obtains is recorded, test information list is formed;Test is received to instruct and open playback, acquisition and upload performance data;When the error occurs, interrupt playback executes, and screenshot simultaneously uploads error log in playback implementation procedure.Game automated testing method of the invention is not limited by cell phone system, is accurately obtained the properties data of game running and is automatically uploaded on server, carries out data analysis;Recording tool, playback tool are integrated, records and plays back all disengaging mobile phone, automatically generated data and reduce the system degree of coupling, improve the reliability of test process.
Description
Technical field
The present invention relates to mobile phone games technical fields, more particularly to a kind of test method of mobile phone games.
Background technique
The continuous development of game industry, game business men is more and more, the game products of every company exploitation and investment it is new
Technology is also more and more, and as the complexity of mobile phone games is continuously improved, mobile phone model and system version is continuous in the market
Fragmentation inevitably introduces various problems (such as safety issue, game logic problem or stability in development process
Problem, game performance problem etc.).Therefore, before mobile phone games open test or formal publication, game development companies need group
It knits vast resources and carries out test verifying, be embodied in various functions, performance and compatibility test.
In order to mitigate the repeated labor of tester and improve the accuracy of test, the test of mobile phone games at present is used
Automatic test mode.Specifically, tester needs to write the script file used of test, and indicates in script file pair
As be directed to the object operation.In order to obtain simultaneously operation object, those skilled in the art mainly use following three kinds of sides at present
Formula.First way is: firstly, the mobile phone for installing mobile phone games to be tested is connected upper computer, and synchronizing on computers
Mobile phone games interface;Secondly, carrying out screenshot to the operation object on interface, and picture is saved in computer;Finally, surveying
The object picture intercepted in training sheet using front is carried out object lookup and operated.The second way is by Software Development Kit
It is integrated into mobile phone games.After the mobile phone for installing mobile phone games to be tested is connected upper computer and synchronous mobile phone games, test
Personnel obtain tool using integrated Software Development Kit development interface element and obtain the phases such as path, position of object in interface
Close attribute.The information searchings object such as path found in test script using front simultaneously operates control.The third is to use
The Software Development Kit of mobile phone games to be detected is compiled, wherein including at least in Software Development Kit has operation note to connect
Mouth, object record interface, scene record interface and script execution interface install mobile phone games to be detected and corresponding software development
Kit starts mobile phone games on mobile phone to execute test operation;
It is above-mentioned that the existing technology has at least the following problems:
1) process for obtaining operation object requires more manual intervention, leads to that process is cumbersome, inefficiency.In addition, test
Script needs tester to write and constantly debug.This has relatively high Capability Requirement to tester, while causing biggish
Energy and time burden;
2) the continuous locking of operating system also causes, and is constantly promoted, is obtained to the acquisition difficulty of performance data in test process at present
The data precision taken is also barely satisfactory;
3) test record is changed hands too much with what acquisition, the transmission of test data were passed through, and system complexity is too high.
Summary of the invention
In order to solve the shortcomings of the prior art, the purpose of the present invention is to provide a kind of game automatic test sides
Automatically generated data may be implemented in method, reduces manual intervention, and improve the reliability of test process.
To achieve the above object, a kind of game automated testing method provided by the invention, comprising:
The test interface of access record test content;
The test information that the test interface obtains is recorded, test information list is formed;
Test is received to instruct and open playback, acquisition and upload performance data;
When the error occurs, interrupt playback executes, and screenshot simultaneously uploads error log in playback implementation procedure.
Further, before the step of instructing and open playback, acquisition and uploading performance data is tested in the reception, also
Including uploading test file, and the test file of upload is distributed to the step in test equipment.
Further, the step of reception test instructs and opens playback, acquisition and uploads performance data, further wraps
The step of including, recording the test object dependence test information of operation;The test object dependence test information, including, it is operated
Action event, the title of the object to be operated, current scene information, the sequence of operation number, the control information on current UI.
Further, the step of reception test instructs and opens playback, acquisition and uploads performance data, further wraps
It includes, the step for obtaining and sending the performance data in test process, and be stored in extractible local file.
Further, the performance data in the test process, including, triangular facet number, degree of vertex, the tune of going game
With number, CPU, memory, flow, mobile phone temp, cpu temperature.
Further, the upload performance data and the upload error log, are attached simultaneously using wireless mode
It uploads.
Further, it is played back using the most suitable sequence of operation of intelligent fuzzy matching algorithm Auto-matching.For reality
Existing above-mentioned purpose, the present invention also provides a kind of computer readable storage mediums, are stored thereon with computer instruction, the computer
Above-mentioned game automated testing method step is executed when instruction operation.
To achieve the above object, described to deposit the present invention also provides a kind of gaming terminal device, including memory and processor
The computer instruction run on the processor is stored on reservoir, the processor executes when running the computer instruction
Above-mentioned game automated testing method step.
A kind of game automated testing method of the invention, has the advantages that
1) it is not limited, accurately obtain the properties data of game running and is automatically uploaded on server by cell phone system,
Carry out data analysis.
2) recording tool, playback tool are integrated, record and play back all disengaging mobile phone, automatically generated data and reduces
The system degree of coupling improves the reliability of test process.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, and with it is of the invention
Embodiment together, is used to explain the present invention, and is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of game automated testing method flow chart according to the present invention.
Specific embodiment
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein
Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
Fig. 1 is game automated testing method flow chart according to the present invention, below with reference to Fig. 1, to angle of the invention
Color random roam method is described in detail.
Firstly, in step 101, the test interface of access record test content.In the step, game accesses what SDK was provided
Each interface, behavior, scene record, UI list of controls and the operation playback interface of essential record operation.
In step 102, the test information that the test interface obtains is recorded, forms test information list.In the step, root
Test operation, game object and scene of game are recorded respectively according to operation note interface, object record interface and scene record interface
Information, form the sequence of operation, game object, scene information, the UI list of controls of record.
In step 103, receives test and instruct and open playback, acquisition and upload performance data.In the step, mobile phone terminal
For SDK using the instruction for wirelessly receiving server-side, SDK opens playback and the acquisition and upload of performance data.
In step 104, when the error occurs, interrupt playback executes, and screenshot simultaneously uploads error log in playback implementation procedure.
In the step, in game video-recording and playback implementation procedure when the error occurs, SDK will execute interruption, and can screenshot and by error log
It uploads, and forms interruption and stop the execution of this equipment.
It preferably, further include uploading and surveying before receiving test and instructing and open playback, acquisition and upload performance data
File is tried, and the test file of upload is distributed in test equipment.In the step, the script file of test is uploaded into service
Device end is distributed to the identical mobile phone games end of installation from server end.
Preferably, the test object dependence test information of operation is recorded.In the step, SDK will record the operation operated
Event, the title of the object to be operated, current scene information, the sequence of operation number, all control informations on current UI.
Preferably, it obtains and sends the performance data in test process, and be stored in extractible local file.The step
In rapid, in replayed section, the synchronous crawl for opening performance data of SDK and sending module, for grabbing games operation
All kinds of performance datas currently consumed, the properties data of further grabbing graphics interface.Triangle including going game
Face number, degree of vertex, call number;CPU, memory, flow, mobile phone temp, cpu temperature are obtained by every resource loading interface
Etc. performance datas.Performance data can be also stored in local file, it may be necessary to be extracted.
Preferably, it is attached using wireless mode and sends the performance data.In the step, by using wireless parties
Formula is directly connected to configurable server address, automatic test server in connection, and sending performance data, if test
Interruption, which is then sent, interrupts data and error log.
Preferably, it is played back using the most suitable sequence of operation of intelligent fuzzy matching algorithm Auto-matching.In the step,
It will do it intelligent fuzzy matching algorithm in the SDK replayed section and carry out the optimal proper operation sequence of Auto-matching to be returned
It puts, avoids executing interruption caused by some unexpected interfaces.
The present invention also provides a kind of computer readable storage mediums, are stored thereon with computer instruction, which is characterized in that institute
Above-mentioned game automated testing method step is executed when stating computer instruction operation.
The present invention also provides a kind of gaming terminal devices, which is characterized in that including memory and processor, the memory
On store the computer instruction run on the processor, the processor executes above-mentioned when running the computer instruction
Game automated testing method step.
Those of ordinary skill in the art will appreciate that: the foregoing is only a preferred embodiment of the present invention, and does not have to
In the limitation present invention, although the present invention is described in detail referring to the foregoing embodiments, for those skilled in the art
For, still can to foregoing embodiments record technical solution modify, or to part of technical characteristic into
Row equivalent replacement.All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should all include
Within protection scope of the present invention.
Claims (9)
1. a kind of game automated testing method, comprising the following steps:
The test interface of access record test content;
The test information that the test interface obtains is recorded, test information list is formed;
Test is received to instruct and open playback, acquisition and upload performance data;
When the error occurs, interrupt playback executes, and screenshot simultaneously uploads error log in playback implementation procedure.
2. game automated testing method according to claim 1, which is characterized in that tested in the reception and instruct and open
It further include uploading test file, and the test file of upload is divided before the step of opening playback, acquisition and uploading performance data
The step being dealt into test equipment.
3. game automated testing method according to claim 1, which is characterized in that the reception test is instructed and opened
The step of playback, acquisition and upload performance data, further comprise the step for recording the test object dependence test information of operation
Suddenly;The test object dependence test information, including, the title of the action event, the object to be operated that are operated, current scene letter
Breath, the sequence of operation number, the control information on current UI.
4. game automated testing method according to claim 1, which is characterized in that the reception test is instructed and opened
The step of playback, acquisition and upload performance data, further comprise the performance data for obtaining and sending in test process, and protect
There are the steps in extractible local file.
5. game automated testing method according to claim 4, which is characterized in that the performance number in the test process
According to, including, triangular facet number, degree of vertex, call number, CPU, memory, flow, mobile phone temp, the cpu temperature of going game.
6. game automated testing method according to claim 1, which is characterized in that the upload performance data and described
Error log is uploaded, is attached and is uploaded using wireless mode.
7. game automated testing method according to claim 1, which is characterized in that certainly using intelligent fuzzy matching algorithm
Dynamic matching operation sequence is played back.
8. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the computer instruction fortune
Perform claim requires 1 to 7 described in any item game automated testing method steps when row.
9. a kind of gaming terminal device, which is characterized in that including memory and processor, store on the memory described
The computer instruction run on processor, perform claim requires any one of 1 to 7 when the processor runs the computer instruction
The game automated testing method step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811580265.8A CN109885477A (en) | 2018-12-24 | 2018-12-24 | A kind of game automated testing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811580265.8A CN109885477A (en) | 2018-12-24 | 2018-12-24 | A kind of game automated testing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109885477A true CN109885477A (en) | 2019-06-14 |
Family
ID=66925072
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811580265.8A Withdrawn CN109885477A (en) | 2018-12-24 | 2018-12-24 | A kind of game automated testing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109885477A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110221983A (en) * | 2019-06-19 | 2019-09-10 | 深圳市腾讯网域计算机网络有限公司 | Test method, device, computer readable storage medium and computer equipment |
CN110825636A (en) * | 2019-11-05 | 2020-02-21 | 腾讯科技(深圳)有限公司 | Matching algorithm performance test method, device, equipment, system and medium |
CN111984526A (en) * | 2020-07-06 | 2020-11-24 | 珠海金山网络游戏科技有限公司 | Android hand-trip test method and system |
CN112100065A (en) * | 2020-09-08 | 2020-12-18 | 完美世界(重庆)互动科技有限公司 | Game scene data processing method, device and equipment |
CN112231220A (en) * | 2020-10-26 | 2021-01-15 | 腾讯科技(深圳)有限公司 | Game testing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105335283A (en) * | 2014-08-01 | 2016-02-17 | 阿里巴巴集团控股有限公司 | Application testing method and device in terminal equipment |
CN107025165A (en) * | 2017-03-07 | 2017-08-08 | 腾讯科技(深圳)有限公司 | Game automated testing method and relevant apparatus |
CN107908554A (en) * | 2017-11-06 | 2018-04-13 | 珠海金山网络游戏科技有限公司 | A kind of method and system of the motion capture of mobile phone games, recording and recurrence |
CN108923999A (en) * | 2018-05-31 | 2018-11-30 | 苏州蜗牛数字科技股份有限公司 | A kind of net surfing server automatic performance test method and system |
-
2018
- 2018-12-24 CN CN201811580265.8A patent/CN109885477A/en not_active Withdrawn
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105335283A (en) * | 2014-08-01 | 2016-02-17 | 阿里巴巴集团控股有限公司 | Application testing method and device in terminal equipment |
CN107025165A (en) * | 2017-03-07 | 2017-08-08 | 腾讯科技(深圳)有限公司 | Game automated testing method and relevant apparatus |
CN107908554A (en) * | 2017-11-06 | 2018-04-13 | 珠海金山网络游戏科技有限公司 | A kind of method and system of the motion capture of mobile phone games, recording and recurrence |
CN108923999A (en) * | 2018-05-31 | 2018-11-30 | 苏州蜗牛数字科技股份有限公司 | A kind of net surfing server automatic performance test method and system |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110221983A (en) * | 2019-06-19 | 2019-09-10 | 深圳市腾讯网域计算机网络有限公司 | Test method, device, computer readable storage medium and computer equipment |
CN110221983B (en) * | 2019-06-19 | 2024-01-16 | 深圳市腾讯网域计算机网络有限公司 | Test method, test device, computer readable storage medium and computer equipment |
CN110825636A (en) * | 2019-11-05 | 2020-02-21 | 腾讯科技(深圳)有限公司 | Matching algorithm performance test method, device, equipment, system and medium |
CN111984526A (en) * | 2020-07-06 | 2020-11-24 | 珠海金山网络游戏科技有限公司 | Android hand-trip test method and system |
CN112100065A (en) * | 2020-09-08 | 2020-12-18 | 完美世界(重庆)互动科技有限公司 | Game scene data processing method, device and equipment |
CN112231220A (en) * | 2020-10-26 | 2021-01-15 | 腾讯科技(深圳)有限公司 | Game testing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109885477A (en) | A kind of game automated testing method | |
CN106021095B (en) | A kind of Android application automated testing method based on push-mechanism | |
CN104268055B (en) | The monitoring method and device of a kind of program exception | |
CN103136471B (en) | A kind of malice Android application program detection method and system | |
CN102420712B (en) | Testing method and equipment | |
US20130263090A1 (en) | System and method for automated testing | |
US10037254B2 (en) | Device, method and program for performing system testing | |
CN106033393B (en) | A kind of applied program testing method and system and mobile terminal | |
CN105068876B (en) | Method based on distributed deployment prototype collection cell phone application performance data | |
US10747656B2 (en) | Systems and methods for mobile automation testing by emulating human behaviors | |
CN104216826A (en) | Test method and device | |
CN102446083A (en) | Method for reading and storing Android cellphone screen display contents at PC terminal | |
WO2007061241A1 (en) | Error test method for mobile communication terminals | |
CN109739704A (en) | A kind of interface test method, server-side and computer readable storage medium | |
CN112732576A (en) | Automatic testing method, device and equipment based on user interface | |
US9148353B1 (en) | Systems and methods for correlating computing problems referenced in social-network communications with events potentially responsible for the same | |
CN110389835A (en) | A kind of game performance monitoring method and device | |
CN109582566A (en) | A kind of script method for recording | |
CN110673835A (en) | Dynamic assembly type development system, method, computer and computer program | |
CN109901831A (en) | The multi-platform compatibility operation method and compatibility operation device of software | |
CN112199270B (en) | Program testing method, device, equipment and medium | |
CN109960646B (en) | Application testing method and terminal | |
CN103596645A (en) | Method, device and equipment for terminal debugging | |
CN103559074B (en) | A kind of analogue communication plug-in unit and method of work thereof | |
CN102819484B (en) | Software testing method and software testing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190614 |
|
WW01 | Invention patent application withdrawn after publication |