CN104461894B - The operation record device and method of Android software - Google Patents

The operation record device and method of Android software Download PDF

Info

Publication number
CN104461894B
CN104461894B CN201410790339.6A CN201410790339A CN104461894B CN 104461894 B CN104461894 B CN 104461894B CN 201410790339 A CN201410790339 A CN 201410790339A CN 104461894 B CN104461894 B CN 104461894B
Authority
CN
China
Prior art keywords
mobile phone
event
recording
coordinate
script
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
Application number
CN201410790339.6A
Other languages
Chinese (zh)
Other versions
CN104461894A (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.)
Yonyou Network Technology Co Ltd
Original Assignee
Yonyou Network Technology 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 Yonyou Network Technology Co Ltd filed Critical Yonyou Network Technology Co Ltd
Priority to CN201410790339.6A priority Critical patent/CN104461894B/en
Publication of CN104461894A publication Critical patent/CN104461894A/en
Application granted granted Critical
Publication of CN104461894B publication Critical patent/CN104461894B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a kind of operation record device of Android software, including:Terminal connection unit, for mobile phone to be connected with PC ends, under USB debugging modes, the driving matched with mobile phone model is installed at PC ends;After successful connection, the facility information of successful connection is obtained;Characteristic information resolution unit, for taking out key message;Coordinate acquiring unit is operated, for the operation coordinate for obtaining monitoring to mobile phone and being fed back to PC ends;Object-oriented script generation unit, for being operation object by the operation coordinate transformation of acquisition, generates object script;Timing diagram recording elements, for recording corresponding timing diagram.Present invention also offers a kind of operation method for recording of Android software.Pass through technical scheme, can be on the basis of existing software operation recording mode, make full use of simple object type to complete the software operation recording of complicated many object types, set up general, the unified recording thinking that the software operation of complex object type participation is recorded.

Description

The operation record device and method of Android software
Technical field
The present invention relates to technical field of data processing, in particular it relates to a kind of operation record device and one of Android software Plant the operation method for recording of Android software.
Background technology
When carrying out automatic test in Android phone, writing for test script is more complicated.Automatized script Demand an application issued, be currently being used and then need release update when it is more urgent.All existing the characteristics of Need to release every time tested when updating, it is to be ensured that there is no regression error when upgrade code.Mode is write obviously can not Meet above-mentioned requirements.
Automatic test is higher to the technical requirements of tester, and the initial stage that automatic test is promoted is often by exploit person Member holds a concurrent post, and common test personnel are difficult quickly to write out test script.
Accordingly, it would be desirable to a kind of new software operation recording technology, can on the basis of existing software operation recording mode, The software operation for making full use of simple object type to complete complicated many object types is recorded, and sets up the soft of complex object type participation General, the unified recording thinking that part operation is recorded.
The content of the invention
The present invention is based on above mentioned problem, it is proposed that a kind of new software operation recording technology, can be existing soft On the basis of part operation recording mode, the software operation for making full use of simple object type to complete complicated many object types is recorded, and is built Thinking is recorded in general, the unification that the software operation that vertical complex object type is participated in is recorded.
In view of this, the present invention proposes a kind of operation record device of Android software, including:Terminal connection unit 102, For mobile phone to be connected with PC ends, under USB debugging modes, the driving matched with mobile phone model is installed at PC ends;Connect into After work(, in the instruction of order line input inquiry, the facility information of successful connection is obtained;Characteristic information resolution unit 104, for based on The facility information of acquisition, taking-up can read the key message of corresponding mobile phone, and the key message includes device resolution;Operation is sat Acquiring unit 106 is marked, for the key message based on acquirement, the monitoring to mobile phone and the operation coordinate fed back to PC ends is obtained; Object-oriented script generation unit 108, for being operation object by the operation coordinate transformation of acquisition, generates object script;Will be raw Into object script in key message stored;Timing diagram recording elements 110, for the object script based on generation, record Make corresponding timing diagram.In the technical scheme, the behaviour of user on the smart mobile phone of android operating systems, can be recorded Make behavior act;Two kinds of recording modes are used in combination and brought out the best in each other so that result are recorded accurately quick.
In the above-mentioned technical solutions, it is preferable that the terminal connection unit 102, specifically include:Debugging and drive module 1022, for mobile phone to be connected with PC ends, under USB debugging modes, the driving matched with mobile phone model is installed at PC ends;Even Connect and feedback module 1024, for the driving based on installation, mobile phone is connected with PC ends;After successful connection, in order line input Query statement, obtains the facility information of successful connection.In the technical scheme, can once it be recorded to the script of object-oriented Place's playback.
In the above-mentioned technical solutions, it is preferable that the operation coordinate acquiring unit 106, specifically include:Flow of event mode takes Index module 1062, for the key message based on acquirement, inputs long order thread on mobile phone, what operation of taking up an official post to mobile phone Flow of event is monitored, and the flow of event of monitoring is returned into PC ends;By returning to the quantity of flow of event, the basic of event is determined Type, the fundamental type is including clicking, double-clicking, sliding, dragging, system key;Key name is connect based on what system key flow of event was returned 16 system relative coordinates and the device resolution of taking-up that title, other flows of event are returned, are calculated, obtain corresponding operating Particular location coordinate, and carry out sectional drawing;PC screen taps take index module 1064, in the key message based on acquirement Device resolution, at PC ends, generation and an equal amount of U1 view areas of mobile phone, obtain the sectional drawing of the U1 view areas and are stored in PC End;View area at PC ends shows the sectional drawing of the U1 view areas and adds the system button of mobile phone, and mobile phone is mapped into PC ends; The view area at PC ends clicks on mouse, records the coordinate value clicked on;Meanwhile, the action that will click on mouse feeds back to mobile phone, and mobile phone is anti- Ying Hou, then to the view area sectional drawing again at PC ends, realize synchronous.In the technical scheme, can identification maneuver in many ways, Ensure that recording process is complete, accurate.
In the above-mentioned technical solutions, it is preferable that in the object script that the object-oriented script generation unit 108 is generated Key message, including coordinate, action, resolution ratio, operation object class, operation object title, operation object attribute description sentence; And/or, the flow of event mode takes index module 1062 to carry out the operation of sectional drawing, further comprises:Single-click operation screenshot capture; And/or, slide screenshot capture;And/or, function key operation screenshot capture.
In the above-mentioned technical solutions, it is preferable that the timing diagram recording elements 110, specifically include:Mobile phone direct recording mould Block 1102, for the object script based on generation, passes through mobile phone direct recording timing diagram;Screen taps record module 1104, use In the object script based on generation, screen taps record timing diagram.In the technical scheme, pin can be generated in the way of recording This, instead of the mode of conventional manual compiling script.
According to a further aspect of the invention, it is also proposed that a kind of operation method for recording of Android software, including:Step 202:Mobile phone is connected with PC ends, under USB debugging modes, the driving matched with mobile phone model is installed at PC ends;Connect into After work(, in the instruction of order line input inquiry, the facility information of successful connection is obtained;Step 204:Facility information based on acquisition, Taking-up can read the key message of corresponding mobile phone, and the key message includes device resolution;Step 206:Pass based on acquirement Key information, obtains the monitoring to mobile phone and the operation coordinate fed back to PC ends;Step 208:It is by the operation coordinate transformation of acquisition Operation object, generates object script;Key message in the object script of generation is stored;Step 210:Based on generation Object script, records corresponding timing diagram.In the technical scheme, it can be recorded on the smart mobile phone of android operating systems The operation behavior action of user processed;Two kinds of recording modes are used in combination and brought out the best in each other so that result are recorded accurately quick.
In the above-mentioned technical solutions, it is preferable that the step 202, specifically include:Step 302:Mobile phone and PC ends are connected Connect, under USB debugging modes, the driving matched with mobile phone model is installed at PC ends;Step 304:Driving based on installation, will Mobile phone is connected with PC ends;After successful connection, in the instruction of order line input inquiry, the facility information of successful connection is obtained.In the skill In art scheme, it can once record and play back everywhere with the script of object-oriented.
In the above-mentioned technical solutions, it is preferable that the step 206, specifically include:Step 402:Crucial letter based on acquirement Breath, inputs long order thread on mobile phone, and the flow of event for what operation of taking up an official post to mobile phone is monitored, and the flow of event of monitoring is returned Return to PC ends;By returning to the quantity of flow of event, the fundamental type of event is determined, the fundamental type includes clicking, double-clicking, slided Dynamic, dragging, system key;The relative seat of 16 systems that key name claims, other flows of event are returned is connect based on what system key flow of event was returned Mark and the device resolution taken out, are calculated, and obtain the particular location coordinate of corresponding operating, and carry out sectional drawing;Step 404:Device resolution in key message based on acquirement, at PC ends, generation and an equal amount of U1 view areas of mobile phone, are obtained The sectional drawing of the U1 view areas is simultaneously stored in PC ends;What the view area at PC ends showed the sectional drawing of the U1 view areas and added mobile phone is System button, PC ends are mapped to by mobile phone;View area at PC ends clicks on mouse, records the coordinate value clicked on;Meanwhile, it will click on mouse Target action is fed back to after mobile phone, handset response, then to the view area sectional drawing again at PC ends, is realized synchronous.In the technical scheme In, can identification maneuver in many ways, it is ensured that recording process is complete, accurate.
In the above-mentioned technical solutions, it is preferable that the key message in the object script of step 202 generation, including seat Mark, action, resolution ratio, operation object class, operation object title, operation object attribute description sentence;And/or, the step 404 The operation of sectional drawing is carried out, is further comprised:Single-click operation screenshot capture;And/or, slide screenshot capture;And/or, function Key operation screenshot capture.
In the above-mentioned technical solutions, it is preferable that the step 210, specifically include:Step 502:Object pin based on generation This, passes through mobile phone direct recording timing diagram;Step 504:Object script based on generation, screen taps record timing diagram.At this In technical scheme, script can be generated in the way of recording, instead of the mode of conventional manual compiling script.
By above technical scheme, simple object can be made full use of on the basis of existing software operation recording mode The software that type completes complicated many object types operates recording, and the software for setting up the participation of complex object type operates that records to lead to With, unified record thinking.
Brief description of the drawings
Fig. 1 shows the block diagram of the operation record device of Android software according to an embodiment of the invention;
Fig. 2 shows the flow chart of the operation method for recording of Android software according to an embodiment of the invention;
Fig. 3 shows the flow chart of terminal connection unit according to an embodiment of the invention;
Fig. 4 shows the flow chart for operating coordinate acquiring unit according to an embodiment of the invention;
Fig. 5 shows the flow chart of timing diagram recording elements according to an embodiment of the invention;
Fig. 6 shows flow of event result sectional drawing according to an embodiment of the invention;
Fig. 7 shows single-click operation screenshot capture according to an embodiment of the invention;
Fig. 8 shows slide screenshot capture according to an embodiment of the invention;
Fig. 9 shows function key operation screenshot capture according to an embodiment of the invention;
Figure 10 shows mobile phone direct recording timing diagram according to an embodiment of the invention;
Figure 11 shows that screen taps record timing diagram according to an embodiment of the invention.
Embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention Mode is applied the present invention is further described in detail.It should be noted that in the case where not conflicting, the implementation of the application Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also Implemented with being different from other modes described here using other, therefore, protection scope of the present invention is not by described below Specific embodiment limitation.
Fig. 1 shows the block diagram of the operation record device of Android software according to an embodiment of the invention.
As shown in figure 1, the operation record device 100 of Android software according to an embodiment of the invention, including:Terminal is connected Unit, for mobile phone to be connected with PC ends, under USB debugging modes, the driving matched with mobile phone model is installed at PC ends;Even It is connected into after work(, in the instruction of order line input inquiry, obtains the facility information of successful connection;Characteristic information resolution unit, for base In the facility information of acquisition, taking-up can read the key message of corresponding mobile phone, and the key message includes device resolution;Operation Coordinate acquiring unit, for the key message based on acquirement, obtains the monitoring to mobile phone and the operation coordinate fed back to PC ends;Face To object script generation unit, for being operation object by the operation coordinate transformation of acquisition, object script is generated;By pair of generation As the key message in script is stored;Timing diagram recording elements, for the object script based on generation, when recording corresponding Sequence figure.In the technical scheme, the operation behavior action of user on the smart mobile phone of android operating systems, can be recorded; Two kinds of recording modes are used in combination and brought out the best in each other so that result are recorded accurately quick.
In the above-mentioned technical solutions, it is preferable that terminal connection unit, specifically include:Debugging and drive module, for by hand Machine is connected with PC ends, under USB debugging modes, and the driving matched with mobile phone model is installed at PC ends;Connection and feedback module, For the driving based on installation, mobile phone is connected with PC ends;After successful connection, in the instruction of order line input inquiry, connection is obtained Successful facility information.In the technical scheme, it can once record and play back everywhere with the script of object-oriented.
In the above-mentioned technical solutions, it is preferable that operation coordinate acquiring unit, specifically include:Flow of event mode takes coordinate mould Block, for the key message based on acquirement, inputs long order thread on mobile phone, and the flow of event for what operation of taking up an official post to mobile phone is carried out Monitor, and the flow of event of monitoring is returned into PC ends;By returning to the quantity of flow of event, the fundamental type of event is determined, the base This type is including clicking, double-clicking, sliding, dragging, system key;Based on system key flow of event return connect key name claim, other things 16 system relative coordinates and the device resolution of taking-up that part stream is returned, are calculated, obtain the particular location of corresponding operating Coordinate, and carry out sectional drawing;PC screen taps take index module, for the device resolution in the key message based on acquirement, PC ends are generated and an equal amount of U1 view areas of mobile phone, are obtained the sectional drawing of the U1 view areas and are stored in PC ends;In regarding for PC ends Figure area shows the sectional drawing of the U1 view areas and adds the system button of mobile phone, and mobile phone is mapped into PC ends;View area at PC ends Mouse is clicked on, the coordinate value clicked on is recorded;Meanwhile, the action that will click on mouse is fed back to after mobile phone, handset response, then to PC ends View area sectional drawing again, realize synchronous., can identification maneuver in many ways in the technical scheme, it is ensured that recording process Completely, accurately.
In the above-mentioned technical solutions, it is preferable that the crucial letter in the object script of object-oriented script generation unit generation Breath, including coordinate, action, resolution ratio, operation object class, operation object title, operation object attribute description sentence;And/or, thing Part stream mode takes index module to carry out the operation of sectional drawing, further comprises:Single-click operation screenshot capture;And/or, slide screen Curtain sectional drawing;And/or, function key operation screenshot capture.
In the above-mentioned technical solutions, it is preferable that timing diagram recording elements, specifically include:Mobile phone direct recording module, is used for Object script based on generation, passes through mobile phone direct recording timing diagram;Screen taps record module, for the object based on generation Script, screen taps record timing diagram.In the technical scheme, script can be generated in the way of recording, instead of in the past artificial Write the mode of script.
Fig. 2 shows the flow chart of the operation method for recording of Android software according to an embodiment of the invention.
As shown in Fig. 2 the operation method for recording of Android software according to an embodiment of the invention, including:Step 202:Will Mobile phone is connected with PC ends, under USB debugging modes, and the driving matched with mobile phone model is installed at PC ends;After successful connection, Order line input inquiry is instructed, and obtains the facility information of successful connection;Step 204:Facility information based on acquisition, taking-up can The key message of corresponding mobile phone is read, the key message includes device resolution;Step 206:Key message based on acquirement, is obtained Take the monitoring to mobile phone and the operation coordinate fed back to PC ends;Step 208:It is operation object by the operation coordinate transformation of acquisition, Generate object script;Key message in the object script of generation is stored;Step 210:Object script based on generation, Record corresponding timing diagram.In the technical scheme, it can record user's on the smart mobile phone of android operating systems Operation behavior is acted;Two kinds of recording modes are used in combination and brought out the best in each other so that result are recorded accurately quick.
In the above-mentioned technical solutions, it is preferable that as shown in figure 3, step 202, is specifically included:Step 302:By mobile phone and PC End connection, under USB debugging modes, the driving matched with mobile phone model is installed at PC ends;Step 304:Drive based on installation It is dynamic, mobile phone is connected with PC ends;After successful connection, in the instruction of order line input inquiry, the facility information of successful connection is obtained. In the technical scheme, it can once record and play back everywhere with the script of object-oriented.
In the above-mentioned technical solutions, it is preferable that as shown in figure 4, step 206, is specifically included:Step 402:Based on acquirement Key message, inputs long order thread on mobile phone, and the flow of event for what operation of taking up an official post to mobile phone is monitored, and by the thing of monitoring Part stream returns to PC ends;By returning to the quantity of flow of event, determine the fundamental type of event, the fundamental type include click, it is double Hit, slide, dragging, system key;The 16 system phases that key name claims, other flows of event are returned are connect based on what system key flow of event was returned To coordinate and the device resolution taken out, calculated, obtain the particular location coordinate of corresponding operating, and carry out sectional drawing;Step Rapid 404:Device resolution in key message based on acquirement, at PC ends, generation and an equal amount of U1 view areas of mobile phone, are obtained Take the sectional drawing of the U1 view areas and be stored in PC ends;View area at PC ends shows the sectional drawing of the U1 view areas and adds mobile phone System button, PC ends are mapped to by mobile phone;View area at PC ends clicks on mouse, records the coordinate value clicked on;Meanwhile, it will click on The action of mouse is fed back to after mobile phone, handset response, then to the view area sectional drawing again at PC ends, is realized synchronous.In the technical side , can identification maneuver in many ways in case, it is ensured that recording process is complete, accurate.
In the above-mentioned technical solutions, it is preferable that the key message in the object script that step 202 is generated, it is including coordinate, dynamic Work, resolution ratio, operation object class, operation object title, operation object attribute description sentence;And/or, step 404 carries out sectional drawing Operation, further comprise:Single-click operation screenshot capture;And/or, slide screenshot capture;And/or, function key operator control panel Curtain sectional drawing.
In the above-mentioned technical solutions, it is preferable that as shown in figure 5, step 210, is specifically included:Step 502:Based on generation Object script, passes through mobile phone direct recording timing diagram;Step 504:Object script based on generation, screen taps record sequential Figure.In the technical scheme, script can be generated in the way of recording, instead of the mode of conventional manual compiling script.
Technical scheme operates recording technology there is provided a kind of Android software applied to automatic test; On the smart mobile phone of android operating systems, the operation behavior action of user is recorded.
Technical scheme, has the characteristics that:
(1) automatized script is generated;Script is generated in the way of recording, instead of the mode of conventional manual compiling script;
(2) good action recognition rate;Identification maneuver in many ways, it is ensured that recording process is complete, accurate;
(3) the script of object-oriented, once records and plays back everywhere;
(4) playback script can be combined with main flow playback framework.
The technical scheme that the present invention solves prior art problem is as follows:
1st, mobile phone and PC connections.
Mobile phone connects computer and USB debugging modes of performing fighting by USB line, and the drive matched with mobile phone model is installed at PC ends It is dynamic.After successful connection, it can be seen that facility information represents successful connection after order line input adb devices.
2nd, mobile phone characteristic information is parsed.
Android system all passes through customized development when each cell phone manufacturer produces, so inputting adb in order line The facility information obtained after devices is not quite similar, but as long as taking out key message correctly can just read the mobile phone Take.
>adb shell getevent –p
The row of 0035,0036 mark is found in feedback information, this group of facility information represents the screen message of mobile phone, can To parse the resolution of mobile phone(720*1280), it is usually/dev/input/event0 while determining screen event stream title. Flow of event result is as shown in Figure 6.
3rd, operation coordinate is obtained
Flow of event mode takes coordinate:
>adb shell getevent –d –l –t
This is a long order thread, after this order is inputted, any operation is carried out to mobile phone, flow of event is supervised Listen, the action of all operating handsets can all return to PC ends.The type of event can be determined by returning to flow of event quantity, substantially Type is:Click, double-click, sliding, dragging, system key.System key flow of event returns to the title for being connect key, what other events were returned It is 16 system relative coordinates, is mutually calculated with our device resolutions of taking-up before, the particular location coordinate that can be operated. Such as Fig. 7:Single-click operation screenshot capture.Slide screenshot capture, as shown in Figure 8.Function key operates screenshot capture, such as Fig. 9 It is shown.
PC screen taps take coordinate.
The mode of coordinate is taken above-mentioned, due to operating the reasons such as too fast, multithreading, coordinate can not be correctly obtained sometimes, At this moment need to use the second way.An an equal amount of U1 view is generated on PC with the mobile phone resolution ratio obtained before Area,
>adb shell /system/bin/screencap –p /sdcard/screenshot.png
>adb pull /sdcard/screenshot.png C:/my_screen
Sectional drawing is obtained with mentioned order and be stored in C in PC again:/ my_screen position, by screenshot.png this Individual picture is shown in view area, and view area will also add cell phone system button, and such mobile phone has been mapped on PC.On PC View area tap mouse, we can record the coordinate value of click.This action is returned with sendkey orders simultaneously To mobile phone, after handset response, then to PC view areas again sectional drawing, realize synchronous.
4th, object-oriented script is generated.
Handset program object is obtained, it is necessary to by uiautomator.Every time after to mobile phone operation, all use Uiautomator obtains the object tree of all objects in mobile phone screen, then gone with operation coordinate points to compare each object coordinates point and Area shared by it, it is possible to show which object is this operation target be.So as to be operation object operation coordinate transformation.This Even if the test script of sample changes different resolution, the mobile phone of different brands can all be played back.
The script of generation is preserved with xml document, and it is static text again, just the characteristics of having object-oriented that this storage format, which is, In editor and transplanting.Key message has coordinate, action, resolution ratio, operation object class, operation object title, operation in xml document Object properties description etc..
5th, mobile phone direct recording timing diagram, referring to Figure 10.
6th, screen taps record timing diagram, referring to Figure 11.
In the inventive solutions, the advantage of the recording mode of flow of event is that writing speed is fast, but easily by many The secondary interference repeated, occurs recording accuracy problem.PC screen taps recording mode advantages are to record accurate, but because every Secondary operation needs sectional drawing synchronizing picture, and speed effect is slow.Both the above recording mode, which is used in combination, to bring out the best in each other, inside one kind Complementary method for recording so that record result accurately quick.Use-case objectification causes the durability of use-case to greatly enhance.
The present invention can also be combined with automated test tool or automation framework, form the test stream of complete set Journey.
Technical scheme is described in detail above in association with accompanying drawing, it is contemplated that there is no simplicity, system in correlation technique One solution that recording is operated for complicated type software.Existing software operation recording can not complete complicated type ginseng With software operate recording process.Therefore, the operation record device and a kind of Android of the invention for proposing a kind of Android software is soft The operation method for recording of part, can make full use of simple object type to complete on the basis of existing software operation recording mode The software operation of complicated many object types is recorded, and sets up general, the unified record that the software operation of complex object type participation is recorded Thinking processed.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (8)

1. a kind of operation record device of Android software, it is characterised in that including:
Terminal connection unit, for mobile phone to be connected with PC ends, under USB debugging modes, is installed and mobile phone model phase at PC ends The driving of matching;After successful connection, in the instruction of order line input inquiry, the facility information of successful connection is obtained;
Characteristic information resolution unit, for the facility information based on acquisition, taking-up can read the key message of corresponding mobile phone, should Key message includes device resolution;
Coordinate acquiring unit is operated, for the key message based on acquirement, the monitoring to mobile phone and the behaviour fed back to PC ends is obtained Make coordinate;
Object-oriented script generation unit, for being operation object by the operation coordinate transformation of acquisition, generates object script;Will be raw Into object script in key message stored;
Timing diagram recording elements, for the object script based on generation, record corresponding timing diagram, the operation coordinate obtains single Member, is specifically included:
Flow of event mode takes index module, for the key message based on acquirement, long order thread is inputted on mobile phone, to mobile phone The flow of event of upper any operation is monitored, and the flow of event of monitoring is returned into PC ends;By returning to the quantity of flow of event, really Determine the fundamental type of event, the fundamental type is including clicking, double-clicking, sliding, dragging, system key;Returned based on system key flow of event That returns is connect the 16 system relative coordinates that key name claims, other flows of event are returned and the device resolution taken out, is calculated, The particular location coordinate of corresponding operating is obtained, and carries out sectional drawing;
PC screen taps take index module, for the device resolution in the key message based on acquirement, generation and hand at PC ends An equal amount of U1 view areas of machine, obtain the sectional drawing of the U1 view areas and are stored in PC ends;View area at PC ends shows the U1 The sectional drawing of view area and the system button for adding mobile phone, PC ends are mapped to by mobile phone;View area at PC ends clicks on mouse, record The coordinate value of click;Meanwhile, the action that will click on mouse is fed back to after mobile phone, handset response, then to PC ends view area again Sectional drawing, is realized synchronous.
2. the operation record device of Android software according to claim 1, it is characterised in that the terminal connection unit, Specifically include:
Debugging and drive module, for mobile phone to be connected with PC ends, under USB debugging modes, are installed and mobile phone model at PC ends The driving matched;
Connection and feedback module, for the driving based on installation, mobile phone is connected with PC ends;It is defeated in order line after successful connection Enter query statement, obtain the facility information of successful connection.
3. the operation record device of Android software according to claim 1, it is characterised in that the object-oriented script life Key message in the object script generated into unit, including coordinate, action, resolution ratio, operation object class, operation object name Title, operation object attribute description sentence and flow of event mode take the shot operation of index module, and shot operation further comprises:
Single-click operation screenshot capture, slide screenshot capture and function key operation screenshot capture.
4. the operation record device of Android software according to claim 1 or 2, it is characterised in that the timing diagram is recorded Unit, is specifically included:
Mobile phone direct recording module, for the object script based on generation, passes through mobile phone direct recording timing diagram;
Screen taps record module, and for the object script based on generation, screen taps record timing diagram.
5. a kind of operation method for recording of Android software, it is characterised in that including:
Step 202:Mobile phone is connected with PC ends, under USB debugging modes, the drive matched with mobile phone model is installed at PC ends It is dynamic;After successful connection, in the instruction of order line input inquiry, the facility information of successful connection is obtained;
Step 204:Facility information based on acquisition, taking-up can read the key message of corresponding mobile phone, and the key message includes Device resolution;
Step 206:Key message based on acquirement, obtains the monitoring to mobile phone and the operation coordinate fed back to PC ends;
The step 206, is specifically included:
Step 402:Key message based on acquirement, inputs long order thread on mobile phone, the event for what operation of taking up an official post to mobile phone Stream is monitored, and the flow of event of monitoring is returned into PC ends;By returning to the quantity of flow of event, the basic class of event is determined Type, the fundamental type is including clicking, double-clicking, sliding, dragging, system key;Based on system key flow of event return connect key name claim, 16 system relative coordinates and the device resolution of taking-up that other flows of event are returned, are calculated, obtain the tool of corresponding operating Body position coordinate, and carry out sectional drawing;
Step 404:Device resolution in key message based on acquirement, generation and an equal amount of U1 views of mobile phone at PC ends Area, obtains the sectional drawing of the U1 view areas and is stored in PC ends;View area at PC ends shows the sectional drawing of the U1 view areas and addition The system button of mobile phone, PC ends are mapped to by mobile phone;View area at PC ends clicks on mouse, records the coordinate value clicked on;Meanwhile, The action that will click on mouse is fed back to after mobile phone, handset response, then to the view area sectional drawing again at PC ends, is realized synchronous;
Step 208:It is operation object by the operation coordinate transformation of acquisition, generates object script;By in the object script of generation Key message is stored;
Step 210:Object script based on generation, records corresponding timing diagram.
6. the operation method for recording of Android software according to claim 5, it is characterised in that the step 202, specific bag Include:
Step 302:Mobile phone is connected with PC ends, under USB debugging modes, the drive matched with mobile phone model is installed at PC ends It is dynamic;
Step 304:Driving based on installation, mobile phone is connected with PC ends;After successful connection, instructed in order line input inquiry, Obtain the facility information of successful connection.
7. the operation method for recording of Android software according to claim 5, it is characterised in that what the step 208 was generated Key message in object script, including coordinate, action, resolution ratio, operation object class, operation object title, operation object category The operation of sectional drawing in property descriptive statement and step 404, the operation of sectional drawing further comprises:
Single-click operation screenshot capture, slide screenshot capture and function key operation screenshot capture.
8. the operation method for recording of the Android software according to claim 5 or 6, it is characterised in that the step 210, tool Body includes:
Step 502:Object script based on generation, passes through mobile phone direct recording timing diagram;
Step 504:Object script based on generation, screen taps record timing diagram.
CN201410790339.6A 2014-12-17 2014-12-17 The operation record device and method of Android software Active CN104461894B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410790339.6A CN104461894B (en) 2014-12-17 2014-12-17 The operation record device and method of Android software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410790339.6A CN104461894B (en) 2014-12-17 2014-12-17 The operation record device and method of Android software

Publications (2)

Publication Number Publication Date
CN104461894A CN104461894A (en) 2015-03-25
CN104461894B true CN104461894B (en) 2017-11-07

Family

ID=52907983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410790339.6A Active CN104461894B (en) 2014-12-17 2014-12-17 The operation record device and method of Android software

Country Status (1)

Country Link
CN (1) CN104461894B (en)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9940637B2 (en) 2015-06-05 2018-04-10 Apple Inc. User interface for loyalty accounts and private label accounts
US10271084B2 (en) 2015-06-07 2019-04-23 Apple Inc. Video recording and replay
CN105183647A (en) * 2015-09-01 2015-12-23 北京瑞汛世纪科技有限公司 Application testing method, apparatus and system
CN105262798A (en) * 2015-09-18 2016-01-20 北京金山安全软件有限公司 Method, system and device for connecting terminals
CN105138463A (en) * 2015-09-25 2015-12-09 成都中科创达软件有限公司 Testing method and system for mobile terminal software
CN107179890A (en) * 2016-03-10 2017-09-19 北京君正集成电路股份有限公司 A kind of method and system for synchronizing operation to mobile terminal by PC ends
CN105843734B (en) * 2016-03-18 2019-03-15 厦门美图移动科技有限公司 A kind of automated testing method, device and calculate equipment
CN105955881B (en) * 2016-04-22 2019-02-12 百度在线网络技术(北京)有限公司 A kind of automatic test step is recorded and back method and device
US11580608B2 (en) 2016-06-12 2023-02-14 Apple Inc. Managing contact information for communication applications
CN106383765B (en) * 2016-08-31 2019-04-26 北京百分点信息科技有限公司 A kind of data monitoring method and device
CN106648668A (en) * 2016-12-26 2017-05-10 上海斐讯数据通信技术有限公司 Folder system and method for simultaneously containing and starting multiple mobile phone functions
CN106874208A (en) * 2017-02-27 2017-06-20 网易(杭州)网络有限公司 The processing method of test script, device and electronic equipment
CN107193729B (en) * 2017-04-19 2020-07-31 北京云测信息技术有限公司 Application compatibility testing method and device
CN109298994A (en) * 2017-07-24 2019-02-01 中国移动通信集团公司 A kind of script records, method for testing software and equipment
CN108170593A (en) * 2017-12-22 2018-06-15 北京奇虎科技有限公司 The method and device of application program operation
DK179992B1 (en) 2018-05-07 2020-01-14 Apple Inc. Visning af brugergrænseflader associeret med fysiske aktiviteter
CN109815118A (en) * 2018-12-14 2019-05-28 深圳壹账通智能科技有限公司 Data base management method and device, electronic equipment and computer readable storage medium
DK201970530A1 (en) 2019-05-06 2021-01-28 Apple Inc Avatar integration with multiple applications
CN112685279B (en) * 2019-10-17 2024-02-20 深圳市腾讯网域计算机网络有限公司 Script recording method, script recording device and terminal equipment
CN111124567B (en) * 2019-12-02 2021-06-25 腾讯科技(深圳)有限公司 Operation recording method and device for target application
US11039074B1 (en) 2020-06-01 2021-06-15 Apple Inc. User interfaces for managing media
CN115842884A (en) * 2022-12-27 2023-03-24 润芯微科技(江苏)有限公司 Method for completing mobile phone test based on recording mobile phone interface coordinates

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064781A (en) * 2011-10-18 2013-04-24 飞图科技(北京)有限公司 Mobile software automated testing method
CN103928038A (en) * 2014-04-29 2014-07-16 广东欧珀移动通信有限公司 Electronic equipment test recording and playing back method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064781A (en) * 2011-10-18 2013-04-24 飞图科技(北京)有限公司 Mobile software automated testing method
CN103928038A (en) * 2014-04-29 2014-07-16 广东欧珀移动通信有限公司 Electronic equipment test recording and playing back method

Also Published As

Publication number Publication date
CN104461894A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN104461894B (en) The operation record device and method of Android software
CN104407980B (en) Mobile solution automatic test device and method
CN101295280B (en) Automatic software debugging method and system
US9189377B1 (en) Automation testing using descriptive maps
CN108170611A (en) Automated testing method and device, storage medium, electronic equipment
CN102495802B (en) Method and device for testing software system, and computer system
CN106649107B (en) Automatic testing method and device for stability of android system
CN102567201B (en) Method for automatically recovering cross-model GUI (graphic user interface) test scripts
US9152539B2 (en) Tag-based graphical user interface production systems and methods
CN105843734A (en) Automatic test method and device and computing device
CN103984626B (en) A kind of method and device for generating test case script
CN107665168A (en) A kind of embedded software GUI automated test devices
CN104461855A (en) Automatic Web testing method, system and device
CN102999419B (en) A kind of Android test incident record back method and device
CN101025686A (en) Automation test system and test script generating and operating method
CN110362483A (en) Performance data acquisition method, device, equipment and storage medium
CN101854505A (en) The digital video record of user display and playback in Process Control System
WO2020096665A2 (en) System error detection
US11813538B2 (en) Videogame telemetry data and game asset tracker for session recordings
CN113987393A (en) Web page operation recorder, system, device and method
CN106354629A (en) Construction method of iOS system mobile application automatic test system based on multiple stages of servers
CN106528429A (en) UI testing method and device
Jiang et al. Log-it: Supporting Programming with Interactive, Contextual, Structured, and Visual Logs
CN103649912A (en) Method, apparatus, and computer program product for generation of traceability matrices from video media
CN106201790B (en) A kind of adjustment method and debugging system based on DSDT table

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100094 Beijing city Haidian District North Road No. 68, UFIDA Software Park

Applicant after: Yonyou Network Technology Co., Ltd.

Address before: 100094 Beijing city Haidian District North Road No. 68, UFIDA Software Park

Applicant before: UFIDA Software Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant