CN105183226A - Testing method and device of screen swiping sensitivity - Google Patents

Testing method and device of screen swiping sensitivity Download PDF

Info

Publication number
CN105183226A
CN105183226A CN201510563544.3A CN201510563544A CN105183226A CN 105183226 A CN105183226 A CN 105183226A CN 201510563544 A CN201510563544 A CN 201510563544A CN 105183226 A CN105183226 A CN 105183226A
Authority
CN
China
Prior art keywords
screen
event
data stream
sut
under test
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
CN201510563544.3A
Other languages
Chinese (zh)
Other versions
CN105183226B (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 CN201510563544.3A priority Critical patent/CN105183226B/en
Publication of CN105183226A publication Critical patent/CN105183226A/en
Application granted granted Critical
Publication of CN105183226B publication Critical patent/CN105183226B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a testing method and device of the screen swiping sensitivity. The method comprises the steps that an event data flow corresponding to a uniform rectilinear swiping screen event is injected into a system to be tested, and the corresponding relation between the event data flow and the injection time is recorded; when screen data change due to the fact that the event data flow is injected, the time is obtained; according to the time when the screen data change, the current position of a touch point when the screen data change is obtained from the corresponding relation between the event data flow and the injection time; when the preset uniform rectilinear swiping screen event starts, the distance between the starting position of the touch point and the current position is calculated, wherein the distance is the delay distance which reflects the screen swiping sensitivity. According to the testing method and device of the screen swiping sensitivity, manual operation is not needed in the testing process, the testing method is scientific, objective and reusable, and the testing result is accurate, reliable and reproducible.

Description

A kind of method of testing of screen slip sensitivity and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of method of testing and device of screen slip sensitivity.
Background technology
Touch technology is as one of the human-computer interaction technology of main flow, and the application in smart mobile phone field is especially extensive, has become a part for daily life interwoveness.Present main flow smart mobile phone none do not adopt touch-screen, the simple operationss such as user only needs to click gently on screen, slip, just can carry out making a phone call, send short messages, read a book, send out the Activities such as mail, the game of various touch-control can also be experienced.
In the middle of the game or application software of mobile terminal, a lot of element needs finger drags, the map of class game as anti-in tower and the weapon etc. of fight class game.But due to the restriction of existing software and hardware, often after finger slides a segment distance on screen, game element just starts mobile, when this causes game element really to start mobile, created a distance between the reference position of sliding and the current location of finger, this distance is called as delay distance.Mobile terminal has different delay distances when running different game, the sensitivity that game response screen is slided directly has influence on the Consumer's Experience of game, in order to test these data, the element of the following two kinds method test game is mainly used in the industry to follow the sensitivity of finger movement at present.
One is, by the experience of tester, judges that the sensitivity of finger movement followed by map, weapon etc.But the method requires higher to the judgement of tester, test has larger subjectivity, cannot follow the sensitivity pointing dragging carry out datumization judge to game element.
It two is recorded screen operator by high-speed camera, then analyze picture frame by frame, contrasts the game element that finger drags and whether there is delay.But adopt the method still to need operate game artificially, manual operation cannot ensure that sliding speed is constant, and method of testing is difficult to multiplexing, and the reliability of test result is lower.
Summary of the invention
The object of the embodiment of the present invention there are provided a kind of method of testing and device of screen slip sensitivity, improves accuracy and the reliability of screen slip sensitivity test.
To achieve these goals, embodiments provide a kind of method of testing of screen slip sensitivity, comprising:
Inject to system under test (SUT) event data stream corresponding to screen event that to slide with uniform rectilinear, record the corresponding relation between described event data stream and injection length;
Obtain the time causing on-screen data to change by the described event data stream of injection;
According to the time that described on-screen data changes, from the corresponding relation between described event data stream and injection length, obtain the current location of touch point when on-screen data changes;
Calculate the distance that the described uniform rectilinear preset slides between the reference position of screen event touch point when starting and described current location; Wherein, described distance is the delay distance of reflection screen slip sensitivity.
Wherein, describedly inject to system under test (SUT) event data stream corresponding to screen event that to slide with uniform rectilinear, be specially:
According to the bottom event protocol of described system under test (SUT), the screen event that described uniform rectilinear slided converts the discernible event data stream of described system under test (SUT) to;
By Java local interface, described event data stream is injected in described system under test (SUT).
The described bottom event protocol according to described system under test (SUT), the screen event that described uniform rectilinear slided converts the discernible event data stream of described system under test (SUT) to, is specially:
According to the bottom event protocol of described system under test (SUT), the screen event that described uniform rectilinear slided converts corresponding event type, key classification and operand value to, generates the discernible event data stream of described system.
In the middle of concrete enforcement, described acquisition, by the time of injecting described event data stream and causing on-screen data to change, is specially:
Monitor the frame buffer culture in described system under test (SUT), obtain the time causing on-screen data to change by the described event data stream of injection.
Wherein, the frame buffer culture in the described system under test (SUT) of described monitoring, obtains the time causing on-screen data to change by the described event data stream of injection, is specially:
Every the time interval of presetting, from described frame buffer culture, read the on-screen data corresponding with guarded region; Wherein, described guarded region is the one or more pixels chosen in advance on screen;
This on-screen data read and the last on-screen data read are contrasted;
When the on-screen data read when the on-screen data that this reads and last time exists different, the time that the current time is changed as on-screen data.
Preferably, the described on-screen data that reading is corresponding with guarded region from described frame buffer culture, is specially:
Read described frame buffer culture by the mode of Memory Mapping File and its, obtain the on-screen data corresponding with described guarded region.
Preferably, described on-screen data comprises color data and brightness data.
Preferably, described system under test (SUT) is in game or the state run of software.
Preferably, described system under test (SUT) is Android system.
The embodiment of the present invention additionally provides a kind of proving installation of screen slip sensitivity, comprising:
Event data stream injection module, for injecting event data stream corresponding to screen event that to slide with uniform rectilinear to system under test (SUT), records the corresponding relation between described event data stream and injection length;
On-screen data monitoring module, for obtaining the time causing on-screen data to change by the described event data stream of injection;
Current location acquisition module, for the time changed according to described on-screen data, obtains the current location of touch point when on-screen data changes from the corresponding relation between described event data stream and injection length;
Delay distance computing module, for calculate default described uniform rectilinear slide screen event start time the reference position of touch point and described current location between distance; Wherein, described distance is the delay distance of reflection screen slip sensitivity.
Wherein, described event data stream injection module comprises:
Event data stream translation submodule, for the bottom event protocol according to described system under test (SUT), the screen event that described uniform rectilinear slided converts the discernible event data stream of described system under test (SUT) to;
Event data stream injects submodule, for being injected in described system under test (SUT) by described event data stream by Java local interface.
Preferably, described event data stream translation submodule comprises:
Converting unit, for the bottom event protocol according to described system under test (SUT), the screen event that described uniform rectilinear slided converts corresponding event type, key classification and operand value to, generates the discernible event data stream of described system.
Preferably, described on-screen data monitoring module comprises:
Frame buffering monitoring submodule, for monitoring the frame buffer culture in described system under test (SUT);
Time obtains submodule, for obtaining the time causing on-screen data to change by the described event data stream of injection.
Preferably, described frame buffering monitoring submodule comprises:
On-screen data reading unit, for every the time interval of presetting, reads the on-screen data corresponding with guarded region from described frame buffer culture; Wherein, described guarded region is the one or more pixels chosen in advance on screen;
On-screen data contrast unit, contrasts with the last on-screen data read for the on-screen data this read;
The described time obtains submodule and comprises:
Time acquisition unit, when the on-screen data for reading when the on-screen data that this reads and last time exists different, the time that the current time is changed as on-screen data.
Preferably, described on-screen data reading unit comprises:
Memory-mapped subelement, for reading described frame buffer culture by the mode of Memory Mapping File and its, obtains the on-screen data corresponding with described guarded region.
Preferably, described on-screen data comprises color data and brightness data.
Preferably, described system under test (SUT) is in game or the state run of software.
Preferably, described system under test (SUT) is Android system.
The present invention is by injecting event data stream corresponding to screen event that to slide with uniform rectilinear to system under test (SUT), datumization simulation is carried out to uniform rectilinear's screen event that slides, according to the time that on-screen data changes, the current location of touch point when Obtaining Accurate on-screen data changes, and the delay distance calculated between reference position and current location, test process is without the need to manual operation, method of testing science is objective, reusable, test result accurately and reliably, can reappear, for game or software provide reliable performance index, thus improve targetedly, to improve Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of an embodiment of the method for testing of screen slip sensitivity provided by the invention;
Fig. 2 is the partial process view of step S1 that provides of embodiment as shown in Figure 1;
Fig. 3 is the process flow diagram of step S2 that provides of embodiment as shown in Figure 1;
Fig. 4 is the structural representation of an embodiment of the proving installation of screen slip sensitivity provided by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
See Fig. 1, it is the process flow diagram of an embodiment of the method for testing of screen slip sensitivity provided by the invention.
As shown in Figure 1, the method for testing of described screen slip sensitivity comprises step S1 ~ S4:
S1, injects to system under test (SUT) event data stream corresponding to screen event that to slide with uniform rectilinear, records the corresponding relation between described event data stream and injection length.
See Fig. 2, describedly inject to system under test (SUT) event data stream corresponding to screen event that to slide with uniform rectilinear, specifically comprise step S11 ~ S12:
S11, according to the bottom event protocol of described system under test (SUT), the screen event that described uniform rectilinear slided converts the discernible event data stream of described system under test (SUT) to.
In the middle of concrete enforcement, can according to the bottom event protocol of described system under test (SUT), the screen event that described uniform rectilinear slided converts corresponding event type (Type), key classification (Code) and operand value (Value) to, generates the discernible event data stream of described system.
In the middle of one is preferably implemented, described system under test (SUT) is Android system, described Android system is based on linux kernel, device abstract has been become file by input (input) subsystem of linux kernel, screen equipment and press key equipment all correspond to an incident file in system, described incident file is used for event data stream corresponding to recording user operation event, described event data stream comprises the service data of event protocol data and user, and the event data stream example of a touch event is as follows:
The first row data of above-mentioned event data stream represent event type, secondary series data represent key classification, the concrete numerical value of the 3rd column data representative of consumer operation, if 0003 event type representing this event in above-mentioned example first row data is touch event, in secondary series data 0035 is the X-coordinate of this touch event touch point, 0036 is the Y-coordinate of this touch event, and the 3rd column data is the concrete operations numerical value of this touch event, if the 000001ba in example is the concrete numerical value of the X-coordinate of current touch point.As can be seen here, in the middle of concrete enforcement, can convert corresponding event data stream to according to the bottom event protocol of the system screen event that described uniform rectilinear to be slided, the event data stream produced by analog machine can realize the simulation to user operation case.
S12, is injected into described event data stream in described system under test (SUT) by Java local interface (JNI, JavaNativeInterface).
In the middle of concrete enforcement, call injection thread by described Java local interface, utilize described injection thread, according to the time interval of presetting, described event data stream is injected into described system under test (SUT).By arranging the different time intervals, with the control of sliding speed of the screen event that realizes sliding to described uniform rectilinear.In the middle of practical application, described uniform rectilinear slide screen event sliding speed large I according to test needs adjust, the size of speed should be suitable with speed during user's practical operation as much as possible, such as, when testing the game in system, because the game rhythm of type of fighting is very fast, so speed can set sooner, that is, the time interval of injecting described event data stream can relatively be reduced; The game rhythm of the anti-type of tower is relatively slow so speed can set more slowly, that is, relatively can increase the time interval of injecting described event data stream.
In the middle of concrete enforcement, by Android system institute based on the bottom event protocol of linux kernel to event data stream corresponding to the at the uniform velocity sliding straight slip screen event of system injection, to simulate the uniform rectilinear's slide carried out screen.Because event data stream produces in the test procedure realized according to the present embodiment principle, so can be obtained easily at the current particular location in the touch point of any one time point slip event by test procedure, and record the corresponding relation between described event data stream and injection length.Such as, to suppose between starting point that uniform rectilinear slides to end point the touch point of process be P, be T through the time that P point is corresponding, the corresponding relation that can take out event data stream and time is as follows:
{(P1,T1),(P2,T2),(P3,T3),(P4,T4),(P5,T5),(P6,T6)…}
Inject described event data stream by JNI interface, without the need to can realize user operation simulation rapidly and efficiently by testing tool, contribute to the precision improving test.But should be noted that, above-mentioned embodiment is only one of the present invention preferred embodiment, described event data stream can also be injected in system under test (SUT) by the present invention by other means, such as can also inject event data stream by the sendevent instruction under adbshell, or utilize other testing tools with injection event data stream function to inject event data stream to system.
S2, obtains the time causing on-screen data to change by the described event data stream of injection.
In the middle of concrete enforcement, by monitoring the frame buffer culture (Framebuffer) in described system under test (SUT), obtain the time causing on-screen data to change by the described event data stream of injection, described frame buffer culture Framebuffer is the display device file under linux kernel, the data such as color and brightness of all pixels of current screen are included in this file, because the slide change of display data on the screen that screen event causes of described uniform rectilinear is apparent on described frame buffer culture at first, by monitoring described frame buffer culture, the time of on-screen data change can be obtained in time, contribute to the precision improving test further.
See Fig. 3, obtain by step S21 ~ S23 the time that on-screen data changes.
S21, every the time interval of presetting, reads the on-screen data corresponding with guarded region from described frame buffer culture.Wherein, described guarded region is the one or more pixels chosen in advance on screen.Described on-screen data comprises color data and brightness data, and the described default time interval is preferably 2 milliseconds.
S22, contrasts this on-screen data read and the last on-screen data read.
S23, when the on-screen data read when the on-screen data that this reads and last time exists different, the time that the current time is changed as on-screen data.
Guarded region preferentially can choose the one or more pixels larger with vicinity points color distinction, so that can be detected timely and accurately when on-screen data response slide changes.Described frame buffer culture reads by the mode of Memory Mapping File and its, can realize the quick reading to on-screen data by the mode of memory-mapped, and the speed of reading, in millisecond rank, can realize monitoring on-screen data being carried out to real-time high-efficiency.In the middle of concrete enforcement, described frame buffer culture is opened in the address space of monitoring process in the mode of Memory Mapping File and its by the code write by C language, the coordinate of the screen pixels point then monitored as required, reads the change of the on-screen data corresponding to a guarded region every 2ms.
Should be noted that obtaining by the frame buffer culture monitored in described system under test (SUT) the time that on-screen data changes is only one of the present invention preferred embodiment, limitation of the present invention should not be considered as, the present invention can also obtain the time that on-screen data changes by other means, such as can also by watch-dog monitoring screen data such as high-speed cameras, successively whether changing of image is caught, to obtain the time that on-screen data changes by comparison.
S3, according to the time that described on-screen data changes, obtains the current location of touch point when on-screen data changes from the corresponding relation between described event data stream and injection length.
Owing to having recorded the corresponding relation between described event data stream and injection length in step sl, by the corresponding relation between described event data stream and injection length, the residing position of each moment touch point can be informed in easily, therefore, after the time that acquisition on-screen data changes, the time that can change according to on-screen data obtains the event data stream corresponding with it, obtains the current location P of touch point from described event data stream current.
S4, calculates the distance that the described uniform rectilinear preset slides between the reference position of screen event touch point when starting and described current location.Wherein, described distance is the delay distance of reflection screen slip sensitivity.
The reference position P of touch point startpre-set when the described uniform rectilinear of setting slides screen event, described reference position P startposition coordinates can start to inject described uniform rectilinear slide the event data stream of screen event time obtain, also can when obtaining on-screen data and changing the current location P of touch point currentobtain afterwards, the present invention is not construed as limiting this again, and those skilled in the art can select according to actual needs.Delay distance S calculates by following formula:
S = ( P c u r r e n t . X - P s t a r t . X ) 2 + ( P c u r r e n t . Y - P s t a r t . Y ) 2
Wherein, P startand P .X start.Y reference position P is respectively startx-coordinate and Y-coordinate, P currentand P .X current.Y current location P is respectively currentx-coordinate and Y-coordinate.
In the middle of concrete enforcement, in order to detect on system under test (SUT) certain game or software to the impact of screen slip sensitivity, described in the process of test, system under test (SUT) should be in game or the state run of software, test result can be used as the reliable performance index of game or software, by effectively can find the sensitivity problem of game or software in operating system to the analysis of test result, thus improve targetedly, improve the Consumer's Experience of game or software.
See Fig. 4, it is the structural representation of the proving installation of screen slip sensitivity provided by the invention.The ultimate principle of the present embodiment is consistent with ultimate principle embodiment illustrated in fig. 1, and part is not described in detail in detail in the present embodiment can associated description in embodiment shown in Figure 1.
The proving installation of described screen slip sensitivity comprises:
Event data stream injection module 41, for injecting event data stream corresponding to screen event that to slide with uniform rectilinear to system under test (SUT), records the corresponding relation between described event data stream and injection length.
On-screen data monitoring module 42, for obtaining the time causing on-screen data to change by the described event data stream of injection.
Current location acquisition module 43, for the time changed according to described on-screen data, obtains the current location of touch point when on-screen data changes from the corresponding relation between described event data stream and injection length.
Delay distance computing module 44, for calculate default described uniform rectilinear slide screen event start time the reference position of touch point and described current location between distance.Wherein, described distance is the delay distance of reflection screen slip sensitivity.
Wherein, described event data stream injection module 41 comprises:
Event data stream translation submodule 411, for the bottom event protocol according to described system under test (SUT), the screen event that described uniform rectilinear slided converts the discernible event data stream of described system under test (SUT) to.
Event data stream injects submodule 412, for being injected in described system under test (SUT) by described event data stream by Java local interface.
Though do not draw in Fig. 4, in the middle of concrete enforcement, described event data stream translation submodule 411 comprises:
Converting unit, for the bottom event protocol according to described system under test (SUT), the screen event that described uniform rectilinear slided converts corresponding event type, key classification and operand value to, generates the discernible event data stream of described system.
Described on-screen data monitoring module 42 comprises:
Frame buffering monitoring submodule 421, for monitoring the frame buffer culture in described system under test (SUT).
Time obtains submodule 422, for obtaining the time causing on-screen data to change by the described event data stream of injection.
Though do not draw in Fig. 4, in the middle of practical application, described frame buffering monitoring submodule 421 comprises:
On-screen data reading unit, for every the time interval of presetting, reads the on-screen data corresponding with guarded region from described frame buffer culture.Wherein, described guarded region is the one or more pixels chosen in advance on screen.
On-screen data contrast unit, contrasts with the last on-screen data read for the on-screen data this read.
The described time obtains submodule 422 and comprises:
Time acquisition unit, when the on-screen data for reading when the on-screen data that this reads and last time exists different, the time that the current time is changed as on-screen data.
Further, described on-screen data reading unit comprises:
Memory-mapped subelement, for reading described frame buffer culture by the mode of Memory Mapping File and its, obtains the on-screen data corresponding with described guarded region.
Wherein, described on-screen data comprises color data and brightness data.Described in test process, system under test (SUT) is in game or the state run of software.Described system under test (SUT) is preferably Android system.
In sum, the method of testing of the screen slip sensitivity that the embodiment of the present invention provides and device, by injecting event data stream corresponding to screen event that to slide with uniform rectilinear to system under test (SUT), datumization simulation is carried out to uniform rectilinear's screen event that slides, according to the time that on-screen data changes, the current location of touch point when Obtaining Accurate on-screen data changes, and the delay distance calculated between reference position and current location, test process is without the need to manual operation, method of testing science is objective, reusable, test result accurately and reliably, can reappear.
It should be noted that, device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.In addition, in device embodiment accompanying drawing provided by the invention, the annexation between module represents to have communication connection between them, specifically can be implemented as one or more communication bus or signal wire.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required common hardware by software and realize, and can certainly comprise special IC, dedicated cpu, private memory, special components and parts etc. realize by specialized hardware.Generally, all functions completed by computer program can realize with corresponding hardware easily, and the particular hardware structure being used for realizing same function also can be diversified, such as mimic channel, digital circuit or special circuit etc.But under more susceptible for the purpose of the present invention condition, software program realizes is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in the storage medium that can read, as the floppy disk of computing machine, USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform method described in the present invention each embodiment.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.

Claims (18)

1. a method of testing for screen slip sensitivity, is characterized in that, comprising:
Inject to system under test (SUT) event data stream corresponding to screen event that to slide with uniform rectilinear, record the corresponding relation between described event data stream and injection length;
Obtain the time causing on-screen data to change by the described event data stream of injection;
According to the time that described on-screen data changes, from the corresponding relation between described event data stream and injection length, obtain the current location of touch point when on-screen data changes;
Calculate the distance that the described uniform rectilinear preset slides between the reference position of screen event touch point when starting and described current location; Wherein, described distance is the delay distance of reflection screen slip sensitivity.
2. the method for testing of screen slip sensitivity as claimed in claim 1, is characterized in that, describedly injects event data stream corresponding to the screen event that to slide with uniform rectilinear to system under test (SUT), is specially:
According to the bottom event protocol of described system under test (SUT), the screen event that described uniform rectilinear slided converts the discernible event data stream of described system under test (SUT) to;
By Java local interface, described event data stream is injected in described system under test (SUT).
3. the method for testing of screen slip sensitivity as claimed in claim 2, it is characterized in that, the described bottom event protocol according to described system under test (SUT), the screen event that described uniform rectilinear slided converts the discernible event data stream of described system under test (SUT) to, is specially:
According to the bottom event protocol of described system under test (SUT), the screen event that described uniform rectilinear slided converts corresponding event type, key classification and operand value to, generates the discernible event data stream of described system.
4. the method for testing of screen slip sensitivity as claimed in claim 1, is characterized in that, described acquisition, by the time of injecting described event data stream and causing on-screen data to change, is specially:
Monitor the frame buffer culture in described system under test (SUT), obtain the time causing on-screen data to change by the described event data stream of injection.
5. the method for testing of screen slip sensitivity as claimed in claim 4, is characterized in that, the frame buffer culture in the described system under test (SUT) of described monitoring, obtains the time causing on-screen data to change by the described event data stream of injection, is specially:
Every the time interval of presetting, from described frame buffer culture, read the on-screen data corresponding with guarded region; Wherein, described guarded region is the one or more pixels chosen in advance on screen;
This on-screen data read and the last on-screen data read are contrasted;
When the on-screen data read when the on-screen data that this reads and last time exists different, the time that the current time is changed as on-screen data.
6. the method for testing of screen slip sensitivity as claimed in claim 5, is characterized in that, the described on-screen data that reading is corresponding with guarded region from described frame buffer culture, is specially:
Read described frame buffer culture by the mode of Memory Mapping File and its, obtain the on-screen data corresponding with described guarded region.
7. the method for testing of the screen slip sensitivity as described in any one of claim 1 ~ 6, it is characterized in that, described on-screen data comprises color data and brightness data.
8. the method for testing of the screen slip sensitivity as described in any one of claim 1 ~ 6, is characterized in that, described system under test (SUT) is in game or the state run of software.
9. the method for testing of the screen slip sensitivity as described in any one of claim 1 ~ 6, is characterized in that, described system under test (SUT) is Android system.
10. a proving installation for screen slip sensitivity, is characterized in that, comprising:
Event data stream injection module, for injecting event data stream corresponding to screen event that to slide with uniform rectilinear to system under test (SUT), records the corresponding relation between described event data stream and injection length;
On-screen data monitoring module, for obtaining the time causing on-screen data to change by the described event data stream of injection;
Current location acquisition module, for the time changed according to described on-screen data, obtains the current location of touch point when on-screen data changes from the corresponding relation between described event data stream and injection length;
Delay distance computing module, for calculate default described uniform rectilinear slide screen event start time the reference position of touch point and described current location between distance; Wherein, described distance is the delay distance of reflection screen slip sensitivity.
The proving installation of 11. screen slip sensitivity as claimed in claim 10, is characterized in that, described event data stream injection module comprises:
Event data stream translation submodule, for the bottom event protocol according to described system under test (SUT), the screen event that described uniform rectilinear slided converts the discernible event data stream of described system under test (SUT) to;
Event data stream injects submodule, for being injected in described system under test (SUT) by described event data stream by Java local interface.
The proving installation of 12. screen slip sensitivity as claimed in claim 11, is characterized in that, described event data stream translation submodule comprises:
Converting unit, for the bottom event protocol according to described system under test (SUT), the screen event that described uniform rectilinear slided converts corresponding event type, key classification and operand value to, generates the discernible event data stream of described system.
The proving installation of 13. screen slip sensitivity as claimed in claim 10, it is characterized in that, described on-screen data monitoring module comprises:
Frame buffering monitoring submodule, for monitoring the frame buffer culture in described system under test (SUT);
Time obtains submodule, for obtaining the time causing on-screen data to change by the described event data stream of injection.
The proving installation of 14. screen slip sensitivity as claimed in claim 13, is characterized in that, described frame buffering monitoring submodule comprises:
On-screen data reading unit, for every the time interval of presetting, reads the on-screen data corresponding with guarded region from described frame buffer culture; Wherein, described guarded region is the one or more pixels chosen in advance on screen;
On-screen data contrast unit, contrasts with the last on-screen data read for the on-screen data this read;
The described time obtains submodule and comprises:
Time acquisition unit, when the on-screen data for reading when the on-screen data that this reads and last time exists different, the time that the current time is changed as on-screen data.
The proving installation of 15. screen slip sensitivity as claimed in claim 14, it is characterized in that, described on-screen data reading unit comprises:
Memory-mapped subelement, for reading described frame buffer culture by the mode of Memory Mapping File and its, obtains the on-screen data corresponding with described guarded region.
The proving installation of 16. screen slip sensitivity as described in any one of claim 9 ~ 15, it is characterized in that, described on-screen data comprises color data and brightness data.
The proving installation of 17. screen slip sensitivity as described in any one of claim 9 ~ 15, is characterized in that, described system under test (SUT) is in the state that game or software are running.
The proving installation of 18. screen slip sensitivity as described in any one of claim 9 ~ 15, it is characterized in that, described system under test (SUT) is Android system.
CN201510563544.3A 2015-09-07 2015-09-07 A kind of screen slides the test method and device of sensitivity Active CN105183226B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510563544.3A CN105183226B (en) 2015-09-07 2015-09-07 A kind of screen slides the test method and device of sensitivity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510563544.3A CN105183226B (en) 2015-09-07 2015-09-07 A kind of screen slides the test method and device of sensitivity

Publications (2)

Publication Number Publication Date
CN105183226A true CN105183226A (en) 2015-12-23
CN105183226B CN105183226B (en) 2018-05-08

Family

ID=54905344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510563544.3A Active CN105183226B (en) 2015-09-07 2015-09-07 A kind of screen slides the test method and device of sensitivity

Country Status (1)

Country Link
CN (1) CN105183226B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113141433A (en) * 2021-03-23 2021-07-20 网易(杭州)网络有限公司 Method and device for testing screen sensitivity and processor

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090225049A1 (en) * 2008-03-05 2009-09-10 Mitac International Corp. Sliding method for touch control
CN103338290A (en) * 2013-06-04 2013-10-02 宁波大学 A method for automatically testing performance of an Android handset
CN104679307A (en) * 2013-11-27 2015-06-03 中国移动通信集团公司 Method and device for detecting sliding sensitivity of touch screen

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090225049A1 (en) * 2008-03-05 2009-09-10 Mitac International Corp. Sliding method for touch control
CN103338290A (en) * 2013-06-04 2013-10-02 宁波大学 A method for automatically testing performance of an Android handset
CN104679307A (en) * 2013-11-27 2015-06-03 中国移动通信集团公司 Method and device for detecting sliding sensitivity of touch screen

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113141433A (en) * 2021-03-23 2021-07-20 网易(杭州)网络有限公司 Method and device for testing screen sensitivity and processor
CN113141433B (en) * 2021-03-23 2022-10-28 网易(杭州)网络有限公司 Method and device for testing screen sensitivity and processor

Also Published As

Publication number Publication date
CN105183226B (en) 2018-05-08

Similar Documents

Publication Publication Date Title
US8924912B2 (en) Method of recording and replaying call frames for a test bench
US6775826B1 (en) System and method for replaying workload data in a data storage environment
US10073766B2 (en) Building signatures of application flows
US10268350B2 (en) Automatically capturing user interactions and evaluating user interfaces in software programs using field testing
US6769054B1 (en) System and method for preparation of workload data for replaying in a data storage environment
US10592396B2 (en) Memory validity states in time-travel debugging
US8429613B2 (en) Stepping and application state viewing between points
CN110580226B (en) Object code coverage rate testing method, system and medium for operating system level program
US10657036B2 (en) Determining visual testing coverages
US20210064512A1 (en) Selective memory tracing of program execution
CN107967209B (en) Method for detecting error in front-end webpage code, detection equipment and server
CN110362483A (en) Performance data acquisition method, device, equipment and storage medium
US9355003B2 (en) Capturing trace information using annotated trace output
KR20070121649A (en) Method and apparatus for performance analysis on a software program
CN111143200A (en) Method and device for recording and playing back touch event, storage medium and equipment
US10162742B2 (en) System and method for end to end performance response time measurement based on graphic recognition
WO2019209494A1 (en) Visualizing last/next known data values in time travel traces
CN102999419B (en) A kind of Android test incident record back method and device
CN105094952A (en) User operation simulation method and apparatus
CN107544902B (en) Program testing method, device and equipment
CN107250979B (en) Application event tracking
US8078590B2 (en) Data processing system
JP2017162130A (en) Hardware/software cooperative verification device and hardware/software cooperative verification method
CN105183226A (en) Testing method and device of screen swiping sensitivity
US8261245B2 (en) Method and system for associating profiler data with a reference clock

Legal Events

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