CN106730844A - A kind of scene run time method of testing and device - Google Patents

A kind of scene run time method of testing and device Download PDF

Info

Publication number
CN106730844A
CN106730844A CN201710016111.5A CN201710016111A CN106730844A CN 106730844 A CN106730844 A CN 106730844A CN 201710016111 A CN201710016111 A CN 201710016111A CN 106730844 A CN106730844 A CN 106730844A
Authority
CN
China
Prior art keywords
scene
coordinate
pixel
picture
color value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710016111.5A
Other languages
Chinese (zh)
Other versions
CN106730844B (en
Inventor
王庆
段建建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201710016111.5A priority Critical patent/CN106730844B/en
Publication of CN106730844A publication Critical patent/CN106730844A/en
Application granted granted Critical
Publication of CN106730844B publication Critical patent/CN106730844B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23418Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Analysis (AREA)

Abstract

The invention discloses a kind of scene run time method of testing, comprise the following steps:Scene to be tested is run according to enabled instruction, and records the very first time for generating the enabled instruction;Obtain the Pixel Information of the current picture of the scene to be tested;Wherein, the Pixel Information includes the coordinate and color value of each pixel of the composition current picture;The color value of the pixel positioned at default monitoring coordinate of the current picture is extracted according to the Pixel Information;The color value for extracting is matched with target color values;Wherein, the target color values are the color value of the pixel positioned at the monitoring coordinate of target picture;The second time during successful match is obtained, and the run time of the scene to be tested is generated according to second time and the very first time.The invention also discloses a kind of scene run time test device, accurate, convenient and reusable scene run time test is capable of achieving.

Description

A kind of scene run time method of testing and device
Technical field
The present invention relates to internet arena, more particularly to a kind of scene run time method of testing and device.
Background technology
In the application particularly game application development process of mobile terminal, the run time of special scenes, for example, player Time, the time of handoff scenario cost, the time of interface opening consumption that game spends are logged in, have become one influences very much The factor of Consumer's Experience.If the run time of these special scenes is long, it is possible to reduce the game experiencing of player, so as to lead Cause the loss of player.
For such issues that, there is provided accurate measurement data is very important.Traditional scene run time measurement side Case mainly has two kinds, and one kind is checked by increasing code printing log information in the application;Another is by correspondence Consumed come time of measuring with record screen, analysis record screen video is carried out.For first method, implementation step is, in test scene Start frame and end frame log information records are set, then obtain scene by obtaining the time difference of printing log information twice Run time;For second method, implementation step is:Record screen is carried out in scene running and obtains video, it is then right The video of acquisition is analyzed frame by frame, so as to obtain the time difference of start frame and end frame, obtains the run time of scene.
The content of the invention
For first method, the coupling of itself is too high, it is necessary to program specially adds code to realize with application for it, and not Need different codes to be realized with project, therefore cannot be multiplexed, be not suitable for tester and tested.Further, since being Directly using the log information of program, and in Android system aspect render frame data and to be shown on hardware screen be to pass through What log got, therefore this part-time cannot obtain, there is certain mistake in the time and the run time of reality for causing measurement Difference.For second method, its implementation process is relatively complicated, it is necessary to first carry out record screen, then analyzes the frame number of the video of acquisition According to., due to performance issue, the record screen scheme for causing system to provide often terminates or screenshotss picture is cut for part Android type Disconnected problem.Video general 30 frame per second that general Android record screen is obtained is additionally, since, if picture is not changed in meeting per second Several frames are reached, part type is even lower, cause when frame is matched, to have the error close to 0.5 second or so, no It is adapted to some to run time than more sensitive scene, is not well suited for.Additionally, second method record screen and video analysis are separated To process, it is considered to type problem it is excessive, it is impossible to form automatic test.
Regarding to the issue above, the invention provides a kind of scene run time method of testing and device, it is capable of achieving accurate, side Just and reusable scene run time test.
The invention provides a kind of scene run time method of testing, comprise the following steps:
Scene to be tested is run according to enabled instruction, and records the very first time for generating the enabled instruction;
Obtain the Pixel Information of the current picture of the scene to be tested;Wherein, the Pixel Information includes that composition is described The coordinate and color value of each pixel of current picture;
The color of the pixel positioned at default monitoring coordinate of the current picture is extracted according to the Pixel Information Value;
The color value for extracting is matched with target color values;Wherein, the target color values are target picture Positioned at it is described monitoring coordinate pixel color value;
The second time during successful match is obtained, and it is described to be measured according to second time and very first time generation The run time of examination hall scape.
Preferably, the target picture is the last frame picture of the scene to be tested or is the scene to be tested Next scene the first frame picture.
Preferably, the Pixel Information of the current picture for obtaining the scene to be tested is specifically included:
Obtain the view data of the current picture for showing of the scene to be tested;
The cache information of the position and color value of reading each pixel in described image data obtains the current picture The Pixel Information in face.
Preferably, running scene to be tested according to enabled instruction, and the very first time for generating the enabled instruction is recorded Before, also include:
The port mapping with testing service end is created, foundation is connected with the socket at the testing service end;
The startup event that the testing service end generates that receives is connected by the socket, and according to the startup event Generation starts the enabled instruction of the scene to be tested.
Preferably, before the color value for extracting is matched with target color values, also include:
The view data of target picture is obtained, position and the color value of each pixel in described image data is read Cache information, obtains the Pixel Information of the target picture;
Obtain default monitoring coordinate;
The color value of the pixel positioned at the monitoring coordinate of the target picture is read according to the Pixel Information, is obtained To target color values.
Preferably, the default monitoring coordinate of acquisition, including:
To the sectional drawing of the testing service end transmission objectives picture, so that the testing service end shows the sectional drawing;
Click coordinate of the user of the testing service end return on the sectional drawing is received, and according to the click coordinate Generation monitoring coordinate;Or,
Monitoring coordinate is sent to the testing service end obtain request;
The response message that the testing service end returns is received, the response message includes:Sat by the monitoring of user input Mark;Or,
Default monitoring coordinate is read from local storage space.
The present invention also provides a kind of scene run time test device, including:
Start unit, for running scene to be tested according to enabled instruction, and records the first of the generation enabled instruction Time;
Pixel Information acquiring unit, the Pixel Information of the current picture for obtaining the scene to be tested;Wherein, it is described Pixel Information includes the coordinate and color value of each pixel of the composition current picture;
Color value extraction unit, for according to the Pixel Information extract the current picture positioned at default monitoring The color value of the pixel of coordinate;
Matching unit, for the color value for extracting to be matched with target color values;Wherein, the color of object It is worth the color value of the pixel positioned at the monitoring coordinate for target picture;
Run time computing unit, for obtaining the second time during successful match, and according to second time and institute State the run time of the very first time generation scene to be tested.
Preferably, the target picture is the last frame picture of the scene to be tested or is the scene to be tested Next scene the first frame picture.
Preferably, the Pixel Information acquiring unit is specifically included:
Image data acquisition module, the picture number of the current picture for showing for obtaining the scene to be tested According to;
Pixel Information acquisition module, for reading the position of each pixel in described image data and delaying for color value Information is deposited, the Pixel Information of the current picture is obtained.
Preferably, also include:
Port mapping unit, for creating the port mapping with testing service end, sets up and the testing service end Socket is connected;
Enabled instruction generation unit, the startup thing that the testing service end generates is received for being connected by the socket Part, and start the enabled instruction of the scene to be tested according to startup event generation.
Preferably, also include:
Object pixel information acquisition unit, the view data for obtaining target picture, in reading described image data The position of each pixel and the cache information of color value, obtain the Pixel Information of the target picture;
Monitoring coordinate acquiring unit, for obtaining default monitoring coordinate;
Target color values reading unit, for according to the Pixel Information read the target picture positioned at the monitoring The color value of the pixel of coordinate, obtains target color values.
Preferably, the monitoring coordinate acquiring unit includes:
Sectional drawing transport module, for the sectional drawing to the testing service end transmission objectives picture, so that the testing service The end display sectional drawing;
Monitoring Coordinate generation module, sits for receiving click of the user of the testing service end return on the sectional drawing Mark, and according to click coordinate generation monitoring coordinate;
Or the monitoring coordinate acquiring unit includes:
Monitoring co-ordinate request module, request is obtained for sending monitoring coordinate to the testing service end;
Response message receiver module, for receiving the response message that the testing service end returns, the response message bag Include:By the monitoring coordinate of user input;
Or the monitoring coordinate acquiring unit from local storage space specifically for reading default monitoring coordinate.
Scene run time method of testing and device that the present invention is provided, by setting the monitoring coordinate of target picture, and Using the target color values positioned at monitoring coordinate of target picture as Matching Model, by the Matching Model and the current picture of screen The color value positioned at monitoring coordinate matched, the second time that the match is successful is obtained, so as to according to the first of startup optimization Time obtains the operation duration of scene to be tested with second time.The present invention is compared with prior art, on the one hand, with color Value is matched as Matching Model, minimum being fallen below with the coupling applied, and such that it is able to be multiplexed into different applications, is carried Rise the efficiency of test and simplify the operation of test;On the other hand, the picture for obtaining current screen in system in real time has been used The interface of information, error is within millisecond, and the result of test is more accurate.
Brief description of the drawings
In order to illustrate more clearly of technical scheme, the accompanying drawing to be used needed for implementation method will be made below Simply introduce, it should be apparent that, drawings in the following description are only some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of scene run time method of testing provided in an embodiment of the present invention.
Fig. 2 is a kind of schematic diagram for monitoring coordinate provided in an embodiment of the present invention.
Fig. 3 is the structural representation of scene run time test device provided in an embodiment of the present invention.
Specific 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 carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Fig. 1 is referred to, the present invention provides a kind of scene run time method of testing, comprises the following steps:
S101, runs scene to be tested, and record the very first time for generating the enabled instruction according to enabled instruction.
In embodiments of the present invention, before scene to be tested is run, the scene to be tested need to first be started.The present invention is implemented Example provides three kinds of methods for starting scene to be tested.
The first:Directly click on startup control on mobile terminals to generate enabled instruction, to start scene to be tested.
Specifically, scene to be tested provides startup control in itself, therefore directly can on mobile terminals click on the startup Control generates enabled instruction, starts scene to be tested.
Second:The port mapping with testing service end is created, foundation is connected with the socket at the testing service end, and The startup event that the testing service end generates that receives is connected by the socket, institute is started according to startup event generation State the enabled instruction of scene to be tested.
In embodiments of the present invention, test for convenience, testing service end can be connected to by by mobile terminal, so that logical Cross the operation that testing service end controls mobile terminal.Its benefit is easy to operate, and can simultaneously manage multiple mobile terminals.
The minitouch instruments that the embodiment of the present invention can be based on STF frameworks realize the company of mobile terminal and testing service end Connect, and mobile terminal is controlled.Wherein, minitouch runs on mobile terminals after being compiled through Android NDK, Minitouch provides the interface of the various touch control operations of the mobile terminal, including presses, lifts, slides, therefore can lead to Cross minitouch simulations and click on cell phone event.Specifically, first by the automatic push of minitouch files to mobile terminal, so Port mapping is realized by adb foreword orders afterwards, so as to set up the socket at testing service end and the port of mobile terminal Connection.After the connection is established, the transmittable startup event in the testing service end (is such as listening to user's click start button After generate the startup event) to the mobile terminal, after the startup event is received, i.e. generation starts the mobile terminal Instruction.
The third:On the basis of second method, the sectional drawing of the real-time pictures of mobile terminal is transferred to test first Service end, then when the testing service end listens to the startup control clicked in being displayed in the sectional drawing by minitouch When, startup event (coordinate comprising clicking point) is generated, mobile terminal is performed according to the event of startup and starts the startup control Operation, so as to generate enabled instruction.
In embodiments of the present invention, minicap or ADB kits are can be used to enter the current picture of the mobile terminal Row sectional drawing.By taking minicap as an example, minicap runs on the mobile terminal after being compiled through Android NDK.Minicap's Major function is predetermined application programming interface (the Application Programming using the system of mobile terminal Interface, API) carry out real-time snap shot, and institute is sent to after being compressed to sectional drawing data separate libjpeg-turbo storehouses Testing service end is stated, because the data transmission efficiency of minicap is very high, therefore real-time Transmission and the display of picture is can guarantee that.
In embodiments of the present invention, it is shown in point tool of the point on the sectional drawing at testing service end with display on mobile terminals There is one-to-one relation, thus user is by the way that after the startup control that mouse is clicked on sectional drawing, this starts event and (clicks on and sit Mark) mobile terminal can be transferred to, generated after being parsed by minitouch in the corresponding touch event started on control, enter And generate enabled instruction.
S102, obtains the Pixel Information of the current picture of the scene to be tested;Wherein, the Pixel Information includes composition The coordinate and color value of each pixel of the current picture.
Specifically, the view data of current picture that can be being shown by acquisition, and read described image data The position of each pixel and the cache information of color value obtain the Pixel Information of the current picture.
By taking the mobile terminal under operating in Android system as an example, the ImageReader classes of Android allow application program direct Access is presented on the view data of current picture on interface, Android by after the surface object compositions for obtaining current picture, Carry out rendering generation display current picture on a display screen.ImageReader classes can be rendered after view data, its Mainly there are two important methods:AcquireLatestImage () and acquireNextImage (), wherein the former be Newest image information is obtained, the latter is to obtain the image information inside image queue, therefore can be passed through herein AcquireNextImage () obtains the view data of current picture, and reads the face of each pixel in described image data Colour (RGB) and coordinate, obtain the Pixel Information of current picture.
Certainly, it is necessary to explanation, for different system, can be obtained using the corresponding method of correspondence system or class and worked as The Pixel Information of preceding picture, these schemes will not be described here all within protection scope of the present invention.
S103, the pixel positioned at default monitoring coordinate of the current picture is extracted according to the Pixel Information Color value.
S104, the color value for extracting is matched with target color values;Wherein, the target color values are target The color value of the pixel positioned at the monitoring coordinate of picture.
In the present invention is implemented, after the Pixel Information is obtained, you can work as according to the Pixel Information is extracted The color value of the pixel positioned at default monitoring coordinate of preceding picture.Wherein, described monitoring coordinate is previously given.Obtaining After the Pixel Information of current picture, the pixel positioned at the monitoring coordinate of the current picture is extracted according to the monitoring coordinate The color value of point, is then matched one by one with corresponding target color values.Wherein, the monitoring coordinate can be one, also may be used It is multiple, the present invention is not specifically limited.
In embodiments of the present invention, the target picture can be for the last frame picture of the scene to be tested or be institute State the first frame picture of next scene of scene to be tested.
For ordinary circumstance, target picture is chosen for the last frame picture of scene to be tested.But in view of some situations, The start frame of scene to be tested and the picture of end frame are more or less the same, and erroneous judgement easily occur, therefore, can also choose field to be tested First frame picture of next scene of scape is used as target picture.
S105, obtains the second time during successful match, and according to second time and very first time generation institute State the run time of scene to be tested.
In embodiments of the present invention, if the match is successful, then it represents that current picture is target picture, because target picture is First frame picture of the last frame picture of scene to be tested or the next scene for the scene to be tested, therefore explanation Now scene to be tested has completed operation.Therefore, the very first time is subtracted using current time (the second time), it is possible to obtain Obtain the run time of the scene to be tested.
In sum, scene run time method of testing provided in an embodiment of the present invention, by the prison for setting target picture Survey coordinate, and using target picture positioned at monitoring coordinate color value as Matching Model, by working as the Matching Model and screen The color value positioned at monitoring coordinate of preceding picture is matched, and the second time that the match is successful is obtained, so as to according to startup optimization The very first time operation duration of scene to be tested is obtained with second time.The present invention is compared with prior art, on the one hand, Matched as Matching Model using color value, it is minimum being fallen below with the coupling applied, it is different such that it is able to be multiplexed into Using improving the efficiency of test and simplify the operation of test;On the other hand, used and obtained current screen in system in real time Image information interface, error is within millisecond, and the result of test is more accurate.
Preferably, before S104, also include:
S1041, obtains the view data of target picture, the position of each pixel in reading described image data and face The cache information of colour, obtains the Pixel Information of the target picture.
In the preferred embodiment, for Android system, equally can be by ImageReader classes AcquireNextImage () obtains the Pixel Information of the target picture.
S1042, obtains default monitoring coordinate.
This preferred embodiment provides following three kinds of methods to obtain monitoring coordinate:
First method:
To the sectional drawing of the testing service end transmission objectives picture, so that the testing service end shows the sectional drawing.
Click coordinate of the user of the testing service end return on the sectional drawing is received, and according to the click coordinate Generation monitoring coordinate.
The acquisition methods of the monitoring coordinate that this preferred embodiment is provided, first to the testing service end transmission objectives picture Sectional drawing (by minicap or ADB kits) so that the testing service end shows the sectional drawing.The testing service End can according to user can be on the sectional drawing click generation click coordinate, wherein, mobile terminal receive it is described click on sit After mark, the coordinates of targets under mobile terminal local Coordinate System can be converted into, then be sat according to coordinates of targets generation monitoring Mark.Here monitoring coordinate can be coordinates of targets itself, or coordinates of targets and target picture corresponding with coordinates of targets The coordinate of several adjacent pixels of vegetarian refreshments.As shown in Fig. 2 the monitoring coordinate in figure includes coordinates of targets and is sat with target 4 adjacent coordinates of pixel of corresponding target pixel points are marked, is matched by choosing multiple coordinates, matching can be improved Accuracy, prevent the phenomenon not matched.
Additionally, when click coordinate is chosen, the coordinate of the stability region of target picture, i.e. color value should be chosen and be not susceptible to The coordinate in the region of change.
The choosing method of the monitoring coordinate that this preferred embodiment is provided, without using other instruments, without carrying out data Be manually entered by obtain monitoring position, simple to operate, accuracy rate is high.
Second method:
Monitoring coordinate is sent to the testing service end obtain request;
The response message that the testing service end returns is received, the response message includes:Sat by the monitoring of user input Mark.
In this preferred embodiment, monitoring coordinate can be manually entered by user on testing service end, and be transferred to described Mobile terminal, wherein, the monitoring coordinate that user is input on testing service end can be one, or multiple, the present invention It is not specifically limited.
The choosing method of the monitoring coordinate that this preferred embodiment is provided, easy to operate, Consumer's Experience is good.
The third method:
Default monitoring coordinate is read from local storage space.
In this preferred embodiment, monitoring coordinate can be pre-stored within local storage space, and the mobile terminal can be according to pre- If path read the monitoring coordinate.
S1043, the face of the pixel positioned at the monitoring coordinate of the target picture is read according to the Pixel Information Colour, obtains target color values.
Fig. 3 is referred to, the embodiment of the present invention additionally provides a kind of scene run time test device 100, including:
Start unit 10, for running scene to be tested according to enabled instruction, and records the of the generation enabled instruction One time;
Pixel Information acquiring unit 20, the Pixel Information of the current picture for obtaining the scene to be tested;Wherein, institute Stating Pixel Information includes the coordinate and color value of each pixel of the composition current picture;
Color value extraction unit 30, for according to the Pixel Information extract the current picture positioned at default prison Survey the color value of the pixel of coordinate;
Matching unit 40, for the color value for extracting to be matched with target color values;Wherein, the target face Colour is the color value of the pixel positioned at the monitoring coordinate of target picture;
Run time computing unit 50, for obtaining the second time during successful match, and according to second time and The very first time generates the run time of the scene to be tested.
Scene run time test device 100 provided in an embodiment of the present invention, by setting the monitoring coordinate of target picture, And using the color value positioned at monitoring coordinate of target picture as Matching Model, by the current picture of the Matching Model and screen Color value positioned at monitoring coordinate is matched, and obtains the second time that the match is successful, so as to according to startup optimization first when Between the operation duration of scene to be tested is obtained with second time.The present invention is compared with prior art, on the one hand, with color value Matched as Matching Model, it is minimum being fallen below with the coupling applied, such that it is able to be multiplexed into different applications, lifting The efficiency of test simultaneously simplifies the operation of test;On the other hand, the picture for obtaining current screen in system in real time has been used to believe The interface of breath, error is within millisecond, and the result of test is more accurate.
Preferably, the target picture is the last frame picture of the scene to be tested or is the scene to be tested Next scene the first frame picture.
Preferably, the Pixel Information acquiring unit 20 is specifically included:
Image data acquisition module, the picture number of the current picture for showing for obtaining the scene to be tested According to;
Pixel Information acquisition module, for reading the position of each pixel in described image data and delaying for color value Information is deposited, the Pixel Information of the current picture is obtained.
Preferably, the scene run time test device 100 also includes:
Port mapping unit, for creating the port mapping with testing service end, sets up and the testing service end Socket is connected;
Enabled instruction generation unit, the startup thing that the testing service end generates is received for being connected by the socket Part, and start the enabled instruction of the scene to be tested according to startup event generation.
Preferably, the scene run time test device 100 also includes:
Object pixel information acquisition unit, the view data for obtaining target picture, in reading described image data The position of each pixel and the cache information of color value, obtain the Pixel Information of the target picture;
Monitoring coordinate acquiring unit, for obtaining default monitoring coordinate;
Target color values reading unit, for according to the Pixel Information read the target picture positioned at the monitoring The color value of the pixel of coordinate, obtains target color values.
Preferably, the monitoring coordinate acquiring unit includes:
Sectional drawing transport module, for the sectional drawing to the testing service end transmission objectives picture, so that the testing service The end display sectional drawing;
Monitoring Coordinate generation module, sits for receiving click of the user of the testing service end return on the sectional drawing Mark, and according to click coordinate generation monitoring coordinate;
Preferably, the monitoring coordinate acquiring unit includes:
Monitoring co-ordinate request module, request is obtained for sending monitoring coordinate to the testing service end;
Response message receiver module, for receiving the response message that the testing service end returns, the response message bag Include:By the monitoring coordinate of user input;
Preferably, the monitoring coordinate acquiring unit from local storage space specifically for reading default monitoring and sitting Mark.
Above disclosed is only a kind of preferred embodiment of the invention, can not limit the power of the present invention with this certainly Sharp scope, one of ordinary skill in the art will appreciate that realizing all or part of flow of above-described embodiment, and weighs according to the present invention Profit requires made equivalent variations, still falls within the covered scope of invention.
One of ordinary skill in the art will appreciate that all or part of flow in realizing above-described embodiment method, can be The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..

Claims (12)

1. a kind of scene run time method of testing, it is characterised in that comprise the following steps:
Scene to be tested is run according to enabled instruction, and records the very first time for generating the enabled instruction;
Obtain the Pixel Information of the current picture of the scene to be tested;Wherein, the Pixel Information includes that composition is described current The coordinate and color value of each pixel of picture;
The color value of the pixel positioned at default monitoring coordinate of the current picture is extracted according to the Pixel Information;
The color value for extracting is matched with target color values;Wherein, the target color values are the position of target picture In the color value of the pixel of the monitoring coordinate;
The second time during successful match is obtained, and the examination hall to be measured is generated according to second time and the very first time The run time of scape.
2. scene run time method of testing according to claim 1, it is characterised in that the target picture is treated for described First frame picture of the last frame picture of test scene or the next scene for the scene to be tested.
3. scene run time method of testing according to claim 1, it is characterised in that the acquisition examination hall to be measured The Pixel Information of the current picture of scape is specifically included:
Obtain the view data of the current picture for showing of the scene to be tested;
The cache information of the position and color value of reading each pixel in described image data obtains the current picture Pixel Information.
4. scene run time method of testing according to claim 1, it is characterised in that treated according to enabled instruction operation Test scene, and before recording the very first time for generating the enabled instruction, also include:
The port mapping with testing service end is created, foundation is connected with the socket at the testing service end;
The startup event that the testing service end generates that receives is connected by the socket, and is generated according to the startup event Start the enabled instruction of the scene to be tested.
5. scene run time method of testing according to claim 4, it is characterised in that in the color value that will be extracted Before being matched with target color values, also include:
Obtain the view data of target picture, the position of each pixel in reading described image data and the caching of color value Information, obtains the Pixel Information of the target picture;
Obtain default monitoring coordinate;
The color value of the pixel positioned at the monitoring coordinate of the target picture is read according to the Pixel Information, mesh is obtained Mark color value.
6. scene run time method of testing according to claim 5, it is characterised in that the default monitoring of acquisition is sat Mark, including:
To the sectional drawing of the testing service end transmission objectives picture, so that the testing service end shows the sectional drawing;
Click coordinate of the user of the testing service end return on the sectional drawing is received, and is generated according to the click coordinate Monitoring coordinate;Or,
Monitoring coordinate is sent to the testing service end obtain request;
The response message that the testing service end returns is received, the response message includes:By the monitoring coordinate of user input; Or,
Default monitoring coordinate is read from local storage space.
7. a kind of scene run time test device, it is characterised in that including:
Start unit, for running scene to be tested according to enabled instruction, and records the very first time for generating the enabled instruction;
Pixel Information acquiring unit, the Pixel Information of the current picture for obtaining the scene to be tested;Wherein, the pixel Information includes the coordinate and color value of each pixel of the composition current picture;
Color value extraction unit, for according to the Pixel Information extract the current picture positioned at default monitoring coordinate Pixel color value;
Matching unit, for the color value for extracting to be matched with target color values;Wherein, the target color values are The color value of the pixel positioned at the monitoring coordinate of target picture;
Run time computing unit, for obtaining the second time during successful match, and according to second time and described One time generated the run time of the scene to be tested.
8. scene run time test device according to claim 7, it is characterised in that the target picture is treated for described First frame picture of the last frame picture of test scene or the next scene for the scene to be tested.
9. scene run time test device according to claim 7, it is characterised in that the Pixel Information acquiring unit Specifically include:
Image data acquisition module, the view data of the current picture for showing for obtaining the scene to be tested;
Pixel Information acquisition module, for reading the position of each pixel in described image data and the caching letter of color value Breath, obtains the Pixel Information of the current picture.
10. scene run time test device according to claim 7, it is characterised in that also include:
Port mapping unit, for creating the port mapping with testing service end, sets up the socket with the testing service end Connection;
Enabled instruction generation unit, for connecting the startup event that the testing service end generates that receives by the socket, And start the enabled instruction of the scene to be tested according to startup event generation.
11. scene run time test devices according to claim 10, it is characterised in that also include:
Object pixel information acquisition unit, the view data for obtaining target picture, read described image data in each The position of pixel and the cache information of color value, obtain the Pixel Information of the target picture;
Monitoring coordinate acquiring unit, for obtaining default monitoring coordinate;
Target color values reading unit, for according to the Pixel Information read the target picture positioned at the monitoring coordinate Pixel color value, obtain target color values.
12. scene run time test devices according to claim 11, it is characterised in that the monitoring coordinate obtains single Unit includes:
Sectional drawing transport module, for the sectional drawing to the testing service end transmission objectives picture, so that the testing service end is aobvious Show the sectional drawing;
Monitoring Coordinate generation module, for receiving click coordinate of the user of the testing service end return on the sectional drawing, And according to click coordinate generation monitoring coordinate;
Or the monitoring coordinate acquiring unit includes:
Monitoring co-ordinate request module, request is obtained for sending monitoring coordinate to the testing service end;
Response message receiver module, for receiving the response message that the testing service end returns, the response message includes:By The monitoring coordinate of user input;
Or the monitoring coordinate acquiring unit from local storage space specifically for reading default monitoring coordinate.
CN201710016111.5A 2017-01-10 2017-01-10 A kind of scene runing time test method and device Active CN106730844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710016111.5A CN106730844B (en) 2017-01-10 2017-01-10 A kind of scene runing time test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710016111.5A CN106730844B (en) 2017-01-10 2017-01-10 A kind of scene runing time test method and device

Publications (2)

Publication Number Publication Date
CN106730844A true CN106730844A (en) 2017-05-31
CN106730844B CN106730844B (en) 2019-09-24

Family

ID=58948848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710016111.5A Active CN106730844B (en) 2017-01-10 2017-01-10 A kind of scene runing time test method and device

Country Status (1)

Country Link
CN (1) CN106730844B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158925A (en) * 2019-12-05 2020-05-15 中移(杭州)信息技术有限公司 Remote terminal debugging method, terminal, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010086264A (en) * 2008-09-30 2010-04-15 Sega Corp Image processing apparatus and image processing program
CN101878486A (en) * 2007-11-30 2010-11-03 杜比实验室特许公司 Temporally smoothing a motion estimate
CN104965773A (en) * 2015-07-09 2015-10-07 网易(杭州)网络有限公司 Terminal, jamming detection method, device as well as game jamming detection method and device
CN106296748A (en) * 2016-08-04 2017-01-04 北京电子科技学院 A kind of subject image weight illumination method based on Block-matching deformation and color transfer
CN106296786A (en) * 2016-08-09 2017-01-04 网易(杭州)网络有限公司 The determination method and device of scene of game visibility region

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101878486A (en) * 2007-11-30 2010-11-03 杜比实验室特许公司 Temporally smoothing a motion estimate
JP2010086264A (en) * 2008-09-30 2010-04-15 Sega Corp Image processing apparatus and image processing program
CN104965773A (en) * 2015-07-09 2015-10-07 网易(杭州)网络有限公司 Terminal, jamming detection method, device as well as game jamming detection method and device
CN106296748A (en) * 2016-08-04 2017-01-04 北京电子科技学院 A kind of subject image weight illumination method based on Block-matching deformation and color transfer
CN106296786A (en) * 2016-08-09 2017-01-04 网易(杭州)网络有限公司 The determination method and device of scene of game visibility region

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158925A (en) * 2019-12-05 2020-05-15 中移(杭州)信息技术有限公司 Remote terminal debugging method, terminal, server and storage medium
CN111158925B (en) * 2019-12-05 2024-02-23 中移(杭州)信息技术有限公司 Remote terminal debugging method, terminal, server and storage medium

Also Published As

Publication number Publication date
CN106730844B (en) 2019-09-24

Similar Documents

Publication Publication Date Title
CN107861655B (en) Control matching method and device, computer equipment and storage medium
CN107025165B (en) Game automation test method and related device
AU2007202102B2 (en) Function command system, function command device, function command analysis system, presentation system, and computer readable medium
CN104461903B (en) The method and apparatus of test client based on browser
KR100996787B1 (en) A system and method for whiteboard and audio capture
CN108307021B (en) Parallel following test equipment, cloud real machine and method for mobile terminal
CN108763086A (en) Script method for recording, terminal and computer readable storage medium based on remote real machine
US10657036B2 (en) Determining visual testing coverages
CN104778121A (en) Game program test method, device and system
US20130273853A1 (en) Mobile device monitoring and testing
CN104834597B (en) Using the measuring method and system of response time
CN105843734A (en) Automatic test method and device and computing device
CN111858318B (en) Response time testing method, device, equipment and computer storage medium
CN110362483A (en) Performance data acquisition method, device, equipment and storage medium
CN106598846B (en) Application interface method of testing and device
CN107688664A (en) Chart generation method, device, computer equipment and storage medium
CN110515854B (en) Application program abnormality reproduction method and device and electronic equipment
CN111061647A (en) Software performance automatic testing method and device and electronic equipment
CN112685299B (en) Automatic test method, device, electronic equipment and readable storage medium
CN106730844B (en) A kind of scene runing time test method and device
CN111277724B (en) Detection method and device for abnormal operation application, electronic equipment and storage medium
CN103473170B (en) Test macro and method of testing
CN110908901A (en) Automatic verification method and system for image recognition capability
CN109656826A (en) Application testing method, system, equipment and computer readable storage medium
US11657350B2 (en) Information processing apparatus, workflow test apparatus, and non-transitory computer readable medium

Legal Events

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