CN104536888A - Game testing method and system for mobile devices - Google Patents

Game testing method and system for mobile devices Download PDF

Info

Publication number
CN104536888A
CN104536888A CN201410819931.4A CN201410819931A CN104536888A CN 104536888 A CN104536888 A CN 104536888A CN 201410819931 A CN201410819931 A CN 201410819931A CN 104536888 A CN104536888 A CN 104536888A
Authority
CN
China
Prior art keywords
similarity
mobile device
scene image
game
reference picture
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.)
Pending
Application number
CN201410819931.4A
Other languages
Chinese (zh)
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201410819931.4A priority Critical patent/CN104536888A/en
Publication of CN104536888A publication Critical patent/CN104536888A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a game testing method for mobile devices. The method comprises the steps that a testing request sent by a user is received by means of a plurality of Web interfaces, one or more slave nodes are selected, using states of all the mobile devices connected with the slave nodes are detected, and a testing task is distributed to the one or more spare mobile devices to be executed; a testing file uploaded by the user is received, and the slave nodes are used for distributing testing cases corresponding to the testing file and the testing request to the mobile devices synchronously; the mobile devices are controlled to install and start game software, and system files of the mobile devices are read in real time in the running process of the game software to obtain performance parameters; the performance parameters are analyzed to generate a test result, and the test result is stored in a database connected with the Web interfaces. The invention further provides a game testing system for the mobile devices. The method and the system have the advantages that a PC and the mobile devices are dispatched conveniently, and the testing efficiency and reliability are high.

Description

The game method of testing of mobile device and system
Technical field
The present invention relates to computer software testing technical field, particularly relate to a kind of game method of testing and system of mobile device.
Background technology
Before the game of mobile device is reached the standard grade, in order to ensure quality of play and Consumer's Experience, tester needs on numerous mobile device (as smart mobile phone, palm PC etc.), repeatedly to carry out game client (i.e. the mobile device of each running game) compatibility and performance test, the performance parameter wherein related in performance test.But type and the model of mobile device are numerous, such as, due to the opening strategy of Android (Android) system, Android device model is numerous, equipment and technology standard disunity, and the fragmentation of android system is very serious.In numerous Android device, how to carry out the compatible and performance test of game client is easily and efficiently one of important content of raising testing efficiency.
The game running of current mobile device common method that is compatible and performance test employing is that multiple stage mobile device connects on computers by USB Hub (hub) by tester, on computers by game installation kit manually or utilize script batch to be installed on each mobile device, then manual on every platform mobile device startup optimization Games Software.In running game process, observe game by artificially on each mobile device, whether there is the test that compatibility issue (as pinup picture loss, screen black surround etc.) has carried out compatibility; Further, each mobile device is tested performance during game running, obtain performance data.
Although the performance that the game testing scheme of existing game client can rely on large server realizes carrying out unified management to numerous mobile device, and can at PC (personal computer) end by SSH (Secure Shell, safety shell protocol) remote access mobile device obtain performance data, but because mobile device carries out management and running by a large server, the acquisition of data needs to access mobile device one by one by each PC, unavoidably there is following Railway Project:
The first, the quantity of PC cannot be selected according to the quantity of the mobile device that need test flexibly, cause plant factor not high; The second, the acquisition of test data is held by PC to realize, instead of allow on the mobile apparatus respectively simultaneously and obtain performance data and sectional drawing, and when the mobile device quantity of required test is more, the test duration of whole process is long; 3rd, after interface when obtaining game running, manually need check that the cut-away view of game on various mobile device similarly is noly there is the phenomenon such as black surround and pinup picture loss, by judging the compatibility issue on various mobile device of playing artificially, and in game play, need the sectional drawing data of collection numerous, prior art lacks the decision method of robotization, increases the whole test duration and reduces test whole efficiency; And there is certain error in artificial data judging.
Summary of the invention
Technical matters to be solved by this invention is, provides a kind of game measuring technology scheme of mobile device, realizes the Parallel Scheduling to multiple mobile device and automatic test, simplifies testing process and shortens the test duration, improving the game testing efficiency of mobile device.
For solving above technical matters, on the one hand, the embodiment of the present invention provides a kind of game method of testing of mobile device, comprising:
By the test request that multiple web interface reception user sends, one or more subordinate computer node is chosen according to described test request, the using state of each mobile device that subordinate computer node connects is detected, and test assignment is distributed on idle one or more mobile devices and perform;
Receive the test file uploaded of user, by described subordinate computer node by described test file and the test case synchronization distribution corresponding with described test request on the mobile device of free time;
Control described mobile device and startup Games Software is installed, and the system file of mobile device is read in timing in the operation of Games Software, obtains performance parameter when described Games Software runs on each mobile device;
Described performance parameter is resolved, generates test result and described test result be stored in the database be connected with described web interface.
In the attainable mode of one, described test file comprises game installation kit and game automatic operating script; Then, the described test file uploaded of reception user, by described subordinate computer node by described test file and the test case synchronization distribution corresponding with described test request on the mobile device of free time, be specially:
After described game automatic operating script and described test case are encapsulated as compressed file, described compressed file and described game installation kit are dispensed to each subordinate computer node;
Described compressed file is given on the mobile device of the one or more free time be connected with described subordinate computer node with described game installation kit synchronization distribution by described subordinate computer node.
Further, the described mobile device of described control is installed and is started Games Software, is specially:
The mobile device controlling to receive described compressed file and described game installation kit is resolved described compressed file, obtains described game automatic operating script and described test case;
According to the instruction in described game automatic operating script, control in described mobile device, install described game installation kit, the Games Software started after installing runs described test case.
Further, described method also comprises:
In the operation of described Games Software, timing carries out sectional drawing to interface, obtains the scene image of the interface of real time execution on each mobile device;
Described scene image and reference picture are carried out similarity-rough set, to judge compatibility when described Games Software runs on each mobile device;
The judged result of described scene image and described compatibility is stored in the database be connected with described web interface.
Further, described method also comprises:
Control to start background service on the mobile apparatus;
Read the system file of described mobile device by the timing in the operation of Games Software of described background service, obtain the performance parameter of described mobile device; And, by the timing in the operation of Games Software of described background service, sectional drawing is carried out to the interface of described mobile device, obtain the scene image of the interface of real time execution on mobile device.
Further, described method also comprises:
The similarity of described performance parameter, described scene image and described scene image and reference picture is generated test report, described test report is stored in the database; It is one or more that described performance data comprises CPU usage, memory usage, traffic consumes amount, electric quantity consumption amount, game are installed in start-up time;
And one or more storage in described database are stored data by Web form output display.
Further, described method also comprises:
When described scene image and described reference picture dissmilarity, according to described reference picture, difference processing is carried out to described scene image;
Filtering and rim detection are carried out to the scene image carried out after difference processing, to mark on described scene image the dissimilar region with described reference picture;
The scene image indicating dissimilar region is stored in the database be connected with described web interface.
In the attainable mode of one, described scene image and reference picture are carried out similarity-rough set, to judge compatibility when described Games Software runs on each mobile device, are specially:
Calculate the similarity of the brightness of described scene image and described reference picture, the similarity of contrast respectively, and the similarity of structure;
Using the structural similarity index of the product of the similarity of the similarity of described brightness, described contrast and the similarity three of described structure as described scene image and described reference picture;
Described structural similarity refer to target value be greater than specify threshold value time, judge that described scene image is similar to described reference picture structure, and described Games Software can on described mobile device compatibility operation.
Preferably, calculate the similarity of the brightness of described scene image and described reference picture, the similarity of contrast respectively described, and before the similarity of structure, also comprise:
Adopt antialiasing filter to carry out interpolation to described scene image, described scene image is zoomed to the size identical with described reference picture.
Further, calculate the similarity of the brightness of described scene image and described reference picture, the similarity of contrast respectively described, and during the similarity of structure, also comprise:
Calculate the similarity of the brightness of described scene image and described reference picture, the similarity of contrast in a plurality of directions, and the similarity of structure;
The direction choosing the maximal value place of described structural similarity index is as described scene image and the highest direction of described reference picture similarity.
In another attainable mode, calculate the similarity of the brightness of described scene image and described reference picture, the similarity of contrast respectively described, and during the similarity of structure, also comprise:
Described scene image is divided into the image block of multiple fixed size;
Calculate the similarity of the brightness of each image block and described reference picture, the similarity of contrast respectively, and the similarity of structure;
Using the structural similarity index of the product of the similarity three of the similarity of brightness of each image block and described reference picture, the similarity of contrast and structure as each image block and described reference picture;
Each image block and described reference picture are calculated the minimum value of the structural similarity index obtained, the structural similarity as described scene image and described reference picture refers to target value.
Preferably, described method also comprises: by described web interface, the data stored in described database are exported to user.
On the other hand, the embodiment of the present invention additionally provides a kind of game test macro of mobile device, comprises host server, and, the multiple subordinate computer nodes be connected with described host server; Wherein, described host server comprises:
Task scheduling unit, for being received the test request that user sends by multiple web interface, one or more subordinate computer node is chosen according to described test request, the using state of each mobile device that subordinate computer node connects is detected, and test assignment is distributed on idle one or more mobile devices and perform;
File synchronization unit, for receiving the test file that user uploads, by described subordinate computer node by described test file and the test case synchronization distribution corresponding with described test request on the mobile device of free time;
Data acquisition unit, install startup Games Software, and the system file of mobile device is read in timing in the operation of Games Software, obtains performance parameter when described Games Software runs on each mobile device for controlling described mobile device;
Data processing unit, for resolving described performance parameter, generating test result and described test result being stored in the database be connected with described web interface.
Further, described test file comprises game installation kit and game automatic operating script; Then, described file synchronization unit also comprises:
Document encapsulation subelement, after described game automatic operating script and described test case are encapsulated as compressed file, is dispensed to each subordinate computer node by described compressed file and described game installation kit;
File transfer subelement, gives the mobile device of the one or more free time be connected with described subordinate computer node by described compressed file and described game installation kit synchronization distribution for described subordinate computer node.
Preferably, described data acquisition unit, also comprises:
Document analysis subelement, resolves described compressed file for the mobile device controlling to receive described compressed file and described game installation kit, obtains described game automatic operating script and described test case;
Game promoter unit, for according to the instruction in described game automatic operating script, controls in described mobile device, install described game installation kit, and the Games Software started after installing runs described test case.
Further, described data acquisition unit, also carries out sectional drawing for timing in the operation of described Games Software to interface, obtains the scene image of the interface of real time execution on each mobile device;
Described data processing unit, also for described scene image and reference picture are carried out similarity-rough set, to judge compatibility when described Games Software runs on each mobile device; And the judged result of described scene image and described compatibility is stored in the database be connected with described web interface.
Further, described host server also comprises background control unit;
Described background control unit, starts background service on the mobile apparatus for controlling; Further, read the system file of described mobile device by the timing in the operation of Games Software of described background service, obtain the performance parameter of described mobile device; And, by the timing in the operation of Games Software of described background service, sectional drawing is carried out to the interface of described mobile device, obtain the scene image of the interface of real time execution on mobile device.
Further, described data processing unit also comprises:
Data storage subunit operable, for the similarity of described performance parameter, described scene image and described scene image and reference picture is generated test report, stores described test report in the database; It is one or more that described performance data comprises CPU usage, memory usage, traffic consumes amount, electric quantity consumption amount, game are installed in start-up time;
Data display subelement, for storing data by Web form output display by one or more storage in described database.
Preferably, described data processing unit also comprises:
Image difference process subelement, for when described scene image and described reference picture are dissimilar, carries out difference processing according to described reference picture to described scene image;
Filtering and rim detection subelement, for carrying out filtering and rim detection to the scene image carried out after difference processing, to mark on described scene image the dissimilar region with described reference picture;
Image storing sub-units, for being stored in the scene image indicating dissimilar region in the database that is connected with described web interface.
Preferably, described data processing unit also comprises:
Similarity Measure subelement, for calculating the similarity of the brightness of described scene image and described reference picture, the similarity of contrast respectively, and the similarity of structure;
Structural similarity computation subunit, for using the structural similarity index of the product of the similarity of the similarity of described brightness, described contrast and the similarity three of described structure as described scene image and described reference picture;
Compatibility determination subelement, for refer in described structural similarity target value be greater than specify threshold value time, judge that described scene image is similar to described reference picture structure, and described Games Software can on described mobile device compatibility operation.
Further, described host server also comprises:
Interpolating unit, for adopting antialiasing filter to carry out interpolation to described scene image, zooms to the size identical with described reference picture by described scene image.
Further, described Similarity Measure subelement also comprises: multi-direction Similarity Measure subelement, for calculating the similarity of the brightness of described scene image and described reference picture, the similarity of contrast in a plurality of directions, and the similarity of structure;
Described structural similarity computation subunit, also for the direction of choosing the maximal value place of described structural similarity index as described scene image and the highest direction of described reference picture similarity.
Further, described Similarity Measure subelement also comprises:
Image divides subelement, for described scene image being divided into the image block of multiple fixed size; And,
Block similarity matching degree computation subunit, for calculating the similarity of the brightness of each image block and described reference picture, the similarity of contrast respectively, and the similarity of structure;
Described structural similarity computation subunit, also for the product of the similarity three using the similarity of brightness of each image block and described reference picture, the similarity of contrast and structure as the structural similarity index of each image block and described reference picture; And each image block and described reference picture being calculated the minimum value of the structural similarity index obtained, the structural similarity as described scene image and described reference picture refers to target value.
Preferably, described web interface, for exporting to user by the data stored in described database.
The game measuring technology scheme of the mobile device that the embodiment of the present invention provides, by the test request that multiple web interface reception user sends, one or more subordinate computer node is chosen according to described test request, the using state of each mobile device that subordinate computer node connects is detected, and test assignment is distributed on idle one or more mobile devices and perform, effectively can solve the defect that numerous mobile device be connected on multiple subordinate computer node cannot carry out test and management simultaneously, also be convenient to user is linked in cloud test macro using the PC of self as subordinate computer node simultaneously, facilitate remote testing.Synchronous at subordinate computer node and Ge Tai mobile device of test file can be controlled by host server, control described mobile device and startup Games Software is installed, and the system file of mobile device is read in timing in the operation of Games Software, effective realization obtains performance parameter (as CPU usage simultaneously on numerous mobile device, memory usage, traffic consumes amount, electric quantity consumption amount etc.) and sectional drawing data, overcome in prior art the problem needing one by one every platform mobile device to be carried out to performance and compatibility test, save the time of testing game on the mobile apparatus greatly, improve testing efficiency.
The game measuring technology scheme of the mobile device that the embodiment of the present invention provides, can also the game running interface sectional drawing on each mobile device and reference picture be realized further to carry out Similarity Measure, thus judge whether the scene image of real-time interception exists the situation such as black surround or pinup picture loss, avoids the artificial judgement to the compatibility test that Games Software runs on various mobile device in prior art.Further, the Similarity Measure of the embodiment of the present invention to scene image and reference picture is optimized, and improves accuracy and the reliability of the operation compatibility of Games Software on various mobile device.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps of an embodiment of the game method of testing of mobile device provided by the invention.
Fig. 2 is the topological structure schematic diagram of a kind of cloud test platform that the embodiment of the present invention provides.
Fig. 3 is the host server of the Jenkins master slave mode that the embodiment of the present invention provides and the syndeton schematic diagram of each peripherals.
Fig. 4 is the process flow diagram to a kind of implementation that the dissimilar region of scene image identifies provided by the invention.
Fig. 5 is the structural representation of a host server provided by the invention embodiment.
Fig. 6 is the structural representation of another embodiment of host server provided by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described.
See Fig. 1, it is the flow chart of steps of an embodiment of the game method of testing of mobile device provided by the invention.
During concrete enforcement, before the game method of testing performing described mobile device, can first carry out choosing and disposing of test environment.In order to realize the scheduling to numerous mobile device (as being provided with the smart mobile phone of android system), and the acquisition test data that walks abreast on each mobile device is to shorten the test duration and to simplify testing process, preferably can adopt continuous integrating platform (as Jenkins), choose a station server as Jenkins host node or host server, each the PC being connected with one or more mobile device is as subordinate computer node, and user passes through Web (internet) realization to the remote scheduling of multiple mobile device and transmission test request.Host server and Ge Tai subordinate computer node form cloud test platform or cloud test macro.
Referring to Fig. 2, it is the topological structure schematic diagram of a kind of cloud test platform that the embodiment of the present invention provides.
Described cloud test platform comprises subordinate computer node 1 ~ m that host server 100 is connected with host server 100 with multiple stage; Each subordinate computer node is connected to again multiple stage mobile device.Wherein, subordinate computer node 1 is connected with again multiple stage mobile device 1 ~ n; M > 1, n > 1.
Particularly, the game method of testing of the mobile device that the present embodiment provides can be realized by host server 100, comprises the following steps S1 ~ step S4:
Step S1: the test request sent by multiple web interface reception user, one or more subordinate computer node is chosen according to described test request, the using state of each mobile device that subordinate computer node connects is detected, and test assignment is distributed on idle one or more mobile devices and perform.
During concrete enforcement, when adopting Jenkins master slave mode, Jenkins host node or host server 100 with Web server on same station server; Be connected with the PC of mobile device as Jenkins subordinate computer node.
Referring to Fig. 3, be the host server of the Jenkins master slave mode that the embodiment of the present invention provides and the syndeton schematic diagram of each peripherals.
Particularly, host server 100 provides web interface, realizes the management of user to job test assignment and Jenkins subordinate computer node.Job test assignment is distributed to each subordinate computer node and performs, and adopts " Java web start " (a kind of deployed with devices passage based on the application program of Java technology) to realize the connection of main and subordinate node between main and subordinate node.
When host server 100 forms the game test macro of mobile device with each subordinate computer node, user side can pass through Web (http/https procotol) and operate newly-built Jenkins subordinate computer node.Easily the child node of the PC at user place as cloud test platform can be linked in game test macro.Host server 100 leaves JNLP (Java Network Launching Protocol, the Java Computing model) file generated in Web server to be downloaded for user side.During concrete enforcement, the PC configuration Java Runtime Environment of each user side, download and after running JNLP file and performing corresponding configuration, can be connected on host server (host node) 100, and namely the PC of each user side become one of them subordinate computer node.After PC connects mobile device, can the whether access of mobile device be checked by Web and/or the state such as whether be used.
Host server 100, as Jenkins host node, after receiving the test request that user sends, first can detect the state of each mobile device, realize the management to test queue.For the mobile device being in connection status, if be in busy condition, then can not carry out test operation, the test request of user can be preserved, until the mobile device free time gets off perform corresponding test operation again.Further, host server 100 is configured with encapsulation ADB (Android Debug Bridge, Android debugging bridge) the Jenkins plug-in unit that operates, after subordinate computer node is linked into the host server 100 of cloud test macro, user or technician can inquire about the state of each mobile device be connected on each subordinate computer node by Web client, as connected, disconnecting, busy and idle etc.
Step S2: receive the test file uploaded of user, by described subordinate computer node by described test file and the test case synchronization distribution corresponding with described test request on the mobile device of free time.
Particularly, can by relevant information inquiry and testing requirement by host server 100, whether the connection status being linked into the mobile device of cloud test platform as inquired about and each mobile device are in using state, and the instruction such as installation, startup, unloading of the Games Software controlling mobile device is packaged into ADB (AndroidDebug Bridge, Android debugging bridge) script command, be distributed on each subordinate computer node and perform; And by execution result data feedback to host server 100, supply by Web state and the implementation of test cases that user checks mobile device.
During concrete enforcement, described test file comprises game installation kit and game automatic operating script, described step S2 is specially: first, described game automatic operating script and described test case are encapsulated as compressed file, such as jar file (Java Archive, Java archive file) after, described compressed file and described game installation kit are dispensed to each subordinate computer node; Then, described compressed file is given on the mobile device of the one or more free time be connected with described subordinate computer node with described game installation kit synchronization distribution by described subordinate computer node.
In the present embodiment, user can upload game installation kit to be tested with game automatic operating script in host server 100 by Web, the compressed file of the test case (as collected performance data, log daily record etc.) of game installation kit, game automatic operating script and execution is distributed to each subordinate computer node by the main and subordinate node of Jenkins by host server 100, and then to be distributed to by compressed file by subordinate computer node on each mobile device of being connected on PC and to perform.
Step S3: control described mobile device and install startup Games Software, and the system file of mobile device is read in timing in the operation of Games Software, obtains performance parameter when described Games Software runs on each mobile device.
Wherein, when described game automatic operating script and described test case are encapsulated as compressed file, then in described step S3, the described mobile device of described control is installed and is started Games Software, is specially:
A. the mobile device controlling to receive described compressed file and described game installation kit is resolved described compressed file, obtains described game automatic operating script and described test case;
B. according to the instruction in described game automatic operating script, control in described mobile device, install described game installation kit, the Games Software started after installing runs described test case.
Step S4: resolve described performance parameter, generates test result and described test result is stored in the database be connected with described web interface.
Further, in the present embodiment, described method also comprises: compatibility when running on each mobile device described Games Software is tested, particularly:
Described step S3 also comprises: in the operation of described Games Software, timing carries out sectional drawing to interface, obtains the scene image of the interface of real time execution on each mobile device; Described scene image and reference picture are carried out similarity-rough set, to judge compatibility when described Games Software runs on each mobile device; Described step S4 also comprises: the judged result of described scene image and described compatibility be stored in the database be connected with described web interface.
During concrete enforcement, the data stored in described database can also be exported to user by described web interface by host server.
In the present embodiment, preferably can adopt SSIM (Structural Similarity Index Measurement, structural similarity index measurement) algorithm, judge to play the similarity of scene sectional drawing in a mobile device and reference picture, thus judge whether the runnable interface of playing exists the problem such as blank screen, pinup picture loss in this mobile device, thus judge the compatibility run on various mobile device of playing.
During concrete enforcement, host server 100 can control to start background service on the mobile apparatus; Read the system file of described mobile device by the timing in the operation of Games Software of described background service, obtain the performance parameter of described mobile device; And, by the timing in the operation of Games Software of described background service, sectional drawing is carried out to the interface of described mobile device, obtain the scene image of the interface of real time execution on mobile device.
Particularly, after Games Software starts on each mobile device, timing (such as, every 5 seconds) is collected the test datas such as performance data, logcat daily record and sectional drawing by the background service of mobile device.After game running terminates, test data and sectional drawing pass back on subordinate computer node by each mobile device, be synchronized to host server 100 again, host server 100 end is resolved test data and is carried out similarity comparison to sectional drawing and reference picture and judges whether to there is the compatibility issues such as pinup picture is lost, black surround.
In the present embodiment, the game method of testing of described mobile device also comprises: the similarity of described performance parameter, described scene image and described scene image and reference picture is generated test report, described test report is stored in the database; It is one or more that described performance data comprises CPU usage, memory usage, traffic consumes amount, electric quantity consumption amount, game are installed in start-up time; And one or more storage in described database are stored data by Web form output display, test result is stored and passes through Web form and show generation report.
Further, when described scene image and reference picture are carried out similarity-rough set, if both dissmilarities (similarity is less than a certain threshold value), can identify the dissimilar region in scene image further, so that user's checking test result.
Referring to Fig. 4, it is the process flow diagram to a kind of implementation that the dissimilar region of scene image identifies provided by the invention.
Particularly, when described scene image and described reference picture dissmilarity, the game method of testing of described mobile device also comprises:
Step S201: difference processing is carried out to described scene image according to described reference picture;
Step S202: carry out filtering and rim detection to the scene image carried out after difference processing, to mark on described scene image the dissimilar region with described reference picture;
Step S203: the scene image indicating dissimilar region is stored in the database be connected with described web interface.
In the present embodiment, described step S3, when execution carries out comparing of similarity to described scene image with reference picture, preferably compares both structural similarity.
Particularly, described scene image and reference picture are carried out similarity-rough set, to judge compatibility when described Games Software runs on each mobile device, are specially:
A. the similarity of brightness of described scene image and described reference picture, the similarity of contrast is calculated respectively, and the similarity of structure;
B. using the structural similarity index of the product of the similarity of the similarity of described brightness, described contrast and the similarity three of described structure as described scene image and described reference picture;
C. described structural similarity refer to target value be greater than specify threshold value time, judge that described scene image is similar to described reference picture structure, and described Games Software can on described mobile device compatibility operation.
During concrete enforcement, preferably by SSIM (Structural Similarity Index Measurement, structural similarity index measurement) algorithm, process the image (namely to the scene image that interface sectional drawing obtains) that each mobile device is passed back, and compare with reference picture, judge whether to occur the phenomenons such as pinup picture disappearance, blank screen, thus judge whether a certain Games Software can normally run on the mobile device, obtains the compatibility that this Games Software runs on different mobile devices.
Can adopt SSIM calculate both structural similarity time, can using scene image and reference picture as two signal pattern x and y, then both structural similarities can be calculated by following equation:
SSIM(x,y)=l(x,y)×c(x,y)×s(x,y)(1)
Wherein:
l ( x , y ) = 2 μ x μ y + C 1 μ x 2 + μ y 2 + C 1 - - - ( 2 )
c ( x , y ) = 2 σ x σ y + C 2 σ x 2 + σ y 2 + C 2 - - - ( 3 )
s ( x , y ) = σ xy + C 3 σ x σ y + C 3 - - - ( 4 )
In above equation (1) ~ (4), the similarity of brightness that what l (x, y) measured is, or perhaps the similarity of gray scale; The similarity of contrast that what c (x, y) measured is; The similarity of structure that what s (x, y) measured is.μ x, μ y, σ x, σ ybe respectively mean value and the standard deviation of x and y, σ xyfor the covariance of x and y, C 1, C 2, C 3be all constant, in order to maintain l (x, y), c (x, y), s (x, y) stable.Structural similarity refers to that target value is larger, and the similarity representing two picture signals is higher.If use two pictures of congruence to do SSIM computing, then there is μ xyand σ xy, can obtain according to equation (1): SSIM=1.
The similarity adopting structural similarity index to weigh scene image and reference picture has plurality of advantages: first, its subjective perception consistance is better than traditional metric form (metric form of Y-PSNR and Histogram distance); Secondly, its similar with on covariance characterisation of structures, therefore, it is possible to the similarity on metrology structure; 3rd, it calculates simple, is easy to realize.In addition, in practical application, the metric form of its number percent, and between similar image and dissimilar image, structural similarity refers to the obvious drop of target value SSIM, more meets the custom of people's statement " similar ", also becomes the advantage selecting this algorithm.
But adopt above-mentioned SSIM algorithm to carry out image similarity calculating and judgement, still existing defects, mainly comprises: screen resolution is uncertain, and SSIM can only for the image of same size; The direction of screenshotss is uncertain; The index of SSIM is easily average by the overall situation.
Therefore, the game method of testing of mobile device provided by the invention also proposes further improvement.
The uncertain problem of screen resolution for mobile device, the similarity of the brightness of described scene image and described reference picture, the similarity of contrast is calculated respectively described, and before the similarity of structure, the game method of testing of described mobile device also comprises: adopt antialiasing filter to carry out interpolation to described scene image, described scene image is zoomed to the size identical with described reference picture.By interpolation, can using the one approximate (but cannot accomplish completely reduce) of this scene image as true picture, the result of interpolation can have influence on calculated SSIM value.During concrete enforcement, the antialiasing filter carried in Python PIL storehouse can be preferably adopted to realize interpolation.In addition, the present embodiment can also adopt and include but not limited to that arest neighbors interpolation, bilinear interpolation algorithm and bicubic interpolation algorithm realize the interpolation to scene image.And, through facts have proved, in various interpolation processing, when the same Games Software of employing sectional drawing under different resolution screen, by when comparing with reference picture after scene image convergent-divergent, the error of the change in size selecting PIL antialiasing filter or bicubic interpolation to bring is less, and the level and smooth filter that PIL carries is optimum to the effect after scene image interpolation processing, and calculating the SSIM value obtained can reach 99.8%.
For the uncertain problem in sectional drawing direction of mobile device, the embodiment of the present invention calculates the similarity of the brightness of described scene image and described reference picture, the similarity of contrast respectively described, and during the similarity of structure, also comprise: calculate the similarity of the brightness of described scene image and described reference picture, the similarity of contrast in a plurality of directions, and the similarity of structure; The direction choosing the maximal value place of described structural similarity index is as described scene image and the highest direction of described reference picture similarity.Particularly, can preferably by the SSIM value calculating scene image and the reference picture carrying out 0 degree, 90 degree, 180 degree, 270 degree postrotational four direction respectively, and the direction choosing the maximal value place in four SSIM values is as the direction the highest with image reference image similarity, and using the SSIM value of the party's SSIM value upwards as scene image and reference picture.In actual applications, due to the complicacy of scene of game itself, so the SSIM of former directive image and reference diagram is less than 90 degree, 180 degree, 270 degree postrotational images after generally there will not be difference, therefore, choose the SSIM that above-mentioned four direction calculates and there is applicability widely.
For the index of SSIM easily by problem that the overall situation is average, because the SSIM value adopting equation (1) to calculate is subject to the impact of scene image size, if have the difference of the less icon of relative view picture scene image in scene image, after being calculated by equation (1), the difference of this icon is average by full figure, the SSIM value obtained is still very high, therefore may occur undetected.
In order to solve this technical problem, the present invention is that embodiment calculates the similarity of the brightness of described scene image and described reference picture, the similarity of contrast respectively described, and during the similarity of structure, also comprises:
Described scene image is divided into the image block of multiple fixed size; Calculate the similarity of the brightness of each image block and described reference picture, the similarity of contrast respectively, and the similarity of structure; Using the structural similarity index of the product of the similarity three of the similarity of brightness of each image block and described reference picture, the similarity of contrast and structure as each image block and described reference picture; Each image block and described reference picture are calculated the minimum value of the structural similarity index obtained, the structural similarity as described scene image and described reference picture refers to target value.
During concrete enforcement, the size of image block is relevant with the image resolution ratio of required test or accuracy of identification, can obtain required empirical value by experiment.Such as: suppose that the whether similar SSIM threshold value value of differentiation two width image is 95%, namely SSIM is less than 95% and is judged to be dissmilarity, and minimal graph target four times of sizes so can be selected to carry out piecemeal.Like this, suppose that minimum disappearance icon is 2 × 2 pixels, piecemeal elects 4x4 pixel as, and in the worst situation, a rectangle frame only have selected wherein 1/4 (1 pixel).Suppose that pixel chosen is completely dissimilar, the similarity of the minimum piecemeal so calculated is: 15/16=93.75%, is namely less than 95%, meets default discrimination standard.
By implementing the method for gaming of mobile device provided by the invention, can plurality of advantages be obtained:
First, can effectively solve mobile device numerous, be connected to the problem multiple PC cannot carrying out simultaneously test dispatching management, also facilitate developer and tester are linked into by the PC of himself in game test macro and facilitate remote testing simultaneously.The second, effectively can realize on numerous mobile device, obtaining performance data and shot image information simultaneously, save the test duration on the mobile apparatus greatly, improve testing efficiency.3rd, effectively classification dissection process is carried out to the performance test data of numerous mobile device, and the sectional drawing on each mobile device and reference picture are carried out Similarity Measure, judge whether the situation that there is black surround or pinup picture loss, avoid and need tester artificially running game software one by one on each mobile device, to check the problem that whether black surround or pinup picture are lost, reduce workload and improve the reliability of automatic test level and test result.Further, in order to obtain test result more accurately, realize being optimized SSIM algorithm.In addition, the present invention can also manage and comparative analysis historical test data effectively, facilitates user to the Data Comparison before and after game iteration and checks the effect after iteration.
The embodiment of the present invention still further provides a kind of game test macro of mobile device.As shown in Figure 2, the structure of described system mainly comprises the host server 100 in Fig. 2, and, the multiple subordinate computer node 1 ~ m be connected with described host server.
Wherein, described host server 100 comprises each step of method for gaming functional unit one to one of multiple and above-mentioned mobile device.
See Fig. 5, it is the structural representation of a host server provided by the invention embodiment.
Particularly, described host server 100 comprises:
Task scheduling unit 51, for being received the test request that user sends by multiple web interface, one or more subordinate computer node is chosen according to described test request, the using state of each mobile device that subordinate computer node connects is detected, and test assignment is distributed on idle one or more mobile devices and perform.During concrete enforcement, host server 100 is provided with multiple web interface and database (Fig. 5 is not shown).
Wherein, described web interface is also for exporting to user by the data stored in described database.The present embodiment can also provide Web display unit further, for the state of the PC and mobile device that show access, and test result after display test and report.After mobile device test is terminated, the information such as performance test data, logcat daily record, sectional drawing, abnormal conditions can show respectively according to mobile device, and user can by the test result of Games Software on each mobile device after each execution test of Web display unit inquiry.Particularly, the webpage front end of Web display unit can use ajax, jQuery and javascript plug-in unit.
File synchronization unit 52, for receiving the test file that user uploads, by described subordinate computer node by described test file and the test case synchronization distribution corresponding with described test request on the mobile device of free time.
Data acquisition unit 53, install startup Games Software, and the system file of mobile device is read in timing in the operation of Games Software, obtains performance parameter when described Games Software runs on each mobile device for controlling described mobile device.
Data processing unit 54, for resolving described performance parameter, generating test result and described test result being stored in the database be connected with described web interface.In game play, during the game running that test obtains, performance data is kept in the file of CSV (Comma Separated Value, comma separated value) form; After game running terminates, the performance data files of each mobile device and sectional drawing pass back to host server end, and host server end is resolved performance data files, do transverse axis the scene image correspondence that performance data and sectional drawing obtain displayed with the time.Meanwhile, scene image and reference picture can be carried out the calculating of SSIM structural similarity, judge whether the situation that there is black surround or pinup picture loss, thus judge the compatibility of Games Software at various mobile device.If existed, then further by the dissimilar area identification of these scene images out, user is facilitated to check.
Further, described data acquisition unit 53, also carries out sectional drawing for timing in the operation of described Games Software to interface, obtains the scene image of the interface of real time execution on each mobile device;
Described data processing unit 54, also for described scene image and reference picture are carried out similarity-rough set, to judge compatibility when described Games Software runs on each mobile device; And the judged result of described scene image and described compatibility is stored in the database be connected with described web interface.
Each functional unit of the host server that the present embodiment provides is identical with the principle of work of each step of the game method of testing of the mobile device that above embodiment provides, and does not repeat them here, lower same.
Further, described test file comprises game installation kit and game automatic operating script.
Referring to Fig. 6, it is the structural representation of another embodiment of host server provided by the invention.
Then, described file synchronization unit 52 also comprises:
Document encapsulation subelement 521, after described game automatic operating script and described test case are encapsulated as compressed file (as jar file), is dispensed to each subordinate computer node by described compressed file and described game installation kit;
File transfer subelement 522, gives the mobile device of the one or more free time be connected with described subordinate computer node by described compressed file and described game installation kit synchronization distribution for described subordinate computer node.
Further, described data acquisition unit 53, also comprises:
Document analysis subelement 531, resolves described compressed file for the mobile device controlling to receive described compressed file and described game installation kit, obtains described game automatic operating script and described test case;
Game promoter unit 532, for according to the instruction in described game automatic operating script, controls in described mobile device, install described game installation kit, and the Games Software started after installing runs described test case.
Further, described host server 100 also comprises background control unit 55;
Described background control unit 55, starts background service on the mobile apparatus for controlling; Further, read the system file of described mobile device by the timing in the operation of Games Software of described background service, obtain the performance parameter of described mobile device; And, by the timing in the operation of Games Software of described background service, sectional drawing is carried out to the interface of described mobile device, obtain the scene image of the interface of real time execution on mobile device.
During concrete enforcement, described data processing unit 54 also comprises:
Data storage subunit operable 541, for the similarity of described performance parameter, described scene image and described scene image and reference picture is generated test report, stores described test report in the database; It is one or more that described performance data comprises CPU usage, memory usage, traffic consumes amount, electric quantity consumption amount, game are installed in start-up time;
Data display subelement 542, for storing data by Web form output display by one or more storage in described database.
In the present embodiment, preferably, described data processing unit 54 also comprises:
Image difference process subelement 543, for when described scene image and described reference picture are dissimilar, carries out difference processing according to described reference picture to described scene image;
Filtering and rim detection subelement 544, for carrying out filtering and rim detection to the scene image carried out after difference processing, to mark on described scene image the dissimilar region with described reference picture;
Image storing sub-units 545, for being stored in the scene image indicating dissimilar region in the database that is connected with described web interface.
Further, described data processing unit 54 also comprises:
Similarity Measure subelement 546, for calculating the similarity of the brightness of described scene image and described reference picture, the similarity of contrast respectively, and the similarity of structure;
Structural similarity computation subunit 547, for using the structural similarity index of the product of the similarity of the similarity of described brightness, described contrast and the similarity three of described structure as described scene image and described reference picture;
Compatibility determination subelement 548, for refer in described structural similarity target value be greater than specify threshold value time, judge that described scene image is similar to described reference picture structure, and described Games Software can on described mobile device compatibility operation.
In the present embodiment, identical with previous embodiment, can SSIM be adopted, i.e. equation (1) ~ equation (3), calculate the structural similarity of scene image and reference picture.Equally, still there is related defects in these computing method, and as screen resolution is uncertain, SSIM can only for the image of same size; The direction of screenshotss is uncertain; The index of SSIM is easily average by the overall situation.
In order to overcome these defects, the present embodiment makes further improvement to the host server 100 that Fig. 5 embodiment provides.In like manner, principle same with the above-mentioned embodiment can be adopted to improve each functional module performing SSIM or increase.
During concrete enforcement, described host server 100 also comprises:
Interpolating unit 56, for adopting antialiasing filter to carry out interpolation to described scene image, zooms to the size identical with described reference picture by described scene image.The uncertain error causing the structural similarity calculating scene image and reference picture of mobile device resolution can be overcome by interpolating unit.
Further, described Similarity Measure subelement 546 also comprises: multi-direction Similarity Measure subelement 5461, for calculating the similarity of the brightness of described scene image and described reference picture, the similarity of contrast in a plurality of directions, and the similarity of structure;
Described structural similarity computation subunit 547, also for the direction of choosing the maximal value place of described structural similarity index as described scene image and the highest direction of described reference picture similarity.
Further, described Similarity Measure subelement 546 also comprises:
Image divides subelement 5462, for described scene image being divided into the image block of multiple fixed size; And,
Block similarity matching degree computation subunit 5463, for calculating the similarity of the brightness of each image block and described reference picture, the similarity of contrast respectively, and the similarity of structure;
Described structural similarity computation subunit 547, also for the product of the similarity three using the similarity of brightness of each image block and described reference picture, the similarity of contrast and structure as the structural similarity index of each image block and described reference picture; And each image block and described reference picture being calculated the minimum value of the structural similarity index obtained, the structural similarity as described scene image and described reference picture refers to target value.
The game test macro of the mobile device that the embodiment of the present invention provides, can dispatch multiple subordinate computer node and multiple mobile device simultaneously, facilitates user be linked into by the PC of himself in game test macro and facilitate remote testing; The data acquisition of robotization and data handling procedure save the time of testing software on the mobile apparatus greatly, improve testing efficiency.By carrying out Similarity Measure to the sectional drawing on each mobile device and reference picture, judge whether the situation that there is black surround or pinup picture loss, without the need to tester artificially running game software one by one on each mobile device, reduce amount of user effort and improve the reliability of automatic test level and test result.Further, in order to obtain test result more accurately, realize being optimized SSIM algorithm.In addition, the present invention can also manage and comparative analysis historical test data effectively, facilitates user to the Data Comparison before and after game iteration and checks the effect after iteration.
The above is the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications are also considered as protection scope of the present invention.

Claims (24)

1. a game method of testing for mobile device, is characterized in that, comprising:
By the test request that multiple web interface reception user sends, one or more subordinate computer node is chosen according to described test request, the using state of each mobile device that subordinate computer node connects is detected, and test assignment is distributed on idle one or more mobile devices and perform;
Receive the test file uploaded of user, by described subordinate computer node by described test file and the test case synchronization distribution corresponding with described test request on the mobile device of free time;
Control described mobile device and startup Games Software is installed, and the system file of mobile device is read in timing in the operation of Games Software, obtains performance parameter when described Games Software runs on each mobile device;
Described performance parameter is resolved, generates test result and described test result be stored in the database be connected with described web interface.
2. the game method of testing of mobile device as claimed in claim 1, is characterized in that, described test file comprises game installation kit and game automatic operating script; Then, the described test file uploaded of reception user, by described subordinate computer node by described test file and the test case synchronization distribution corresponding with described test request on the mobile device of free time, be specially:
After described game automatic operating script and described test case are encapsulated as compressed file, described compressed file and described game installation kit are dispensed to each subordinate computer node;
Described compressed file is given on the mobile device of the one or more free time be connected with described subordinate computer node with described game installation kit synchronization distribution by described subordinate computer node.
3. the game method of testing of mobile device as claimed in claim 2, is characterized in that, the described mobile device of described control is installed and started Games Software, is specially:
The mobile device controlling to receive described compressed file and described game installation kit is resolved described compressed file, obtains described game automatic operating script and described test case;
According to the instruction in described game automatic operating script, control in described mobile device, install described game installation kit, the Games Software started after installing runs described test case.
4. the game method of testing of mobile device as claimed in claim 1, it is characterized in that, described method also comprises:
In the operation of described Games Software, timing carries out sectional drawing to interface, obtains the scene image of the interface of real time execution on each mobile device;
Described scene image and reference picture are carried out similarity-rough set, to judge compatibility when described Games Software runs on each mobile device;
The judged result of described scene image and described compatibility is stored in the database be connected with described web interface.
5. the game method of testing of mobile device as claimed in claim 4, it is characterized in that, described method also comprises:
Control to start background service on the mobile apparatus;
Read the system file of described mobile device by the timing in the operation of Games Software of described background service, obtain the performance parameter of described mobile device; And, by the timing in the operation of Games Software of described background service, sectional drawing is carried out to the interface of described mobile device, obtain the scene image of the interface of real time execution on mobile device.
6. the game method of testing of mobile device as claimed in claim 5, it is characterized in that, described method also comprises:
The similarity of described performance parameter, described scene image and described scene image and reference picture is generated test report, described test report is stored in the database; It is one or more that described performance data comprises CPU usage, memory usage, traffic consumes amount, electric quantity consumption amount, game are installed in start-up time;
And one or more storage in described database are stored data by Web form output display.
7. the game method of testing of mobile device as claimed in claim 4, it is characterized in that, described method also comprises:
When described scene image and described reference picture dissmilarity, according to described reference picture, difference processing is carried out to described scene image;
Filtering and rim detection are carried out to the scene image carried out after difference processing, to mark on described scene image the dissimilar region with described reference picture;
The scene image indicating dissimilar region is stored in the database be connected with described web interface.
8. the game method of testing of the mobile device as described in claim 4 or 7, is characterized in that, described scene image and reference picture are carried out similarity-rough set, to judge compatibility when described Games Software runs on each mobile device, is specially:
Calculate the similarity of the brightness of described scene image and described reference picture, the similarity of contrast respectively, and the similarity of structure;
Using the structural similarity index of the product of the similarity of the similarity of described brightness, described contrast and the similarity three of described structure as described scene image and described reference picture;
Described structural similarity refer to target value be greater than specify threshold value time, judge that described scene image is similar to described reference picture structure, and described Games Software can on described mobile device compatibility operation.
9. the game method of testing of mobile device as claimed in claim 8, is characterized in that, calculate the similarity of the brightness of described scene image and described reference picture, the similarity of contrast respectively, and before the similarity of structure, also comprise described:
Adopt antialiasing filter to carry out interpolation to described scene image, described scene image is zoomed to the size identical with described reference picture.
10. the game method of testing of mobile device as claimed in claim 8, is characterized in that, calculate the similarity of the brightness of described scene image and described reference picture, the similarity of contrast respectively described, and during the similarity of structure, also comprises:
Calculate the similarity of the brightness of described scene image and described reference picture, the similarity of contrast in a plurality of directions, and the similarity of structure;
The direction choosing the maximal value place of described structural similarity index is as described scene image and the highest direction of described reference picture similarity.
The game method of testing of 11. mobile devices as claimed in claim 8, is characterized in that, calculates the similarity of the brightness of described scene image and described reference picture, the similarity of contrast respectively described, and during the similarity of structure, also comprises:
Described scene image is divided into the image block of multiple fixed size;
Calculate the similarity of the brightness of each image block and described reference picture, the similarity of contrast respectively, and the similarity of structure;
Using the structural similarity index of the product of the similarity three of the similarity of brightness of each image block and described reference picture, the similarity of contrast and structure as each image block and described reference picture;
Each image block and described reference picture are calculated the minimum value of the structural similarity index obtained, the structural similarity as described scene image and described reference picture refers to target value.
The game method of testing of 12. mobile devices as claimed in claim 1, it is characterized in that, described method also comprises: by described web interface, the data stored in described database are exported to user.
The game test macro of 13. 1 kinds of mobile devices, is characterized in that, comprise host server, and, the multiple subordinate computer nodes be connected with described host server; Wherein, described host server comprises:
Task scheduling unit, for being received the test request that user sends by multiple web interface, one or more subordinate computer node is chosen according to described test request, the using state of each mobile device that subordinate computer node connects is detected, and test assignment is distributed on idle one or more mobile devices and perform;
File synchronization unit, for receiving the test file that user uploads, by described subordinate computer node by described test file and the test case synchronization distribution corresponding with described test request on the mobile device of free time;
Data acquisition unit, install startup Games Software, and the system file of mobile device is read in timing in the operation of Games Software, obtains performance parameter when described Games Software runs on each mobile device for controlling described mobile device;
Data processing unit, for resolving described performance parameter, generating test result and described test result being stored in the database be connected with described web interface.
The game test macro of 14. mobile devices as claimed in claim 13, is characterized in that, described test file comprises game installation kit and game automatic operating script; Then, described file synchronization unit also comprises:
Document encapsulation subelement, after described game automatic operating script and described test case are encapsulated as compressed file, is dispensed to each subordinate computer node by described compressed file and described game installation kit;
File transfer subelement, gives the mobile device of the one or more free time be connected with described subordinate computer node by described compressed file and described game installation kit synchronization distribution for described subordinate computer node.
The game test macro of 15. mobile devices as claimed in claim 14, it is characterized in that, described data acquisition unit, also comprises:
Document analysis subelement, resolves described compressed file for the mobile device controlling to receive described compressed file and described game installation kit, obtains described game automatic operating script and described test case;
Game promoter unit, for according to the instruction in described game automatic operating script, controls in described mobile device, install described game installation kit, and the Games Software started after installing runs described test case.
The game test macro of 16. mobile devices as claimed in claim 13, is characterized in that,
Described data acquisition unit, also carries out sectional drawing for timing in the operation of described Games Software to interface, obtains the scene image of the interface of real time execution on each mobile device;
Described data processing unit, also for described scene image and reference picture are carried out similarity-rough set, to judge compatibility when described Games Software runs on each mobile device; And the judged result of described scene image and described compatibility is stored in the database be connected with described web interface.
The game test macro of 17. mobile devices as claimed in claim 16, it is characterized in that, described host server also comprises background control unit;
Described background control unit, starts background service on the mobile apparatus for controlling; Further, read the system file of described mobile device by the timing in the operation of Games Software of described background service, obtain the performance parameter of described mobile device; And, by the timing in the operation of Games Software of described background service, sectional drawing is carried out to the interface of described mobile device, obtain the scene image of the interface of real time execution on mobile device.
The game test macro of 18. mobile devices as claimed in claim 17, it is characterized in that, described data processing unit also comprises:
Data storage subunit operable, for the similarity of described performance parameter, described scene image and described scene image and reference picture is generated test report, stores described test report in the database; It is one or more that described performance data comprises CPU usage, memory usage, traffic consumes amount, electric quantity consumption amount, game are installed in start-up time;
Data display subelement, for storing data by Web form output display by one or more storage in described database.
The game test macro of 19. mobile devices as claimed in claim 16, it is characterized in that, described data processing unit also comprises:
Image difference process subelement, for when described scene image and described reference picture are dissimilar, carries out difference processing according to described reference picture to described scene image;
Filtering and rim detection subelement, for carrying out filtering and rim detection to the scene image carried out after difference processing, to mark on described scene image the dissimilar region with described reference picture;
Image storing sub-units, for being stored in the scene image indicating dissimilar region in the database that is connected with described web interface.
The game test macro of 20. mobile devices as described in claim 16 or 19, it is characterized in that, described data processing unit also comprises:
Similarity Measure subelement, for calculating the similarity of the brightness of described scene image and described reference picture, the similarity of contrast respectively, and the similarity of structure;
Structural similarity computation subunit, for using the structural similarity index of the product of the similarity of the similarity of described brightness, described contrast and the similarity three of described structure as described scene image and described reference picture;
Compatibility determination subelement, for refer in described structural similarity target value be greater than specify threshold value time, judge that described scene image is similar to described reference picture structure, and described Games Software can on described mobile device compatibility operation.
The game test macro of 21. mobile devices as claimed in claim 20, it is characterized in that, described host server also comprises:
Interpolating unit, for adopting antialiasing filter to carry out interpolation to described scene image, zooms to the size identical with described reference picture by described scene image.
The game test macro of 22. mobile devices as claimed in claim 20, is characterized in that,
Described Similarity Measure subelement also comprises: multi-direction Similarity Measure subelement, for calculating the similarity of the brightness of described scene image and described reference picture, the similarity of contrast in a plurality of directions, and the similarity of structure;
Described structural similarity computation subunit, also for the direction of choosing the maximal value place of described structural similarity index as described scene image and the highest direction of described reference picture similarity.
The game test macro of 23. mobile devices as claimed in claim 20, is characterized in that,
Described Similarity Measure subelement also comprises:
Image divides subelement, for described scene image being divided into the image block of multiple fixed size; And,
Block similarity matching degree computation subunit, for calculating the similarity of the brightness of each image block and described reference picture, the similarity of contrast respectively, and the similarity of structure;
Described structural similarity computation subunit, also for the product of the similarity three using the similarity of brightness of each image block and described reference picture, the similarity of contrast and structure as the structural similarity index of each image block and described reference picture; And each image block and described reference picture being calculated the minimum value of the structural similarity index obtained, the structural similarity as described scene image and described reference picture refers to target value.
The game test macro of 24. mobile devices as claimed in claim 13, is characterized in that, described web interface, for the data stored in described database are exported to user.
CN201410819931.4A 2014-12-24 2014-12-24 Game testing method and system for mobile devices Pending CN104536888A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410819931.4A CN104536888A (en) 2014-12-24 2014-12-24 Game testing method and system for mobile devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410819931.4A CN104536888A (en) 2014-12-24 2014-12-24 Game testing method and system for mobile devices

Publications (1)

Publication Number Publication Date
CN104536888A true CN104536888A (en) 2015-04-22

Family

ID=52852418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410819931.4A Pending CN104536888A (en) 2014-12-24 2014-12-24 Game testing method and system for mobile devices

Country Status (1)

Country Link
CN (1) CN104536888A (en)

Cited By (49)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105095089A (en) * 2015-09-14 2015-11-25 北京金山安全软件有限公司 Method and device for testing performance of application software
CN105159806A (en) * 2015-08-25 2015-12-16 盛趣信息技术(上海)有限公司 Terminal compatibility test system and operating method therefor
CN105260306A (en) * 2015-10-20 2016-01-20 网易(杭州)网络有限公司 Performance detection method and device of art materials in game program
CN105279950A (en) * 2015-11-23 2016-01-27 深圳市海铭德科技有限公司 Multi-station parallel testing equipment for ratio frequency remote-controllers
CN105653456A (en) * 2015-12-31 2016-06-08 网易(杭州)网络有限公司 Application program performance testing method, device and system
CN105760308A (en) * 2016-03-31 2016-07-13 网易(杭州)网络有限公司 Multi-client coordinated test method and device
CN105843732A (en) * 2016-03-17 2016-08-10 畅捷通信息技术股份有限公司 Test case allocating method and test case allocating device
CN105868015A (en) * 2016-04-19 2016-08-17 广州爱九游信息技术有限公司 Method and g server for allocating tasks
CN105872069A (en) * 2016-04-28 2016-08-17 网易(杭州)网络有限公司 Distribution system and method for installation packages of handheld devices
CN106021095A (en) * 2016-05-06 2016-10-12 北京邮电大学 A push mechanism-based Android application automated testing method
CN106055470A (en) * 2016-05-19 2016-10-26 网易(杭州)网络有限公司 Method, device and system for performance testing of game program
CN106055471A (en) * 2016-05-20 2016-10-26 深圳天珑无线科技有限公司 Testing method and terminal
CN106055463A (en) * 2016-05-25 2016-10-26 努比亚技术有限公司 Testing device, system and method
CN106294168A (en) * 2016-08-16 2017-01-04 广州华多网络科技有限公司 A kind of method and system carrying out Application testing
CN106294161A (en) * 2016-08-12 2017-01-04 北京奇虎科技有限公司 The interface function method of testing of a kind of application and device
CN106362396A (en) * 2016-08-18 2017-02-01 网易(杭州)网络有限公司 Game performance test method and apparatus
CN106445817A (en) * 2016-09-09 2017-02-22 网易(杭州)网络有限公司 Test data processing method, apparatus and system
CN106598865A (en) * 2016-12-22 2017-04-26 动视云(北京)科技有限公司 Software testing method and device
CN106598836A (en) * 2015-10-20 2017-04-26 阿里巴巴集团控股有限公司 Method and system for testing client software
CN106598824A (en) * 2016-11-25 2017-04-26 深圳前海微众银行股份有限公司 Performance analysis method and device for block chain
CN106802856A (en) * 2015-11-26 2017-06-06 腾讯科技(深圳)有限公司 The performance test methods of game application, server and game application client
CN106997291A (en) * 2016-01-26 2017-08-01 中移(杭州)信息技术有限公司 A kind of control method and master node, slave node
CN107124209A (en) * 2016-02-25 2017-09-01 北京博酷科技有限公司 There is provided for mobile terminal test and coordinate the cloud of service to match machine system and method
WO2017193737A1 (en) * 2016-05-09 2017-11-16 中兴通讯股份有限公司 Software testing method and system
CN107436841A (en) * 2016-05-25 2017-12-05 阿里巴巴集团控股有限公司 The method for previewing and device of the page
CN107608877A (en) * 2017-08-11 2018-01-19 上海巍擎信息技术有限责任公司 A kind of automation application program interface method of testing and test system based on machine learning
CN107888550A (en) * 2016-09-30 2018-04-06 腾讯科技(深圳)有限公司 Performance indications collecting method and device, tactful sending method and device
CN108630242A (en) * 2018-04-03 2018-10-09 广州视源电子科技股份有限公司 media file compatibility test method, device, storage medium and computer equipment
CN108763083A (en) * 2018-05-30 2018-11-06 平安普惠企业管理有限公司 Automated testing method, device, computer equipment and storage medium
CN108984363A (en) * 2018-05-23 2018-12-11 福建天泉教育科技有限公司 A kind of method and system of concurrent testing
CN109240934A (en) * 2018-09-29 2019-01-18 中国平安人寿保险股份有限公司 Application program capacity test method, device and computer readable storage medium
CN109324967A (en) * 2018-09-26 2019-02-12 深圳壹账通智能科技有限公司 The method, apparatus and terminal device of application program pop-up components testing
CN109359032A (en) * 2018-09-05 2019-02-19 Oppo(重庆)智能科技有限公司 Test data collection method, device, system and electronic equipment
CN109359043A (en) * 2018-10-08 2019-02-19 广州云测信息技术有限公司 A kind of moving game automated testing method based on machine learning
CN109697168A (en) * 2019-01-11 2019-04-30 网易(杭州)网络有限公司 Power consumption weight testing method and device, electronic equipment, storage medium
CN109976773A (en) * 2019-04-04 2019-07-05 网易(杭州)网络有限公司 The dispositions method and device of game test environment
CN110474900A (en) * 2019-08-13 2019-11-19 腾讯科技(深圳)有限公司 A kind of Game Protocol test method and device
CN110472413A (en) * 2019-07-26 2019-11-19 Oppo广东移动通信有限公司 Device management method, device, storage medium and electronic equipment based on jenkins
CN110659198A (en) * 2018-06-28 2020-01-07 亿度慧达教育科技(北京)有限公司 Application program test case execution method and device and software test system
CN111104320A (en) * 2019-12-15 2020-05-05 浪潮电子信息产业股份有限公司 Test method, device, equipment and medium
CN111143188A (en) * 2018-11-02 2020-05-12 中移(杭州)信息技术有限公司 Method and equipment for automatically testing application
CN111651351A (en) * 2020-05-29 2020-09-11 成都新潮传媒集团有限公司 Software performance testing method and device based on Jenkins
CN111913884A (en) * 2020-07-30 2020-11-10 百度在线网络技术(北京)有限公司 Distributed test method, device, equipment, system and readable storage medium
CN111950821A (en) * 2019-05-15 2020-11-17 腾讯科技(深圳)有限公司 Test method, test device and server
CN112164132A (en) * 2020-10-17 2021-01-01 蔡娟 Game compatible processing method based on big data and cloud computing center
CN112527621A (en) * 2019-09-17 2021-03-19 中移动信息技术有限公司 Test path construction method, device, equipment and storage medium
CN113076243A (en) * 2021-03-26 2021-07-06 成都安恒信息技术有限公司 Method for optimizing image recognition automated testing cost
CN113268407A (en) * 2020-02-17 2021-08-17 北京沃东天骏信息技术有限公司 Page testing method and device, computer storage medium and electronic equipment
CN105975367B (en) * 2016-04-29 2022-03-25 腾讯科技(深圳)有限公司 Test method and device for mobile equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727389A (en) * 2009-11-23 2010-06-09 中兴通讯股份有限公司 Automatic test system and method of distributed integrated service
CN202210277U (en) * 2011-09-17 2012-05-02 北京迈凯互动网络科技有限公司 Computer system of controlling mobile device and mobile device testing system
EP2492814A1 (en) * 2011-02-28 2012-08-29 Sap Ag Managing test automation
CN102681942A (en) * 2012-04-21 2012-09-19 北京迈凯互动网络科技有限公司 Testing method and system of mobile application
CN102841846A (en) * 2012-08-27 2012-12-26 北京邮电大学 Software testing method, device and system based on Hadoop
CN102902625A (en) * 2012-11-14 2013-01-30 北京奇虎科技有限公司 Software performance test system and method
CN103530231A (en) * 2013-10-12 2014-01-22 北京京东尚科信息技术有限公司 Application program testing method and system based on service process control
CN103678132A (en) * 2013-12-18 2014-03-26 中国科学院深圳先进技术研究院 Application software cloud testing system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727389A (en) * 2009-11-23 2010-06-09 中兴通讯股份有限公司 Automatic test system and method of distributed integrated service
EP2492814A1 (en) * 2011-02-28 2012-08-29 Sap Ag Managing test automation
CN202210277U (en) * 2011-09-17 2012-05-02 北京迈凯互动网络科技有限公司 Computer system of controlling mobile device and mobile device testing system
CN102681942A (en) * 2012-04-21 2012-09-19 北京迈凯互动网络科技有限公司 Testing method and system of mobile application
CN102841846A (en) * 2012-08-27 2012-12-26 北京邮电大学 Software testing method, device and system based on Hadoop
CN102902625A (en) * 2012-11-14 2013-01-30 北京奇虎科技有限公司 Software performance test system and method
CN103530231A (en) * 2013-10-12 2014-01-22 北京京东尚科信息技术有限公司 Application program testing method and system based on service process control
CN103678132A (en) * 2013-12-18 2014-03-26 中国科学院深圳先进技术研究院 Application software cloud testing system

Cited By (71)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159806A (en) * 2015-08-25 2015-12-16 盛趣信息技术(上海)有限公司 Terminal compatibility test system and operating method therefor
CN105095089A (en) * 2015-09-14 2015-11-25 北京金山安全软件有限公司 Method and device for testing performance of application software
CN106598836A (en) * 2015-10-20 2017-04-26 阿里巴巴集团控股有限公司 Method and system for testing client software
CN105260306A (en) * 2015-10-20 2016-01-20 网易(杭州)网络有限公司 Performance detection method and device of art materials in game program
CN105260306B (en) * 2015-10-20 2018-05-08 网易(杭州)网络有限公司 The method for testing performance and device of fine arts resource in a kind of games
CN105279950A (en) * 2015-11-23 2016-01-27 深圳市海铭德科技有限公司 Multi-station parallel testing equipment for ratio frequency remote-controllers
CN106802856A (en) * 2015-11-26 2017-06-06 腾讯科技(深圳)有限公司 The performance test methods of game application, server and game application client
CN106802856B (en) * 2015-11-26 2020-02-04 腾讯科技(深圳)有限公司 Performance testing method of game application program, server and game application client
CN105653456A (en) * 2015-12-31 2016-06-08 网易(杭州)网络有限公司 Application program performance testing method, device and system
CN105653456B (en) * 2015-12-31 2018-09-11 网易(杭州)网络有限公司 Application program capacity test method, device and system
CN106997291A (en) * 2016-01-26 2017-08-01 中移(杭州)信息技术有限公司 A kind of control method and master node, slave node
CN106997291B (en) * 2016-01-26 2020-12-22 中移(杭州)信息技术有限公司 Control method, master node and slave node
CN107124209A (en) * 2016-02-25 2017-09-01 北京博酷科技有限公司 There is provided for mobile terminal test and coordinate the cloud of service to match machine system and method
CN105843732A (en) * 2016-03-17 2016-08-10 畅捷通信息技术股份有限公司 Test case allocating method and test case allocating device
CN105843732B (en) * 2016-03-17 2019-08-02 畅捷通信息技术股份有限公司 Test case distribution method and test case distributor
CN105760308A (en) * 2016-03-31 2016-07-13 网易(杭州)网络有限公司 Multi-client coordinated test method and device
CN105760308B (en) * 2016-03-31 2018-09-14 网易(杭州)网络有限公司 Multi-client cooperates with test method and device
CN105868015B (en) * 2016-04-19 2019-03-15 广州爱九游信息技术有限公司 A kind of method for allocating tasks and distribution server
CN105868015A (en) * 2016-04-19 2016-08-17 广州爱九游信息技术有限公司 Method and g server for allocating tasks
CN105872069A (en) * 2016-04-28 2016-08-17 网易(杭州)网络有限公司 Distribution system and method for installation packages of handheld devices
CN105975367B (en) * 2016-04-29 2022-03-25 腾讯科技(深圳)有限公司 Test method and device for mobile equipment
CN106021095B (en) * 2016-05-06 2018-11-30 北京邮电大学 A kind of Android application automated testing method based on push-mechanism
CN106021095A (en) * 2016-05-06 2016-10-12 北京邮电大学 A push mechanism-based Android application automated testing method
WO2017193737A1 (en) * 2016-05-09 2017-11-16 中兴通讯股份有限公司 Software testing method and system
CN106055470A (en) * 2016-05-19 2016-10-26 网易(杭州)网络有限公司 Method, device and system for performance testing of game program
CN106055470B (en) * 2016-05-19 2019-07-19 网易(杭州)网络有限公司 Performance test methods, the apparatus and system of games
CN106055471A (en) * 2016-05-20 2016-10-26 深圳天珑无线科技有限公司 Testing method and terminal
CN107436841A (en) * 2016-05-25 2017-12-05 阿里巴巴集团控股有限公司 The method for previewing and device of the page
CN106055463A (en) * 2016-05-25 2016-10-26 努比亚技术有限公司 Testing device, system and method
CN107436841B (en) * 2016-05-25 2020-08-07 阿里巴巴集团控股有限公司 Page preview method and device
CN106055463B (en) * 2016-05-25 2019-03-12 努比亚技术有限公司 A kind of test device, system and method
CN106294161A (en) * 2016-08-12 2017-01-04 北京奇虎科技有限公司 The interface function method of testing of a kind of application and device
CN106294168A (en) * 2016-08-16 2017-01-04 广州华多网络科技有限公司 A kind of method and system carrying out Application testing
CN106294168B (en) * 2016-08-16 2018-10-23 广州华多网络科技有限公司 A kind of method and system carrying out Application testing
CN106362396A (en) * 2016-08-18 2017-02-01 网易(杭州)网络有限公司 Game performance test method and apparatus
CN106445817B (en) * 2016-09-09 2018-11-27 网易(杭州)网络有限公司 Processing method, the device and system of test data
CN106445817A (en) * 2016-09-09 2017-02-22 网易(杭州)网络有限公司 Test data processing method, apparatus and system
CN107888550A (en) * 2016-09-30 2018-04-06 腾讯科技(深圳)有限公司 Performance indications collecting method and device, tactful sending method and device
CN106598824A (en) * 2016-11-25 2017-04-26 深圳前海微众银行股份有限公司 Performance analysis method and device for block chain
CN106598865B (en) * 2016-12-22 2021-05-07 动视云(北京)科技有限公司 Software testing method and device
CN106598865A (en) * 2016-12-22 2017-04-26 动视云(北京)科技有限公司 Software testing method and device
CN107608877B (en) * 2017-08-11 2021-04-09 上海巍擎信息技术有限责任公司 Automatic application program interface testing method and system based on machine learning
CN107608877A (en) * 2017-08-11 2018-01-19 上海巍擎信息技术有限责任公司 A kind of automation application program interface method of testing and test system based on machine learning
CN108630242A (en) * 2018-04-03 2018-10-09 广州视源电子科技股份有限公司 media file compatibility test method, device, storage medium and computer equipment
CN108984363A (en) * 2018-05-23 2018-12-11 福建天泉教育科技有限公司 A kind of method and system of concurrent testing
CN108984363B (en) * 2018-05-23 2022-08-30 福建天泉教育科技有限公司 Parallel test method and system
CN108763083A (en) * 2018-05-30 2018-11-06 平安普惠企业管理有限公司 Automated testing method, device, computer equipment and storage medium
CN110659198A (en) * 2018-06-28 2020-01-07 亿度慧达教育科技(北京)有限公司 Application program test case execution method and device and software test system
CN109359032A (en) * 2018-09-05 2019-02-19 Oppo(重庆)智能科技有限公司 Test data collection method, device, system and electronic equipment
CN109324967A (en) * 2018-09-26 2019-02-12 深圳壹账通智能科技有限公司 The method, apparatus and terminal device of application program pop-up components testing
CN109240934A (en) * 2018-09-29 2019-01-18 中国平安人寿保险股份有限公司 Application program capacity test method, device and computer readable storage medium
CN109240934B (en) * 2018-09-29 2023-05-26 中国平安人寿保险股份有限公司 Application program performance test method and device and computer readable storage medium
CN109359043A (en) * 2018-10-08 2019-02-19 广州云测信息技术有限公司 A kind of moving game automated testing method based on machine learning
CN109359043B (en) * 2018-10-08 2022-03-29 北京云测信息技术有限公司 Mobile game automatic testing method based on machine learning
CN111143188B (en) * 2018-11-02 2023-09-22 中移(杭州)信息技术有限公司 Method and equipment for automatically testing application
CN111143188A (en) * 2018-11-02 2020-05-12 中移(杭州)信息技术有限公司 Method and equipment for automatically testing application
CN109697168A (en) * 2019-01-11 2019-04-30 网易(杭州)网络有限公司 Power consumption weight testing method and device, electronic equipment, storage medium
CN109976773A (en) * 2019-04-04 2019-07-05 网易(杭州)网络有限公司 The dispositions method and device of game test environment
CN111950821B (en) * 2019-05-15 2023-07-25 腾讯科技(深圳)有限公司 Test method, device and server
CN111950821A (en) * 2019-05-15 2020-11-17 腾讯科技(深圳)有限公司 Test method, test device and server
CN110472413A (en) * 2019-07-26 2019-11-19 Oppo广东移动通信有限公司 Device management method, device, storage medium and electronic equipment based on jenkins
CN110472413B (en) * 2019-07-26 2021-06-01 Oppo广东移动通信有限公司 Jenkins-based equipment management method and device, storage medium and electronic equipment
CN110474900B (en) * 2019-08-13 2021-11-02 腾讯科技(深圳)有限公司 Game protocol testing method and device
CN110474900A (en) * 2019-08-13 2019-11-19 腾讯科技(深圳)有限公司 A kind of Game Protocol test method and device
CN112527621A (en) * 2019-09-17 2021-03-19 中移动信息技术有限公司 Test path construction method, device, equipment and storage medium
CN111104320A (en) * 2019-12-15 2020-05-05 浪潮电子信息产业股份有限公司 Test method, device, equipment and medium
CN113268407A (en) * 2020-02-17 2021-08-17 北京沃东天骏信息技术有限公司 Page testing method and device, computer storage medium and electronic equipment
CN111651351A (en) * 2020-05-29 2020-09-11 成都新潮传媒集团有限公司 Software performance testing method and device based on Jenkins
CN111913884A (en) * 2020-07-30 2020-11-10 百度在线网络技术(北京)有限公司 Distributed test method, device, equipment, system and readable storage medium
CN112164132A (en) * 2020-10-17 2021-01-01 蔡娟 Game compatible processing method based on big data and cloud computing center
CN113076243A (en) * 2021-03-26 2021-07-06 成都安恒信息技术有限公司 Method for optimizing image recognition automated testing cost

Similar Documents

Publication Publication Date Title
CN104536888A (en) Game testing method and system for mobile devices
CN102981951B (en) Cloud test development platform and cloud test development method
US9870690B2 (en) Methods and systems for a universal wireless platform for asset monitoring
CN105051781A (en) Machine-vision system and method for remote quality inspection of a product
CN104375912B (en) The measuring method and device of mobile terminal interim card
CN108307021B (en) Parallel following test equipment, cloud real machine and method for mobile terminal
CN104025048B (en) Method and system for estimating installation time of software product in operating environment
CN111813686B (en) Game testing method and device, testing terminal and storage medium
CN109359032B (en) Test data collection method, device and system and electronic equipment
CN109470946A (en) A kind of generating equipment fault detection method and system
CN104834597A (en) Method and system for measuring application response duration
US10437203B2 (en) Methods and systems for dynamic workflow prioritization and tasking
CN114564374A (en) Operator performance evaluation method and device, electronic equipment and storage medium
CN104954528A (en) Detection method and apparatus of electricity consumption information of terminal equipment
CN112032031A (en) Cloud data analysis method, device and system for air compressor
KR102423282B1 (en) Apparatus and method for recognizing number of measuring intrument
CN110675427A (en) Intelligent vibration detection method and related product
CN114034972B (en) Intelligent cable fault determining method and device based on image data
CN113608953B (en) Test data generation method and device, electronic equipment and readable storage medium
CN115269418A (en) Coverage rate acquisition method, device, equipment and storage medium
CN110971478A (en) Pressure measurement method and device for cloud platform service performance and computing equipment
CN110489201B (en) Container performance testing device and method
WO2017208357A1 (en) Production control device and production control program
CN113656313A (en) Automatic test processing method and device
CN102467897B (en) Debugging circuit and method and debugging display device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150422