CN104714886B - The automatic test method for recording and system of a kind of striding course - Google Patents
The automatic test method for recording and system of a kind of striding course Download PDFInfo
- Publication number
- CN104714886B CN104714886B CN201510096013.8A CN201510096013A CN104714886B CN 104714886 B CN104714886 B CN 104714886B CN 201510096013 A CN201510096013 A CN 201510096013A CN 104714886 B CN104714886 B CN 104714886B
- Authority
- CN
- China
- Prior art keywords
- terminal
- recording
- getevent
- event code
- event
- 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.)
- Active
Links
- 238000010998 test method Methods 0.000 title claims abstract description 21
- 238000012360 testing method Methods 0.000 claims abstract description 102
- 238000012544 monitoring process Methods 0.000 claims abstract description 19
- 230000010354 integration Effects 0.000 claims abstract description 13
- 238000000034 method Methods 0.000 claims abstract description 11
- 238000001514 detection method Methods 0.000 claims abstract description 6
- 230000003111 delayed effect Effects 0.000 claims description 3
- 238000012958 reprocessing Methods 0.000 abstract description 4
- 238000011161 development Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 206010012289 Dementia Diseases 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000002620 method output Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Abstract
The invention provides the automatic test method for recording and system of a kind of striding course, method includes:Recording operation instruction of the test recording terminal to user is detected in real time, send to start to terminal to be tested upon this detection and record mark and start the accessibility service thread of terminal to be tested, and start the getevent thread monitoring users Action Events of test recording terminal;When listening to the user operation case of terminal to be tested, getevent threads and accessibility service thread obtain user operation case and control information, and generate corresponding event code, then store respectively to corresponding caching;According to the event code of getevent threads and the event code of accessibility service thread, and the event integration algorithm generation test case pre-set.The present invention first caches reprocessing to the event got, thus can quickly record test case, and realizes striding course recording function test case simultaneously.
Description
Technical field
The present invention relates to terminal test technical field, more particularly to a kind of automatic test method for recording of striding course and
System.
Background technology
In the life cycle of software product, test is the guarantee of product quality, but with intelligent terminal project increasingly
More, automatic test turns into a kind of trend of industry.Realize that automatic test must then have the test of test development staff development to use
Example, but as project increases, the construction cycle shortens, it is desirable to and test development personnel must develop substantial amounts of function in a short time and survey
Example on probation, this is higher to test development personnel requirement, and testing cost also remains high, and the problem industry is proposed to pass through recording side
Method output function test case, but can not realize that striding course operates.
Therefore, prior art has yet to be improved and developed.
The content of the invention
In view of above-mentioned the deficiencies in the prior art, it is an object of the invention to provide a kind of recording of the automatic test of striding course
Method and system, it is intended to solve not realizing what striding course operated by method for recording output function test case in the prior art
Defect.
Technical scheme is as follows:
A kind of automatic test method for recording of striding course, wherein, it the described method comprises the following steps:
A, test recording operation instruction of the recording terminal to user to be detected in real time, upon this detection, to end to be tested
End sends to start and records mark and start the accessibility service thread of terminal to be tested, and starts test recording terminal
Getevent thread monitoring users Action Events;
B, when listening to the user operation case of terminal to be tested, getevent threads and accessibility service thread are equal
User operation case and control information are obtained, and generates corresponding event code, then is stored respectively to corresponding caching;
C, according to the event code of getevent threads and the event code of accessibility service thread, and pre-set
Event integration algorithm generation test case.
The automatic test method for recording of the striding course, wherein, the step A is specifically included:
The recording operation instruction of A1, test recording terminal to user is detected in real time;
A2, when detecting recording operation instruction, start the getevent threads of test recording terminal, while to be tested
Terminal, which sends to start, records mark;
A3, terminal to be tested, which receive the startup and recorded, indicates and starts the accessibility service thread of terminal to be tested;
Behaviour of A4, the getevent threads for testing recording terminal and terminal to be tested the accessibility service thread to user
Monitored as event.
The automatic test method for recording of the striding course, wherein, the step B is specifically included:
B1, when getevent threads listen to user operation case, then obtain user operation case and control information, it is raw
Into corresponding event code, and event code and Event Timestamp corresponding with event code are stored to getevent and cached;
B2, when accessibility service thread listens to user operation case, then obtain user operation case and control letter
Breath, generates corresponding event code, and event code and Event Timestamp corresponding with event code are stored to accessibility
Service thread caches.
The automatic test method for recording of the striding course, wherein, the step B2 is specifically included:
B21, when accessibility service thread listens to user operation case, then obtain user operation case and control letter
Breath, and generate corresponding event code;
B22, the event code for being generated accessibility service thread in a manner of daily record and thing corresponding with event code
Part timestamp is sent to test recording terminal;
B23, when testing recording terminal and listening to the daily record, then obtain in the daily record accessibility service thread and give birth to
Into event code and Event Timestamp corresponding with event code;
B24, the event code that accessibility service thread is generated and Event Timestamp corresponding with event code storage
Cached to accessibility service thread.
The automatic test method for recording of the striding course, wherein, the step C is specifically included:
C1, cached in accessibility service thread and take out event code corresponding with user operation case and control information;
C2, judge from accessibility service thread cache in the event code that takes out whether be empty, when not being that space-time is then held
Row step C3, when then performing step C7 for space-time;
C3, take out event code corresponding with user operation case and control information in getevent cachings;
C4, the Event Timestamp for judging to take out in caching from accessibility service thread from getevent cachings with taking out
The difference of Event Timestamp whether be more than 500ms;
C5, when more than when, then to test recording terminal output from getevent cache take out event code, and return hold
Row step C3;
C6, when less than when, then to the output of test recording terminal from accessibility service thread caching event generation for taking out
Code, and return and perform step C1;
C7, event code corresponding with user operation case and control information is read in getevent thread caches;
Whether C8, the event code for judging to read from getevent thread caches are empty;
C9, when no, then be delayed 2s;
C10, in accessibility service thread caching read corresponding with user operation case and control information event code;
Whether C11, the event code for judging to read in caching from accessibility service thread are empty, are then performed when for space-time
Step C12, step C1 is performed when not returned then for space-time;
C12, the event code taken out is cached from getevent to test recording terminal output, and return and perform step C1.
A kind of automatic test recording system of striding course, wherein, including:
Monitoring and control module, detected in real time for testing recording operation instruction of the recording terminal to user, work as inspection
When measuring, send to start to terminal to be tested and record mark and start the accessibility service thread of terminal to be tested, and start
Test the getevent thread monitoring users Action Events of recording terminal;
Code obtaining and cache module, for when listening to the user operation case of terminal to be tested, getevent lines
Journey and accessibility service thread obtain user operation case and control information, and generate corresponding event code, then divide
Do not store to corresponding caching;
Test case acquisition module, for the event code according to getevent threads and the thing of accessibility service thread
Part code, and the event integration algorithm generation test case pre-set.
The automatic test recording system of the striding course, wherein, the monitoring and control module specifically include:
Recording operation monitoring unit, detected in real time for testing recording operation instruction of the recording terminal to user;
Startup and transmitting element, for when detecting recording operation instruction, starting the getevent of test recording terminal
Thread, while send to start to terminal to be tested and record mark;
Start control unit, receive the startup recording mark for terminal to be tested and start visiting for terminal to be tested
Ask sex service thread;
Action Events monitoring unit, for testing the getevent threads of recording terminal and the accessibility of terminal to be tested
Service thread is monitored the Action Events of user.
The automatic test recording system of the striding course, wherein, the Code obtaining and cache module specifically include:
First control unit, thing is operated for when getevent threads listen to user operation case, then obtaining user
Part and control information, corresponding event code is generated, and event code and Event Timestamp corresponding with event code are stored
Cached to getevent;
Second control unit, for when accessibility service thread listens to user operation case, then obtaining user behaviour
Make event and control information, generate corresponding event code, and by event code and Event Timestamp corresponding with event code
Store to accessibility service thread and cache.
The invention provides the automatic test method for recording and system of a kind of striding course, method includes:Test is recorded eventually
Hold the recording operation instruction to user to be detected in real time, send to start upon this detection to terminal to be tested and record mark and open
The accessibility service thread of terminal to be tested is moved, and starts the getevent threads monitoring users operation thing of test recording terminal
Part;When listening to the user operation case of terminal to be tested, getevent threads and accessibility service thread obtain use
Family Action Events and control information, and corresponding event code is generated, then store respectively to corresponding caching;According to
The event code of getevent threads and the event code of accessibility service thread, and the event integration algorithm pre-set
Generate test case.The present invention first caches reprocessing to the event got, thus can quickly record test case, and simultaneously
Realize striding course recording function test case.
Brief description of the drawings
Fig. 1 is the flow chart of the automatic test method for recording preferred embodiment of striding course of the present invention.
Fig. 2 generates test case for event integration algorithm in the automatic test method for recording of striding course of the present invention
Particular flow sheet.
Fig. 3 is the structured flowchart of the automatic test recording system preferred embodiment of striding course of the present invention.
Embodiment
The present invention provides a kind of the automatic test method for recording and system of striding course, to make the purpose of the present invention, technology
Scheme and effect are clearer, clear and definite, and the present invention is described in more detail below.It is it should be appreciated that described herein specific
Embodiment only to explain the present invention, is not intended to limit the present invention.
Fig. 1 is referred to, Fig. 1 is the flow of the automatic test method for recording preferred embodiment of striding course of the present invention
Figure.As shown in figure 1, it comprises the following steps:
Step S100, test recording terminal to detect the instruction of the recording operation of user in real time, upon this detection to treating
Test terminal sends to start and records mark and start the accessibility service thread of terminal to be tested, and starts test recording terminal
Getevent thread monitoring users Action Events.
In embodiments of the invention, test recording terminal is used to record test case, and terminal to be tested is then tested
Object.When the recording operation for detecting user instructs, then send to start to terminal to be tested and record mark and start to be measured
The accessibility service thread of terminal is tried, and starts the getevent threads in test recording terminal, accessibility service simultaneously
Thread and getevent threads are then monitored user operation case simultaneously.Wherein, accessibility service is mainly that intelligence is whole
Hold to there is the instrument that amentia user provides auxiliary operation function.
Step S200, when listening to the user operation case of terminal to be tested, getevent threads and accessibility clothes
Business thread obtains user operation case and control information, and generates corresponding event code, then stores respectively to corresponding
Caching.
Step S300, according to the event code of getevent threads and the event code of accessibility service thread, and
The event integration algorithm generation test case pre-set.
When user operates to terminal to be tested, accessibility service thread and getevent threads can listen to
Event, wherein getevent events carry event generation time and the coordinate points clicked on, and can be generated by coordinate points
Uiautomator clicks and dragging event are simultaneously stored in getevent cachings;Accessibility Service events carry event and produce thing
The relevant information of part and control, if control resourceId, text, description, coordinate, class name and control are whole
Nodal information in interface control tree, produce Uiautomator test cases code by these information and be stored in accessibility
Service events cache, and the caching of both events are then constantly read in thread, and judge to be by the timestamp of event
The no mode for same event integrates both events, and code is output to the interface of test recording terminal in real time after integration
In.
Further, the step S100 is specifically included:
Step S101, recording operation instruction of the recording terminal to user is tested to be detected in real time;
Step S102, when detecting recording operation instruction, the getevent threads of startup test recording terminal, while to
Terminal to be tested, which sends to start, records mark;
Step S103, terminal to be tested, which receives the startup and recorded, indicates and starts the accessibility service of terminal to be tested
Thread;
Step S104, test recording terminal getevent threads and terminal to be tested accessibility service thread to
The Action Events at family are monitored.
Further, the step S200 is specifically included:
Step S201, when getevent threads listen to user operation case, then user operation case and control are obtained
Information, generates corresponding event code, and by event code and Event Timestamp corresponding with event code store to
Getevent is cached;
Step S202, when accessibility service thread listens to user operation case, then obtain user operation case and
Control information, generates corresponding event code, and event code and Event Timestamp corresponding with event code are stored to can
Access sex service thread cache.
Further, the step S202 is specifically included:
Step S2021, when accessibility service thread listens to user operation case, then obtain user operation case and
Control information, and generate corresponding event code;
Step S2022, the event code that is generated accessibility service thread in a manner of daily record and with event code pair
The Event Timestamp answered is sent to test recording terminal;
Step S2023, when test recording terminal listens to the daily record, then accessibility service in the daily record is obtained
The event code and Event Timestamp corresponding with event code of thread generation;
Step S2024, the event code and event time corresponding with event code generated accessibility service thread
Stamp is stored to accessibility service thread and cached.
Further, specifically wrapped as shown in Fig. 2 generating test case according to event integration algorithm in the step S300
Include:
Step S301, event corresponding with user operation case and control information is taken out in accessibility service thread caching
Code;
Whether the event code for step S302, judging to take out in caching from accessibility service thread is empty, when not to be empty
When then perform step S303, when then performing step S307 for space-time;
Step S303, event code corresponding with user operation case and control information is taken out in getevent cachings;
Step S304, the Event Timestamp for judging to take out in caching from accessibility service thread from getevent with caching
Whether the difference of the Event Timestamp of middle taking-up is more than 500ms;
Step S305, when more than when, then to test recording terminal output from getevent cache take out event code, and
Return and perform step S303;
Step S306, when less than when, then taken out to the output of test recording terminal from accessibility service thread caching
Event code, and return and perform step S301;
Step S307, event generation corresponding with user operation case and control information is read in getevent thread caches
Code;
Whether the event code for step S308, judging to read from getevent thread caches is empty;
Step S309, when no, then be delayed 2s;
Step S310, event corresponding with user operation case and control information is read in accessibility service thread caching
Code;
Step S311, judge from accessibility service thread cache in the event code that reads whether be empty, when for space-time
Step S312 is then performed, step S301 is performed when not returned then for space-time;
Step S312, the event code taken out is cached from getevent to test recording terminal output, and returns and performs step
Rapid S301.
Wherein, time caching takes the principle of first in first out, and reading represents read-only and do not deleted, and takes out and represents to read and delete
Remove.
Below by taking Android intelligent terminal as an example:The integration of two kinds of events mainly using the timestamp of event as criterion,
One user operation case may get accessibilityEvent events and getevent times simultaneously, through multi collect
Two kinds of Event time datas analysis that same operation is got is drawn, is obtained two kinds of event times differences and is less than 100ms, thus is read
Get the accessibilityEvent times and the getevent time differences are less than 100ms, then it is assumed that it is same operation, due to
AccessibilityEvent carryings control information amount is big, thus the accessibilityEvent things for only needing output to get
Part, getevent events are abandoned.It is based on accessibilityEvent events in event integration algorithm, idiographic flow is as schemed
2, a thread is started in recording process and constantly reads data in event buffer, first reads accessibilityEvent,
Handled again for two kinds of situations:
1)When accessibilityEvent is not sky, it is divided into the processing of two kinds of situations:
(a) getevent cachings are first read, if accessibilityEventTime-geteventTime>
500ms, then it is assumed that be last event, directly export getevent events, then perform step (a) again, until inciting somebody to action
Previous data all export in getevent cachings;
If (b) geteventTime-accessibilityEventTime<500ms, representative are same events, then
AccessibilityEvent is exported, getevent events is abandoned, is then back to outermost layer and re-reads
AccessibilityEvent is cached;
2)When accessibilityEvent is sky, then reading getevent is cached, if having number in getevent cachings
According to because getevent events are driving layer output, at accessibilityEvent course of events framework and upper strata
Reason is just exported, and instrument is recorded in event caused by all same operations and gets getevent events at first, thus is needed
Treat 2s go again read accessibilityEvent events, if the read out data for sky, then return outermost layer re-read
AccessibilityEvent, it is if being still slip event or touch event for sky, explanation, the getevent events is defeated
Go out, return again to outermost layer and re-read accessibilityEvent cachings.
It can realize that the test of striding course recording function is used by the automatic test method for recording of striding course of the present invention
Example, for example, dialing application operation completion can be called to again return to contact application operation when testing contact application, this is just
It is related to striding course recording, further, since this method first caches reprocessing to the event got, thus can quickly records survey
Example on probation.Automatically generated after being recorded using this method stable based on Uiautomator framework test use-cases, use-case.
Based on above method embodiment, present invention also offers a kind of automatic test recording system of striding course, such as Fig. 3
Shown, it includes:
Monitoring and control module 100, detected in real time for testing recording operation instruction of the recording terminal to user, when
When detecting, send to start to terminal to be tested and record mark and start the accessibility service thread of terminal to be tested, and open
The getevent thread monitoring users Action Events of dynamic test recording terminal;As detailed above.
Code obtaining and cache module 200, for when listening to the user operation case of terminal to be tested, getevent
Thread and accessibility service thread obtain user operation case and control information, and generate corresponding event code, then
Store respectively to corresponding caching;As detailed above.
Test case acquisition module 300, for the event code according to getevent threads and accessibility service thread
Event code, and pre-set event integration algorithm generation test case;As detailed above.
Further, in the automatic test recording system of the striding course, the monitoring and control module 100 are specific
Including:
Recording operation monitoring unit, detected in real time for testing recording operation instruction of the recording terminal to user;Tool
Body is as described above.
Startup and transmitting element, for when detecting recording operation instruction, starting the getevent of test recording terminal
Thread, while send to start to terminal to be tested and record mark;As detailed above.
Start control unit, receive the startup recording mark for terminal to be tested and start visiting for terminal to be tested
Ask sex service thread;As detailed above.
Action Events monitoring unit, for testing the getevent threads of recording terminal and the accessibility of terminal to be tested
Service thread is monitored the Action Events of user;As detailed above.
Further, in the automatic test recording system of the striding course, the Code obtaining and cache module 200
Specifically include:
First control unit, thing is operated for when getevent threads listen to user operation case, then obtaining user
Part and control information, corresponding event code is generated, and event code and Event Timestamp corresponding with event code are stored
Cached to getevent;As detailed above.
Second control unit, for when accessibility service thread listens to user operation case, then obtaining user behaviour
Make event and control information, generate corresponding event code, and by event code and Event Timestamp corresponding with event code
Store to accessibility service thread and cache;As detailed above.
In summary, the invention provides the automatic test method for recording and system of a kind of striding course, method to include:Survey
The recording operation instruction of rehearsal terminal-pair user is detected in real time, is sent to start to terminal to be tested upon this detection and is recorded
Indicate and start the accessibility service thread of terminal to be tested, and the getevent threads for starting test recording terminal are monitored and used
Family Action Events;When listening to the user operation case of terminal to be tested, getevent threads and accessibility service thread
User operation case and control information are obtained, and generates corresponding event code, then is stored respectively to corresponding caching;
According to the event code of getevent threads and the event code of accessibility service thread, and the event pre-set is integrated
Algorithm generates test case.The present invention first caches reprocessing to the event got, thus can quickly record test case, and
Realize striding course recording function test case simultaneously.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can
To be improved or converted according to the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention
Protect scope.
Claims (8)
1. the automatic test method for recording of a kind of striding course, it is characterised in that the described method comprises the following steps:
A, test recording operation instruction of the recording terminal to user to be detected in real time, upon this detection, sent out to terminal to be tested
Send startup to record mark and start the accessibility service thread of terminal to be tested, and start the getevent of test recording terminal
Thread monitoring users Action Events;
B, when listening to the user operation case of terminal to be tested, getevent threads and accessibility service thread obtain
User operation case and control information, and corresponding event code is generated, then store respectively to corresponding caching;
C, according to the event code of getevent threads and the event code of accessibility service thread, and the thing pre-set
Part integration algorithm generates test case;
In the step A, when detecting the recording operation instruction of user, send to start to terminal to be tested and record mark and start
The accessibility service thread of terminal to be tested, and start the getevent threads in test recording terminal, accessibility simultaneously
Service thread and getevent threads are then monitored user operation case simultaneously.
2. the automatic test method for recording of striding course according to claim 1, it is characterised in that the step A is specifically wrapped
Include:
The recording operation instruction of A1, test recording terminal to user is detected in real time;
A2, when detecting recording operation instruction, start the getevent threads of test recording terminal, while to terminal to be tested
Send to start and record mark;
A3, terminal to be tested, which receive the startup and recorded, indicates and starts the accessibility service thread of terminal to be tested;
Operation thing of A4, the getevent threads for testing recording terminal and terminal to be tested the accessibility service thread to user
Part is monitored.
3. the automatic test method for recording of striding course according to claim 1 or claim 2, it is characterised in that the step B is specific
Including:
B1, when getevent threads listen to user operation case, then obtain user operation case and control information, generate phase
The event code answered, and event code and Event Timestamp corresponding with event code are stored to getevent and cached;
B2, when accessibility service thread listens to user operation case, then obtain user operation case and control information, it is raw
Into corresponding event code, and event code and Event Timestamp corresponding with event code are stored to accessibility and service line
Journey caches.
4. the automatic test method for recording of striding course according to claim 3, it is characterised in that the step B2 is specifically wrapped
Include:
B21, when accessibility service thread listens to user operation case, then obtain user operation case and control information,
And generate corresponding event code;
When B22, the event code for being generated accessibility service thread in a manner of daily record and event corresponding with event code
Between stamp send to test recording terminal;
B23, when testing recording terminal and listening to the daily record, then obtain what accessibility service thread in the daily record generated
Event code and Event Timestamp corresponding with event code;
B24, the event code that accessibility service thread is generated and Event Timestamp corresponding with event code are stored to can
Access sex service thread cache.
5. the automatic test method for recording of striding course according to claim 3, it is characterised in that the step C is specifically wrapped
Include:
C1, cached in accessibility service thread and take out event code corresponding with user operation case and control information;
C2, judge from accessibility service thread cache in the event code that takes out whether be empty, when not being that space-time then performs step
Rapid C3, when then performing step C7 for space-time;
C3, take out event code corresponding with user operation case and control information in getevent cachings;
C4, the Event Timestamp for judging to take out in caching from accessibility service thread and the thing taken out from getevent cachings
Whether the difference of part timestamp is more than 500ms;
C5, when more than when, then the event code taken out is cached from getevent to test recording terminal output, and returns and performs step
Rapid C3;
C6, when less than when, then to the output of test recording terminal from accessibility service thread caching the event code that takes out, and
Return and perform step C1;
C7, event code corresponding with user operation case and control information is read in getevent thread caches;
Whether C8, the event code for judging to read from getevent thread caches are empty;
C9, when no, then be delayed 2s;
C10, in accessibility service thread caching read corresponding with user operation case and control information event code;
C11, judge from accessibility service thread cache in the event code that reads whether be empty, when then performing step for space-time
C12, step C1 is performed when not returned then for space-time;
C12, the event code taken out is cached from getevent to test recording terminal output, and return and perform step C1.
A kind of 6. automatic test recording system of striding course, it is characterised in that including:
Monitor and control module, the instruction of the recording operation of user is detected in real time for testing recording terminal, when detecting
When, send to start to terminal to be tested and record mark and start the accessibility service thread of terminal to be tested, and start test
The getevent thread monitoring users Action Events of recording terminal;
Code obtaining and cache module, for when listening to the user operation case of terminal to be tested, getevent threads and
Accessibility service thread obtains user operation case and control information, and generates corresponding event code, then deposits respectively
Store up to corresponding caching;
Test case acquisition module, for the event code according to getevent threads and the event generation of accessibility service thread
Code, and the event integration algorithm generation test case pre-set;
When detecting the recording operation instruction of user, sent to terminal to be tested and start recording mark and start terminal to be tested
Accessibility service thread, and simultaneously start test recording terminal in getevent threads, accessibility service thread and
Getevent threads are then monitored user operation case simultaneously.
7. the automatic test recording system of striding course according to claim 6, it is characterised in that monitoring and the control mould
Block specifically includes:
Recording operation monitoring unit, detected in real time for testing recording operation instruction of the recording terminal to user;
Startup and transmitting element, for when detecting recording operation instruction, starting the getevent threads of test recording terminal,
Send to start to terminal to be tested simultaneously and record mark;
Start control unit, receive the startup recording mark for terminal to be tested and start the accessibility of terminal to be tested
Service thread;
Action Events monitoring unit, for testing the getevent threads of recording terminal and the accessibility service of terminal to be tested
Thread is monitored the Action Events of user.
8. according to the automatic test recording system of the striding course of claim 6 or 7, it is characterised in that the Code obtaining
And cache module specifically includes:
First control unit, for when getevent threads listen to user operation case, then obtain user operation case and
Control information, generates corresponding event code, and by event code and Event Timestamp corresponding with event code store to
Getevent is cached;
Second control unit, thing is operated for when accessibility service thread listens to user operation case, then obtaining user
Part and control information, corresponding event code is generated, and event code and Event Timestamp corresponding with event code are stored
Cached to accessibility service thread.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510096013.8A CN104714886B (en) | 2015-03-04 | 2015-03-04 | The automatic test method for recording and system of a kind of striding course |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510096013.8A CN104714886B (en) | 2015-03-04 | 2015-03-04 | The automatic test method for recording and system of a kind of striding course |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104714886A CN104714886A (en) | 2015-06-17 |
CN104714886B true CN104714886B (en) | 2017-11-10 |
Family
ID=53414244
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510096013.8A Active CN104714886B (en) | 2015-03-04 | 2015-03-04 | The automatic test method for recording and system of a kind of striding course |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104714886B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105138458A (en) * | 2015-09-10 | 2015-12-09 | 上海斐讯数据通信技术有限公司 | Method and system for recording automatic testing scripts by combining intelligent terminal and computer terminal |
CN107491386A (en) * | 2016-06-13 | 2017-12-19 | 富士通株式会社 | The method and apparatus for recording test script |
CN110716849B (en) * | 2018-07-11 | 2021-05-28 | 亿度慧达教育科技(北京)有限公司 | Method and device for recording test cases of application programs |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102419732A (en) * | 2011-12-27 | 2012-04-18 | Tcl集团股份有限公司 | Android-platform-based automated testing method and testing tool |
CN104317709A (en) * | 2014-10-21 | 2015-01-28 | 工业和信息化部电子第五研究所 | Method and system for testing performance of software |
CN105335283A (en) * | 2014-08-01 | 2016-02-17 | 阿里巴巴集团控股有限公司 | Application testing method and device in terminal equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120255014A1 (en) * | 2011-03-29 | 2012-10-04 | Mcafee, Inc. | System and method for below-operating system repair of related malware-infected threads and resources |
-
2015
- 2015-03-04 CN CN201510096013.8A patent/CN104714886B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102419732A (en) * | 2011-12-27 | 2012-04-18 | Tcl集团股份有限公司 | Android-platform-based automated testing method and testing tool |
CN105335283A (en) * | 2014-08-01 | 2016-02-17 | 阿里巴巴集团控股有限公司 | Application testing method and device in terminal equipment |
CN104317709A (en) * | 2014-10-21 | 2015-01-28 | 工业和信息化部电子第五研究所 | Method and system for testing performance of software |
Also Published As
Publication number | Publication date |
---|---|
CN104714886A (en) | 2015-06-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105830037B (en) | For showing the process of Test coverage data during code inspection | |
CN104714886B (en) | The automatic test method for recording and system of a kind of striding course | |
CN109374631B (en) | Tunnel state evaluation method | |
CN103634441B (en) | A kind of method and device for testing mobile terminal | |
CN104035863B (en) | A kind of browser testing method and device | |
CN105607986A (en) | Acquisition method and device of user behavior log data | |
CN105808417A (en) | Automated testing method and proxy server | |
CN106537351A (en) | Method for diagnosing power supply failure in wireless communication device | |
CN106341684A (en) | Method and system for automatically generating Android TV test script | |
WO2024067740A1 (en) | Test control method and apparatus, and computer device and computer-readable storage medium | |
CN108334443A (en) | Generate method, apparatus, equipment and the computer readable storage medium of test case | |
CN112699130A (en) | Power data processing method and device and computer equipment | |
CN110334011B (en) | Method and device for executing test case | |
CN107066421B (en) | Oscilloscope and collected data reporting method thereof | |
CN115525499A (en) | Data analysis method and device for hard disk, electronic equipment and storage medium | |
US9183388B2 (en) | Injustice detecting system, injustice detecting device and injustice detecting method | |
CN107368338A (en) | A kind of software automatic deployment method and device | |
CN109032930A (en) | System detection method and device | |
JP2008209328A (en) | Automatic analyzer | |
CN111897737B (en) | Missing detection method and device for program test of micro-service system | |
CN103538535B (en) | Vehicle information management system | |
CN112666389A (en) | Double-core interaction method and device for double-core intelligent electric meter, double-core intelligent electric meter and medium | |
CN112885049A (en) | Intelligent cable early warning system, method and device based on operation data | |
CN112579352A (en) | Quality monitoring result generation method, storage medium and quality monitoring system of service data processing link | |
JP2003332189A (en) | Semiconductor test system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231121 Address after: Room 606-609, Compound Office Complex Building, No. 757, Dongfeng East Road, Yuexiu District, Guangzhou, Guangdong Province, 510699 Patentee after: China Southern Power Grid Internet Service Co.,Ltd. Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd. |